OAI/Computability/MaxCut/Encoding/Encoding2.lean
24 declarations, 0 contain sorry, 0 declared as axioms
An occurrence-preserving E3LIN table codec. The word stream contains its declared variable count and equation count, followed by four words per equation. Parsing checks all three indices, the Boolean right-hand side, the exact count, absence of trailing words, and nonemptiness. Length theorems below concern the actual serialized output; they make no running-time claim.
- structure
OAI.MaxCutGames.Reduction.SourceEncoding.Inputline 16 - abbrev
OAI.MaxCutGames.Reduction.SourceEncoding.Tableline 21 - def
OAI.MaxCutGames.Reduction.SourceEncoding.equationWordsline 23 - def
OAI.MaxCutGames.Reduction.SourceEncoding.inputWordsline 26 - def
OAI.MaxCutGames.Reduction.SourceEncoding.inputBitsline 29 - def
OAI.MaxCutGames.Reduction.SourceEncoding.parseEquationline 31 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.parseEquation_encodedline 47 - def
OAI.MaxCutGames.Reduction.SourceEncoding.parseEquationsline 54 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.parseEquations_encodedline 63Source documentation
Parsing preserves the entire ordered list, including all equal entries.
@[simp] theorem parseEquations_encoded {n : Nat} (equations : List (CloneGap.Equation (Fin n))) (rest : List Nat) : parseEquations n equations.length (equations.flatMap equationWords ++ rest) = some (equations, rest) := by …Mentions: OAI.MaxCutGames.Reduction.CloneGap.Equation, OAI.MaxCutGames.Reduction.SourceEncoding.parseEquations, OAI.MaxCutGames.Reduction.SourceEncoding.equationWords
- def
OAI.MaxCutGames.Reduction.SourceEncoding.decodeInputWordsline 72 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.decodeInputWords_encodedline 82 - def
OAI.MaxCutGames.Reduction.SourceEncoding.decodeInputBitsline 91 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.decodeInputBits_encodedline 94 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.inputWords_injectiveline 98 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.inputBits_injectiveline 103 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.equationWords_lengthline 108 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.equationsWords_lengthline 111 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.inputWords_lengthline 120 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.equationBits_length_leline 125 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.equationsBits_length_leline 132 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.inputBits_lengthline 143 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.inputBits_length_leline 150 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.inputBits_length_ge_variablesline 156 - theorem
OAI.MaxCutGames.Reduction.SourceEncoding.inputBits_length_ge_equationsline 159