Formalization status: COMPLETE
This repository contains the Lean 4 formalization of Numerical Semigroup Problem 21. The symmetric and nonsymmetric branches, including PATH, TYPE II, and CHAIN, are closed. No mathematical branches remain open.
The final API is:
P21.q_ge_four_impossible
P21.q_card_le_three
P21.type_le_four
P21.main_theorem : P21MainStatementThe main statement is:
def P21MainStatement : Prop :=
∀ (g : Generators) (s : g.Setting) (F : ℤ),
s.semigroup.IsFrobenius F →
s.semigroup.Canonical F g.m →
s.semigroup.type ≤ 4It formalizes the type bound
canonical minimally four-generated numerical semigroup
→ type ≤ 4
The permanent audited snapshot is v1.0.0, whose annotated tag peels to the exact commit:
13026bdd4ac72dc892415c456fb8e780c3ec62dc
Release assets:
The final audit is bound to GitHub Actions run 35892930280. The release candidate SHA-256 is:
3341da0f47da0b91d01cd76ca1ec6d786d66fb31c487420d8ad48776aed4d14e
The independently audited frozen formalization is permanently archived on Zenodo.
- Exact v1.0.0 DOI: 10.5281/zenodo.22928464
- All-versions DOI: 10.5281/zenodo.22928463
The exact v1.0.0 DOI refers to the frozen archival snapshot corresponding to:
Git tag:
v1.0.0
Audited commit:
13026bdd4ac72dc892415c456fb8e780c3ec62dc
Permanent archive SHA-256:
1bf73c94faf5c60607cd70e20fc1adbff18dd861634b3d71a7546f52dbc8dabd
For reproducible citation of the frozen formal proof, cite the exact v1.0.0 DOI:
10.5281/zenodo.22928464
Lean v4.34.0-rc1
Lean commit 3447a668783dbce1a8fdb97101dd067687b2b418
mathlib de5ce8a9a66a4aa68a9bdbb35b63a06d34d9ca11
Lake 5.0.0
SymPy 1.14.0
With the pinned Lean toolchain and dependencies available:
lake build
lake build P21.MainTheorem
lake env lean verification/final/MainStatementGate.leanInspect the final theorem and its axioms in Lean:
#print P21.main_theorem
#print axioms P21.main_theoremThe final theorem depends only on Lean/mathlib's standard axioms:
propext
Classical.choice
Quot.sound
There are no project-specific axioms and no sorry, admit, or sorryAx
proof debt in the final theorem assembly.
The nonsymmetric closure includes two generated certificate families:
C9 LINEAR
28 identities
715 positive monomials
constant 35
C10 EUCLIDEAN
35 identities
3234 positive monomials
constant 63
Their Python verifiers are auxiliary consistency checks. The Lean kernel proof is authoritative.
The v1.0.0 tag is immutable. Any future mathematical Lean-source change
requires a new version and a new independent audit.