OAI/Computability/MaxCut/PCP/PoweringRowHeaderSemantics.lean
9 declarations, 0 contain sorry, 0 declared as axioms
Exact tail and reverse-index fields of the actual powering-table rows. The reverse address is affine in the live starting vertex; the coefficient and offset depend only on the fixed degree, word, and orientation.
- def
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.blockSizeline 17 - def
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.reverseOffsetline 19 - def
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.reverseValueline 22 - def
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.tailVertexline 26 - def
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.headerWordsline 30 - theorem
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.table_tailline 35Source documentation
The stored tail is the recorded start or endpoint according to direction.
theorem table_tail (input : PortTables.Table vertices d) (n : Nat) (vertex : Fin vertices) (ports : Fin (n + 1) → Fin d) (direction : Bool) : (PoweringTables.table input n).rows[encodeDart vertices d n (direction, vertex, ports)].tail = tailVertex input n vertex ports direction := by …Mentions: OAI.MaxCutGames.Foundations.PCP.PortTables.Table, OAI.MaxCutGames.Foundations.PCP.PoweringTables.table, OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.tailVertex
- theorem
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.table_reverseValueline 48Source documentation
The reverse address retains the word and changes only its direction bit.
theorem table_reverseValue (input : PortTables.Table vertices d) (n : Nat) (vertex : Fin vertices) (ports : Fin (n + 1) → Fin d) (direction : Bool) : (PoweringTables.table input n).rows[encodeDart vertices d n (direction, vertex, ports)].reverseIndex.val = reverseValue d n vertex ports direction := by …Mentions: OAI.MaxCutGames.Foundations.PCP.PortTables.Table, OAI.MaxCutGames.Foundations.PCP.PoweringTables.table, OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.reverseValue
- theorem
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.headerWords_eqline 58 - theorem
OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.header_relation_bitsline 70Source documentation
Prepending these two fields to the existing relation yields the exact serialized row, preserving the rest of the output tape.
theorem header_relation_bits (input : PortTables.Table vertices d) (n : Nat) (vertex : Fin vertices) (ports : Fin (n + 1) → Fin d) (direction : Bool) (suffix : List Bool) : encodeWords (headerWords input n vertex ports direction) ++ (encodeWords (GenericGraphTables.relationWords (PoweringTables.table input n).rows[encodeDart vertices d n (direction, vertex, ports)].relation) ++ suffix) = encodeWords (GenericGraphTables.rowWords (PoweringTables.table input n).rows[encodeDart vertices d n (direction, vertex, ports)]) ++ suffix := by …Mentions: OAI.MaxCutGames.Foundations.PCP.PortTables.Table, OAI.MaxCutGames.Foundations.PCP.PoweringRowHeaderSemantics.headerWords, OAI.MaxCutGames.Foundations.PCP.GenericGraphTables.relationWords, OAI.MaxCutGames.Foundations.PCP.PoweringTables.table, OAI.MaxCutGames.Foundations.PCP.GenericGraphTables.rowWords