OAI/Computability/UniqueGames/Machines/MachineBinaryParsingLemmas.lean
24 declarations, 0 contain sorry, 0 declared as axioms
Soundness of the ordinary-binary parser and its concrete name-scanning machine. Every successful parse consumes exactly a canonical encoding and leaves its stated suffix. Thus malformed or noncanonical bitstrings cannot name an extra formula. The finite scanner's final-digit test is proved equivalent to the codec's arithmetic canonicality test.
- theorem
OAI.UniqueGamesTheorem.BinaryParsing.frame_eqline 21 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.canonical_cons_consline 26 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.canonical_iffline 31Source documentation
A payload has no redundant high zero precisely when its last digit is one, with the empty payload representing zero.
theorem canonical_iff (bits : List Bool) : BinaryNameMachine.canonical bits = true ↔ (bitsValue bits).bits = bits := by …Mentions: OAI.UniqueGamesTheorem.BinaryNameMachine.canonical
- theorem
OAI.UniqueGamesTheorem.BinaryParsing.canonical_nat_bitsline 56 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.parseFrame_soundline 61 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.parseName_soundline 85 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.parseLiteral_soundline 101 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.parseClause_soundline 116 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.parseClauses_soundline 140 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.decodeFormula_soundline 168 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.decodeFormula_eq_some_iffline 182 - theorem
OAI.UniqueGamesTheorem.BinaryParsing.scanSpec_nameBitsline 188Source documentation
Exact agreement of the finite-state name scanner with a canonical encoded name, including the untouched suffix and the actual binary payload stack.
theorem scanSpec_nameBits (name : Nat) (suffix output : List Bool) : BinaryNameMachine.scanSpec (nameBits name ++ suffix) output none = ⟨true, suffix, name.bits.reverse ++ output⟩ := by … - def
OAI.UniqueGamesTheorem.BinaryLanguage.rejectBinaryline 215 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.rejectBinary_unsatisfiableline 219 - def
OAI.UniqueGamesTheorem.BinaryLanguage.rejectFormulaline 228 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.reject_unsatisfiableline 230 - def
OAI.UniqueGamesTheorem.BinaryLanguage.totalParsedline 234 - def
OAI.UniqueGamesTheorem.BinaryLanguage.totalRenameline 237 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.totalParsed_satisfiable_iffline 240 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.totalRename_satisfiable_iffline 246 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.totalRename_encodedline 251 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.language_encodedline 255 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.reject_bits_lengthline 259 - theorem
OAI.UniqueGamesTheorem.BinaryLanguage.totalRename_output_lengthline 261