moore_bound
def
The Moore bound m(d, k) is defined as 1 + d * ∑_{i=0}^{k-1} (d-1)^i, representing the maximum possible number of vertices in a graph of maximum degree at most d and diameter at most k.
Statement
def moore_bound (d k : ℕ) : ℕ- Defined in
- arXiv:2611.26037 Sec. 1
- Verified
- 20 Nov 2026
- Axioms
- none listed
- Used by 3
- degree_diameter_three_defect_sublinear_of_deviation_boundReduction of the diameter-3 defect bound to the deviation theorem: for d ≥ 3, if every finite nonempty d-regular graph satisfies d < (√8 r…
- moore_bound_three_formulaFor any integer d ≥ 1, the Moore bound for diameter 3 evaluates to m(d, 3) = d^3 - d^2 + d + 1.
- card_le_moore_boundEvery finite connected simple graph with maximum degree at most d and diameter at most k has at most m(d, k) vertices.
Read back from the Lean
Definition of moore_bound d k, which takes two natural numbers d and k and evaluates to the natural number 1 + d * ∑ i ∈ Finset.range k, (d - 1) ^ i (i.e., 1 plus d times the sum of (d - 1) ^ i for i from 0 to k - 1, using standard natural number arithmetic).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The Moore bound m(d, k) = 1 + d * ∑_{i=0}^{k-1} (d-1)^i on the order of a graph of maximum degree d and diameter at most k. -/ def moore_bound (d k : ℕ) : ℕ := 1 + d * ∑ i ∈ Finset.range k, (d - 1) ^ i