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.ReducedGeometry.Basic |
| 2 | import Mathlib.Order.ConditionallyCompleteLattice.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Generalized L-action and its infimum |
| 6 | |
| 7 | Morgan-Tian Definition 6.2, p. 106, and Definitions 6.25-6.27, pp. 116-117. |
| 8 | A supplied minimizing path realizes the action infimum. No existence of a |
| 9 | minimizer is inferred from finiteness of the infimum. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.M14 |
| 17 | |
| 18 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 19 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 20 | {T τ₁ τ₂ : ℝ} {x y : G.Point} |
| 21 | |
| 22 | /-- A path contributes its own action to the set in Definition 6.2, p. 106. -/ |
| 23 | theorem action_mem_actionSet (p : M14BackwardPath G T τ₁ τ₂ x y) : |
| 24 | M14BackwardLAction G p ∈ M14ActionSet G T τ₁ τ₂ x y := |
| 25 | ⟨p, rfl⟩ |
| 26 | |
| 27 | /-- Minimality gives a least action, as in Definitions 6.25-6.27, pp. 116-117. -/ |
| 28 | theorem isLeast_action_of_minimizing (p : M14BackwardPath G T τ₁ τ₂ x y) |
| 29 | (hp : M14IsMinimizing p) : |
| 30 | IsLeast (M14ActionSet G T τ₁ τ₂ x y) (M14BackwardLAction G p) := by |
| 31 | refine ⟨action_mem_actionSet p, ?_⟩ |
| 32 | rintro a ⟨q, rfl⟩ |
| 33 | exact hp q |
| 34 | |
| 35 | /-- A minimizing path supplies both finite-value hypotheses, Definition 6.27, p. 117. -/ |
| 36 | theorem finiteValueDomain_of_minimizing (p : M14BackwardPath G T τ₁ τ₂ x y) |
| 37 | (hp : M14IsMinimizing p) : M14FiniteValueDomain G T τ₁ τ₂ x y := by |
| 38 | have hleast := isLeast_action_of_minimizing p hp |
| 39 | exact ⟨⟨_, hleast.1⟩, ⟨_, hleast.2⟩⟩ |
| 40 | |
| 41 | /-- An attained action domain is finite, with no converse asserted, p. 117. -/ |
| 42 | theorem finiteValueDomain_of_attained |
| 43 | (h : M14AttainedDomain G T τ₁ τ₂ x y) : |
| 44 | M14FiniteValueDomain G T τ₁ τ₂ x y := by |
| 45 | obtain ⟨p, hp⟩ := h |
| 46 | exact finiteValueDomain_of_minimizing p hp |
| 47 | |
| 48 | /-- A minimizing path realizes the defining infimum, Definition 6.27, p. 117. -/ |
| 49 | theorem action_eq_actionValue_of_minimizing (p : M14BackwardPath G T τ₁ τ₂ x y) |
| 50 | (hp : M14IsMinimizing p) : |
| 51 | M14BackwardLAction G p = M14ActionValue G T τ₁ τ₂ x y := |
| 52 | (isLeast_action_of_minimizing p hp).csInf_eq.symm |
| 53 | |
| 54 | /-- On the finite-value domain, the infimum bounds each competitor, p. 117. -/ |
| 55 | theorem actionValue_le_action (h : M14FiniteValueDomain G T τ₁ τ₂ x y) |
| 56 | (p : M14BackwardPath G T τ₁ τ₂ x y) : |
| 57 | M14ActionValue G T τ₁ τ₂ x y ≤ M14BackwardLAction G p := |
| 58 | csInf_le h.2 (action_mem_actionSet p) |
| 59 | |
| 60 | /-- Equality with a finite action infimum characterizes minimality, p. 117. -/ |
| 61 | theorem isMinimizing_iff_action_eq_actionValue |
| 62 | (h : M14FiniteValueDomain G T τ₁ τ₂ x y) |
| 63 | (p : M14BackwardPath G T τ₁ τ₂ x y) : |
| 64 | M14IsMinimizing p ↔ |
| 65 | M14BackwardLAction G p = M14ActionValue G T τ₁ τ₂ x y := by |
| 66 | refine ⟨action_eq_actionValue_of_minimizing p, ?_⟩ |
| 67 | intro hp q |
| 68 | rw [hp] |
| 69 | exact actionValue_le_action h q |
| 70 | |
| 71 | /-- Reduced length on a minimizing path uses the absolute final time, |
| 72 | Morgan-Tian Definition 6.45, p. 129. -/ |
| 73 | theorem reducedLengthValue_eq_of_minimizing (p : M14BackwardPath G T τ₁ τ₂ x y) |
| 74 | (hp : M14IsMinimizing p) : |
| 75 | M14ReducedLengthValue G T τ₁ τ₂ x y = |
| 76 | M14BackwardLAction G p / (2 * Real.sqrt τ₂) := by |
| 77 | rw [M14ReducedLengthValue, ← action_eq_actionValue_of_minimizing p hp] |
| 78 | |
| 79 | end PoincareMT.M14 |