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 | /- |
| 2 | The quantitative lower-bound argument is adapted from AxelWorkspace, |
| 3 | released under Apache 2.0, at revision f1cdb30cabdc8781d2d3dec86d3d99ab1820f30e: |
| 4 | formalized-sources/riemannian/MorganTian/MorganTianLib/Ch05/GaussianCoordinates/JacobiLowerBound.lean. |
| 5 | Original SHA-256: 355cd07e1128e3571d76045010e3b090e4220f1b98dcf929940e23da0b29b22d |
| 6 | Changes: use the Poincare Jacobi remainder and existing reverse-triangle consumer. |
| 7 | -/ |
| 8 | import PoincareLib.Analysis.ODE.Jacobi.Basic |
| 9 | import Mathlib.Tactic.Abel |
| 10 | import Mathlib.Tactic.Linarith |
| 11 | |
| 12 | /-! |
| 13 | # Lower bounds from a Jacobi remainder |
| 14 | |
| 15 | The Jacobi ODEs supply a cubic remainder estimate through `Jacobi.Basic`. |
| 16 | The reverse triangle inequality gives a quantitative lower bound and, under |
| 17 | the explicit smallness condition, half the norm of the initial linear term. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | namespace Poincare.ODE.Jacobi |
| 23 | |
| 24 | open Set |
| 25 | |
| 26 | theorem half_norm_lower_bound_of_remainder |
| 27 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 28 | {J v : E} {C B t : ℝ} |
| 29 | (hrem : ‖J - t • v‖ ≤ C * ‖v‖ * B * t ^ 3 / 6) |
| 30 | (ht : 0 ≤ t) (hsmall : C * B * t ^ 2 ≤ 3) : |
| 31 | t * ‖v‖ / 2 ≤ ‖J‖ := by |
| 32 | have htri : ‖t • v‖ ≤ ‖J‖ + ‖J - t • v‖ := by |
| 33 | calc |
| 34 | ‖t • v‖ = ‖J - (J - t • v)‖ := by congr 1; abel |
| 35 | _ ≤ ‖J‖ + ‖J - t • v‖ := norm_sub_le _ _ |
| 36 | rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg ht] at htri |
| 37 | have hnonneg : 0 ≤ ‖v‖ := norm_nonneg v |
| 38 | have hmul := mul_le_mul_of_nonneg_right hsmall hnonneg |
| 39 | nlinarith [hrem, htri, hmul] |
| 40 | |
| 41 | /-- The cubic remainder derived from the two Jacobi ODEs. -/ |
| 42 | theorem norm_sub_linear_le |
| 43 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 44 | {R : ℝ → E →L[ℝ] E} {y v : ℝ → E} {b C : ℝ} |
| 45 | (h : IsJacobiSolOn R 0 b y v) (hR : ContinuousOn R (Icc 0 b)) |
| 46 | (hC : ∀ s ∈ Icc 0 b, ‖R s‖ ≤ C) (hy0 : y 0 = 0) |
| 47 | {t : ℝ} (ht : t ∈ Icc 0 b) : |
| 48 | ‖y t - t • v 0‖ ≤ C * ‖v 0‖ * Real.exp (max 1 C * b) * t ^ 3 / 6 := by |
| 49 | simpa [mul_assoc] using h.norm_fst_sub_le hR hC hy0 t ht |
| 50 | |
| 51 | /-- The quantitative reverse-triangle lower bound for a Jacobi solution. -/ |
| 52 | theorem jacobi_norm_lower_bound |
| 53 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 54 | {R : ℝ → E →L[ℝ] E} {y v : ℝ → E} {b C : ℝ} |
| 55 | (h : IsJacobiSolOn R 0 b y v) (hR : ContinuousOn R (Icc 0 b)) |
| 56 | (hC : ∀ s ∈ Icc 0 b, ‖R s‖ ≤ C) (hy0 : y 0 = 0) |
| 57 | {t : ℝ} (ht : t ∈ Icc 0 b) : |
| 58 | (1 - C * Real.exp (max 1 C * b) * t ^ 2 / 6) * t * ‖v 0‖ ≤ ‖y t‖ := by |
| 59 | have hrem := norm_sub_linear_le h hR hC hy0 ht |
| 60 | have htri := norm_sub_norm_le (t • v 0) (y t) |
| 61 | rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg ht.1, norm_sub_rev] at htri |
| 62 | nlinarith only [hrem, htri] |
| 63 | |
| 64 | /-- The explicit smallness condition preserves half the initial linear norm. -/ |
| 65 | theorem half_norm_lower_bound |
| 66 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 67 | {R : ℝ → E →L[ℝ] E} {y v : ℝ → E} {b C : ℝ} |
| 68 | (h : IsJacobiSolOn R 0 b y v) (hR : ContinuousOn R (Icc 0 b)) |
| 69 | (hC : ∀ s ∈ Icc 0 b, ‖R s‖ ≤ C) (hy0 : y 0 = 0) |
| 70 | {t : ℝ} (ht : t ∈ Icc 0 b) |
| 71 | (hsmall : C * Real.exp (max 1 C * b) * t ^ 2 ≤ 3) : |
| 72 | t * ‖v 0‖ / 2 ≤ ‖y t‖ := by |
| 73 | exact half_norm_lower_bound_of_remainder (norm_sub_linear_le h hR hC hy0 ht) |
| 74 | ht.1 hsmall |
| 75 | |
| 76 | end Poincare.ODE.Jacobi |