Max Noether's AF+BG theorem and the general Cayley–Bacharach theorem in Lean 4
We formalise in Lean 4, on top of Mathlib, the part of the classical theory of plane algebraiccurves that connects Bézout’s theorem to the Cayley–Bacharach theorem: the local intersectionmultiplicity at a point of the projective plane, Bézout’s theorem with multiplicities, MaxNoether’s AF+BG theorem, and the Cayley–Bacharach theorem for forms of arbitrary degreesm, n meeting in mn distinct points, together with its general-position form over any field. Thedevelopment is one self-contained library of twelve modules and about 5,900 lines; it is checkedby a gate that prints the axioms of 65 named theorems and sweeps all 852 constants, withonly propext, Classical.choice and Quot.sound appearing anywhere. Three implementationchoices are worth recording. Bézout is obtained from a graded count plus a local–global conedecomposition rather than from resultants. AF+BG is proved through a nonzerodivisor line andthe Nullstellensatz applied to a colon ideal, with the degree bookkeeping done by homogeneousprojection. And the step usually cited as the hard one in Cayley–Bacharach — the socle of a twovariablecomplete intersection — is not needed: a two-line Koszul argument replaces it, so thedistinct-point theorem follows from AF+BG; the general-position form is proved independently,by a dimension count. The AF+BG theorem itself had already been formalised, independently and one week earlier,in another Lean library (§8), and the cubic case of Cayley–Bacharach had been formalised byus a month before this development; we claim no priority for either. What the searches of §8did not find is a formalisation of the arbitrary-degree Cayley–Bacharach theorem at an omittedpoint — the all-point residual form exists in FormalCommons/plane-curves (§8) — and that isthe claim this paper is built around.
Authors
- Joshua Bald (ORCID: https://orcid.org/0009-0002-1317-6489)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24636192
- Primary Topic
- Polynomial and algebraic computation
- Type
- preprint