MindFormal v1.0.0One Mind

MindFormal.Tools.A630PaperPrograms.EncodedPrograms

theorem MindFormal.A630PaperPrograms.take_successor {A : Type u_1} (xs : List A) (fallback : A) (k : ℕ) (hk : k < xs.length) :
List.take (k + 1) xs = List.take k xs ++ [xs.getD k fallback]
theorem MindFormal.A630PaperPrograms.idealPrefix_successor (test : Test) (g : ℕ) (hg : g < gateCount test) :
idealPrefix test (g + 1) = executeGate (idealPrefix test g) ((program test).getD g (0, 0))

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)