Plurality rounding in an equality expander
Lax956329.EqualityTests · concepts/Lax956329/EqualityTests.lean · lax-956329
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural 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 times its size in outgoing boundary ports, at least times the number of nonplurality positions fail equality. Directed ports are counted with their multiplicities.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 2 | import Mathlib.Data.Fintype.Card |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Plurality rounding in an equality expander |
| 7 | type: lemma |
| 8 | --- |
| 9 | In an occurrence class colored by its proposed labels, every color except a |
| 10 | plurality occupies at most half the class. If each such set has at least |
| 11 | times its size in outgoing boundary ports, at least times the |
| 12 | number of nonplurality positions fail equality. Directed ports are counted |
| 13 | with their multiplicities. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax956329.EqualityTests |
| 17 | |
| 18 | variable {V C : Type} [Fintype V] [DecidableEq C] {d : ℕ} |
| 19 | |
| 20 | def colorClass (color : V → C) (c : C) : Finset V := Finset.univ.filter fun x => color x = c |
| 21 | |
| 22 | def boundary [DecidableEq V] (move : Fin d → Equiv.Perm V) (S : Finset V) : ℕ := |
| 23 | ∑ i, (S.filter fun x => move i x ∉ S).card |
| 24 | |
| 25 | def 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 | |
| 28 | axiom 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 | |
| 34 | end Lax956329.EqualityTests |
| 35 |
Builds on
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments