OAI/Computability/UniqueGames/Machines/FinalCNFRowPlanLemmas.lean
54 declarations, 0 contain sorry, 0 declared as axioms
The fixed finite emission plan for one directed graph row. All choices based on the relation are functions of its 4096-bit finite register. Vertex counts, endpoint names and row indices are read by preserving unary scans.
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.referenceValueline 23 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.auxiliaryFlagline 27 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.tailFlagline 31 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headFlagline 35 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.pattern_ltline 39 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.referenceOffsetline 43 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.literalPlanline 48Source documentation
Seven real commands for the two unary fields of a literal.
def literalPlan (p : VerifierToCNF.PatternIndex 12) (literal : Ambient → LiteralTemplate) : Plan := …
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Ambient, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Plan
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.literalPlan_lengthline 57 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.literalPlan_bitsline 60 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.patternLiteralline 88 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.patternPlanline 93 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowPlanline 97 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.patternPlan_lengthline 100 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowPlan_lengthline 111 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.encodeWords_flatMapline 119 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.patternPlan_bitsline 125 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.referenceValue_eq_resolveline 156 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowPlan_bitsline 182 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.endpointTapesline 211 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.endpointsInTimeline 218Source documentation
Read the two fields actually stored in a graph row: tail and reverse dart.
def endpointsInTime (headerPlan plan : Plan) (base : Tape → List Bool) (tail reverse : Nat) (rest : List Bool) (hinput : base .input = encodeWord tail ++ encodeWord reverse ++ rest) (ambient : Ambient) : StateTransition.EvalsToInTime (TM2.step (program headerPlan plan)) ⟨some .startTail, ((ambient, ()), none), base⟩ (some ⟨some .headTableFirst, ((ambient, ()), none), endpointTapes base tail reverse rest⟩) (tail + reverse + 4) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headerPlan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Plan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Ambient, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.program, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.endpointTapes
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.relationInTimeline 244Source documentation
The fixed unary relation reader occupies one finite TM2 statement.
def relationInTime (headerPlan plan : Plan) (base : Tape → List Bool) (relation : GraphTables.RelationTable) (rest : List Bool) (hinput : base .input = encodeWords (GraphTables.relationWords relation) ++ rest) (ambient : Ambient) : StateTransition.EvalsToInTime (TM2.step (program headerPlan plan)) ⟨some .readRelation, ((ambient, ()), none), base⟩ (some ⟨some (.row (Emitter.labelAt plan.length 36864 0 .entry)), ((((), fun i => relation[i]), ()), none), Function.update base .input rest⟩) 1 where …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headerPlan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Plan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWords, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Ambient, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.program
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.emitInTimeline 259Source documentation
Execute the complete fixed row emission plan against physical unary tapes.
def emitInTime (headerPlan plan : Plan) (base : Tape → List Bool) (operands : Fin 5 → Nat) (hoperands : ∀ i, base (source i) = encodeWord (operands i)) (hscratch : base .scratch = []) (ambient : Ambient) (N : Nat) (hbounded : ∀ i, operands i ≤ N) : StateTransition.EvalsToInTime (TM2.step (program headerPlan plan)) ⟨some (.row (Emitter.labelAt plan.length 36864 0 .entry)), ((ambient, ()), none), base⟩ (some ⟨some .clearTail, ((ambient, ()), none), Function.update base .accumulator ((plan.flatMap (Emitter.commandBits operands ambient)).reverse ++ base .accumulator)⟩) (plan.length * (3 * (N + 1) + 3) + 1) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headerPlan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Plan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.source, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Ambient, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.program
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.finishTapesline 276 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.finishInTimeline 283Source documentation
Clear precisely the three isolated temporary fields and increment the physical row counter before returning to the input guard.
def finishInTime (headerPlan plan : Plan) (base : Tape → List Bool) (tail head reverse row : Nat) (htail : base .tail = encodeWord tail) (hhead : base .head = encodeWord head) (hreverse : base .reverseIndex = encodeWord reverse) (hrow : base .rowIndex = encodeWord row) (ambient : Ambient) : StateTransition.EvalsToInTime (TM2.step (program headerPlan plan)) ⟨some .clearTail, ((ambient, ()), none), base⟩ (some ⟨some .guard, ((ambient, ()), none), finishTapes base row⟩) (tail + head + reverse + 4) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headerPlan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Plan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Ambient, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.program, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.guard, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.finishTapes
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headRoles_zeroline 320 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headRoles_oneline 321 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headRoles_twoline 322 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headRoles_threeline 323 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headRoles_fourline 324 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headRoles_fiveline 325 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowOperandsline 327 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowRelationline 331 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowRestline 334 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.preparedTapesline 337 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.prepared_inputline 343 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.prepared_headline 349 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.prepared_tailline 357 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.prepared_reverseline 363 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.prepared_frameline 370 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.emittedTapesline 378 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResultTapesline 384 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResult_inputline 388 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResult_tailline 393 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResult_headline 398 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResult_reverseline 403 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResult_indexline 408 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResult_accumulatorline 413 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowResult_frameline 420 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.guardRowInTimeline 431 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.guardEndInTimeline 444 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.prepared_operandsline 457Source documentation
All five unbounded operands remain isolated encoded naturals after the row parser and head lookup, including both independently retrieved endpoints.
theorem prepared_operands (base : Tape → List Bool) (table : GraphTables.Table) (e : Fin table.darts) (rest : List Bool) (hn : base .vertices = encodeWord table.vertices) (hm : base .darts = encodeWord table.darts) (hr : base .rowIndex = encodeWord e.val) (ht : base .tail = []) : ∀ i, (Function.update (preparedTapes base table e rest) Tape.input rest) (source i) = encodeWord (rowOperands table e i) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.preparedTapes, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.source, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowOperands
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowOperands_boundedline 486 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowTimeline 497 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowInTimeline 503Source documentation
Run one complete stored row, including the actual table-based head lookup. The only hypotheses describe the physical input tapes; no execution or serialization correctness of a caller-provided body is assumed.
noncomputable def rowInTime (headerPlan plan : Plan) (base : Tape → List Bool) (table : GraphTables.Table) (e : Fin table.darts) (rest : List Bool) (hinput : base .input = encodeWords (GraphTables.rowWords table.rows[e]) ++ rest) (harchive : base .archive = GraphTables.tableBits table) (hn : base .vertices = encodeWord table.vertices) (hm : base .darts = encodeWord table.darts) (hrow : base .rowIndex = encodeWord e.val) (ht : base .tail = []) (hh : base .head = []) (hr : base .reverseIndex = []) (hscratch : base .scratch = []) (ambient : Ambient) : StateTransition.EvalsToInTime (TM2.step (program headerPlan plan)) ⟨some .startTail, ((ambient, ()), none), base⟩ (some ⟨some .guard, ((rowRelation table e, ()), none), …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.headerPlan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Plan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWords, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Ambient, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.program, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.guard, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowRelation