Preprint · November 2026

From combinatorial search to Lean certificates: verified designs, code witnesses and a Reed–Solomon pooling theorem

Aidan Yu1
1Department of Mechanical Engineering & Materials Science, Duke University, Durham, NC, USA
Correspondence: asy22@duke.edu

Abstract

We present Deduce, a CPU search and certification pipeline for exact combinatorial constructions. A proposer ranks candidates, symbolic checkers establish their stated properties, and independent verification paths produce portable certificates. The certificate layer includes an obligation-aware checker for supported claim types, six self-contained Lean 4 certificates, eleven kernel-checked witnesses for published constant-weight code bounds, and a Mathlib formalization of the Reed–Solomon pooling construction. The latter proves d-disjunctness for finite fields F and degree bounds K satisfying d(K-1)<|F|. Three standalone certificates and all eleven code witnesses have empty axiom dependency reports. A specification-to-certificate loop verifies three fresh designs. Evaluation across chiral gauge theories, cap sets, representation identities, mutually unbiased bases and constant-weight codes recovers known structures and four established code optima. The contribution is an implemented certification workflow and formal artifacts for established constructions; no new record or classification is claimed.

Keywords: certified computation · Lean 4 · combinatorial search · group testing · constant-weight codes · negative results · research methodology

1Introduction

Recent results pair large learned generators with programmatic evaluators and report new mathematical constructions [1]. In such systems, the component that proposes candidates and the component that decides what counts are often tightly coupled. The final evidence is usually a number in a table. Interpreting the result requires a precise statement of the evaluator’s obligations.

We built Deduce to study a stricter arrangement and to find where it pays. The design has three rules:

  1. The proposer only orders. A learned or heuristic proposer receives the candidate space and returns a permutation of it. Its output type cannot express a candidate, so it cannot assert one. The proposer interface constrains outputs to candidate orderings.
  2. The verifier owns truth. An exact symbolic verifier, using integer, rational or cyclotomic arithmetic as the domain requires, decides every claim.
  3. Outputs ship as certificates. Each result is re-checked by an independent code path and, where possible, emitted as an artifact a third party can verify while trusting nothing the author wrote, in the spirit of proof-carrying code [2].

The harness is evaluated on five exact search domains with pre-registered stopping criteria. The experiments characterize search performance and supply constructions for the certificate workflow.

2The five frontiers

The registered criteria compare search outputs with enumeration baselines and established results. A returned object can be valid, computationally useful and already known; those properties are evaluated separately.

Table 1. Certified search results and comparison with established constructions.
FrontierCertified resultProposer helps?Comparison with existing results
F1 Chiral gauge theoriesRecovers SU(5), the Standard Model and Pati–Salam [3, 4]; a checked atlas of anomaly-free, chiral, asymptotically free theoriesNo (measured)Enumeration recovers the same atlas
F2 Cap sets in \mathbb{F}_3^nExact maxima for n \leq 3 (2, 4, 9); a 20-cap at n = 4; matches the proven 45 at n = 5Yes: ordering beats randomShort of the state of the art: plateau near 85 against the proven 112 at n = 6 [5]
F3 Representation-theory identitiesRediscovers the Pieri rule, dimension multiplicativity and a Dynkin tensor rule; refutes false candidates with counterexamplesn/aAll verified identities are established
F4 Mutually unbiased basesd+1 MUBs for prime d \in \{2, 3, 5\}; 3 MUBs in d = 6 [6]n/aOpen d = 6 case remains unresolved
F5 Constant-weight codesCertified optimal A(10,4,3)=13, A(13,4,3)=26, A(15,4,3)=35, A(13,6,4)=13Yes: reaches the Johnson boundMatches known optima; beats no record

Two observations from the sweep are worth stating. First, where the candidate space is small enough to enumerate (F1), a learned proposer adds nothing measurable. A brute sweep is both a baseline and a certificate. Second, where the space is not enumerable (F2, F5), ordering helps, but only up to the reach of the search. For cap sets at n = 6, greedy, annealing and min-conflicts search plateau near 85 against the proven maximum of 112 [5]. For constant-weight codes, the search meets the analytic Johnson upper bound [7] in four cases. That pins the optimum with no exhaustive proof, but the values were already known [8].

Further search campaigns matched known constructions or produced negative results under their registered protocols.

3The certificate layer

3.1Claim-specific verification

A re-runner that faithfully re-executes a stated predicate will stamp a claim verified even when the predicate is the wrong one. DCERT derives obligations for its supported structured claim types and checks the supplied artifact against them. It also refuses to certify claims about external "best-known" values, which it cannot check. On the harness's own certificates it passes 8 of 8 in about 3 s with the repository and its dependencies. Two diagnostic cases exercise the distinction between a construction and a stronger claim:

Both cases are checked using the obligations appropriate to the narrower supported claims.

3.2Self-contained kernel-checked certificates

Six Lean 4 [9] files are checked by the Lean kernel with no Mathlib and without native_decide, which would place the compiler in the trusted base. They certify a sufficient condition for d-disjunctness together with an instance, the balance of a (13, 4, 1) balanced incomplete block design, an optimal covering C(9,3,2), a social-golfer schedule with no repeated pairs, and a round-robin structure. For three of them, #print axioms reports no axioms at all. These certificates reduce their propositions by kernel-checked computation.

3.3A whole-family theorem

