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.Differential.ExponentialJacobiPhase |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Minimizing.ExponentialMeetingVelocity |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialJacobiZero |
| 4 | import Mathlib.Topology.VectorBundle.FiniteDimensional |
| 5 | |
| 6 | /-! |
| 7 | # Strict minimizing prefixes are nonconjugate |
| 8 | |
| 9 | Morgan-Tian Proposition 6.30, pp. 118-119. The actual smooth broken |
| 10 | cost forces a kernel direction to have zero coordinate phase at the |
| 11 | meeting time. This is the actual Jacobi phase, whose uniqueness and |
| 12 | initial normalization force the initial direction to be zero. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M14 |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 25 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 26 | {T : ℝ} {x : G.Point} |
| 27 | |
| 28 | /-- The actual exponential differential has trivial kernel strictly |
| 29 | before the endpoint of a minimizing branch, Proposition 6.30, |
| 30 | pp. 118-119. No completeness or compactness of the ambient flow is used. -/ |
| 31 | theorem exponential_prefix_kernel_eq_zero |
| 32 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 33 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 34 | (E : M14ExponentialFamily G T x) (Z W : G.Horizontal x) |
| 35 | {b c : ℝ} (hb : (Z, b) ∈ E.domain) (hc : c ∈ Ioo 0 b) |
| 36 | (hmin : M14IsMinimizing (E.path Z b hb (hc.1.trans hc.2))) |
| 37 | (hZ : (Z, c) ∈ E.domain) (hker : E.differential Z c hZ W = 0) : W = 0 := by |
| 38 | obtain ⟨j, V, lift, hV, hcenter, hlift, hright, _⟩ := |
| 39 | exists_smooth_gauge_lift G (E.gamma Z c) |
| 40 | obtain ⟨U, hU, hzero, hsurv, _⟩ := |
| 41 | exists_exponentialLine_endpointFamily hM04 hM12 E Z W hb hc j lift hV hlift hright hcenter |
| 42 | have hcoordinate := exponentialLine_coordinate_deriv_eq_zero E Z W hU hzero hsurv hc hZ hker |
| 43 | j lift ((hlift _ hcenter).contMDiffAt (hV.mem_nhds hcenter)) |
| 44 | have hvelocity := exponential_meetingVelocity_deriv_eq_zero hCoordinates hM04 hM12 E Z W hb hc |
| 45 | hmin hZ hker j lift hV hlift hright hcenter |
| 46 | obtain ⟨hfield, hderiv⟩ := exponentialJacobiField_zero_of_coordinate_phase hM04 hM12 E Z W hb hc |
| 47 | hU hzero hsurv j lift hV hlift hright hcenter hcoordinate hvelocity |
| 48 | have hcC : c ∈ M14SqrtParameterInterval 0 (b ^ 2) := by |
| 49 | rw [M14SqrtParameterInterval, Real.sqrt_zero, Real.sqrt_sq (hc.1.trans hc.2).le] |
| 50 | exact ⟨hc.1.le, hc.2.le⟩ |
| 51 | exact initialValuePath_direction_eq_zero_of_phase hM04 hM12 |
| 52 | (exponentialInitialValuePath E Z b hb (hc.1.trans hc.2)) W hcC hfield hderiv |
| 53 | |
| 54 | /-- The actual exponential differential is bijective at every strict |
| 55 | positive prefix of a minimizing branch, Proposition 6.30, pp. 118-119. -/ |
| 56 | theorem exponential_prefix_differential_bijective |
| 57 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 58 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 59 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) |
| 60 | {b c : ℝ} (hb : (Z, b) ∈ E.domain) (hc : c ∈ Ioo 0 b) |
| 61 | (hmin : M14IsMinimizing (E.path Z b hb (hc.1.trans hc.2))) |
| 62 | (hZ : (Z, c) ∈ E.domain) : Function.Bijective (E.differential Z c hZ) := by |
| 63 | let L := (E.differential Z c hZ).toLinearMap |
| 64 | have hinj : Function.Injective L := (injective_iff_map_eq_zero L).mpr |
| 65 | (fun W hW => exponential_prefix_kernel_eq_zero hCoordinates hM04 hM12 E Z W hb hc hmin hZ hW) |
| 66 | let : FiniteDimensional ℝ (G.Horizontal (E.gamma Z c)) := |
| 67 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal (E.gamma Z c) |
| 68 | have hdim : Module.finrank ℝ (G.Horizontal x) = Module.finrank ℝ (G.Horizontal (E.gamma Z c)) := |
| 69 | (VectorBundle.finrank_eq ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal x).trans |
| 70 | (VectorBundle.finrank_eq ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal (E.gamma Z c)).symm |
| 71 | exact (LinearEquiv.ofInjectiveOfFinrankEq L hinj hdim).bijective |
| 72 | |
| 73 | end PoincareMT.M14 |