A constant constraint gap on a hierarchy of congruence classes
Lax956329.Hierarchy · concepts/Lax956329/Hierarchy.lean · lax-956329
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
The permutations of a square grid preserve congruence modulo each partial product of a list of radices. A block has at most children. Each directed port carries a binary constraint on an alphabet of size . Satisfiability reduces in polynomial time to distinguishing perfect satisfaction from violation of at least a fixed fraction of all directed ports (Lemma 2).
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 2 of this submission's paper
Lean source view on GitHub
| 1 | import Lax956329.Instances |
| 2 | import Lax429075.Satisfiability |
| 3 | import Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: A constant constraint gap on a hierarchy of congruence classes |
| 8 | type: lemma |
| 9 | --- |
| 10 | The permutations of a square grid preserve congruence modulo each partial |
| 11 | product of a list of radices. A block has at most children. Each directed |
| 12 | port carries a binary constraint on an alphabet of size . Satisfiability |
| 13 | reduces in polynomial time to distinguishing perfect satisfaction from violation |
| 14 | of at least a fixed fraction of all directed ports (Lemma 2). |
| 15 | -/ |
| 16 | |
| 17 | namespace Lax956329.Hierarchy |
| 18 | |
| 19 | open Instances Lax434930.PolynomialTime |
| 20 | |
| 21 | abbrev Owner (m : ℕ) := Fin m × Fin m |
| 22 | abbrev Label := Fin 8 |
| 23 | abbrev Port := Fin 20 |
| 24 | |
| 25 | def Congruent {m : ℕ} (d : ℕ) (x y : Owner m) : Prop := |
| 26 | x.1.val % d = y.1.val % d ∧ x.2.val % d = y.2.val % d |
| 27 | |
| 28 | structure System (b : ℕ) where |
| 29 | m : ℕ |
| 30 | positive : 0 < m |
| 31 | radices : List ℕ |
| 32 | product_eq : radices.prod = m |
| 33 | branching : ∀ r ∈ radices, 1 ≤ r ∧ r * r ≤ b |
| 34 | move : Port → Equiv.Perm (Owner m) |
| 35 | preserves : ∀ i j x y, Congruent (radices.take j).prod (move i x) (move i y) ↔ |
| 36 | Congruent (radices.take j).prod x y |
| 37 | accept : Port → Owner m → Label → Label → Bool |
| 38 | reverse : Equiv.Perm Port |
| 39 | involution : ∀ i, reverse (reverse i) = i |
| 40 | inverse_move : ∀ i, move (reverse i) = (move i).symm |
| 41 | reverse_test : ∀ i x c d, accept (reverse i) (move i x) d c = accept i x c d |
| 42 | |
| 43 | variable {b : ℕ} |
| 44 | |
| 45 | def System.order (S : System b) := S.m * S.m |
| 46 | |
| 47 | def System.satisfied (S : System b) : Prop := |
| 48 | ∃ σ : Owner S.m → Label, ∀ i x, S.accept i x (σ x) (σ (S.move i x)) = true |
| 49 | |
| 50 | def System.failed (S : System b) (σ : Owner S.m → Label) : ℕ := |
| 51 | ∑ i : Port, (Finset.univ.filter fun x => S.accept i x (σ x) (σ (S.move i x)) = false).card |
| 52 | |
| 53 | /-- Every assignment fails at least one port in , counting reverse copies. -/ |
| 54 | def System.hasGap (S : System b) (t : ℕ) : Prop := |
| 55 | ∀ σ, 20 * S.order ≤ t * S.failed σ |
| 56 | |
| 57 | /-- The explicit radix list, reverse-port table, endpoint coordinates and truth tables. -/ |
| 58 | def System.bits (S : System b) : Word := |
| 59 | numeral S.m ++ Lax429075.Encoding.encodeList numeral S.radices ++ |
| 60 | (List.finRange 20).flatMap fun i => numeral (S.reverse i).val ++ |
| 61 | (List.finRange S.m).flatMap fun x => (List.finRange S.m).flatMap fun y => |
| 62 | let v := (x, y) |
| 63 | let w := S.move i v |
| 64 | numeral w.1.val ++ numeral w.2.val ++ |
| 65 | (List.finRange 8).flatMap fun c => (List.finRange 8).map fun d => S.accept i v c d |
| 66 | |
| 67 | /-- The grid initialization tests the disjunction in each clause, also for general CNF. |
| 68 | Malformed words may be sent to a fixed unsatisfiable formula. -/ |
| 69 | axiom gap_reduction : |
| 70 | ∃ b t : ℕ, 0 < t ∧ ∃ f : Word → Word, Poly f ∧ ∀ x, ∃ S : System b, |
| 71 | f x = S.bits ∧ (x ∈ Lax429075.Satisfiability.SAT → S.satisfied) ∧ |
| 72 | (x ∉ Lax429075.Satisfiability.SAT → S.hasGap t) |
| 73 | |
| 74 | end Lax956329.Hierarchy |
| 75 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments