MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.FieldAccess

theorem MindFormal.A595Paper.activate_first (data : ℤ → Atom) (current : Option ℤ) (a : ℤ) (ha : data a = Atom.field) :
theorem MindFormal.A595Paper.next_field (data : ℤ → Atom) (current : Option ℤ) (h a : ℤ) (access : Access) (ha : data a = Atom.field) (hh : h ≤ a) (hgap : ∀ (z : ℤ), h ≤ z → z < a → data z ≠ Atom.field) :
MachineRun norTable (norConfig data current none none h (NorState.nextField access)) ((a - h).toNat + 1) (norConfig data current (some a) none (a - 1) (NorState.toBank access))
theorem MindFormal.A595Paper.RegisterChain.fetch_from_field {data : ℤ → Atom} {pos : ℕ → ℤ} {R : ℕ} (bank : RegisterChain data pos R) (current : Option ℤ) {a : ℤ} {m L : ℕ} (access : Access) (hread : ∀ (bit : Bool), access ≠ Access.store bit) (source : UnaryField data a m) (hm : m < R) (hR : R ≤ L) (hpos : pos 0 = 4) (hbank : ∀ (z : ℤ), data z = Atom.bank ↔ z = 3) (hsep : ∀ r < R, pos r + ↑r + 1 < a) (hL : a + ↑m + 2 ≤ ↑L) (bit : Bool) (hbit : data (pos m + ↑m + 1) = Atom.bit bit) :
∃ n ≤ 17 * (L + 1) ^ 3, MachineRun norTable (norConfig data current (some a) none (a - 1) (NorState.toBank access)) n (norConfig data current none none (a + direction (afterSource (accessReturn access bit)).2) (afterSource (accessReturn access bit)).1)
theorem MindFormal.A595Paper.RegisterChain.store_from_field {data : ℤ → Atom} {pos : ℕ → ℤ} {R : ℕ} (bank : RegisterChain data pos R) (current : Option ℤ) {a : ℤ} {m L : ℕ} (source : UnaryField data a m) (hm : m < R) (hR : R ≤ L) (hpos : pos 0 = 4) (hbank : ∀ (z : ℤ), data z = Atom.bank ↔ z = 3) (hsep : ∀ r < R, pos r + ↑r + 1 < a) (hL : a + ↑m + 2 ≤ ↑L) (bit : Bool) :
∃ n ≤ 17 * (L + 1) ^ 3, MachineRun norTable (norConfig data current (some a) none (a - 1) (NorState.toBank (Access.store bit))) n (norConfig (Function.update data (pos m + ↑m + 1) (Atom.bit bit)) current none none (a - 1) NorState.clearInstruction)