OAI/Computability/UniqueGames/PCP/EmitRows.lean
27 declarations, 0 contain sorry, 0 declared as axioms
The actual alphabet-reduction row template. The old predicate and the loop flag are finite registers. All unbounded quantities reside in five preserved unary tapes. The fixed event/slot/orientation order is retained without deduplication.
- abbrev
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.Contextline 18 - abbrev
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.RowCommandline 19 - def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.relationBitsline 21 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.vector_list_ofFnline 26 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.bitValues_ofFnline 31 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.relationBits_valuesline 40 - def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowCommandsline 49Source documentation
Two actual affine fields followed by the 4096 stored relation entries.
def rowCommands (q : Nat) (event : AlphabetGraph.LocalEvent (Fin q)) (slot : Fin 6) (orientation : Bool) : List (RowCommand q) := …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetGraph.LocalEvent, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.RowCommand
- def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowContextline 58 - def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowValuesline 62 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.encodedRowline 68 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowCommands_bitsline 76Source documentation
The executable command semantics equals the precise stored row, including the orientation-specific tail, reverse index, and every predicate bit.
theorem rowCommands_bits {q : Nat} (input : GenericGraphTables.Table q) (edge : Fin input.darts) (event : AlphabetGraph.LocalEvent (Fin q)) (slot : Fin 6) (orientation : Bool) : (rowCommands q event slot orientation).flatMap (commandBits (rowValues input edge) (rowContext input edge)) = encodeWords (GraphTables.rowWords (Table.rowFromDart input (((edge, event), slot), orientation))) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.GenericGraphTables.Table, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetGraph.LocalEvent, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowCommands, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowValues, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowContext, OAI.UniqueGamesTheorem.Foundations.PCP.GraphTables.rowWords, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.Table.rowFromDart
- def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockCommandsline 109Source documentation
One old dart emits every local event, then all six slots, false orientation before true. These loops are fixed by q and form part of the finite template.
def blockCommands (q : Nat) : List (RowCommand q) := …
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.RowCommand
- def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockWordsline 114 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.tableWords_eq_blocksline 121 - def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.headerCommandsline 134Source documentation
Headers use only the preserved n and m tapes; all relation registers may still have their initial values.
def headerCommands (q : Nat) (σ : Type) : List (Command 2 σ (Addresses.fieldBound q)) := …
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.Addresses.fieldBound
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.headerCommands_bitsline 140 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.headerCommands_lengthline 154 - def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.headerInTimeline 158 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.encodeWords_flatMapline 183 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockCommands_bitsline 189 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.rowCommands_length_leline 196 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.flatMap_length_leline 204 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockCommands_length_leline 215 - def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockInTimeline 229Source documentation
Actual execution of all rows belonging to one old dart. The finite relation register is supplied by the checked row parser; only code equations are assumed about the enclosing program. The trace restores the five operand tapes.
def blockInTime {K Λ : Type} [DecidableEq K] {q : Nat} (input : GenericGraphTables.Table q) (edge : Fin input.darts) (sources : Fin 5 → K) (scratch output : K) (sourceScratch : ∀ i, sources i ≠ scratch) (sourceOutput : ∀ i, sources i ≠ output) (scratchOutput : scratch ≠ output) (labels : Label (blockCommands q).length (Addresses.fieldBound q) → Λ) (exit : Option Λ) (p : Λ → TM2.Stmt (Alphabet (K := K)) Λ (State (Context q))) …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.GenericGraphTables.Table, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockCommands, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.Addresses.fieldBound, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.Context
- def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockCommandsInline 259Source documentation
Preserve additional finite parser/driver registers through a projection.
def blockCommandsIn {σ : Type} (q : Nat) (context : σ → Context q) : List (Command 5 σ (Addresses.fieldBound q)) := …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.Context, OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.Addresses.fieldBound
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockCommandsIn_bitsline 263 - def
OAI.UniqueGamesTheorem.Foundations.PCP.AlphabetTable.EmitRows.blockInTimeAmbientline 272