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.ReducedGeometry.ReducedLength.Coordinates.PullbackExtension |
| 2 | |
| 3 | /-! |
| 4 | # Pullback derivatives of equal fields |
| 5 | |
| 6 | Extension independence identifies derivatives even when the extension |
| 7 | witnesses were obtained from separate geometric constructions. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open scoped Manifold ContDiff Bundle |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.ReducedLength |
| 17 | |
| 18 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 19 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 20 | [IsManifold (𝓡 n) ∞ M] |
| 21 | |
| 22 | local notation "E" => EuclideanSpace ℝ (Fin n) |
| 23 | |
| 24 | theorem pullbackCovariantDerivative_field_congr {J : Set ℝ} |
| 25 | (F : RicciFlow n M J) (time : ℝ → ℝ) (α : ℝ → M) |
| 26 | (Y Z : ∀ t, TangentSpace (𝓡 n) (α t)) (I : Set ℝ) |
| 27 | (HY : ParametricAlongCurveExtensionOn (n := n) I α Y) |
| 28 | (HZ : ParametricAlongCurveExtensionOn (n := n) I α Z) |
| 29 | (hYZ : ∀ t ∈ I, Y t = Z t) (s : ℝ) (hs : s ∈ I) |
| 30 | (hI : UniqueDiffWithinAt ℝ I s) |
| 31 | (hα : MDifferentiableAt (𝓘(ℝ, ℝ)) (𝓡 n) α s) : |
| 32 | pullbackCovariantDerivative F time α Y I HY s = |
| 33 | pullbackCovariantDerivative F time α Z I HZ s := by |
| 34 | let H : ParametricAlongCurveExtensionOn (n := n) I α Y := { |
| 35 | extension := HZ.extension |
| 36 | domain := HZ.domain |
| 37 | open_domain := HZ.open_domain |
| 38 | graph_mem := HZ.graph_mem |
| 39 | smooth := HZ.smooth |
| 40 | agrees := fun t ht ↦ (HZ.agrees t ht).trans (hYZ t ht).symm |
| 41 | } |
| 42 | exact pullbackCovariantDerivative_extension_independent F time α Y I HY H s hs hI hα |
| 43 | |
| 44 | theorem pullbackCovariantDerivative_curve_field_congr {J : Set ℝ} |
| 45 | (F : RicciFlow n M J) (time : ℝ → ℝ) (α β : ℝ → M) |
| 46 | (Y : ∀ t, TangentSpace (𝓡 n) (α t)) |
| 47 | (Z : ∀ t, TangentSpace (𝓡 n) (β t)) (I : Set ℝ) |
| 48 | (HY : ParametricAlongCurveExtensionOn (n := n) I α Y) |
| 49 | (HZ : ParametricAlongCurveExtensionOn (n := n) I β Z) |
| 50 | (hαβ : α = β) (hYZ : ∀ t ∈ I, (Y t : E) = Z t) |
| 51 | (s : ℝ) (hs : s ∈ I) (hI : UniqueDiffWithinAt ℝ I s) |
| 52 | (hβ : MDifferentiableAt (𝓘(ℝ, ℝ)) (𝓡 n) β s) : |
| 53 | (pullbackCovariantDerivative F time α Y I HY s : E) = |
| 54 | pullbackCovariantDerivative F time β Z I HZ s := by |
| 55 | subst β |
| 56 | exact pullbackCovariantDerivative_field_congr F time α Y Z I HY HZ hYZ s hs hI hβ |
| 57 | |
| 58 | end PoincareMT.ReducedLength |