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.Riemannian.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.Riemannian.ScalarOperators |
| 3 | import PoincareLib.Geometry.RicciFlow.Basic |
| 4 | |
| 5 | /-! |
| 6 | Adapted from Mapher `PoincareMT/Statements/M47ScalarPersistence.lean` at |
| 7 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 8 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 9 | -/ |
| 10 | |
| 11 | /-! |
| 12 | # M47 local scalar persistence support |
| 13 | |
| 14 | The conclusion uses only the actual flow, initial metric ball and curvature |
| 15 | bounds. M04 services are separate proof inputs. The cutoff and local comparison |
| 16 | argument belong to M47's existing admission, not to the surgery hypotheses. |
| 17 | |
| 18 | Sources: Morgan--Tian equation (3.7), p. 41, and the local-cover/cutoff argument |
| 19 | on pp. 52--54. Keep the full-slab correction MT-SHI-CUTOFF-SPACETIME. |
| 20 | See reviews/contracts/2026-09-15-m47-scalar-persistence-round1.md. |
| 21 | -/ |
| 22 | |
| 23 | set_option autoImplicit false |
| 24 | |
| 25 | open scoped Manifold ContDiff Bundle |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT |
| 30 | |
| 31 | /-- The three actual M04 services used by the local comparison argument. -/ |
| 32 | structure M47ScalarPersistencePredecessors : Prop where |
| 33 | tensor_calculus : |
| 34 | ∀ (M : Type u) [TopologicalSpace M] |
| 35 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 36 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g), D.CurvatureTensorCalculus |
| 37 | scalar_regular : |
| 38 | ∀ (M : Type u) [TopologicalSpace M] |
| 39 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 40 | (J : Set ℝ) (F : RicciFlow 3 M J), |
| 41 | ContMDiffOn ((𝓘(ℝ, ℝ)).prod (𝓡 3)) (𝓘(ℝ, ℝ)) ∞ |
| 42 | (fun p : ℝ × M ↦ (F.connection p.1).scalarCurvature p.2) (J ×ˢ Set.univ) |
| 43 | scalar_evolution : |
| 44 | ∀ (M : Type u) [TopologicalSpace M] |
| 45 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 46 | (J : Set ℝ) (F : RicciFlow 3 M J) (t : ℝ), t ∈ J → ∀ x : M, |
| 47 | HasDerivWithinAt (fun s ↦ (F.connection s).scalarCurvature x) |
| 48 | ((F.connection t).laplacian (F.connection t).scalarCurvature x + |
| 49 | 2 * (F.connection t).ricciNormSq x) J t |
| 50 | |
| 51 | /-- A positive scalar patch persists at its center for a uniform short time. |
| 52 | The initial bound is on the whole ball; both spacetime bounds use that same |
| 53 | fixed initial ball. The duration is chosen before the manifold and flow. -/ |
| 54 | def M47LocalScalarPersistenceStatement : Prop := |
| 55 | ∀ K a : ℝ, 0 < K → 0 < a → |
| 56 | ∃ tau : ℝ, 0 < tau ∧ tau ≤ 1 ∧ |
| 57 | ∀ (M : Type u) [TopologicalSpace M] |
| 58 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 59 | [T2Space M] [SecondCountableTopology M], |
| 60 | ∀ T : ℝ, 0 < T → |
| 61 | ∀ (F : RicciFlow 3 M (Set.Icc 0 T)) (p : M), |
| 62 | IsCompact (closure ((F.metric 0).ball p a)) → |
| 63 | (∀ t ∈ Set.Icc 0 T, ∀ x ∈ (F.metric 0).ball p a, |
| 64 | (F.connection t).curvatureTensorNorm x ≤ K) → |
| 65 | (∀ t ∈ Set.Icc 0 T, ∀ x ∈ (F.metric 0).ball p a, |
| 66 | -1 ≤ (F.connection t).scalarCurvature x) → |
| 67 | (∀ x ∈ (F.metric 0).ball p a, |
| 68 | 3 / 4 ≤ (F.connection 0).scalarCurvature x) → |
| 69 | ∀ t ∈ Set.Icc 0 (min T tau), 1 / 4 ≤ (F.connection t).scalarCurvature p |
| 70 | |
| 71 | end PoincareMT |