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.Generalized.ReducedGeometry.Exponential.Construction.SliceLift |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Construction.ExponentialSlices |
| 3 | |
| 4 | /-! |
| 5 | # The actual exponential endpoint in its selected time slice |
| 6 | |
| 7 | Morgan-Tian Definition 6.25 and Proposition 6.28, pp. 116-117. |
| 8 | The actual endpoint defines a smooth slice map on the open survival |
| 9 | slice. A supplied target point only totalizes it outside survival. |
| 10 | The inclusion chain rule identifies its actual manifold differential |
| 11 | with the frozen horizontal exponential differential. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- The actual slice endpoint on survival, totalized by an arbitrary |
| 28 | point of that same slice elsewhere. All geometric assertions retain |
| 29 | survival membership, Definition 6.25 and Proposition 6.28, pp. 116-117. -/ |
| 30 | noncomputable def exponentialSliceMap (E : M14ExponentialFamily G T x) |
| 31 | (τ : ℝ) (hτ : 0 ≤ τ) (q₀ : (G.slices (T - τ)).Point) (Z : G.Horizontal x) : |
| 32 | (G.slices (T - τ)).Point := by |
| 33 | classical |
| 34 | exact if hZ : (Z, Real.sqrt τ) ∈ E.domain then |
| 35 | ⟨E.gamma Z (Real.sqrt τ), by simpa only [Real.sq_sqrt hτ] using E.clock Z _ hZ⟩ |
| 36 | else q₀ |
| 37 | |
| 38 | /-- On survival the total slice map is exactly the actual exponential |
| 39 | endpoint, Proposition 6.28, p. 117. -/ |
| 40 | theorem exponentialSliceMap_val (E : M14ExponentialFamily G T x) |
| 41 | {τ : ℝ} (hτ : 0 ≤ τ) (q₀ : (G.slices (T - τ)).Point) |
| 42 | {Z : G.Horizontal x} (hZ : (Z, Real.sqrt τ) ∈ E.domain) : |
| 43 | (exponentialSliceMap E τ hτ q₀ Z).val = E.gamma Z (Real.sqrt τ) := by |
| 44 | simp only [exponentialSliceMap, dif_pos hZ] |
| 45 | |
| 46 | /-- The actual slice endpoint is smooth near every surviving vector, |
| 47 | including physical boundary times, Proposition 6.28, p. 117. -/ |
| 48 | theorem exponentialSliceMap_contMDiffAt (E : M14ExponentialFamily G T x) |
| 49 | {τ : ℝ} (hτ : 0 ≤ τ) (q₀ : (G.slices (T - τ)).Point) |
| 50 | {Z : G.Horizontal x} (hZ : (Z, Real.sqrt τ) ∈ E.domain) : |
| 51 | letI : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 52 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 53 | ContMDiffAt (𝓘(ℝ, G.Horizontal x)) (𝓡 n) ∞ (exponentialSliceMap E τ hτ q₀) Z := by |
| 54 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 55 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 56 | apply contMDiffAt_slice_of_inclusion |
| 57 | apply (exponentialFamily_gamma_slice_contMDiffAt E hZ).congr_of_eventuallyEq |
| 58 | filter_upwards [(exponentialFamily_domain_slice_isOpen E (Real.sqrt τ)).mem_nhds hZ] |
| 59 | with A hA |
| 60 | exact exponentialSliceMap_val E hτ q₀ hA |
| 61 | |
| 62 | /-- The supplied actual slice tangent equivalence carries the slice |
| 63 | map's actual differential to the frozen horizontal exponential |
| 64 | differential, Proposition 6.28, p. 117. -/ |
| 65 | theorem exponentialSliceMap_differential_val (E : M14ExponentialFamily G T x) |
| 66 | {τ : ℝ} (hτ : 0 ≤ τ) (q₀ : (G.slices (T - τ)).Point) |
| 67 | {Z : G.Horizontal x} (hZ : (Z, Real.sqrt τ) ∈ E.domain) (W : G.Horizontal x) : |
| 68 | letI : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 69 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 70 | ((G.slices (T - τ)).tangentEquiv (exponentialSliceMap E τ hτ q₀ Z) |
| 71 | (mfderiv (𝓘(ℝ, G.Horizontal x)) (𝓡 n) (exponentialSliceMap E τ hτ q₀) Z W)).val = |
| 72 | (E.differential Z (Real.sqrt τ) hZ W).val := by |
| 73 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 74 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 75 | let f := exponentialSliceMap E τ hτ q₀ |
| 76 | have hf := (exponentialSliceMap_contMDiffAt E hτ q₀ hZ).mdifferentiableAt (by simp) |
| 77 | have hi := (G.slices (T - τ)).inclusion_smooth.mdifferentiableAt |
| 78 | (x := f Z) (by simp) |
| 79 | have hchain := mfderiv_comp_apply Z hi hf W |
| 80 | have heq : ((Subtype.val : (G.slices (T - τ)).Point → G.Point) ∘ f) =ᶠ[𝓝 Z] |
| 81 | (fun A => E.gamma A (Real.sqrt τ)) := by |
| 82 | filter_upwards [(exponentialFamily_domain_slice_isOpen E (Real.sqrt τ)).mem_nhds hZ] |
| 83 | with A hA |
| 84 | exact exponentialSliceMap_val E hτ q₀ hA |
| 85 | have hd := congrArg (fun L : G.Horizontal x →L[ℝ] SpacetimeModelVector n => L W) |
| 86 | (heq.mfderiv_eq (I := 𝓘(ℝ, G.Horizontal x)) (I' := spacetimeModel n)) |
| 87 | rw [(G.slices (T - τ)).tangentEquiv_eq] |
| 88 | exact hchain.symm.trans (hd.trans (E.differential_pointwise_mfderiv Z (Real.sqrt τ) hZ W).symm) |
| 89 | |
| 90 | end PoincareMT.M14 |