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

Plurality rounding in an equality expander

Lax956329.EqualityTests · concepts/Lax956329/EqualityTests.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

    In an occurrence class colored by its proposed labels, every color except a plurality occupies at most half the class. If each such set has at least P/QP/Q times its size in outgoing boundary ports, at least P/QP/Q times the number of nonplurality positions fail equality. Directed ports are counted with their multiplicities.

    Concept map
    1 concept; 1 descendant hidden
    100%
    Proven claimThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    Lean source view on GitHub

    1import Mathlib.Algebra.BigOperators.Group.Finset.Basic
    2import Mathlib.Data.Fintype.Card
    3
    4/-!
    5---
    6title: Plurality rounding in an equality expander
    7type: lemma
    8---
    9In an occurrence class colored by its proposed labels, every color except a
    10plurality occupies at most half the class. If each such set has at least
    11P/QP/Q times its size in outgoing boundary ports, at least P/QP/Q times the
    12number of nonplurality positions fail equality. Directed ports are counted
    13with their multiplicities.
    14-/
    15
    16namespace Lax956329.EqualityTests
    17
    18variable {V C : Type} [Fintype V] [DecidableEq C] {d : ℕ}
    19
    20def colorClass (color : V → C) (c : C) : Finset V := Finset.univ.filter fun x => color x = c
    21
    22def boundary [DecidableEq V] (move : Fin d → Equiv.Perm V) (S : Finset V) : ℕ :=
    23 ∑ i, (S.filter fun x => move i x ∉ S).card
    24
    25def failures (move : Fin d → Equiv.Perm V) (color : V → C) : ℕ :=
    26 ∑ i, (Finset.univ.filter fun x => color x ≠ color (move i x)).card
    27
    28axiom plurality [Fintype C] [DecidableEq V] (move : Fin d → Equiv.Perm V) (color : V → C)
    29 (w : C) (largest : ∀ c, (colorClass color c).card ≤ (colorClass color w).card)
    30 (P Q : ℕ) (expand : ∀ S : Finset V, 2*S.card ≤ Fintype.card V →
    31 P*S.card ≤ Q*boundary move S) :
    32 P*(Finset.univ.filter fun x => color x ≠ w).card ≤ Q*failures move color
    33
    34end Lax956329.EqualityTests
    35
    Show Proof

    Discussion

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

    Loading discussion…