Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Adjacency-matrix form of Conway's 99-graph problem: A2+A=12I+2JA^2+A=12I+2JA2+A=12I+2J

Open
Conway99.conway_99_adjacency_matrix_exists

by Lucas · Sep 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsconway-99graph-theorystrongly-regular-graphs

Conway's 99-graph problem asks for a strongly regular graph with parameters (99,14,1,2)(99,14,1,2)(99,14,1,2). This statement is the adjacency-matrix form of that existence question.

The assertion is that there exists a 99×9999\times 9999×99 matrix A=(aij)A=(a_{ij})A=(aij​) with natural number entries such that

  1. aij∈{0,1}a_{ij}\in\{0,1\}aij​∈{0,1} for all i,ji,ji,j;
  2. aij=ajia_{ij}=a_{ji}aij​=aji​ for all i,ji,ji,j;
  3. aii=0a_{ii}=0aii​=0 for all iii;
  4. for all i,ji,ji,j,
(A2)ij+aij=12 [i=j]+2,(A^{2})_{ij}+a_{ij}=12\,[i=j]+2,(A2)ij​+aij​=12[i=j]+2,

that is, A2+A=12I+2JA^{2}+A=12I+2JA2+A=12I+2J with III the identity matrix and JJJ the all-ones matrix.

A symmetric 0/10/10/1 matrix with zero diagonal is exactly the adjacency matrix of a simple graph GGG on 999999 vertices, and (A2)ij(A^{2})_{ij}(A2)ij​ counts the common neighbours of iii and jjj. On the diagonal, condition 4 reads (A2)ii=14(A^{2})_{ii}=14(A2)ii​=14, which is the degree of vertex iii, so GGG is 141414-regular. Off the diagonal it splits into two cases: if iii and jjj are adjacent then aij=1a_{ij}=1aij​=1 and (A2)ij=1(A^{2})_{ij}=1(A2)ij​=1, so adjacent vertices have exactly one common neighbour; if they are distinct and non-adjacent then aij=0a_{ij}=0aij​=0 and (A2)ij=2(A^{2})_{ij}=2(A2)ij​=2, so non-adjacent vertices have exactly two common neighbours. The four conditions therefore hold for some AAA if and only if a strongly regular graph with parameters (99,14,1,2)(99,14,1,2)(99,14,1,2) exists.

The formulation is the specialisation to (n,k,λ,μ)=(99,14,1,2)(n,k,\lambda,\mu)=(99,14,1,2)(n,k,λ,μ)=(99,14,1,2) of the standard identity A2=kI+λA+μ(J−I−A)A^{2}=kI+\lambda A+\mu (J-I-A)A2=kI+λA+μ(J−I−A) characterising strongly regular graphs. It states the problem as a finite arithmetic condition on a 0/10/10/1 matrix, the form in which computational searches and orbit-matrix arguments operate.

Formalization Note Entries are natural numbers with the constraint aij∈{0,1}a_{ij}\in\{0,1\}aij​∈{0,1} imposed explicitly, and the matrix square is written entrywise as ∑kaikakj\sum_k a_{ik}a_{kj}∑k​aik​akj​; the right-hand side uses if i = j then 12 else 0 for the term 12 [i=j]12\,[i=j]12[i=j].

Preamble
import Mathlib.Data.Matrix.Basic
import Mathlib.Algebra.BigOperators.Fin
Formal statement
open scoped BigOperators

namespace Conway99

theorem conway_99_adjacency_matrix_exists :
    ∃ A : Matrix (Fin 99) (Fin 99) ℕ,
      (∀ i j, A i j = 0 ∨ A i j = 1) ∧
      (∀ i j, A i j = A j i) ∧
      (∀ i, A i i = 0) ∧
      (∀ i j, (∑ k, A i k * A k j) + A i j = (if i = j then 12 else 0) + 2) := by sorry

end Conway99
Source
J. H. Conway, 'Five $1,000 Problems (Update 2017)', OEIS, https://oeis.org/A248380/a248380.pdf (Problem 1); adjacency-matrix reformulation via the strongly regular graph identity A^2 = kI + lambda*A + mu*(J - I - A) with (n,k,lambda,mu) = (99,14,1,2), see A. E. Brouwer and W. H. Haemers, 'Spectra of Graphs', Springer 2012, Section 9.1, p. 115.
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

  • 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