OAI/Computability/UniqueGames/Machines/PoweringMasterState.lean
25 declarations, 0 contain sorry, 0 declared as axioms
Explicit common-register layout for the powering machine. The header, word and affine routines use the trailing optional-bit register directly. Comparison reassociates the finite registers; row evaluation moves the fixed buffer to the final component. The row adapter below proves an actual step of the caller's mixed program, rather than requiring that the entire program be a translated copy of the row routine.
- abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.OtherRegistersline 22 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Masterline 23 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.CompareStateline 24 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.RowStateline 25 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.compareEquivline 28Source documentation
This is definitionally the state already used by the equality-bit producer.
def compareEquiv (N : Nat) : Master N ≃ CompareState N := …
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Master, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.CompareState
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.rowEquivline 32Source documentation
All four finite components are retained by this register permutation.
def rowEquiv (N : Nat) : Master N ≃ RowState N where …
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Master, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.RowState
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.compareEquiv_applyline 38 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.compareEquiv_symm_applyline 42 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.rowEquiv_applyline 46 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.rowEquiv_symm_applyline 50 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.withBufferline 54 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.cleanline 57 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.equalityBit_cleanline 59 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.rowEquiv_withBufferline 62 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.compareEquiv_withBufferline 65 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.clearBufferline 69Source documentation
The row primitive clears only its own buffer; other finite registers survive.
def clearBuffer {N : Nat} (state : Master N) : Master N := …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Master
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.clearBuffer_applyline 72 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.clearBuffer_withBufferline 77 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.encodedBlockAtline 85Source documentation
Only this instruction block is translated into the common state.
def encodedBlockAt (src dst : K) (F : Buffer N → Buffer M) (exit : Option Λ) : TM2.Stmt (fun _ : K => Bool) Λ (Master N) := …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Master
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.stepAux_encodedBlockAtline 90 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.step_encodedBlockAtline 104Source documentation
Exact caller-program step, with no hypothesis about its other labels.
theorem step_encodedBlockAt (src dst : K) (F : Buffer N → Buffer M) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : K => Bool) Λ (Master N)) (label : Λ) (atLabel : program label = encodedBlockAt src dst F exit) (hne : src ≠ dst) (bits : Buffer N) (suffix : List Bool) (state : Master N) (tapes : K → List Bool) (hinput : tapes src = PoweringMachineRow.encodeBits (List.ofFn bits) ++ suffix) : TM2.step program ⟨some label, state, tapes⟩ = some ⟨exit, clearBuffer state, Function.update (Function.update tapes src suffix) dst (PoweringMachineRow.encodeBits (List.ofFn (F bits)) ++ tapes dst)⟩ := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Master, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.encodedBlockAt, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRow.encodeBits, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.clearBuffer
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.rowAtline 116 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.step_rowAt_cleanline 123Source documentation
The producer's clean finite controls and any previous buffer contents become the completely clean master state after one genuine row transition.
theorem step_rowAt_clean {t S q : Nat} (src dst : K) (labelAt : Fin q → Fin S → PCP.GraphTables.Label) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : K => Bool) Λ (Master (PoweringMachineRow.inputSize t S))) (label : Λ) (atLabel : program label = rowAt (t := t) src dst labelAt exit) …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.GraphTables.Label, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Master, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineRow.inputSize, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.rowAt
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.rowInTimeline 140 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.headerInTimeline 163Source documentation
Header preparation already has the common trailing-bit register layout.
def headerInTime (N B n : Nat) (suffix : List Bool) (state : Master N) : StateTransition.EvalsToInTime (TM2.step (PoweringMachineLoop.headerProgram (σ := OtherRegisters N) B)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.Master, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMachineLoop.headerProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.PoweringMasterState.OtherRegisters