OAI/Computability/MaxCut/Encoding/Encoding.lean
22 declarations, 0 contain sorry, 0 declared as axioms
Computable binary alphabet indexing and full translation permutation tables.
The labels are actual Fin (2^s) entries in the target instance format.
- def
OAI.MaxCutGames.Reduction.Encoding.sideEquivline 17Source documentation
Number the left side first and the right side second.
def sideEquiv (n : Nat) : Bool × Fin n ≃ Fin (2*n) := …
- theorem
OAI.MaxCutGames.Reduction.Encoding.sideEquiv_false_valline 20 - theorem
OAI.MaxCutGames.Reduction.Encoding.sideEquiv_true_valline 24 - def
OAI.MaxCutGames.Reduction.Encoding.alphabetEquivline 29Source documentation
The integer label is the packed, least-significant-bit-first coordinate word.
def alphabetEquiv (s : Nat) : Integration.BinaryLinear.Vector s ≃ Fin (2^s) := …
- theorem
OAI.MaxCutGames.Reduction.Encoding.alphabetEquiv_symm_apply_applyline 36 - theorem
OAI.MaxCutGames.Reduction.Encoding.alphabetEquiv_apply_symm_applyline 41 - def
OAI.MaxCutGames.Reduction.Encoding.translateline 45 - theorem
OAI.MaxCutGames.Reduction.Encoding.translate_involutiveline 49 - def
OAI.MaxCutGames.Reduction.Encoding.translationTableline 63Source documentation
Both forward and inverse tables are explicitly generated from every alphabet index. Characteristic two makes these two tables equal.
def translationTable {s : Nat} (a b : Integration.BinaryLinear.Vector s) : PermutationTable (2^s) where … - theorem
OAI.MaxCutGames.Reduction.Encoding.translationTable_imagesline 70 - theorem
OAI.MaxCutGames.Reduction.Encoding.translationTable_inverseImagesline 75 - theorem
OAI.MaxCutGames.Reduction.Encoding.translationTable_satisfied_iffline 81 - def
OAI.MaxCutGames.Reduction.Encoding.imageVerticesline 92Source documentation
Canonical vertex bodies are compared using their actual decidable equality.
List.dedupfixes a deterministic order by retaining the last occurrence.def imageVertices (queries : List Q) (body : Q → V) : List V := …
- theorem
OAI.MaxCutGames.Reduction.Encoding.mem_imageVerticesline 95 - theorem
OAI.MaxCutGames.Reduction.Encoding.imageVertices_nodupline 99 - theorem
OAI.MaxCutGames.Reduction.Encoding.imageVertices_length_leline 102 - abbrev
OAI.MaxCutGames.Reduction.Encoding.ImageVertexline 107 - def
OAI.MaxCutGames.Reduction.Encoding.imageEquivline 112Source documentation
A computable numbering using
idxOf; its inverse looks up that index. It involves no chosenFintype.equivFin.def imageEquiv (queries : List Q) (body : Q → V) : ImageVertex queries body ≃ Fin (imageVertices queries body).length := …Mentions: OAI.MaxCutGames.Reduction.Encoding.ImageVertex, OAI.MaxCutGames.Reduction.Encoding.imageVertices
- def
OAI.MaxCutGames.Reduction.Encoding.imageVertexline 116 - def
OAI.MaxCutGames.Reduction.Encoding.imageIndexline 119 - theorem
OAI.MaxCutGames.Reduction.Encoding.imageIndex_eq_iffline 122 - theorem
OAI.MaxCutGames.Reduction.Encoding.imageVertices_rangeline 128