OAI/Computability/UniqueGames/Machines/PoweringMachineRowBody.lean
36 declarations, 0 contain sorry, 0 declared as axioms
- abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.capacityline 15 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.bufferSizeline 16 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Stateline 17 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.commandsline 19 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Labelline 22 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.planMainline 27Source documentation
A finite main label also exists for an empty command list.
def planMain {max : Nat} {E : Type} (ops : List (PoweringMachinePlan.Command d max)) (fallback : E) : PoweringMachinePlan.Label ops ⊕ E := …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachinePlan.Command, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachinePlan.Label
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.plan_entry_eqline 34 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.entryline 41 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.headerPlacementline 45Source documentation
Only the header phase directs shared output role 10 to the external output.
def headerPlacement {max : Nat} (placement : PoweringMachineTapes.Tape max → K) (output : K) (i : PoweringMachineTapes.Tape max) : K := …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineTapes.Tape
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.headerPlacement_outputline 50 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.headerPlacement_otherline 55 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.headerPlacement_injectiveline 61 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.headerPlacement_excludes_dataline 77 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.instructionline 89 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.afterPlanline 100 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.rowRelationline 104 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.rowWordsline 109 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.afterEmitline 114 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapesline 121 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.planStepsline 129 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.planSteps_eqline 134 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.stepsline 147 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Readyline 152 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.plan_otherline 157 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.afterEmit_dataline 170 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.afterEmit_roleline 177 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.afterEmit_readyline 187 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapes_dataline 209 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapes_readyline 222 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapes_otherline 247 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.rowBlock_eq_rowRelationline 266 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapes_outputline 283Source documentation
The full serialized row is prepended to the caller's existing output.
theorem finalTapes_output (graph : PortTables.Table vertices d) (n : Nat) (placement : PoweringMachineTapes.Tape (capacity n) → K) (distinct : Function.Injective placement) (output : K) (outside : ∀ i, output ≠ placement i) (vertex : Fin vertices) (ports : Fin (n + 1) → Fin d) (direction : Bool) (base : K → List Bool) (suffix : List Bool) (ready : Ready graph n placement vertex suffix base) : finalTapes graph n placement output vertex ports direction base output = encodeWords (rowWords graph n vertex ports direction) ++ base output := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineTapes.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.capacity, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Ready, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapes, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWords, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.rowWords
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.rowTraceline 314Source documentation
The complete row producer executes its concrete plan, one row transition, and the concrete two-header writer. No local execution hypothesis is assumed.
theorem rowTrace (graph : PortTables.Table vertices d) (n : Nat) (placement : PoweringMachineTapes.Tape (capacity n) → K) (distinct : Function.Injective placement) (output : K) (outside : ∀ i, output ≠ placement i) (vertex : Fin vertices) (ports : Fin (n + 1) → Fin d) (direction : Bool) (labels : Label n ports direction → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : K => Bool) Λ (State d n)) (atLabels : ∀ l, program (labels l) = instruction n placement output ports direction labels exit l) (base : K → List Bool) (suffix : List Bool) (ready : Ready graph n placement vertex suffix base) : (advance (TM2.step program))^[steps graph vertex n ports direction] (some ⟨some (labels (entry n ports direction)), PoweringMasterState.clean (bufferSize d n), base⟩) = some ⟨exit, PoweringMasterState.clean (bufferSize d n), finalTapes graph n placement output vertex ports direction base⟩ := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineTapes.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.capacity, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Label, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.State, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.instruction, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Ready, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.steps, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.entry, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.clean, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.bufferSize, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapes
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.budgetline 366 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.steps_leline 370 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.rowInTimeline 383Source documentation
The row subroutine's genuine execution certificate has the explicit fixed-parameter affine bound in the serialized graph length.
def rowInTime (graph : PortTables.Table vertices d) (n : Nat) (placement : PoweringMachineTapes.Tape (capacity n) → K) (distinct : Function.Injective placement) (output : K) (outside : ∀ i, output ≠ placement i) (vertex : Fin vertices) (ports : Fin (n + 1) → Fin d) (direction : Bool) (labels : Label n ports direction → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : K => Bool) Λ (State d n)) (atLabels : ∀ l, program (labels l) = instruction n placement output ports direction labels exit l) (base : K → List Bool) (suffix : List Bool) (ready : Ready graph n placement vertex suffix base) : StateTransition.EvalsToInTime (TM2.step program) ⟨some (labels (entry n ports direction)), PoweringMasterState.clean (bufferSize d n), base⟩ (some ⟨exit, PoweringMasterState.clean (bufferSize d n), finalTapes graph n placement output vertex ports direction base⟩) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineTapes.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.capacity, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Label, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.State, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.instruction, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.Ready, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.entry, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.clean, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.bufferSize, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRowBody.finalTapes