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.Pinching.OperatorReaction |
| 2 | import PoincareLib.Geometry.RicciFlow.Pinching.Persistence |
| 3 | |
| 4 | /-! |
| 5 | # Logarithmic pinching along an operator reaction trajectory |
| 6 | |
| 7 | This applies operator carrier invariance to the pointwise logarithmic |
| 8 | consumer, including the part of the carrier below its logarithmic cutoff. |
| 9 | |
| 10 | Reference: Morgan--Tian, Claims 4.30--4.31 and the argument after (4.5), p. 79. |
| 11 | -/ |
| 12 | |
| 13 | namespace Poincare.HamiltonIvey |
| 14 | |
| 15 | open scoped BigOperators |
| 16 | |
| 17 | /-- The full logarithmic inequality follows along the normalized operator ODE |
| 18 | without assumptions on differentiability of its ordered eigenvalues. -/ |
| 19 | theorem operator_reaction_logarithmic_pinching |
| 20 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 21 | [FiniteDimensional ℝ E] (hn : Module.finrank ℝ E = 3) |
| 22 | {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) |
| 23 | {A : ℝ → E →ₗ[ℝ] E} |
| 24 | (hcont : ∀ v : E, ContinuousOn (fun t => A t v) (Set.Icc a b)) |
| 25 | (hsymm : ∀ t ∈ Set.Icc a b, (A t).IsSymmetric) |
| 26 | (hderiv : ∀ t ∈ Set.Ioo a b, ∀ v : E, |
| 27 | HasDerivAt (fun s => A s v) (endomorphismReaction (A t) v) t) |
| 28 | (hinit : A a ∈ region hn a) : |
| 29 | ∀ t (ht : t ∈ Set.Icc a b), |
| 30 | let X := max (-(hsymm t ht).eigenvalues hn 2) 0 |
| 31 | 0 < X → 2 * X * (Real.log X + Real.log (1 + t) - 3) ≤ |
| 32 | 2 * LinearMap.trace ℝ E (A t) := by |
| 33 | have hpres := operator_reaction_invariance hn ha hab hcont hsymm hderiv hinit |
| 34 | intro t ht X hX |
| 35 | obtain ⟨hA, hmem⟩ := hpres t ht |
| 36 | have htrace := hA.trace_eq_sum_eigenvalues hn |
| 37 | simp only [Fin.sum_univ_succ, Fin.isValue, Fin.succ_zero_eq_one, |
| 38 | Fin.succ_one_eq_two, Finset.univ_eq_empty, Finset.sum_empty, add_zero, |
| 39 | RCLike.ofReal_real_eq_id, id_eq] at htrace |
| 40 | have h := PoincareMT.logarithmic_pinching_of_scalar_region (ha.trans ht.1) |
| 41 | (hA.eigenvalues_antitone hn (by decide : (0 : Fin 3) ≤ 1)) |
| 42 | (hA.eigenvalues_antitone hn (by decide : (1 : Fin 3) ≤ 2)) |
| 43 | (by simpa only [htrace, add_assoc] using hmem) hX |
| 44 | simpa only [X, htrace, add_assoc] using h |
| 45 | |
| 46 | end Poincare.HamiltonIvey |