Group testing identifies up to d positives among N samples with far fewer pooled tests, provided the pooling matrix is d-disjunct: no column is covered by the union of any d others [10]. The Kautz–Singleton construction [11] builds such matrices from Reed–Solomon codes. Writing \mathrm{RS}(F,K) for that pooling family, we prove in Lean with Mathlib [12] that for finite fields F and parameters K,d,

\begin{gathered} d(K-1)<|F|\;\Longrightarrow\\ \mathrm{RS}(F,K)\text{ is }d\text{-disjunct}. \end{gathered}(1)

The proof is algebraic: two distinct polynomials of degree less than K agree in fewer than K points, so they share fewer than K tests. It does not enumerate pairs, so it covers infinitely many deployable designs at once. The shipped design with 1,331 samples and 121 pools is the instance F = \mathrm{GF}(11), K = 3, d = 5. The same file proves a noise-tolerant strengthening with an explicit error margin.

3.4Formal witnesses for a published table

Eleven further Lean files prove lower bounds A(n, d, w) \geq M for entries of the Brouwer table of constant-weight codes [8], by exhibiting a code and checking it with structural recursion only; #print axioms reports none. They certify explicit lower-bound witnesses for established entries. A systematic prior-work comparison is needed to assess the novelty of these formal artifacts.

3.5A closed loop

Given only a specification (q, K), the pipeline constructs the Reed–Solomon design, emits a Lean certificate, and the kernel verifies it with no human writing a proof. It did so for 3 of 3 fresh designs using pure decide and standard axioms, including a fivefold compression, 125 samples into 25 pools.

Table 2. The certificate layer and what each artifact establishes.
ArtifactEstablishesTrust base
DCERT checkerRe-derived obligations; 8/8 own certificates; 2 invalid stronger claims rejectedPython, no optional dependencies
6 self-contained Lean filesDesigns and schedules as statedLean kernel; 3 of 6 with no axioms
rs_is_disjunctEq. (1) for every finite fieldLean kernel + Mathlib
11 Brouwer-table witnessesA(n,d,w) \geq M for listed entriesLean kernel, no axioms
Autocertification loop3/3 fresh designs certified with no human proofLean kernel, standard axioms

4Discussion

Search scope. The five domains distinguish exhaustive recovery, rediscovery and bounded heuristic search. Exact certification establishes the properties of the returned objects. Comparison with established constructions measures how far the search reaches.

Certificate reuse. The formal artifacts support downstream users of pooling schemes, covering designs and code tables. Each artifact states the proposition checked and the dependencies used in its verification.

Claim-specific obligations. A valid construction establishes a lower bound or feasible solution. Optimality requires the corresponding upper or lower bound. Encoding that distinction in the certificate interface helps prevent a true computational predicate from supporting an unjustified stronger claim.

5Limitations

No record is beaten and no open problem is resolved. The Lean artifacts need a Lean toolchain to check; without one, the harness reports them as skipped rather than passed. The whole-family proof uses Mathlib definitions and lemmas, with their dependencies checked by Lean’s kernel. Its imported axiom dependencies should be reported separately from library size. A learned proposer arm that rederives an anomaly law with an 82-parameter aligned network narrowly missed its registered extrapolation gate (AUC 0.940 against 0.95) and is outside the scope of this paper.

6Conclusion

Deduce connects exact search with claim-specific checking and kernel-verified certificates. Its artifacts cover finite designs, published constant-weight code witnesses and a parameterized Reed–Solomon pooling theorem. The search results match established mathematics; the reusable output is the certification workflow and its explicit proof obligations.

Data and code availability

All code, Lean sources, certificates and frontier scorecards are in the private project repository. run_all.py re-verifies the full layer on CPU; the Lean group requires lean on the path and is otherwise reported as skipped.

References

  1. B. Romera-Paredes, M. Barekatain, A. Novikov, et al. Mathematical discoveries from program search with large language models. Nature, 625(7995):468–475, 2024.
  2. G. C. Necula. Proof-carrying code. In Proceedings of the 24th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL), 106–119, 1997.
  3. H. Georgi and S. L. Glashow. Unity of all elementary-particle forces. Physical Review Letters, 32(8):438–441, 1974.
  4. J. C. Pati and A. Salam. Lepton number as the fourth "color". Physical Review D, 10(1):275–289, 1974.
  5. A. Potechin. Maximal caps in AG(6, 3). Designs, Codes and Cryptography, 46(3):243–259, 2008.
  6. W. K. Wootters and B. D. Fields. Optimal state-determination by mutually unbiased measurements. Annals of Physics, 191(2):363–381, 1989.
  7. S. M. Johnson. A new upper bound for error-correcting codes. IRE Transactions on Information Theory, 8(3):203–207, 1962.
  8. A. E. Brouwer, J. B. Shearer, N. J. A. Sloane, and W. D. Smith. A new table of constant weight codes. IEEE Transactions on Information Theory, 36(6):1334–1380, 1990.
  9. L. de Moura and S. Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction – CADE 28, LNCS 12699:625–635, 2021.
  10. D.-Z. Du and F. K. Hwang. Combinatorial Group Testing and Its Applications, 2nd ed. World Scientific, 2000.
  11. W. H. Kautz and R. C. Singleton. Nonrandom binary superimposed codes. IEEE Transactions on Information Theory, 10(4):363–377, 1964.
  12. The mathlib Community. The Lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP), 367–381, 2020.