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.Surgery.Induction.Noncollapse.StableSet.RegularImage.SurvivalSlice |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.RegularImage.LocalNullity |
| 3 | |
| 4 | /-! |
| 5 | # Null critical values of the actual exponential survival map |
| 6 | |
| 7 | Morgan--Tian Corollary 6.67, printed p. 140. The initial horizontal |
| 8 | fiber is identified with Euclidean space using the actual base-slice |
| 9 | tangent equivalence. Sard's theorem is applied only on the survival |
| 10 | domain, and the actual slice differential is identified with the frozen |
| 11 | horizontal exponential differential. The stable endpoint map is not used. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | -- The supplied slice tangent equivalences retain their chosen norm instances. |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set MeasureTheory |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.Proofs.M46 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 26 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 27 | {T tau : ℝ} {x : G.Point} |
| 28 | |
| 29 | /-- The image of the noninvertible actual exponential differentials on |
| 30 | the whole survival domain is null in the selected slice metric, |
| 31 | Corollary 6.67, p. 140. -/ |
| 32 | theorem exponential_survival_criticalValues_null |
| 33 | (E : M14ExponentialFamily G T x) (htau : 0 ≤ tau) |
| 34 | (q0 : (G.slices (T - tau)).Point) : |
| 35 | calibratedMetricVolume (G.slices (T - tau)).metricOnPoints |
| 36 | (survivalSliceMap E tau htau q0 '' |
| 37 | {Z | ∃ hZ : (Z, Real.sqrt tau) ∈ E.domain, |
| 38 | ¬ Function.Bijective (E.differential Z (Real.sqrt tau) hZ)}) = 0 := by |
| 39 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 40 | let : NormedAddCommGroup (G.Horizontal x) := |
| 41 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 42 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 43 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 44 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 45 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 46 | let e : EuclideanSpace ℝ (Fin n) ≃L[ℝ] G.Horizontal x := |
| 47 | (G.slices T).tangentEquiv ⟨x, E.base_time⟩ |
| 48 | let f := survivalSliceMap E tau htau q0 |
| 49 | let D : Set (EuclideanSpace ℝ (Fin n)) := |
| 50 | {v | (e v, Real.sqrt tau) ∈ E.domain} |
| 51 | have hf (v : EuclideanSpace ℝ (Fin n)) (hv : v ∈ D) : |
| 52 | MDifferentiableAt (𝓘(ℝ, G.Horizontal x)) (𝓡 n) f (e v) := |
| 53 | (survivalSliceMap_smooth E htau q0 hv).mdifferentiableAt (by simp) |
| 54 | have hcomp (v : EuclideanSpace ℝ (Fin n)) (hv : v ∈ D) : |
| 55 | MDifferentiableAt (𝓡 n) (𝓡 n) (f ∘ e) v := |
| 56 | (hf v hv).comp v e.mdifferentiableAt |
| 57 | have hnull := survival_criticalValues_null (G.slices (T - tau)).metricOnPoints D hcomp |
| 58 | apply measure_mono_null _ hnull |
| 59 | rintro q ⟨Z, ⟨hZ, hcritical⟩, rfl⟩ |
| 60 | have hv : e.symm Z ∈ D := by simpa only [D, mem_ofPred_eq, e.apply_symm_apply] using hZ |
| 61 | refine ⟨e.symm Z, ⟨hv, ?_⟩, by simp only [Function.comp_apply, e.apply_symm_apply, f]⟩ |
| 62 | intro hbij |
| 63 | apply hcritical |
| 64 | apply (survivalSliceMap_differential_bijective_iff E htau q0 hZ).mp |
| 65 | have hchain := mfderiv_comp (e.symm Z) (hf (e.symm Z) hv) e.mdifferentiableAt |
| 66 | rw [ContinuousLinearEquiv.mfderiv_eq, e.apply_symm_apply] at hchain |
| 67 | rw [hchain] at hbij |
| 68 | exact (Function.Bijective.of_comp_iff _ e.bijective).mp hbij |
| 69 | |
| 70 | end PoincareMT.Proofs.M46 |