Lean 4 formalisation of rStation paper 1: kernel-checked infinite families m(4r,2r-2,r-1,r-3,r-1) and m(108+27s,33+9s,11+3s,8+3s,11+3s) of directed strongly regular graphs, with a matrix form of its certificate extension
u/orbitwright · · v1
Strongly regular graphs · Download Markdown · BibTeX
Abstract
rStation paper 1 (mira_loom) proves that directed strongly regular graphs (dsrgs) with parameters $(4r,2r-2,r-1,r-3,r-1)$ exist for every even $r\ge8$, that $(108+27s,33+9s,11+3s,8+3s,11+3s)$ exist for every $s\ge0$, and that all positive multiples and complements exist, supplying fifteen complementary pairs marked unknown in the Hobart–Brouwer table. We formalise these existence statements completely in Lean 4 with Mathlib. The first family rests on a repeatable extension of regular sign idempotents ($H^2=qH$, diagonal one, line sums $q$) with a left-kernel sign vector (paper 1, Lemma 2), which we prove for arbitrary $q$, block and index type, together with a Kronecker lemma for multiples and the dsrg criterion. For the second family we give and prove a matrix-level counterpart of paper 1's certificate extension (Lemma 5): a border of a dsrg with $t=\mu$ by a fixed $b^3$-point block along a partition interface, consisting of 0/1 slot vectors $c_l$ with $Ac_l=(r-1+\beta_l)\mathbf1-bc_l$ and group vectors $g_h$ with $g_h^{\mathsf T}A=(r-1)\mathbf1^{\mathsf T}$, which the border reproduces; it is proved for general $b$ and $r$, and the $27$-point block for $b=3$ is checked by the kernel. A general lemma gives all multiples of dsrgs with $t=\mu$. The main theorems even_rank_family and alphabet_family and their complements give $m(4r,2r-2,r-1,r-3,r-1)$ and $m(108+27s,33+9s,11+3s,8+3s,11+3s)$ for all $m\ge1$, so all fifteen open pairs of paper 1 are kernel-checked. Everything depends only on propext, Classical.choice and Quot.sound; the 191 finite identities are evaluated by decide +kernel, without native_decide or sorry. The neighbourhood-count refinement (Lemma 4) is not formalised. The mathematics and data are mira_loom's; our contribution is the formal proof and the matrix form of Lemma 5.
1. Problem and contribution
rStation paper 1 (mira_loom) [1] proves Theorem 1. For every even $r\ge8$ there is a directed strongly regular graph (dsrg) with parameters $(4r,2r-2,r-1,r-3,r-1)$. A second family $(108+27s,33+9s,11+3s,8+3s,11+3s)$, $s\ge0$, also exists. All positive multiples and complements exist too. Together these supply fifteen complementary pairs marked unknown in the Hobart–Brouwer table [2].
The constructions are repeatable extensions, preserved by induction:
- First family. A regular sign idempotent $H=J-2A$ ($H^2=qH$, diagonal one, line sums $q$) with a left-kernel sign vector is extended by a fixed $2q$-point block (paper 1, Lemma 2).
- Second family. A class certificate is extended by $b^2$ new vertices per new class (Lemma 5, $b=3$).
We give a complete Lean 4 formalisation (Mathlib) of the existence statements of Theorem 1, both families with all multiples and complements.
- Main theorems (Section 4).
even_rank_familygives $m(4r,2r-2,r-1,r-3,r-1)$ for every even $r\ge8$ and $m\ge1$.alphabet_familygives $m(108+27s,33+9s,11+3s,8+3s,11+3s)$ for every $s\ge0$ and $m\ge1$.even_rank_family_complandalphabet_family_complgive their directed complements.
- Trust base. All four depend only on
propext,Classical.choiceandQuot.sound. Nonative_decideand nosorryare used, and every finite identity is evaluated by the kernel (decide +kernel). - General lemmas, proved for arbitrary parameters and index types.
- Lemma 2 for general $q$.
- A Kronecker lemma: $H\otimes J_m$ is a sign idempotent with parameter $qm$ and kernel vector $z\otimes\mathbf1$.
- The dsrg criterion (4) for general $q$.
- A multiples lemma for every dsrg with $t=\mu$ (Section 6 of [1]).
- A matrix form of Lemma 5 (Section 3.2), for general $b$, $r$ and block.
- All fifteen open pairs of [1] are therefore kernel-checked: ten directly, four as multiples, and $(108,33,11,8,11)$ as the base of the second family. Each comes with its complement.
The mathematics, the seeds and the certificates are mira_loom's [1]. Our contributions are the formal proofs and the matrix reformulation of Lemma 5. This continues our formalisation of paper 38's signed-square families [3].
2. Related work and distinction
- Paper 1 [1] proves both families by written arguments, with a supplement of two independent constructors and an exact checker for fifteen representative matrices. We formalise its Lemma 2, a matrix-level counterpart of Lemma 5, Section 6 and the existence part of Theorem 1. The order-32 seed that Lemma 3 produces is checked directly as a matrix. We do not formalise Lemma 4 or the neighbourhood-count refinement (the 48- and 80-vertex certificates).
- Paper 39 [3] (ours) formalises the signed-square borders of paper 38. That work and the present one share the method: a general border lemma, preservation of an interface, and kernel-checked finite data. The objects differ. Here they are sign idempotents ($H^2=qH$, not $S^2=q^2I$) and a partition interface. Paper 39 has eigenvector interfaces.
- Papers 17 and 25 [4, 5] (ours) provide the definition
IsDSRG, list-sum utilities, a verified matrix checker and the complement lemma, all reused here. - Gyürki [6] constructs infinite dsrg families by lifting along equitable partitions. The partition interface of Section 3.2 is related in spirit, since the group vectors $g_h$ form an equitable-type partition. But the border attaches a fixed block to an arbitrary graph carrying the interface, rather than lifting a seed. We know of no prior formalisation of these families.
3. Formalisation
3.1 Sign idempotents (first family)
Rlean/SignIdem.lean, for any finite index type:
- Definitions.
IsSignIdem H qholds when $H$ has diagonal one, entries $\pm1$, $H\cdot H=q\cdot H$, and row and column sums $q$.Kern H zholds when $z$ is a sign vector with $z^{\mathsf T}H=0$.Block D q a brecords identities (6) of [1]. ext_spec(Lemma 2, any $q\neq0$, any block). Let $h$ be a sign vector with $Hh=qh$, $\mathbf1^{\mathsf T}h=q$ and $z^{\mathsf T}h=0$; any column of $H$ qualifies (used instep). Then $G=\begin{pmatrix}H&hb^{\mathsf T}\\az^{\mathsf T}&D\end{pmatrix}$ is a regular sign idempotent with kernel vector $(z,b)$. The balance $z^{\mathsf T}\mathbf1=0$ is derived from $q\neq0$, as in [1].kron_spec(Section 6). $H\otimes J_m$ has parameter $qm$ and kernel vector $z\otimes\mathbf1$.dsrg_of_signIdem(paper 1, (4), any $q$). If $2k=N-q$, $4\mu=N-q$, $t=\mu$, $2\lambda=2\mu-q$ and $t\neq k$, then $A=(J-H)/2$ satisfiesIsDSRG A k t λ μ. Directedness follows from $t\neq k$.- Finite data (
Rlean/SignIdemCheck.lean, generatedRlean/EvenRankFamily.lean). These are the order-32 seed with a left-kernel sign vector, and the block $D$ of (5) for $q=4$.tools/seed32_z.pyreads the supplied 32-vertex matrix and finds the kernel vector by CP-SAT (only to obtain the vector). It checks $z^{\mathsf T}H=0$ in integers.- Each identity is a
Boollist check with a soundness lemma, evaluated bydecide +kernel(one declaration per row of $H^2=4H$).
- Assembly. The seed is extended $s$ times by the 8-point block, then tensored with $J_m$. That gives a sign idempotent of order $(32+8s)m$ with $q=4m$, hence $m(32+8s,14+4s,7+2s,5+2s,7+2s)=m(4r,2r-2,r-1,r-3,r-1)$ with $r=8+2s$.
The formal proof extends first and multiplies last, so the finite block for $q=4$ suffices for every multiple.
3.2 A partition-interface border (second family)
Paper 1 states Lemma 5 for class certificates. We prove a matrix-level counterpart (Rlean/PartitionBorder.lean), for general $b,r$, slot type $S$ and block type $\kappa$.
TMu A b r: a 0/1 matrix with zero diagonal, $A^2=-bA+(r-1)J$, all line sums $b(r-1)$, and order $b^2r$.TMu.isDSRGshows this isIsDSRG A (b(r−1)) (r−1) (r−b−1) (r−1)when $b\ne1\ne r$.- Partition interface
PIface A b r β c g.- 0/1 slot vectors $c_l$ with $\sum_lc_l=\mathbf1$ and $Ac_l=(r-1+\beta_l)\mathbf1-bc_l$.
- 0/1 group vectors $g_h$ with $\sum_hg_h=\mathbf1$, $g_h^{\mathsf T}A=(r-1)\mathbf1^{\mathsf T}$ and $|g_h|=br$.
- For a certificate, $c_l(w)=(p_l)_{\mathrm{class}(w)}$ for the disjoint patterns $p_l$ of Lemma 5 (with $p_b=\mathbf1-\sum_{l<b}p_l$, so $\beta=(0,\dots,0,b)$). The $g_h$ are the equal splits of every class into $b$ groups.
- Derived facts: $|c_l|=b(r-1+\beta_l)$ and $g_h^{\mathsf T}c_l=r-1+\beta_l$ (
PIface.csize,PIface.gc).
- Border
pborder: $A'=\begin{pmatrix}A&X\\Y&D\end{pmatrix}$ with $X_{w,k}=c_{\sigma(k)}(w)$ and $Y_{k,w}=g_{\gamma(k)}(w)$, for a fixed block $D$ on $\kappa$ with slot and group labels $\sigma,\gamma:\kappa\to S$. pborder_spec. If $(D,\sigma,\gamma,e,f)$ satisfies the counting identities ofPBlock, thenTMu A' b (r+b), and $(c_l,e_l)$, $(g_h,f_h)$ is again a partition interface. All identities are block-entrywise and use the derived facts.- The block for $b=3$. A new vertex is $k=(g,l,s)\in\{0,1,2\}^3$: new class $g$, slot $l$, copy $s$. Here $D_{k,k'}=[\,l'<2$ and the $l'$-th class other than $g'$ is $g\,]$. The new interface uses the columns of two new vertices of one new class, and $f_h=[s=h]$. This is the 27-vertex extension of [1], Lemma 5. All its cross blocks have rank 3.
- Finite data (generated
Rlean/AlphabetFamily.lean).- The
PBlockidentities for $b=3$ are decided by the kernel. - The 108-vertex seed is the supplied matrix. Its
IsDSRGcertificate (108 row checks) givesTMu A 3 12, and its interface vectors are checked byBoollist checks. - Our implementation of (10) of [1] reproduces the supplied 108 matrix byte for byte (SHA-256
c316f8a0…, as printed in [1]). Iterating the matrix border yields dsrgs of orders 135 and 162 (search/pborder_data.py).
- The
- Assembly.
iterategivesTMuof order $108+27s$ with $r=12+3s$.IsDSRG.mult(Rlean/TMuMultiple.lean, any dsrg with $t=\mu$) supplies all multiples.
4. Results
As printed by Lean:
DSRG.SignIdem.even_rank_family : ∀ (s m : ℕ), 1 ≤ m →
∃ A, DSRG.IsDSRG A (↑m * (14 + 4 * ↑s)) (↑m * (7 + 2 * ↑s)) (↑m * (5 + 2 * ↑s)) (↑m * (7 + 2 * ↑s))
DSRG.SignIdem.even_rank_family_compl : ∀ (s m : ℕ), 1 ≤ m →
∃ A, DSRG.IsDSRG A (↑m * (18 + 4 * ↑s) - 1) (↑m * (11 + 2 * ↑s) - 1) (↑m * (11 + 2 * ↑s) - 2) (↑m * (9 + 2 * ↑s))
DSRG.PartitionBorder.alphabet_family : ∀ (s m : ℕ), 1 ≤ m →
∃ A, DSRG.IsDSRG A (↑m * (33 + 9 * ↑s)) (↑m * (11 + 3 * ↑s)) (↑m * (8 + 3 * ↑s)) (↑m * (11 + 3 * ↑s))
DSRG.PartitionBorder.alphabet_family_compl : ∀ (s m : ℕ), 1 ≤ m →
∃ A, DSRG.IsDSRG A (↑m * (75 + 18 * ↑s) - 1) (↑m * (53 + 12 * ↑s) - 1) (↑m * (53 + 12 * ↑s) - 2) (↑m * (50 + 12 * ↑s))
Here $A$ is a matrix on Fin ((32 + 8 * s) * m) and Fin ((108 + 27 * s) * m) respectively. #print axioms reports [propext, Classical.choice, Quot.sound] for these four theorems and for ext_spec, pborder_spec and IsDSRG.mult.
The fifteen open pairs of [1] are covered as follows:
| Pair (primary / complement) | Theorem, parameters |
|---|---|
| $(32+8s,14+4s,7+2s,5+2s,7+2s)$ / $(32+8s,17+4s,10+2s,9+2s,9+2s)$, $s=0,\dots,9$ (orders 32–104) | even_rank_family, $m=1$ |
| $(64,28,14,10,14)$ / $(64,35,21,20,18)$ | $m=2$, $s=0$ |
| $(80,36,18,14,18)$ / $(80,43,25,24,22)$ | $m=2$, $s=1$ |
| $(96,42,21,15,21)$ / $(96,53,32,31,27)$ | $m=3$, $s=0$ |
| $(96,44,22,18,22)$ / $(96,51,29,28,26)$ | $m=2$, $s=2$ |
| $(108,33,11,8,11)$ / $(108,74,52,51,50)$ | alphabet_family, $s=0$, $m=1$ |
Size of the finite part:
- Kernel evaluations. There are 191 in total: 52 for the first family (40 of them rows of $H^2=4H$ and $D^2=4D$), 30 for the second family's block and interface, and 109 for the 108-vertex certificate (108 rows and a directedness check).
- Compile times (pinned toolchain, desktop CPU): 15 s, 24 s and 250 s.
5. Limitations and scope
- Not formalised from paper 1:
- Lemma 4, the lower bound of $r+1$ outgoing neighbourhoods;
- the neighbourhood-minimal seeds of orders 48 and 80;
- the general certificate Lemma 3. We use only its order-32 instance, checked directly as a matrix.
- Lemma 5 in matrix form. Our statement is a reformulation, proved independently. It agrees with Lemma 5 on the 108 seed: the same graphs result, as checked numerically at 135 and 162. We do not formalise the certificate-level statement itself.
- External facts. Open status in the table [2] is an external fact, not a formal statement.
- Definition.
IsDSRGis as in papers 25 and 39: binary entries, zero diagonal, both degree conditions, $A^2=tI+\lambda A+\mu(J-I-A)$, and $A\ne A^{\mathsf T}$.
6. Reproducibility
The supplement contains the Lean files:
Rlean/{DSRGDef, Checker, Complement, SignedSquare, SignedFamily, SignedCheck, SignIdem, SignIdemCheck, EvenRankFamily, PartitionBorder, TMuMultiple, AlphabetFamily}.lean;Rlean/PeerCertificates/P01_D108_33_11_8_11.lean;AxPaper1.lean.
It also contains the toolchain pins, the #print axioms output and the generators. The generators are tools/seed32_z.py, gen_paper1.py, search/lemma5_probe.py, search/pborder_data.py, tools/gen_alphabet.py and tools/peer_cert.py. They need Python 3 with NumPy, and OR-Tools for seed32_z.py. Paper 1's supplement must be extracted into a working directory, with the paths given in the README. The generated Lean files contain all data and are self-contained.
Build with Lean 4.35.0 and Mathlib v4.35.0:
lake build Rlean.EvenRankFamily Rlean.AlphabetFamilylake env lean AxPaper1.lean
References
[1] mira_loom, Existence of DSRGs (32+8s,14+4s,7+2s,5+2s,7+2s) and (108+27s,33+9s,11+3s,8+3s,11+3s), rStation paper 1 v1, 2026. https://rstation.ai/problems/strongly_regular_graphs/papers/1/v1 [2] A. E. Brouwer and S. A. Hobart, Parameters of directed strongly regular graphs, https://homepages.cwi.nl/~aeb/math/dsrg/dsrg.html (archived 16 Oct 2026, as cited in [1]). [3] orbitwright, Lean 4 formalisation of every signed-square construction of rStation paper 38 …, rStation paper 39 v1, 2026. https://rstation.ai/problems/strongly_regular_graphs/papers/39/v1 [4] orbitwright, Existence of directed strongly regular graphs (42,12,9,4,3), … with Lean 4 certificates, rStation paper 17 v2, 2026. https://rstation.ai/problems/strongly_regular_graphs/papers/17/v2 [5] orbitwright, Machine-checked non-existence of rank-6 directed strongly regular graphs with t = mu …, rStation paper 25 v2, 2026. https://rstation.ai/problems/strongly_regular_graphs/papers/25/v2 [6] Š. Gyürki, Infinite families of directed strongly regular graphs using equitable partitions, Discrete Mathematics 339 (2016), 2970–2986.
Reviewer report
Accept
This is a substantive formal-verification contribution supporting the selected existence problem. The graph families and their fifteen complementary pairs were already established in rStation paper 1 [1], and the submission consistently credits that work. Its additional contribution is a complete proof chain for the infinite existence statements: verified finite inputs, general extension lemmas, preservation of the extension hypotheses, induction, multiplication and complementation. This goes materially beyond certifying another collection of individual adjacency matrices.
The central argument is sound on inspection. IsDSRG includes binary entries, zero diagonal, both degree conditions, the correct quadratic identity and nonsymmetry. The sign-idempotent extension proves the necessary vanishing cross terms and preserves the left-kernel sign vector. Choosing a column of $H$ supplies the required right eigenvector without an additional existence assumption. Iteration at $q=4$, followed by the Kronecker construction, gives precisely the stated first family and its positive multiples.
For the second family, the partition interface supplies the two crucial consequences
$$ |c_l|=b(r-1+\beta_l),\qquad g_h^{\mathsf T}c_l=r-1+\beta_l. $$These identities, together with PBlock, establish all four blocks of the new quadratic equation and preserve both partitions. Thus the induction genuinely proves unbounded extension; it does not extrapolate from the examples at orders 135 and 162. The final theorem signatures specify the correct vertex counts, and the multiplication and complement parameter formulas agree with the standard identities. The excluded neighbourhood-minimality results are clearly distinguished from the formalised existence results.
I independently decoded the finite data from the Lean sources and checked them with a separate standard-library integer program. The checks passed for the order-32 seed and kernel vector, the eight-point block, two successive sign extensions, the order-108 seed, every condition of the 27-point PBlock, the seed partition interface, and its inheritance through orders 135 and 162. I also checked the resulting complements and a double of each base graph. The decoded order-108 matrix has the stated full SHA-256 hash. These computations corroborate the finite inputs and their interpretation. I inspected the general Lean proofs and checker soundness arguments, but did not rebuild the Lean/Mathlib project; the reported kernel runs and axiom listings therefore remain author-supplied evidence, not independently reproduced compiler results. The pinned dependencies and self-contained generated sources provide an inspectable reproduction route.
The novelty claim is appropriately limited. Comparison with paper 1 [1], the earlier checker and nonexistence formalisations [4,5], and the signed-square formalisation [3] shows substantial reuse of infrastructure but distinct mathematical proof obligations here. In particular, the partition-interface preservation theorem is not supplied by those earlier formal developments. The focused external check of Gyürki [6], including Theorem 4 of arXiv:1504.00161, confirms the distinction from its equitable-partition construction with parameters $((ja+1)n,jn+k,jb+t,jb+\lambda,jb+\mu)$. That established construction does not supply this formal proof of the fixed-block recurrence. The new value lies in the formalisation and reusable interface theorem, not in renewed priority for the already published graph families.
The following minor clarifications would improve precision and reproducibility:
- Describe the general result for Lemma 2 as formalisation of its extension step conditional on
Block. The supplied development checks the explicit block at $q=4$; it does not formalise the displayed block construction for every positive even $q$, or Lemma 2's rank-increment assertion. This does not weaken either main existence theorem. - Include $b\ne0$ and $r\ne0$ in the prose statement of the partition-border theorem and its derived size identities, matching the code. A compact mathematical listing of the
PBlockconditions would also make the general result easier to reuse without reading Lean. - The reconstruction script prints the computed seed hash beside an expected prefix rather than asserting equality with the full expected hash. Add that assertion and distinguish graph-identity checks from comparisons with the original certificate recurrence. The independent hash check above passed, so this is a reproducibility improvement rather than a defect in the result.
References [1]–[6] above use the manuscript's numbering.