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.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialMetricContraction |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.IntrinsicRadialVariation |
| 4 | |
| 5 | /-! |
| 6 | # The actual metric lower bound on a radial cap carrier |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Concavity makes the ratio |
| 9 | of orbit radius to true radial distance nonincreasing. Its value at |
| 10 | the outer radius therefore gives a lower Euclidean quadratic bound |
| 11 | on the whole carrier, including the smooth tip. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | local notation "V" => StandardCapSpace |
| 23 | |
| 24 | variable (g : RiemannianMetric 3 V) (D : LeviCivitaData g) |
| 25 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 26 | ∀ x u v : V, |
| 27 | g.inner (standardRotation A x) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 29 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 30 | (hcomplete : MetricComplete g) (hsec : D.NonnegativeSectionalCurvature) |
| 31 | |
| 32 | include D hsec |
| 33 | |
| 34 | /-- The actual outer orbit fixes a lower angular ratio throughout |
| 35 | the entire closed radial carrier. -/ |
| 36 | theorem intrinsicWarpingQuotient_lower_on_ball {R m s : ℝ} |
| 37 | (hR : 0 < R) (hm : m ≤ intrinsicWarpingRadius g hrotation hcomplete R / R) |
| 38 | (hs : 0 ≤ s) (hsR : s ≤ R) : |
| 39 | m ≤ intrinsicWarpingQuotient g hrotation hcomplete s := by |
| 40 | rcases hs.eq_or_lt with rfl | hs' |
| 41 | · rw [intrinsicWarpingQuotient_zero] |
| 42 | exact hm.trans ((div_le_one hR).mpr |
| 43 | (intrinsicWarpingRadius_le_self g D hrotation hcomplete hsec hR.le)) |
| 44 | · have h := intrinsicWarpingRadius_ratio_antitoneOn g hrotation hcomplete D hsec |
| 45 | hs' hR hsR |
| 46 | have heq : intrinsicWarpingQuotient g hrotation hcomplete s = |
| 47 | intrinsicWarpingRadius g hrotation hcomplete s / s := by |
| 48 | apply (eq_div_iff hs'.ne').mpr |
| 49 | simpa only [mul_comm] using mul_intrinsicWarpingQuotient g hrotation hcomplete s |
| 50 | rw [heq] |
| 51 | exact hm.trans h |
| 52 | |
| 53 | /-- The literal intrinsic metric is bounded below by the square |
| 54 | of its retained positive outer angular ratio. -/ |
| 55 | theorem intrinsicSpatialMetric_inner_lower {R m : ℝ} (hR : 0 < R) (hm0 : 0 ≤ m) |
| 56 | (hm : m ≤ intrinsicWarpingRadius g hrotation hcomplete R / R) |
| 57 | {x : V} (hxR : ‖x‖ ≤ R) (v : V) : |
| 58 | m ^ 2 * inner ℝ v v ≤ (intrinsicSpatialMetric g hrotation hcomplete).inner x v v := by |
| 59 | let q := intrinsicWarpingQuotient g hrotation hcomplete ‖x‖ |
| 60 | have hmq : m ≤ q := intrinsicWarpingQuotient_lower_on_ball |
| 61 | g D hrotation hcomplete hsec hR hm (norm_nonneg x) hxR |
| 62 | have hq0 : 0 ≤ q := (intrinsicWarpingQuotient_pos g hrotation hcomplete _).le |
| 63 | have hq1 : q ≤ 1 := intrinsicWarpingQuotient_le_one |
| 64 | g D hrotation hcomplete hsec (norm_nonneg x) |
| 65 | have hmsq : m ^ 2 ≤ q ^ 2 := by nlinarith only [hm0, hmq, hq0] |
| 66 | have hqsq : q ^ 2 ≤ 1 := by nlinarith only [hq0, hq1] |
| 67 | have hself : 0 ≤ inner ℝ v v := real_inner_self_nonneg |
| 68 | by_cases hx : x = 0 |
| 69 | · subst x |
| 70 | rw [intrinsicSpatialMetric_inner_zero] |
| 71 | have hq : q = 1 := by simp only [q, norm_zero, intrinsicWarpingQuotient_zero] |
| 72 | rw [hq, one_pow] at hmsq |
| 73 | simpa only [one_mul] using mul_le_mul_of_nonneg_right hmsq hself |
| 74 | · rw [intrinsicSpatialMetric_inner g hrotation hcomplete hx] |
| 75 | have hproj : 0 ≤ (1 - q ^ 2) * (inner ℝ x v * inner ℝ x v) / ‖x‖ ^ 2 := |
| 76 | div_nonneg (mul_nonneg (sub_nonneg.mpr hqsq) (mul_self_nonneg _)) (sq_nonneg _) |
| 77 | exact (mul_le_mul_of_nonneg_right hmsq hself).trans (le_add_of_nonneg_right hproj) |
| 78 | |
| 79 | /-- The actual inverse-arclength differential has a uniform |
| 80 | positive lower speed on the chosen closed radial carrier. -/ |
| 81 | theorem intrinsicSpatialInverse_tangentNorm_lower {R m : ℝ} |
| 82 | (hR : 0 < R) (hm0 : 0 ≤ m) |
| 83 | (hm : m ≤ intrinsicWarpingRadius g hrotation hcomplete R / R) |
| 84 | {x : V} (hxR : ‖x‖ ≤ R) (v : V) : |
| 85 | m * ‖v‖ ≤ g.tangentNorm (intrinsicSpatialInverse g hrotation hcomplete x) |
| 86 | (mfderiv (𝓡 3) (𝓡 3) (intrinsicSpatialInverse g hrotation hcomplete) x v) := by |
| 87 | calc |
| 88 | m * ‖v‖ = Real.sqrt (m ^ 2 * inner ℝ v v) := by |
| 89 | rw [real_inner_self_eq_norm_sq, Real.sqrt_mul (sq_nonneg m), |
| 90 | Real.sqrt_sq hm0, Real.sqrt_sq (norm_nonneg v)] |
| 91 | _ ≤ Real.sqrt ((intrinsicSpatialMetric g hrotation hcomplete).inner x v v) := |
| 92 | Real.sqrt_le_sqrt (intrinsicSpatialMetric_inner_lower |
| 93 | g D hrotation hcomplete hsec hR hm0 hm hxR v) |
| 94 | _ = _ := by |
| 95 | rw [RiemannianMetric.tangentNorm, mfderiv_eq_fderiv] |
| 96 | convert! congrArg Real.sqrt (intrinsicSpatialMetric_pullback |
| 97 | g hrotation hcomplete x v v) using 1 |
| 98 | |
| 99 | end PoincareMT.M35.Uniqueness |