Counting red neighbors by binary projections
Lax833301.RedCounting · concepts/Lax833301/RedCounting.lean · lax-833301
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
A fiber that meets parts pins at most bits: the restrictions of its words to the pinned positions distinguish parts. For active intervals using one coordinate, count incidences between marker groups and the designated vertices. Distinct groups witness distinct neighbors, even when some designated vertices belong to the same part.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax833301.Realization |
| 2 | import Mathlib.Data.Fintype.Card |
| 3 | import Mathlib.Data.Fintype.Pi |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Counting red neighbors by binary projections |
| 8 | type: lemma |
| 9 | --- |
| 10 | A fiber that meets parts pins at most bits: |
| 11 | the restrictions of its words to the pinned positions distinguish parts. |
| 12 | For active intervals using one coordinate, count incidences between |
| 13 | marker groups and the designated vertices. Distinct groups witness |
| 14 | distinct neighbors, even when some designated vertices belong to the same |
| 15 | part. |
| 16 | -/ |
| 17 | |
| 18 | namespace Lax833301.RedCounting |
| 19 | |
| 20 | open Realization |
| 21 | |
| 22 | noncomputable def classes {t : ℕ} {P : Type} (part : Bits t → P) : Finset P := by |
| 23 | classical exact Finset.univ.image part |
| 24 | |
| 25 | def Mixed {t : ℕ} {P : Type} (part : Bits t → P) (j : Fin t) : Prop := |
| 26 | ∃ x y, part x = part y ∧ x j ≠ y j |
| 27 | |
| 28 | noncomputable def pinned {t : ℕ} {P : Type} (part : Bits t → P) : Finset (Fin t) := by |
| 29 | classical exact Finset.univ.filter fun j => ¬ Mixed part j |
| 30 | |
| 31 | axiom projection {t : ℕ} {P : Type} (part : Bits t → P) : |
| 32 | 2 ^ (pinned part).card ≤ |
| 33 | (classes part).card |
| 34 | |
| 35 | abbrev Marker (b t : ℕ) := Fin b × Fin t × Fin t |
| 36 | |
| 37 | structure Observation (b t w : ℕ) where |
| 38 | Part : Type |
| 39 | opening : Fin b → Bits t → Part |
| 40 | marker : Marker b t → Bits t → Part |
| 41 | red : Fin t → Finset Part |
| 42 | openingSmall : ∀ a, (classes (opening a)).card ≤ w+2 |
| 43 | groupSmall : ∀ a i k, Mixed (opening a) i → (classes (marker (a,i,k))).card ≤ w+2 |
| 44 | apart : ∀ a b x y, marker a x = marker b y → a = b |
| 45 | witnesses : ∀ a j x y, marker a x = marker a y → x j ≠ y j → marker a x ∈ red j |
| 46 | degree : ∀ j, (red j).card ≤ w |
| 47 | |
| 48 | axiom bound {b t w l : ℕ} (O : Observation b t w) (ht : 0 < t) (hl : w+2 < 2^(l+1)) : |
| 49 | b * (t-l)^2 ≤ w |
| 50 | |
| 51 | end Lax833301.RedCounting |
| 52 |
Builds on
Used by
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments