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.Compactness.Convergence |
| 2 | import PoincareLib.Geometry.RicciFlow.Diffeomorph |
| 3 | |
| 4 | /-! |
| 5 | # Closed source flows on the pointed carriers |
| 6 | |
| 7 | The actual diffeomorphism pullback retains the given closed flow and its |
| 8 | connection. Its metric equals the original pointed metric at the reverse |
| 9 | reference-time shift, as required by the finite retained extension. |
| 10 | |
| 11 | Reference: Morgan--Tian Proposition 5.14, pp. 90-91. The all-real-time |
| 12 | identity follows from the all-real-time input; it claims no equation |
| 13 | outside the actual closed interval. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M30 |
| 25 | |
| 26 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 27 | FlowCarrier.isManifold |
| 28 | |
| 29 | /-- The named actual source pullback has the shifted pointed metric, |
| 30 | retaining the given diffeomorphism at every real time |
| 31 | (Morgan--Tian Proposition 5.14, pp. 90-91). -/ |
| 32 | theorem pullback_source_metric_eq_shifted_pointed_metric |
| 33 | {n : ℕ} {T : ℝ} |
| 34 | (S : PointedFlowSequence n (-T / 2) (T / 2)) |
| 35 | {N : ℕ → Type u} [∀ k, TopologicalSpace (N k)] |
| 36 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (N k)] |
| 37 | [∀ k, IsManifold (𝓡 n) ∞ (N k)] |
| 38 | (F : ∀ k, RicciFlow n (N k) (Icc (-T) 0)) |
| 39 | (e : ∀ k, (S.carrier k).carrier ≃ₘ⟮𝓡 n, 𝓡 n⟯ N k) |
| 40 | (hmetric : ∀ (k : ℕ) (t : ℝ) (x : (S.carrier k).carrier) |
| 41 | (v w : TangentSpace (𝓡 n) x), |
| 42 | ((S.flow k).flow.metric t).inner x v w = |
| 43 | ((F k).metric (t - T / 2)).inner (e k x) |
| 44 | (mfderiv (𝓡 n) (𝓡 n) (e k) x v) |
| 45 | (mfderiv (𝓡 n) (𝓡 n) (e k) x w)) : |
| 46 | ∀ (k : ℕ) (t : ℝ), |
| 47 | ((F k).pullbackDiffeomorph (e k)).metric t = |
| 48 | (S.flow k).flow.metric (t + T / 2) := by |
| 49 | intro k t |
| 50 | have hext (g₁ g₂ : RiemannianMetric n (S.carrier k).carrier) |
| 51 | (hinner : g₁.inner = g₂.inner) : g₁ = g₂ := by |
| 52 | cases g₁ |
| 53 | cases g₂ |
| 54 | cases hinner |
| 55 | rfl |
| 56 | apply hext |
| 57 | funext x |
| 58 | ext v w |
| 59 | rw [RicciFlow.pullbackDiffeomorph_inner] |
| 60 | simpa only [add_sub_cancel_right] using (hmetric k (t + T / 2) x v w).symm |
| 61 | |
| 62 | end PoincareMT.M30 |