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.Ordinary.Capture.OrdinaryCaptureFullMeasure |
| 2 | |
| 3 | /-! |
| 4 | # The complete ordinary-capture conclusion |
| 5 | |
| 6 | Morgan-Tian Definition 6.25, Lemma 6.71 and Proposition 7.5, |
| 7 | pp. 116, 141, 151-152. Exact captured competitors, normalized |
| 8 | exponential branches, and the actual slice metric supply every |
| 9 | frozen ordinary-capture clause. The output retains precisely the |
| 10 | M08, M09 and M10 values selected from the caller's supplied providers. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | |
| 25 | section Capture |
| 26 | |
| 27 | variable {C : Type u} [TopologicalSpace C] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 29 | [T3Space C] [ConnectedSpace C] [SecondCountableTopology C] |
| 30 | [MeasurableSpace C] [BorelSpace C] {K : SpacetimeInterval} |
| 31 | {e : CompatibleSpacetimeCylinder G.spacetime (G.timeIntervals.interval K) C} |
| 32 | {g : SpacetimeCylinderMetric e} {F : RicciFlow n C K.domain} {T τmax : ℝ} |
| 33 | (D : M14OrdinaryCaptureData G C K e g F T τmax) |
| 34 | (hCoordinates : SpacetimeGaugeTheory.{u, u} G.leafwise G.timeIntervals) |
| 35 | (hPath : M14PathCalculusConclusion G) |
| 36 | |
| 37 | omit [T3Space C] [ConnectedSpace C] [SecondCountableTopology C] |
| 38 | [MeasurableSpace C] [BorelSpace C] in |
| 39 | private theorem capture_regular_base_cast {a b q : C} {τ : ℝ} (h : a = b) |
| 40 | (r : ReducedLengthRegularPoint F T τmax a q τ) : |
| 41 | (h ▸ r : ReducedLengthRegularPoint F T τmax b q τ).path.curve = r.path.curve := by |
| 42 | cases h |
| 43 | rfl |
| 44 | |
| 45 | include D hCoordinates hPath |
| 46 | |
| 47 | /-- Every supplied captured stable minimizing path is exactly the |
| 48 | path of an ordinary regular-point witness, Proposition 7.5, |
| 49 | pp. 151-152. -/ |
| 50 | theorem ordinaryCapture_regular_locus |
| 51 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 52 | {τ : ℝ} {x : G.Point} (E : M14ExponentialFamily G T x) |
| 53 | (H : M14StableSet G T τ x E) (hmax : τ < τmax) (hx : x ∈ range e.toSpacetime) |
| 54 | (Z : G.Horizontal x) (hZ : Z ∈ H.carrier) |
| 55 | (p : M14BackwardPath G T 0 τ x (H.endpoint_map Z)) (hp : M14IsMinimizing p) |
| 56 | (hc : ∀ s ∈ Icc 0 τ, p.curve s ∈ range e.toSpacetime) : |
| 57 | ∃ r : ReducedLengthRegularPoint F T τmax |
| 58 | (D.point_map x) (D.point_map (H.endpoint_map Z)) τ, |
| 59 | r.path.curve = (D.path_map 0 τ x (H.endpoint_map Z) p hc).curve := by |
| 60 | rcases hx with ⟨⟨t₀, c₀⟩, rfl⟩ |
| 61 | have hT : T = t₀.val := E.base_time.symm.trans (e.time_eq (t₀, c₀)) |
| 62 | subst T |
| 63 | obtain ⟨r, hr⟩ := |
| 64 | ordinaryCapture_regular_point_at_cylinder t₀ c₀ D hCoordinates hPath hDifferential E H |
| 65 | hmax Z hZ p hp hc |
| 66 | let hbase := (D.point_map_on_cylinder t₀ c₀).symm |
| 67 | exact ⟨hbase ▸ r, (capture_regular_base_cast hbase r).trans hr⟩ |
| 68 | |
| 69 | /-- The exact stable image has full measure in the captured part of |
| 70 | every interior slice for any captured basepoint, Proposition 7.5, |
| 71 | pp. 151-152. -/ |
| 72 | theorem ordinaryCapture_stable_full_measure |
| 73 | (hL : LGeodesicTheory F T τmax) |
| 74 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 75 | (hwindow : Icc (T - τmax) T ⊆ K.domain) |
| 76 | {τ : ℝ} {x : G.Point} (E : M14ExponentialFamily G T x) |
| 77 | (H : M14StableSet G T τ x E) (hmax : τ < τmax) (hx : x ∈ range e.toSpacetime) : |
| 78 | calibratedMetricVolume (G.slices (T - τ)).metricOnPoints |
| 79 | ({q | q.val ∈ range e.toSpacetime} \ (H.endpoint_slice_map '' H.carrier)) = 0 := by |
| 80 | rcases hx with ⟨⟨t₀, c₀⟩, rfl⟩ |
| 81 | have hT : T = t₀.val := E.base_time.symm.trans (e.time_eq (t₀, c₀)) |
| 82 | subst T |
| 83 | exact ordinaryCapture_full_measure_at_cylinder t₀ c₀ D hCoordinates hPath |
| 84 | hL hDifferential hwindow E H hmax |
| 85 | |
| 86 | end Capture |
| 87 | |
| 88 | /-- The complete frozen ordinary-capture statement follows from the |
| 89 | actual gauge and path calculus while retaining the caller's exact |
| 90 | ordinary provider choices, Lemma 6.71 and Proposition 7.5, |
| 91 | pp. 141, 151-152. -/ |
| 92 | theorem ordinaryCaptureStatement |
| 93 | (hCoordinates : SpacetimeGaugeTheory.{u, u} G.leafwise G.timeIntervals) |
| 94 | (hPath : M14PathCalculusConclusion G) (O : M14OrdinaryProviders.{u} n) : |
| 95 | M14OrdinaryCaptureStatement G O := by |
| 96 | intro C _ _ _ _ _ _ _ _ K e g F T τmax hT hτmax hwindow hcurvature D |
| 97 | let L := Classical.choice (O.m08 C K.domain F T τmax hT hτmax hwindow hcurvature) |
| 98 | let Dlength := Classical.choice (O.m09 C K.domain F T τmax hT hτmax hwindow hcurvature L) |
| 99 | let V := Classical.choice (O.m10 C K.domain F T τmax hT hτmax hwindow hcurvature L Dlength) |
| 100 | refine ⟨{ |
| 101 | L := L |
| 102 | Dlength := Dlength |
| 103 | V := V |
| 104 | action_transport := fun _ _ _ _ p hc => ordinaryCapture_action_transport D hCoordinates p hc |
| 105 | captured_action_value_eq := fun _ _ _ _ _ _ hmax hx _ => |
| 106 | ordinaryCapture_actionValue_eq D hmax hx |
| 107 | reduced_length_transport := fun _ _ _ hτ hmax htx hty hx hy => |
| 108 | ordinaryCapture_reducedLength_transport D hCoordinates hτ hmax htx hty hx hy |
| 109 | minimizing_transport := fun _ _ _ _ hmax hx p hc => |
| 110 | ordinaryCapture_minimizing_transport D hCoordinates hmax hx p hc |
| 111 | regular_locus_transport := fun _ _ _ hmax hx E H Z hZ _ p hp _ hc => |
| 112 | ordinaryCapture_regular_locus D hCoordinates hPath Dlength E H hmax hx Z hZ p hp hc |
| 113 | volume_transport := fun _ _ _ H hmax hx => |
| 114 | ordinaryCapture_volume_transport D hCoordinates hwindow H hmax hx |
| 115 | endpoint_image_captured := fun _ _ _ H hmax hx => ordinaryCapture_endpoint_image D H hmax hx |
| 116 | slice_measure_transport := fun _ _ _ H hmax hx => |
| 117 | ordinaryCapture_stable_slice_measure D hCoordinates hwindow H hmax hx |
| 118 | captured_stable_image_full_measure := fun _ _ E H hmax hx => |
| 119 | ordinaryCapture_stable_full_measure D hCoordinates hPath L Dlength hwindow E H hmax hx |
| 120 | captured_slice_measure_transport := ?_ }, rfl, rfl, rfl⟩ |
| 121 | intro τ hτ hmax A hA hc |
| 122 | have ht : T - τ ∈ K.domain := |
| 123 | hwindow ⟨sub_le_sub_left hmax.le T, sub_le_self T hτ.le⟩ |
| 124 | exact ordinaryCapture_slice_measure D hCoordinates ⟨T - τ, ht⟩ hA hc |
| 125 | |
| 126 | end PoincareMT.M14 |