OAI/Computability/MaxCut/PCP/PreprocessingLazyWords.lean
22 declarations, 0 contain sorry, 0 declared as axioms
Exact codec expansion of the executable lazy graph table. Each vertex
contributes its d always-accepting selfloops, followed by its d stored
constraints with the reverse field changed by the displayed div/mod map.
- def
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.rowline 17 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.trueRelationline 21 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.stayRowline 23 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.moveRowline 26 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.reverseMapline 33Source documentation
The machine's fixed-degree numerical map for an old reverse-row index.
def reverseMap (d j : Nat) : Nat := 2 * d * (j / d) + d + j % d
- theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.relation_ext_inline_PreprocessingLazyWordsline 35 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.row_lazy_stayline 42 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.row_lazy_moveline 55 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.stayRow_reverse_valline 68 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.moveRow_reverse_valline 73 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.relationWords_trueline 81 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.stayRow_wordsline 85 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.moveRow_wordsline 91 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.ofFn_rowIndexline 99Source documentation
Finite mixed-radix indexing agrees with the actual row-vector order.
theorem ofFn_rowIndex {α : Type*} (f : Fin (n * d) → α) : List.ofFn f = (List.ofFn fun v : Fin n => List.ofFn fun p : Fin d => f (rowIndex n d (v, p))).flatten := by … - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.flatRows_listline 113 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.ofFn_lazyPortsline 121Source documentation
Boolean false precedes true in the executable lazy port numbering.
theorem ofFn_lazyPorts {α : Type*} (f : Fin (2 * d) → α) : List.ofFn f = List.ofFn (fun p => f (lazyPorts d (false, p))) ++ List.ofFn (fun p => f (lazyPorts d (true, p))) := by … - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.vertexRowsline 134 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.vertexRows_lengthline 138 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.flatRows_lazyline 144Source documentation
Every stored lazy row, with no permutation or multiset quotient.
theorem flatRows_lazy (table : PortTables.Table n d) : (flatRows (lazy table)).toList = (List.ofFn (vertexRows table)).flatten := by …Mentions: OAI.MaxCutGames.Foundations.PCP.PortTables.Table, OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.vertexRows
- theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.vertexRows_wordsline 154 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.tableWords_lazyline 175Source documentation
The full existing word codec, including both graph header fields.
theorem tableWords_lazy (table : PortTables.Table n d) : PortTables.tableWords (lazy table) = [n, n * (2 * d)] ++ (List.ofFn (vertexRows table)).flatten.flatMap rowWords := by …Mentions: OAI.MaxCutGames.Foundations.PCP.PortTables.Table, OAI.MaxCutGames.Foundations.PCP.PortTables.tableWords, OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.vertexRows
- theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.tableBits_lazyline 181Source documentation
The same statement for the exact unary-delimited Boolean input/output codec.
theorem tableBits_lazy (table : PortTables.Table n d) : PortTables.tableBits (lazy table) = encodeWords ([n, n * (2 * d)] ++ (List.ofFn (vertexRows table)).flatten.flatMap rowWords) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.PortTables.Table, OAI.MaxCutGames.Foundations.PCP.PortTables.tableBits, OAI.MaxCutGames.Foundations.PCP.PreprocessingLazyWords.vertexRows