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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Max Noether's AF+BG theorem and the general Cayley–Bacharach theorem in Lean 4

Joshua Bald
Zenodo (CERN European Organization for Nuclear Research)
Polynomial and algebraic computation
preprint

Max Noether's AF+BG theorem and the general Cayley–Bacharach theorem in Lean 4

Joshua Bald
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Polynomial and algebraic computation
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon