While this submission is a draft, it cannot be used by other submissions.

A constant constraint gap on a hierarchy of congruence classes

Lax956329.Hierarchy · concepts/Lax956329/Hierarchy.lean · lax-956329

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Lemma

    The 2020 permutations of a square grid preserve congruence modulo each partial product of a list of radices. A block has at most bb children. Each directed port carries a binary constraint on an alphabet of size 88. 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
    9 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on ADescendants are omitted for concepts with more than 10 descendants.
    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

    1import Lax956329.Instances
    2import Lax429075.Satisfiability
    3import Mathlib.Algebra.BigOperators.Group.Finset.Basic
    4
    5/-!
    6---
    7title: A constant constraint gap on a hierarchy of congruence classes
    8type: lemma
    9---
    10The 2020 permutations of a square grid preserve congruence modulo each partial
    11product of a list of radices. A block has at most bb children. Each directed
    12port carries a binary constraint on an alphabet of size 88. Satisfiability
    13reduces in polynomial time to distinguishing perfect satisfaction from violation
    14of at least a fixed fraction of all directed ports (Lemma 2).
    15-/
    16
    17namespace Lax956329.Hierarchy
    18
    19open Instances Lax434930.PolynomialTime
    20
    21abbrev Owner (m : ℕ) := Fin m × Fin m
    22abbrev Label := Fin 8
    23abbrev Port := Fin 20
    24
    25def 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
    28structure 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
    43variable {b : ℕ}
    44
    45def System.order (S : System b) := S.m * S.m
    46
    47def System.satisfied (S : System b) : Prop :=
    48 ∃ σ : Owner S.m → Label, ∀ i x, S.accept i x (σ x) (σ (S.move i x)) = true
    49
    50def 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 tt, counting reverse copies. -/
    54def 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. -/
    58def 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.
    68Malformed words may be sent to a fixed unsatisfiable formula. -/
    69axiom 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
    74end Lax956329.Hierarchy
    75
    Show Proof

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…