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.Noncollapse.Compact.Paths.ShortTail |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Paths.PathJoin |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Theory |
| 4 | |
| 5 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_MinimumBall.lean` at |
| 6 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 7 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 8 | |
| 9 | /-! |
| 10 | # Reduced-length control on a ball around a minimum point |
| 11 | |
| 12 | Morgan-Tian Theorem 8.10, p. 177. Append a controlled tail to the M10 |
| 13 | minimum-point path, and compare with an attained minimizer at the final |
| 14 | time. Arbitrarily small smooth-join errors disappear at the level of |
| 15 | the action inequality. |
| 16 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-minimum-ball.md`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set |
| 22 | open scoped Manifold ContDiff Bundle |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.Generalized.Noncollapse |
| 27 | |
| 28 | /-- A reduced-length minimum and controlled short tails bound reduced |
| 29 | length throughout a metric ball. Source: Morgan-Tian Theorem 8.10, |
| 30 | p. 177, using the M08 minimizers and M10 minimum bound. -/ |
| 31 | theorem exists_ball_reducedLength_bound |
| 32 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 33 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 34 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 35 | [CompactSpace M] [ConnectedSpace M] |
| 36 | {J : Set ℝ} (F : RicciFlow n M J) |
| 37 | (hM04 : RicciFlowCurvatureTheory.{u}) (T taumax : ℝ) |
| 38 | (htau : 0 < taumax) (hwindow : Icc (T - taumax) T ⊆ J) |
| 39 | (hL : LGeodesicTheory F T taumax) (hV : ReducedVolumeTheory F T taumax) |
| 40 | {c b : ℝ} (hc : 0 < c) (hcb : c < b) (hb : b < taumax) |
| 41 | (g : RiemannianMetric n M) (p : M) {R C S : ℝ} |
| 42 | (hR : 0 < R) (hC : 0 ≤ C) (hS : 0 ≤ S) |
| 43 | (hnorm : ∀ t ∈ Icc c b, ∀ x (v : TangentSpace (𝓡 n) x), |
| 44 | (F.metric (T - t)).tangentNorm x v ≤ C * g.tangentNorm x v) |
| 45 | (hscalar : ∀ t ∈ Icc c b, ∀ x, |
| 46 | (F.connection (T - t)).scalarCurvature x ≤ S) : |
| 47 | ∃ q0 : M, ∀ q ∈ g.ball q0 R, |
| 48 | reducedLength F T p q b ≤ |
| 49 | (n : ℝ) / 2 + (S + (C * R / (b - c)) ^ 2) * (b - c) / 2 := by |
| 50 | have hcmax : c ≤ taumax := (hcb.trans hb).le |
| 51 | obtain ⟨q0, _, hq0⟩ := hV.minimum_bound p c hc (hcb.trans hb) |
| 52 | obtain ⟨P, hP0, hPc, hPmin, hPvalue⟩ := hL.reduced_length_attained c hc hcmax p q0 |
| 53 | obtain ⟨RP⟩ := hL.regularized_geodesic 0 c le_rfl hc hcmax P |
| 54 | (hL.euler_lagrange 0 c le_rfl hc hcmax P hPmin) |
| 55 | have hPaction : backwardLLength F T 0 c P.curve ≤ (n : ℝ) * Real.sqrt c := by |
| 56 | rw [hPvalue] at hq0 |
| 57 | have h := (div_le_iff₀ (by positivity : 0 < 2 * Real.sqrt c)).mp hq0 |
| 58 | nlinarith |
| 59 | refine ⟨q0, ?_⟩ |
| 60 | intro q hq |
| 61 | obtain ⟨Q, ⟨RQ⟩, hQc, hQb, hQaction⟩ := exists_backwardPath_short_tail |
| 62 | F hM04 T taumax htau hwindow hc hcb hb g q0 q hR hC hS |
| 63 | isClosed_closure.isCompact hq hnorm hscalar |
| 64 | obtain ⟨U, hU0, hUb, hUmin, hUvalue⟩ := |
| 65 | hL.reduced_length_attained b (hc.trans hcb) hb.le p q |
| 66 | have hsum : backwardLLength F T 0 b U.curve ≤ |
| 67 | backwardLLength F T 0 c P.curve + backwardLLength F T c b Q.curve := by |
| 68 | apply le_of_forall_pos_le_add |
| 69 | intro eta heta |
| 70 | obtain ⟨W, hW0, hWb, hWa⟩ := exists_backwardPath_concat_approx |
| 71 | F hM04 T taumax htau hwindow hc hcb hb P Q RP.path RQ |
| 72 | (hPc.trans hQc.symm) eta heta |
| 73 | exact (hUmin W (hW0.trans (hP0.trans hU0.symm)) |
| 74 | (hWb.trans (hQb.trans hUb.symm))).trans hWa |
| 75 | have hprefix : backwardLLength F T 0 c P.curve ≤ (n : ℝ) * Real.sqrt b := |
| 76 | hPaction.trans (mul_le_mul_of_nonneg_left (Real.sqrt_le_sqrt hcb.le) (Nat.cast_nonneg n)) |
| 77 | rw [hUvalue] |
| 78 | apply (div_le_iff₀ (mul_pos zero_lt_two (Real.sqrt_pos.mpr (hc.trans hcb)))).mpr |
| 79 | nlinarith |
| 80 | |
| 81 | end PoincareMT.Generalized.Noncollapse |