MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.RegisterAccess

theorem MindFormal.A595Paper.RegisterChain.fetch {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) (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 ≤ 16 * (L + 1) ^ 3, MachineRun norTable (norConfig data current (some a) none (pos 0) (NorState.nextCandidate access)) n (norConfig data current none none (a + direction (afterSource (accessReturn access bit)).2) (afterSource (accessReturn access bit)).1)
theorem MindFormal.A595Paper.RegisterChain.store {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) (hsep : ∀ r < R, pos r + ↑r + 1 < a) (hL : a + ↑m + 2 ≤ ↑L) (bit : Bool) :
∃ n ≤ 16 * (L + 1) ^ 3, MachineRun norTable (norConfig data current (some a) none (pos 0) (NorState.nextCandidate (Access.store bit))) n (norConfig (Function.update data (pos m + ↑m + 1) (Atom.bit bit)) current none none (a - 1) NorState.clearInstruction)
theorem MindFormal.A595Paper.to_bank (data : ℤ → Atom) (current : Option ℤ) (a : ℤ) (access : Access) (ha : 4 ≤ a) (hbank : ∀ (z : ℤ), data z = Atom.bank ↔ z = 3) :
MachineRun norTable (norConfig data current (some a) none (a - 1) (NorState.toBank access)) ((a - 4).toNat + 1) (norConfig data current (some a) none 4 (NorState.nextCandidate access))