The threshold and rare set determined by a truncated count vector
Lax977378.CountParameters · concepts/Lax977378/CountParameters.lean · lax-977378
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
The vector indexed by the non-repeating catalogue determines the least eligible threshold and the exact number of rare vertices. These are uniform parameters for every graph with the given vector. Saturated entries suffice for each frequent type, while the low entries still give exact cardinalities.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax977378.Types |
| 2 | import Lax977378.Threshold |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The threshold and rare set determined by a truncated count vector |
| 7 | type: lemma |
| 8 | --- |
| 9 | The vector indexed by the non-repeating catalogue determines the least eligible |
| 10 | threshold and the exact number of rare vertices. These are uniform parameters |
| 11 | for every graph with the given vector. Saturated entries suffice for each |
| 12 | frequent type, while the low entries still give exact cardinalities. |
| 13 | -/ |
| 14 | namespace Lax977378.CountParameters |
| 15 | open Lax977378.Logic Lax977378.RecordTests |
| 16 | |
| 17 | noncomputable def locations {c} (t : Pointed c) (r : Nat) (G : Graph c) : Finset (Fin G.size) := by |
| 18 | classical exact Finset.univ.filter (Occurs t r G) |
| 19 | |
| 20 | noncomputable def rareSet {c n} (types : Fin n → Pointed c) (r : Nat) (G : Graph c) |
| 21 | (v : Fin n → Nat) (t : Nat) : Finset (Fin G.size) := by |
| 22 | classical exact Finset.univ.filter (fun x => ¬ ∃ j, t ≤ v j ∧ Occurs (types j) r G x) |
| 23 | |
| 24 | def Eligible {n} (h : Nat → Nat) (v : Fin n → Nat) (cap t : Nat) : Prop := |
| 25 | 0 < t ∧ t ≤ cap ∧ h (Threshold.rareTotal t (List.ofFn v)) ≤ t |
| 26 | |
| 27 | axiom countTestValue {c} (a : Pointed c) (r cap k : Nat) (G : Graph c) : |
| 28 | (k ≤ cap ∧ AtLeast a r k G ∧ (k < cap → ¬ AtLeast a r (k+1) G)) ↔ |
| 29 | k = min cap (locations a r G).card |
| 30 | |
| 31 | axiom fixedParameters {c d r n} (types : Fin n → Pointed c) |
| 32 | (cover : ∀ G : Graph c, G.Bounded d → ∀ x, ∃! j, Occurs (types j) r G x) |
| 33 | (h : Nat → Nat) (mono : Monotone h) : |
| 34 | ∃ cap : Nat, ∃ threshold : (Fin n → Nat) → Nat, |
| 35 | ∀ (G : Graph c), G.Bounded d → |
| 36 | let counts := fun j => (locations (types j) r G).card |
| 37 | let v := fun j => min cap (counts j) |
| 38 | let t := threshold v |
| 39 | Eligible h v cap t ∧ (∀ u, Eligible h v cap u → t ≤ u) ∧ |
| 40 | (∀ j, t ≤ v j ↔ t ≤ counts j) ∧ |
| 41 | (rareSet types r G v t).card = Threshold.rareTotal t (List.ofFn v) ∧ |
| 42 | (rareSet types r G v t).card ≤ n * (cap-1) |
| 43 | |
| 44 | axiom parameters (c d r : Nat) (h : Nat → Nat) (mono : Monotone h) : |
| 45 | ∃ n : Nat, ∃ types : Fin n → Pointed c, ∃ cap : Nat, |
| 46 | ∃ threshold : (Fin n → Nat) → Nat, |
| 47 | (∀ G : Graph c, G.Bounded d → ∀ x, ∃! j, Occurs (types j) r G x) ∧ |
| 48 | ∀ (G : Graph c), G.Bounded d → |
| 49 | let counts := fun j => (locations (types j) r G).card |
| 50 | let v := fun j => min cap (counts j) |
| 51 | let t := threshold v |
| 52 | Eligible h v cap t ∧ (∀ u, Eligible h v cap u → t ≤ u) ∧ |
| 53 | (∀ j, t ≤ v j ↔ t ≤ counts j) ∧ |
| 54 | (rareSet types r G v t).card = Threshold.rareTotal t (List.ofFn v) ∧ |
| 55 | (rareSet types r G v t).card ≤ n * (cap-1) |
| 56 | |
| 57 | end Lax977378.CountParameters |
| 58 |
Builds on
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments