aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / bootstrap / formal-oracles / lean / MutantKvValidClaim.lean
| 1 | import MutantKvModels |
| 2 | namespace AienKv |
| 3 | /-- Real-model theorem `element_in_allocation` restated for ValidM4. MUST FAIL to check. -/ |
| 4 | theorem mutant_element_in_allocation (c : Cfg) {b l v t h d : Nat} (hv : c.ValidM4 b l v t h d) : |
| 5 | InRange (c.off b l v t h d) c.elemBytes c.total := by |
| 6 | obtain ⟨hb, hl, hv2, ht, hh, hd⟩ := hv |
| 7 | have e1 := elem_in_head c hd |
| 8 | have e2 := head_in_token c hh |
| 9 | have e3 := token_in_plane c ht |
| 10 | have e4 := plane_in_layer c hv2 |
| 11 | have e5 := layer_in_block c hl |
| 12 | have e6 := block_in_total c hb |
| 13 | unfold InRange Cfg.off |
| 14 | omega |
| 15 | end AienKv |