OAI/Computability/UniqueGames/PCP/PreprocessingInternalRows.lean
25 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStepline 15Source documentation
The one actual cloud-table lookup used by this internal row.
def localStep (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : Fin (cloudSize t v + padding v) × Fin q := … - def
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.destinationline 20Source documentation
Decode the returned cloud index into its actual global padded dart.
def destination (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : PaddedCloud t padding v := … - def
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.rowIndexline 24 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.rowline 30Source documentation
This is a row read from the actual serialized output table.
def row (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : GraphTables.DartRow (vertexCount t padding) (vertexCount t padding * (q + 1)) := …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.GraphTables.DartRow
- def
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.equalityRelationline 35Source documentation
The fixed, complete 64-label equality predicate.
def equalityRelation : GraphTables.RelationTable := …
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.GraphTables.RelationTable
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.equalityRelation_applyline 38 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.cloud_rotationline 43Source documentation
The reindexed local cloud graph is exactly the stored local lookup.
theorem cloud_rotation (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : (cloudGraphs t padding tables v).rot (x, p) = (destination t padding tables v x p, (localStep t padding tables v x p).2) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.destination, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.source_rotationline 53Source documentation
The actual global replacement rotation uses that same lookup and select.
theorem source_rotation (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : (sourcePortGraph t padding tables).rot (x.val, .inl p) = ((destination t padding tables v x p).val, .inl (localStep t padding tables v x p).2) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.destination, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.rotation_internalline 66Source documentation
Full output rotation, retaining the actual return port.
theorem rotation_internal (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : PortTables.rotation (ofCloudTables t padding tables) (vertexOrder t padding x.val, portOrder q (.inl p)) = (vertexOrder t padding (destination t padding tables v x p).val, portOrder q (.inl (localStep t padding tables v x p).2)) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.rotation, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.destination, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.reverseIndex_internalline 74Source documentation
The stored global reverse index is the row-major encoding of the destination.
theorem reverseIndex_internal (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : ((ofCloudTables t padding tables).reverseIndex[rowIndex t padding v x p]).val = (q + 1) * (vertexOrder t padding (destination t padding tables v x p).val).val + (localStep t padding tables v x p).2.val := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.rowIndex, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.destination, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.relation_extline 84 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.relations_internalline 94Source documentation
Equality is the entire stored relation vector, not only one tested entry.
theorem relations_internal (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : (ofCloudTables t padding tables).relations[rowIndex t padding v x p] = equalityRelation := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.rowIndex, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.equalityRelation
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row_tailline 101 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row_reverseline 106 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row_relationline 113 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep_originalline 118 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep_dummyline 123 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row_tail_originalline 127 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row_tail_dummyline 133 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndexline 140Source documentation
The global target number computed from an arbitrary returned cloud index.
def selectedIndex (v : Fin t.vertices) (i : Fin (cloudSize t v + padding v)) : Nat := …
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex_eqline 146Source documentation
Rank/select destination decoding agrees with the prefix-offset formula.
theorem selectedIndex_eq (v : Fin t.vertices) (i : Fin (cloudSize t v + padding v)) : (vertexOrder t padding (paddedCloudSelect t padding v i).val).val = selectedIndex t padding v i := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex_oldline 171Source documentation
Old target indices select the original dart from its actual cloud list.
theorem selectedIndex_old (v : Fin t.vertices) (i : Fin (cloudSize t v + padding v)) (hi : i.val < cloudSize t v) : selectedIndex t padding v i = (cloudSelect t v ⟨i.val, hi⟩).val.val := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex_dummyline 177Source documentation
Dummy target indices use the checked prefix offset and local index.
theorem selectedIndex_dummy (v : Fin t.vertices) (i : Fin (cloudSize t v + padding v)) (hi : cloudSize t v ≤ i.val) : selectedIndex t padding v i = t.darts + PreprocessingPaddingOffsets.offset padding v.val + (i.val - cloudSize t v) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingPaddingOffsets.offset
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row_reverse_selectedIndexline 184Source documentation
Closed arithmetic reverse field for the row machine.
theorem row_reverse_selectedIndex (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : (row t padding tables v x p).reverseIndex.val = (q + 1) * selectedIndex t padding v (localStep t padding tables v x p).1 + (localStep t padding tables v x p).2.val := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.rowWords_eqline 193Source documentation
All 4098 words of the actual internal row, in the existing codec.
theorem rowWords_eq (v : Fin t.vertices) (x : PaddedCloud t padding v) (p : Fin q) : GraphTables.rowWords (row t padding tables v x p) = [(vertexOrder t padding x.val).val, (q + 1) * selectedIndex t padding v (localStep t padding tables v x p).1 + (localStep t padding tables v x p).2.val] ++ GraphTables.relationWords equalityRelation := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.GraphTables.rowWords, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.row, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.selectedIndex, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.localStep, OAI.UniqueGamesTheorem.Foundations.PCP.GraphTables.relationWords, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingInternalRows.equalityRelation