def
MindFormal.A630PaperPrograms.layout
(test : Test)
:
A595Paper.CodeLayout (registerCount test) (gateCount test) (tapeSpan test)
Equations
- MindFormal.A630PaperPrograms.layout MindFormal.A630PaperPrograms.Test.mp = MindFormal.A630PaperPrograms.MP.fixedLayout
- MindFormal.A630PaperPrograms.layout MindFormal.A630PaperPrograms.Test.mt = MindFormal.A630PaperPrograms.MT.fixedLayout
- MindFormal.A630PaperPrograms.layout MindFormal.A630PaperPrograms.Test.control = MindFormal.A630PaperPrograms.Control.fixedLayout
Instances For
Equations
Instances For
Equations
Instances For
theorem
MindFormal.A630PaperPrograms.idealPrefix_length
(test : Test)
(g : ℕ)
(hg : g ≤ gateCount test)
:
theorem
MindFormal.A630PaperPrograms.idealPrefix_successor
(test : Test)
(g : ℕ)
(hg : g < gateCount test)
:
theorem
MindFormal.A630PaperPrograms.operands_ready
(test : Test)
:
(layout test).OperandsReady initialMemory
theorem
MindFormal.A630PaperPrograms.encoded_registers
(test : Test)
(r : ℕ)
(hr : r < registerCount test)
:
Every intermediate bit, generated valuation and counterexample flag is actually a cell of the final encoded register bank, with the computed value. This is pure data encoding; native execution is derived separately.
theorem
MindFormal.A630PaperPrograms.complete_layout
{R G L : ℕ}
(code : A595Paper.CodeLayout R G L)
(hG : 0 < G)
(initial : A595Paper.Registers)
(ready : code.OperandsReady initial)
:
∃ (n : ℕ) (bit : Bool),
n ≤ 99 * (G + 2) * (L + 1) ^ 3 ∧ code.memoryAt initial G (code.address (G - 1) 2) = some bit ∧ A595Paper.MachineRun A595Paper.norTable
(A595Paper.norConfig (code.data initial) none none none 3 A595Paper.NorState.findInstruction) n
(A595Paper.norConfig (A595Paper.reportData (code.data (code.memoryAt initial G)) bit) none none none 1
A595Paper.NorState.halt)