Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.CurveShortening.Comparison.Theory |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.CompleteComparison |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.DiskAdapters |
| 4 | import PoincareLib.Geometry.CurveShortening.Comparison.FamilyAdapters |
| 5 | import PoincareLib.Geometry.CurveShortening.Ramp.Main |
| 6 | |
| 7 | /-! |
| 8 | # M64 polygon approximation and annulus comparison proof entry |
| 9 | |
| 10 | The complete construction consumes the exact M63 theorem once. The checked |
| 11 | assembly retains the original comparison, evolution and family statements |
| 12 | on the same actual geometry. |
| 13 | |
| 14 | Morgan--Tian context: Chapter 19, Sections 19.3-19.7, printed pp. 447-481; the frozen M64 |
| 15 | contracts and project comparison erratum specify the final interfaces. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | /-- M64: given M63's complete ramp-estimate theorem, every C1 loop in a |
| 25 | compact Hausdorff second-countable smooth three-manifold with an actual |
| 26 | metric and compatible connection has a sampled minimizing N-gon for every |
| 27 | positive N. On each compact C1 set and for each zeta>0, one N0 works for |
| 28 | every N>=N0 and every loop: the polygon map is unique, its length is the |
| 29 | sum of its side lengths, its nonnegative length loss is less than zeta, |
| 30 | and an actual piecewise C1 short-geodesic annulus has area less than zeta. |
| 31 | Constant sides are allowed; the raw polygon need not be C1 at its corners. |
| 32 | |
| 33 | Every raw continuous sphere family of null C1 loops admits these polygons |
| 34 | continuously for every sufficiently large N, with actual raw null boundaries, |
| 35 | nonempty filling classes and filling-area error less than zeta. Fixed-profile |
| 36 | flattening gives an actual homotopic C1 family, smooth in the angular variable, |
| 37 | with continuous first and second angular jets and the same length/area bounds. |
| 38 | |
| 39 | For each compact smooth Ricci flow on [a,b] in dimension n>=3, choose one |
| 40 | actual M63 geometry, with constants and circle products before circumference |
| 41 | or curve. Two C2 shrinking ramps of initial degree one, joined by an actual |
| 42 | initial annulus, have nonempty annular area classes at all included times. |
| 43 | Their nonnegative infimum mu is continuous on [a,b]. For a<=t<b its upper |
| 44 | forward derivative is at most (2*n-1)*RmSup(t)*mu(t), where RmSup is the |
| 45 | actual full curvature norm supremum. For a<=s<=t<=b it also satisfies |
| 46 | mu(t)<=exp((2*n-1)*K0*(t-s))*mu(s), with the separate original unit-input |
| 47 | bound K0. No equality between K0 and the full norm is asserted. |
| 48 | |
| 49 | For every r>0 choose a positive area threshold before circumference, time |
| 50 | and curves. Any two periodic C2 positive-slope ramps, of arbitrary positive |
| 51 | degree, obey L1>=3*L0/4 if L0>=r, every first-curve subarc of length at most |
| 52 | r has total curvature less than 1/200, and an actual joining annulus has |
| 53 | area below that threshold. The intrinsic counterpart holds for every |
| 54 | 0<delta<1/100, r>0 and real Gaussian upper bound K: choose mu>0 before |
| 55 | the annulus; L0>r, absolute boundary turning less than delta on all subarcs |
| 56 | of length at most r, Gaussian curvature at most K and area<mu imply the |
| 57 | same length comparison. |
| 58 | |
| 59 | Projection gives the literal base annulus and does not increase its area. |
| 60 | In dimension three it glues disks in both quantified directions, with the |
| 61 | projected annulus area and arbitrary positive slack. Nonempty disk classes |
| 62 | then give the absolute filling-infimum comparison. Every raw continuous C1 |
| 63 | sphere family has finitely many actual parameter nodes and one positive |
| 64 | circumference cutoff; each member uses one node for all smaller positive |
| 65 | circumferences, with an actual annulus of any prescribed positive area bound. |
| 66 | |
| 67 | On the same three-dimensional geometry, the every-N approximation retains |
| 68 | its exact M63 solution family, initial/global length and total-curvature |
| 69 | bounds, and uniform intrinsic derivative estimates. Applied curve estimates |
| 70 | use those same solutions and K0,K1,K2. In particular their energy is |
| 71 | integrable, and for circumference<1 is bounded by |
| 72 | (sup(initial base lengths)+1)*exp(K2*(b-a)), as the checked family adapter |
| 73 | shows. Apply m64EvolvingApproximation_from_M63 to each supplied static |
| 74 | N-gon approximation; its checked equality retains that literal record. |
| 75 | |
| 76 | Sources: Morgan--Tian Definition 19.18, Claims 19.19-19.20 and Corollary |
| 77 | 19.21, pp. 450-451; Lemma 19.17 and Claim 19.22, pp. 449-453; Lemma |
| 78 | 19.15 and Corollary 19.16, pp. 447-449; Lemma 19.31, pp. 462, 464-466; |
| 79 | Proposition 19.35, pp. 467-481; finite nets and disk comparisons, pp. 461-466. |
| 80 | Retain the 2015 Section 19.2 correction, pp. 8-9. The annular existence and |
| 81 | regularity route uses Morrey's ICM1950 lecture, AMS1952 pp. 181-185, and |
| 82 | Lemaire1982 Theorem 1.7, p. 94, with Remark 5.5, p. 102. The source-class |
| 83 | transports, harmonic-circle branch exclusion, initial-homotopy guard, |
| 84 | endpoint passage, norm distinction, focusing and length-loss repairs are |
| 85 | owned here; see reviews/contracts/M64-round1.md and |
| 86 | reviews/errata/2026-09-14-m64-annulus-comparison.md. -/ |
| 87 | theorem m64AnnulusComparison (hM63 : M63RampEstimatesTheory.{u}) : |
| 88 | M64ComparisonTheory.{u} := by |
| 89 | exact m64ComparisonTheory_from_M63 hM63 |
| 90 | |
| 91 | /-- Concrete predecessor application; no additional admission is introduced. Source: |
| 92 | Morgan--Tian (2007), Chapter 19, Sections 19.3-19.7, pp. 447-481; frozen M64 comparison |
| 93 | contract and `reviews/errata/2026-09-14-m64-annulus-comparison.md`. -/ |
| 94 | theorem m64AnnulusComparison_from_predecessors : M64ComparisonTheory.{u} := |
| 95 | m64AnnulusComparison m63RampEstimates_from_predecessors |
| 96 | |
| 97 | end PoincareMT |