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.
- register (r : ℕ) : r < R → data (pos r) = Atom.register
- field (r : ℕ) : r < R → UnaryField data (pos r) r
Instances For
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.