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.OrdinaryCaptureAction |
| 2 | |
| 3 | /-! |
| 4 | # The actual captured slice chart |
| 5 | |
| 6 | Morgan-Tian Definition 3.38, p. 61, and Lemma 6.71, p. 141. |
| 7 | The captured cylinder identifies its ordinary spatial manifold with an |
| 8 | open subset of the selected generalized slice. Its exact inverse is |
| 9 | the supplied point map, and M12 identifies the actual pullback metric. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {C : Type u} [TopologicalSpace C] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 25 | [T3Space C] [ConnectedSpace C] [SecondCountableTopology C] |
| 26 | [MeasurableSpace C] [BorelSpace C] {K : SpacetimeInterval} |
| 27 | {e : CompatibleSpacetimeCylinder G.spacetime (G.timeIntervals.interval K) C} |
| 28 | {g : SpacetimeCylinderMetric e} {F : RicciFlow n C K.domain} {T τmax : ℝ} |
| 29 | (D : M14OrdinaryCaptureData G C K e g F T τmax) |
| 30 | (hCoordinates : SpacetimeGaugeTheory.{u, u} G.leafwise G.timeIntervals) |
| 31 | |
| 32 | include D in |
| 33 | /-- The spatial cylinder image is exactly the captured part of the |
| 34 | selected slice, Definition 3.38, p. 61. -/ |
| 35 | theorem ordinaryCapture_slice_range (t : (G.timeIntervals.interval K).Point) : |
| 36 | range (movingGaugeSliceMap e.toMovingSpacetimeGauge G.slices t) = |
| 37 | {q : (G.slices t.val).Point | q.val ∈ range e.toSpacetime} := by |
| 38 | ext q |
| 39 | constructor |
| 40 | · rintro ⟨c, rfl⟩ |
| 41 | exact ⟨(t, c), rfl⟩ |
| 42 | · intro hq |
| 43 | refine ⟨D.point_map q.val, Subtype.ext ?_⟩ |
| 44 | exact ordinaryCapture_point_reconstruct D hq t q.property |
| 45 | |
| 46 | /-- One exact partial homeomorphism presents the entire captured |
| 47 | slice, with the given point map as inverse, Definition 3.38, p. 61. -/ |
| 48 | def ordinaryCaptureSliceChart (t : (G.timeIntervals.interval K).Point) : |
| 49 | OpenPartialHomeomorph C (G.slices t.val).Point where |
| 50 | toFun := movingGaugeSliceMap e.toMovingSpacetimeGauge G.slices t |
| 51 | invFun := fun q => D.point_map q.val |
| 52 | source := univ |
| 53 | target := {q | q.val ∈ range e.toSpacetime} |
| 54 | map_source' := fun c _ => ⟨(t, c), rfl⟩ |
| 55 | map_target' := fun _ _ => mem_univ _ |
| 56 | left_inv' := fun c _ => D.point_map_on_cylinder t c |
| 57 | right_inv' := fun q hq => Subtype.ext (ordinaryCapture_point_reconstruct D hq t q.property) |
| 58 | open_source := isOpen_univ |
| 59 | open_target := by |
| 60 | rw [← ordinaryCapture_slice_range D t] |
| 61 | exact ((ordinaryCapture_movingCalculus D hCoordinates).slice_localDiffeomorph t).isOpen_range |
| 62 | continuousOn_toFun := |
| 63 | ((ordinaryCapture_movingCalculus D hCoordinates).slice_localDiffeomorph t).contMDiff.continuous |
| 64 | |>.continuousOn |
| 65 | continuousOn_invFun := |
| 66 | D.point_map_continuous.comp continuous_subtype_val.continuousOn (fun _ hq => hq) |
| 67 | |
| 68 | /-- The captured slice chart has the ordinary manifold as its entire |
| 69 | source, Definition 3.38, p. 61. -/ |
| 70 | theorem ordinaryCaptureSliceChart_source (t : (G.timeIntervals.interval K).Point) : |
| 71 | (ordinaryCaptureSliceChart D hCoordinates t).source = univ := rfl |
| 72 | |
| 73 | /-- The captured slice chart's actual spatial map is smooth, |
| 74 | Definition 3.38, p. 61. -/ |
| 75 | theorem ordinaryCaptureSliceChart_smooth (t : (G.timeIntervals.interval K).Point) : |
| 76 | ContMDiff (𝓡 n) (𝓡 n) ∞ (ordinaryCaptureSliceChart D hCoordinates t) := |
| 77 | ((ordinaryCapture_movingCalculus D hCoordinates).slice_localDiffeomorph t).contMDiff |
| 78 | |
| 79 | /-- The supplied point map on the captured slice is the smooth actual |
| 80 | inverse of the cylinder, Definition 3.38, p. 61. -/ |
| 81 | theorem ordinaryCaptureSliceChart_symm_smooth (t : (G.timeIntervals.interval K).Point) : |
| 82 | ContMDiffOn (𝓡 n) (𝓡 n) ∞ (ordinaryCaptureSliceChart D hCoordinates t).symm |
| 83 | (ordinaryCaptureSliceChart D hCoordinates t).target := by |
| 84 | let f := ordinaryCaptureSliceChart D hCoordinates t |
| 85 | intro q hq |
| 86 | let c := f.symm q |
| 87 | have hf : f c = q := f.right_inv hq |
| 88 | have hl := (ordinaryCapture_movingCalculus D hCoordinates).slice_localDiffeomorph t c |
| 89 | have hq' : q ∈ hl.localInverse.source := by |
| 90 | rw [← hf] |
| 91 | exact hl.localInverse_mem_source |
| 92 | have hagree : (f.symm : (G.slices t.val).Point → C) =ᶠ[𝓝 q] hl.localInverse := by |
| 93 | filter_upwards [hl.localInverse_open_source.mem_nhds hq'] with r hr |
| 94 | have h := hl.localInverse_right_inv hr |
| 95 | change f (hl.localInverse r) = r at h |
| 96 | exact (congrArg f.symm h).symm.trans (f.left_inv (mem_univ _)) |
| 97 | exact ((hl.localInverse_contMDiffOn.contMDiffAt |
| 98 | (hl.localInverse_open_source.mem_nhds hq')).congr_of_eventuallyEq hagree).contMDiffWithinAt |
| 99 | |
| 100 | /-- The captured chart preserves the selected ordinary and generalized |
| 101 | slice metric pairings, Definition 3.38 and Lemma 6.71, pp. 61, 141. -/ |
| 102 | theorem ordinaryCaptureSliceChart_metric (t : (G.timeIntervals.interval K).Point) |
| 103 | (c : C) (v w : TangentSpace (𝓡 n) c) : |
| 104 | (G.slices t.val).metricOnPoints.inner (ordinaryCaptureSliceChart D hCoordinates t c) |
| 105 | (mfderiv (𝓡 n) (𝓡 n) (ordinaryCaptureSliceChart D hCoordinates t) c v) |
| 106 | (mfderiv (𝓡 n) (𝓡 n) (ordinaryCaptureSliceChart D hCoordinates t) c w) = |
| 107 | (F.metric t.val).inner c v w := |
| 108 | (ordinaryCapture_movingCalculus D hCoordinates).slice_metric_eq t c v w |
| 109 | |
| 110 | end PoincareMT.M14 |