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.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Levels.PotentialLimit.Extraction |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Levels.PotentialLimit.Identities |
| 3 | import PoincareLib.Geometry.Riemannian.Splitting.ParallelGradient.Basic |
| 4 | |
| 5 | /-! |
| 6 | # Normalized source potentials on the retained pointed limit |
| 7 | |
| 8 | The limiting function is obtained from the actual centered source potentials |
| 9 | and the actual pointed embeddings. The data retain the common subsequence and |
| 10 | compact convergence of every coordinate derivative. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.ShrinkingSolitonFlow |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 25 | FlowCarrier.isManifold FlowCarrier.t3Space |
| 26 | attribute [local instance] RicciFlow.smallCarrier RicciFlow.smallChartedSpace |
| 27 | RicciFlow.smallIsManifold |
| 28 | |
| 29 | variable {M : Type u} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 31 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 32 | [SecondCountableTopology M] [ConnectedSpace M] |
| 33 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) {q : ℕ → M} |
| 34 | (L : AncientPointedGeometricConvergence |
| 35 | (fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 36 | (fun _ => G.unscaledSourceFlow.shrink.metric) |
| 37 | (fun k => equivShrink M (q k)) 1) |
| 38 | |
| 39 | structure NormalizedPotentialLimit where |
| 40 | subsequence : ℕ → ℕ |
| 41 | subsequence_strictMono : StrictMono subsequence |
| 42 | potential : L.limitCarrier.carrier → ℝ |
| 43 | potential_contMDiff : ContMDiff (𝓡 3) 𝓘(ℝ, ℝ) ∞ potential |
| 44 | potential_base : potential L.base = 0 |
| 45 | unitGradient : RiemannianMetric.HasUnitGradient (L.limitFlow.connection 0) potential |
| 46 | zeroHessian : RiemannianMetric.HasZeroHessian (L.limitFlow.connection 0) potential |
| 47 | potential_tendsto : ∀ x, |
| 48 | Tendsto (fun k => G.normalizedPotentialPullback L (subsequence k) x) |
| 49 | atTop (𝓝 (potential x)) |
| 50 | potential_jets_tendsto : |
| 51 | ∀ (z : L.limitCarrier.carrier) (m : ℕ) (K : Set (EuclideanSpace ℝ (Fin 3))), |
| 52 | IsCompact K → K ⊆ (extChartAt (𝓡 3) z).target → |
| 53 | TendstoUniformlyOn |
| 54 | (fun k => iteratedFDeriv ℝ m |
| 55 | (G.normalizedPotentialPullback L (subsequence k) ∘ (extChartAt (𝓡 3) z).symm)) |
| 56 | (iteratedFDeriv ℝ m (potential ∘ (extChartAt (𝓡 3) z).symm)) atTop K |
| 57 | |
| 58 | theorem exists_normalizedPotentialLimit |
| 59 | (hD : S.connection.CurvatureTensorCalculus) (p : M) |
| 60 | (hescape : Tendsto (fun k => (S.metric.edist p (q k)).toReal) atTop atTop) |
| 61 | (hcomplete : MetricComplete (L.limitFlow.metric 0)) : |
| 62 | Nonempty (G.NormalizedPotentialLimit L) := by |
| 63 | obtain ⟨σ, hσ, b, hb, hbase, hp, hj⟩ := |
| 64 | G.exists_normalizedPotentialPullback_smooth_limit L hD p hescape hcomplete |
| 65 | obtain ⟨_, hu, hz⟩ := G.normalizedPotential_limit_identities L hj hσ hD p hescape hb |
| 66 | exact ⟨⟨σ, hσ, b, hb, hbase, hu, hz, hp, hj⟩⟩ |
| 67 | |
| 68 | theorem normalizedPotentialPullback_eq_zero_iff |
| 69 | (k : ℕ) (hscale : S.potentialGradientScale (q (L.subsequence k)) ≠ 0) |
| 70 | (x : L.limitCarrier.carrier) : |
| 71 | G.normalizedPotentialPullback L k x = 0 ↔ |
| 72 | S.potential (G.unscaledOriginalEmbedding L k x) = S.potential (q (L.subsequence k)) := by |
| 73 | simp only [normalizedPotentialPullback, GradientShrinkingSolitonData.normalizedPotential, |
| 74 | div_eq_zero_iff, hscale, or_false, sub_eq_zero] |
| 75 | |
| 76 | end PoincareMT.ShrinkingSolitonFlow |