Encoding interface for the fixed unary NOR control. Its fields are local data, delimiter, address and span facts. None is an interpreter correctness or successful-run assumption. The interpreter proofs derive execution from these encoding facts; consumers construct their layout.
@[reducible, inline]
Equations
Instances For
Equations
Instances For
- bank (memory : Registers) : RegisterChain (self.data memory) self.reg R
- first_gap (memory : Registers) (z : ℤ) : 3 ≤ z → z < self.instruction 0 → self.data memory z ≠ Atom.instruction
- instruction_tag (memory : Registers) (g : ℕ) : g < G → self.data memory (self.instruction g) = Atom.instruction
- instruction_order (g : ℕ) : g < G → self.instruction g + 1 ≤ self.instruction (g + 1)
- instruction_gap (memory : Registers) (g : ℕ) : g < G → ∀ (z : ℤ), self.instruction g + 1 ≤ z → z < self.instruction (g + 1) → self.data memory z ≠ Atom.instruction ∧ self.data memory z ≠ Atom.finish
- instruction_span (g : ℕ) : g ≤ G → self.instruction g ≤ ↑L
Instances For
def
MindFormal.A595Paper.CodeLayout.memoryAt
{R G L : ℕ}
(layout : CodeLayout R G L)
(initial : Registers)
:
Equations
Instances For
def
MindFormal.A595Paper.CodeLayout.OperandsReady
{R G L : ℕ}
(layout : CodeLayout R G L)
(initial : Registers)
:
Well-formed operands are already populated when an instruction is reached in the ideal register recurrence. Topological code and populated input registers imply this data property. It asserts no tape execution.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
MindFormal.A595Paper.CodeLayout.instruction_run
{R G L : ℕ}
(layout : CodeLayout R G L)
(initial : Registers)
(ready : layout.OperandsReady initial)
(g : ℕ)
(hg : g < G)
:
∃ n ≤ 60 * (L + 1) ^ 3,
MachineRun norTable
(norConfig (layout.data (layout.memoryAt initial g)) (some (layout.instruction g)) none none (layout.fieldPos g 0)
NorState.activateFirst)
n
(norConfig (layout.data (layout.memoryAt initial (g + 1))) (some (layout.instruction g)) none none
(layout.fieldPos g 2 - 1) NorState.clearInstruction)