OAI/Computability/MaxCut/Machines/MachineRegularVertexBlock.lean
58 declarations, 0 contain sorry, 0 declared as axioms
Actual regularized vertex-block execution
The finite internal-port loop invokes the checked row machine for every port in order. Each invocation restores the shared 27-tape frame. Inherited-row stages use fixed tape placements and finite state permutations.
- abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.PortLabelline 22 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portEntryline 24 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portInstructionline 28 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portBitsline 35Source documentation
A prefix of the emitted rows, defined without any execution hypothesis.
def portBits {q : Nat} (bits : Fin q → List Bool) : Nat → List Bool | 0 => [] | k + 1 => portBits bits k ++ if h : k < q then bits ⟨k, h⟩ else [] - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portBits_eqline 39 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portBits_allline 49 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.rowBitsline 53 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portStepsline 58 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.joinTrace_inline_MachineRegularVertexBlockline 66 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portPrefixTraceline 72Source documentation
Every body is an actual invocation of
coreTrace; the code hypothesis only states the fixed placement into the caller's program.theorem portPrefixTrace (q : Nat) (positive : 0 < q) (labels : PortLabel q → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : CoreTape => Bool) Λ (CoreState σ q)) (code : ∀ l, program (labels l) = portInstruction q positive labels exit l) (t : GraphTables.Table) (padding : Fin t.vertices → Nat) (tables : ∀ v, ExpanderTables.Table (cloudSize t v + padding v) q) (v : Fin t.vertices) (x : PaddedCloud t padding v) (output : List Bool) (ambient : σ) (k : Nat) (hk : k ≤ q) : (advance (TM2.step program))^[portSteps t padding tables v x output.length k] (some ⟨portEntry q labels exit 0, coreInitialState q positive ambient, coreInputTapes t padding tables v x output⟩) = some ⟨portEntry q labels exit k, coreInitialState q positive ambient, …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.PortLabel, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portInstruction, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portSteps, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portEntry
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portTraceline 101 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalTapesline 117 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalViewline 120 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalView_leftline 125 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalView_rightline 128 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalStateEquivline 133 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalCoreInstructionline 141 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalMemoryline 148 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalMemory_inputline 152 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalMemory_updateline 156 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalFrameline 160 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalCoreTraceline 168Source documentation
The inherited old relation is physically copied by the checked original-row machine, with a static tape placement and state permutation.
theorem originalCoreTrace (q : Nat) (positive : 0 < q) (labels : MachineRegularOriginalClean.Label → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : CoreTape => Bool) Λ (CoreState σ q)) (code : ∀ l, program (labels l) = originalCoreInstruction q labels exit l) (t : GraphTables.Table) (e : Fin t.darts) (v i k o m : Nat) (rotor output : List Bool) (ambient : σ) : (advance (TM2.step program))^[MachineRegularOriginalClean.steps q t e (originalMemory (GraphTables.tableBits t) e.val output)] (some ⟨some (labels (.row (.lookup .seed))), coreInitialState q positive ambient, coreMemory (GraphTables.tableBits t) e.val v i k o m rotor output [] [] [] [] [] []⟩) = some ⟨exit, coreInitialState q positive ambient, coreMemory (GraphTables.tableBits t) e.val v i k o m rotor …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalClean.Label, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalCoreInstruction, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalClean.steps, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalMemory
- def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyTapesline 200 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyViewline 202 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyView_leftline 207 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyView_rightline 210 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyCoreInstructionline 215 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyMemory_updateline 221 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyFrameline 226 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyCoreTraceline 232 - inductive
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.Labelline 261 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalEntryline 268 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyEntryline 271 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.instructionline 274 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.oldCloudline 283 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalRowStepsline 286 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalRowSteps_eqline 290 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.encodeWords_flatMap_inline_MachineRegularVertexBlockline 301 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.encodeWords_pair_inline_MachineRegularVertexBlockline 307 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.vertexBits_splitline 310 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalStepsline 323 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalTraceAtline 332Source documentation
The full old-vertex block uses every internal port, then physically copies the original relation and reverse index. The output is the actual table block.
theorem originalTraceAt (q : Nat) (positive : 0 < q) (labels : Label q → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : CoreTape => Bool) Λ (CoreState σ q)) (code : ∀ l, program (labels l) = instruction q positive labels exit l) (t : GraphTables.Table) (padding : Fin t.vertices → Nat) (tables : ∀ v, ExpanderTables.Table (cloudSize t v + padding v) q) (e : Fin t.darts) (output : List Bool) (ambient : σ) : (advance (TM2.step program))^[originalSteps t padding tables e output.length] (some ⟨some (labels (originalEntry q positive)), coreInitialState q positive ambient, coreInputTapes t padding tables t.rows[e].tail (oldCloud t padding e) output⟩) = some ⟨exit, coreInitialState q positive ambient, coreInputTapes t padding tables t.rows[e].tail (oldCloud t padding e) …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.Label, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.instruction, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalSteps, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalEntry, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.oldCloud
- def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyStepsline 375 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyTraceAtline 382 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.rowSizeBoundline 425Source documentation
Uniform bound on a serialized row in the actual output table.
def rowSizeBound (q vertices : Nat) : Nat := vertices + vertices * (q + 1) + 8192
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.rowBits_length_leline 427 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portBits_length_leline 433 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.allRowBits_length_leline 447 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portTimeBoundline 455 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.portSteps_leline 459 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalTimeBoundline 491 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyTimeBoundline 496 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalSteps_leline 500 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummySteps_leline 530 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalMachineline 549Source documentation
A concrete finite program for original vertex blocks.
def originalMachine (q : Nat) (positive : 0 < q) : FinTM2 where …
- def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyMachineline 561Source documentation
The same fixed instructions, entered at the dummy-vertex port loop.
def dummyMachine (q : Nat) (positive : 0 < q) : FinTM2 where …
- def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.originalMachineInTimeline 572 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyMachineInTimeline 592