The threshold and rare set determined by a truncated count vector

Lax977378.CountParameters · concepts/Lax977378/CountParameters.lean · lax-977378

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 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
    7 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on ADescendants are omitted for concepts with more than 10 descendants.
    Evidence

    This concept declares 3 statements. Each proof establishes one of them relative to its assumptions.

    Lean source view on GitHub

    1import Lax977378.Types
    2import Lax977378.Threshold
    3
    4/-!
    5---
    6title: The threshold and rare set determined by a truncated count vector
    7type: lemma
    8---
    9The vector indexed by the non-repeating catalogue determines the least eligible
    10threshold and the exact number of rare vertices. These are uniform parameters
    11for every graph with the given vector. Saturated entries suffice for each
    12frequent type, while the low entries still give exact cardinalities.
    13-/
    14namespace Lax977378.CountParameters
    15open Lax977378.Logic Lax977378.RecordTests
    16
    17noncomputable 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
    20noncomputable 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
    24def 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
    27axiom 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
    31axiom 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
    44axiom 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
    57end Lax977378.CountParameters
    58
    Show ProofShow ProofShow Proof

    Discussion

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

    Loading discussion…