AFTD Auto-Formalizing Theoretical Domains

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

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
See it in the graphDiscuss this resultChallenge it