OAI/Computability/UniqueGames/Machines/FinalCNFStream.lean
28 declarations, 0 contain sorry, 0 declared as axioms
Exact row enumeration and input/output stream identities for the concrete final-CNF machine. Rows occur in stored order, including repeated rows.
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.remainingEventsline 17Source documentation
The actual unprocessed suffix of the finite table's stored row indices.
def remainingEvents (table : GraphTables.Table) (r : Nat) : List (Fin table.darts) := …
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.processedEventsline 20 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStreamline 23 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStreamline 26 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.remainingEvents_zeroline 31 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.remainingEvents_lengthline 35 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.remainingEvents_doneline 39 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.remainingEvents_consline 43 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.processedEvents_zeroline 50 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.processedEvents_doneline 53 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.processedEvents_succline 57 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.processed_append_remainingline 64 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream_nilline 68 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream_consline 70 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream_appendline 75 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream_nilline 80 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream_consline 83 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream_appendline 89 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream_remaining_consline 95 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream_remaining_consline 102 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream_processed_succline 110 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream_splitline 119 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream_splitline 125 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.encodeWords_flatMap_rowsline 131 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowList_eq_finRange_mapline 137 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream_allline 144Source documentation
The stream starts at exactly the row suffix left by the checked header phase.
theorem inputStream_all (table : GraphTables.Table) : inputStream table (List.finRange table.darts) = tableRowsBits (genericTable table) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.tableRowsBits
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.inputStream_remaining_zeroline 155 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream_accumulator_succline 160Source documentation
Pushing a row's reversed emission realizes extension of the forward prefix.
theorem outputStream_accumulator_succ (plan : Plan) (table : GraphTables.Table) (r : Nat) (h : r < table.darts) (header : List Bool) : (plan.flatMap (Emitter.commandBits (rowOperands table ⟨r, h⟩) (rowRelation table ⟨r, h⟩))).reverse ++ (header ++ outputStream plan table (processedEvents table r)).reverse = (header ++ outputStream plan table (processedEvents table (r + 1))).reverse := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.Plan, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowOperands, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.rowRelation, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.outputStream, OAI.UniqueGamesTheorem.Foundations.Complexity.FinalCNFMachine.Program.processedEvents