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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/UniformIntegralCurveNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Gauge.Flow.ConjugatingFlowFamily |
| 6 | import Mathlib.Geometry.Manifold.IntegralCurve.UniformTime |
| 7 | |
| 8 | /-! |
| 9 | # Uniform-time global integral curves |
| 10 | |
| 11 | This helper exposes the pinned Mathlib continuation theorem in a native |
| 12 | structure. A common local integral-curve interval produces one global orbit |
| 13 | through every initial point. The choice of global orbit is explicit; smooth |
| 14 | dependence on the initial point remains a separate hypothesis for flow-family |
| 15 | construction. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.UniformIntegralCurveNative |
| 28 | |
| 29 | variable {n : ℕ} {M : Type u} |
| 30 | [TopologicalSpace M] [T2Space M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 32 | [IsManifold (𝓡 n) ∞ M] |
| 33 | |
| 34 | local notation "I" => 𝓡 n |
| 35 | |
| 36 | structure Data (V : (x : M) → TangentSpace I x) where |
| 37 | ε : ℝ |
| 38 | ε_pos : 0 < ε |
| 39 | local_curve : ∀ x : M, ∃ γ : ℝ → M, γ 0 = x ∧ |
| 40 | IsMIntegralCurveOn γ V (Ioo (-ε) ε) |
| 41 | |
| 42 | variable {V : (x : M) → TangentSpace I x} |
| 43 | |
| 44 | theorem exists_global_orbit |
| 45 | (V : (x : M) → TangentSpace I x) |
| 46 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 47 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M)) |
| 48 | ) (D : Data V) (x : M) : |
| 49 | ∃ γ : ℝ → M, γ 0 = x ∧ IsMIntegralCurve γ V := by |
| 50 | exact exists_isMIntegralCurve_of_isMIntegralCurveOn |
| 51 | hv D.ε_pos D.local_curve x |
| 52 | |
| 53 | noncomputable def globalOrbit |
| 54 | (V : (x : M) → TangentSpace I x) |
| 55 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 56 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M))) |
| 57 | (D : Data V) (x : M) : ℝ → M := |
| 58 | Classical.choose (exists_global_orbit V hv D x) |
| 59 | |
| 60 | theorem globalOrbit_spec |
| 61 | (V : (x : M) → TangentSpace I x) |
| 62 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 63 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M))) |
| 64 | (D : Data V) (x : M) : |
| 65 | globalOrbit V hv D x 0 = x ∧ IsMIntegralCurve (globalOrbit V hv D x) V := by |
| 66 | exact Classical.choose_spec (exists_global_orbit V hv D x) |
| 67 | |
| 68 | @[simp] theorem globalOrbit_zero |
| 69 | (V : (x : M) → TangentSpace I x) |
| 70 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 71 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M))) |
| 72 | (D : Data V) (x : M) : |
| 73 | globalOrbit V hv D x 0 = x := |
| 74 | (globalOrbit_spec V hv D x).1 |
| 75 | |
| 76 | theorem globalOrbit_isMIntegralCurve |
| 77 | (V : (x : M) → TangentSpace I x) |
| 78 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 79 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M))) |
| 80 | (D : Data V) (x : M) : |
| 81 | IsMIntegralCurve (globalOrbit V hv D x) V := |
| 82 | (globalOrbit_spec V hv D x).2 |
| 83 | |
| 84 | noncomputable def globalMap |
| 85 | (V : (x : M) → TangentSpace I x) |
| 86 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 87 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M))) |
| 88 | (D : Data V) (t : ℝ) (x : M) : M := |
| 89 | globalOrbit V hv D x t |
| 90 | |
| 91 | @[simp] theorem globalMap_zero |
| 92 | (V : (x : M) → TangentSpace I x) |
| 93 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 94 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M))) |
| 95 | (D : Data V) (x : M) : |
| 96 | globalMap V hv D 0 x = x := |
| 97 | globalOrbit_zero V hv D x |
| 98 | |
| 99 | theorem globalMap_orbit |
| 100 | (V : (x : M) → TangentSpace I x) |
| 101 | (hv : ContMDiff I (ModelWithCorners.tangent I) 1 |
| 102 | (fun x : M => (⟨x, V x⟩ : TangentBundle I M))) |
| 103 | (D : Data V) (x : M) : |
| 104 | IsMIntegralCurve (globalMap V hv D · x) V := by |
| 105 | exact globalOrbit_isMIntegralCurve V hv D x |
| 106 | |
| 107 | end PoincareMT.UniformIntegralCurveNative |
| 108 | |
| 109 | end |