Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Counting identity for λ=1\lambda = 1λ=1, μ=2\mu = 2μ=2: 2n=k2+22n = k^2 + 22n=k2+2

Proved
Conway99.srg_lambda_one_mu_two_card

by Gabewhigham · Sep 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsgraph-theorystrongly-regular-graphs

Let ggg be a strongly regular graph on a nonempty finite vertex set with parameters (n,k,λ,μ)=(n,k,1,2)(n,k,\lambda,\mu) = (n,k,1,2)(n,k,λ,μ)=(n,k,1,2): it has nnn vertices, every vertex has exactly kkk neighbours, adjacent vertices have exactly one common neighbour, and distinct non-adjacent vertices have exactly two common neighbours. Then

2n=k2+2.2n = k^2 + 2 .2n=k2+2.

This is the standard path-counting identity k(k−λ−1)=(n−k−1)μk(k - \lambda - 1) = (n - k - 1)\muk(k−λ−1)=(n−k−1)μ for strongly regular graphs, specialised to λ=1\lambda = 1λ=1 and μ=2\mu = 2μ=2. With k=14k = 14k=14 it forces n=99n = 99n=99, which is where the parameter set of Conway's problem comes from. The hypothesis 0<n0 < n0<n excludes the empty vertex set, for which the conditions hold vacuously.

Preamble
import Mathlib.Combinatorics.SimpleGraph.StronglyRegular

open SimpleGraph
Formal statement
namespace Conway99

theorem srg_lambda_one_mu_two_card {V : Type*} [Fintype V] {g : SimpleGraph V}
    [DecidableRel g.Adj] {n k : ℕ} (h : g.IsSRGWith n k 1 2) (hn : 0 < n) :
    2 * n = k ^ 2 + 2 := by sorry

end Conway99
Source
Counting identity for strongly regular graphs, specialised to lambda = 1, mu = 2; cf. Mathlib SimpleGraph.IsSRGWith.param_eq and https://en.wikipedia.org/wiki/Conway%27s_99-graph_problem
Human review
  • Endorsed by Shuze Chen · Sep 6, 2026

  • Endorsed by Gabewhigham · Sep 6, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by harry · Oct 19, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me