OAI/Computability/UniqueGames/Games/ProductMachineSemantics.lean
31 declarations, 0 contain sorry, 0 declared as axioms
The exact table lookups and field schedule consumed by the product machine.
The table contains rows only: the three input header words have already been
consumed, so each affine lookup has coefficient q+2 and no header offset.
- theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.row_table_lookupline 23Source documentation
Indexing a flattened constant-width row list preserves the literal field position, not merely the multiset of row contents.
theorem row_table_lookup (constraints : List (Constraint n q)) (e : Fin constraints.length) (field : Fin (q + 2)) : (constraints.flatMap constraintWords)[(q + 2) * e.val + field.val]? = (constraintWords constraints[e])[field.val]? := by … - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.inputTableline 44 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.inputTable_sourceline 46 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.inputTable_targetline 51 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.inputTable_imageline 56 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.reverseDigitsline 63 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.reverseDigits_atline 66 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.reverseDigits_wordsline 69 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.horner_ofFinline 82 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.sourceCommandline 88 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.targetCommandline 89 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.imageCommandline 90 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.commandsline 95Source documentation
The complete fixed-alphabet row schedule: two endpoints followed by every forward-table entry in increasing numeric label order.
def commands (q t : ℕ) : List (MachineProductRow.Command t) := …
Mentions: OAI.UniqueGamesTheorem.Explicit.MachineProductRow.Command
- theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.commands_lengthline 98 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.fieldsline 101 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.fieldValueline 105 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.source_fieldsline 110 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.target_fieldsline 115 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.image_fieldsline 120 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.selectedline 130Source documentation
Every scheduled lookup selects an actual word in the input table.
theorem selected (H : Instance q) (edges : Fin t → Fin H.constraints.length) (c : MachineProductRow.Command t) (hc : c ∈ commands q t) (i : Fin t) : (inputTable H)[(q + 2) * (edges i).val + c.2 i]? = some (fields H edges c i) := by …Mentions: OAI.UniqueGamesTheorem.Explicit.MachineProductRow.Command, OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.commands, OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.inputTable, OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.fields
- theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.command_offset_ltline 142 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.fields_ltline 153 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.source_valueline 166 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.target_valueline 173 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.image_valueline 180 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.encodeWords_mapline 190 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.rowBits_eqline 198Source documentation
The controller's literal field-command output is the serialized semantic row, including every forward permutation-table entry.
theorem rowBits_eq (H : Instance q) (presentation : SimpleBipartite H) (t : ℕ) (ht : 0 < t) (i : Fin (H.constraints.length ^ t)) : MachineProductRow.rowBits (fieldValue H (finFunctionFinEquiv.symm i)) (commands q t) = encodeWords (constraintWords (ProductPaddedOutput.outputRow H presentation t ht i)) := by …Mentions: OAI.UniqueGamesTheorem.Explicit.MachineProductRow.rowBits, OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.fieldValue, OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.commands, OAI.UniqueGamesTheorem.Explicit.ProductPaddedOutput.outputRow
- theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.encodeWords_flatMapline 224 - def
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.allRowsBitsline 232Source documentation
Product rows are emitted in ascending radix address, exactly the literal order of the output constraint list.
def allRowsBits (H : Instance q) (t : ℕ) : List Bool := …
- theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.allRowsBits_eqline 236 - theorem
OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.gameBits_eqline 253Source documentation
Concatenating the three computed headers and all physical row fields yields precisely the target serialization, including list order and full tables.
theorem gameBits_eq (H : Instance q) (presentation : SimpleBipartite H) (t : ℕ) (ht : 0 < t) : encodeWords [H.vertices ^ t, q ^ t, H.constraints.length ^ t] ++ allRowsBits H t = gameBits (ProductPaddedOutput.output H presentation t ht) := by …Mentions: OAI.UniqueGamesTheorem.Explicit.ProductMachineSemantics.allRowsBits, OAI.UniqueGamesTheorem.Explicit.ProductPaddedOutput.output