MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.RegisterSearch

structure MindFormal.A595Paper.RegisterChain (data : ℤ → Atom) (pos : ℕ → ℤ) (R : ℕ) :

Data conditions for a bank of unary register records. In particular, the gaps contain no extra register or instruction delimiter. These are encoding conditions, not a supplied interpreter or successful execution.

Instances For
    theorem MindFormal.A595Paper.RegisterChain.advance_candidate {data : ℤ → Atom} {pos : ℕ → ℤ} {R : ℕ} (bank : RegisterChain data pos R) (current : Option ℤ) (a : ℤ) (access : Access) (r : ℕ) (hr : r + 1 < R) :
    MachineRun norTable (norConfig data current (some a) none (pos r + 1) (NorState.nextCandidate access)) (pos (r + 1) - (pos r + 1)).toNat (norConfig data current (some a) none (pos (r + 1)) (NorState.nextCandidate access))
    theorem MindFormal.A595Paper.RegisterChain.search_prefix {data : ℤ → Atom} {pos : ℕ → ℤ} {R : ℕ} (bank : RegisterChain data pos R) (current : Option ℤ) {a : ℤ} {m L : ℕ} (access : Access) (source : UnaryField data a m) (hm : m < R) (hsep : ∀ r < R, pos r + ↑r + 1 < a) (hL : a + ↑m + 2 ≤ ↑L) (k : ℕ) (hk : k ≤ m) :
    ∃ n ≤ k * (12 * (L + 1) ^ 2), MachineRun norTable (norConfig data current (some a) none (pos 0) (NorState.nextCandidate access)) n (norConfig data current (some a) none (pos k) (NorState.nextCandidate access))
    theorem MindFormal.A595Paper.RegisterChain.search {data : ℤ → Atom} {pos : ℕ → ℤ} {R : ℕ} (bank : RegisterChain data pos R) (current : Option ℤ) {a : ℤ} {m L : ℕ} (access : Access) (source : UnaryField data a m) (hm : m < R) (hsep : ∀ r < R, pos r + ↑r + 1 < a) (hL : a + ↑m + 2 ≤ ↑L) :
    ∃ n ≤ (m + 1) * (12 * (L + 1) ^ 2), MachineRun norTable (norConfig data current (some a) none (pos 0) (NorState.nextCandidate access)) n (norConfig data current (some a) (some (pos m)) (pos m + ↑m + 2) (NorState.compare access (CompareState.finish true)))

    Search visits each candidate in order, restores both address fields after each comparison, and reaches the requested register.