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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Flow.Basic |
| 3 | import PoincareLib.Geometry.RicciFlow.Diffeomorph |
| 4 | import PoincareLib.Geometry.Riemannian.Homothety.Assembly |
| 5 | |
| 6 | /-! |
| 7 | # Metric data for nonempty event transport |
| 8 | |
| 9 | The source pre-flow is pulled back by the inverse of the fixed map at the |
| 10 | event's initial time. This file records the resulting factor-one metric |
| 11 | calculus and the chart-sensitive transport of `SurgeryMetricLimitOn`. |
| 12 | `EventTransportMetricCovariance` constructs the displayed data from the source |
| 13 | event by compact-uniform source-chart transport. |
| 14 | This is the regular-limit clause of Morgan--Tian Definition 15.8, |
| 15 | pp. 361-362, used in Section 17.2, pp. 409-411. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | namespace M51EventTransport |
| 29 | |
| 30 | variable {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} |
| 31 | {P : SurgeryParameters} {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 32 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 33 | |
| 34 | /-- The target metric is the source metric pulled back by `e`; |
| 35 | Definition 15.8, pp. 361-362. -/ |
| 36 | theorem pullback_metric_homothety |
| 37 | {slice' : ℝ → GeneralizedSliceCarrier.{u}} |
| 38 | (E : SurgeryEventData g₀ K P slice metric T) |
| 39 | (e : Diffeomorph (𝓡 3) (𝓡 3) |
| 40 | (slice' E.tMinus).carrier (slice E.tMinus).carrier ∞) |
| 41 | (t : Set.Ico E.tMinus T) : |
| 42 | MetricHomothety ((E.pre_flow.pullbackDiffeomorph e).metric t.1) |
| 43 | (E.pre_flow.metric t.1) e 1 := by |
| 44 | intro x v w |
| 45 | simpa only [one_mul] using |
| 46 | (E.pre_flow.pullbackDiffeomorph_inner e t.1 x v w).symm |
| 47 | |
| 48 | /-- Assemble the factor-one calculus for a pulled-back metric; |
| 49 | Definition 15.8, pp. 361-362. -/ |
| 50 | theorem pullback_metric_calculus |
| 51 | {M N : Type u} [TopologicalSpace M] |
| 52 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 53 | [IsManifold (𝓡 3) ∞ M] [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 54 | [TopologicalSpace N] |
| 55 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) N] |
| 56 | [IsManifold (𝓡 3) ∞ N] [T3Space N] [MeasurableSpace N] [BorelSpace N] |
| 57 | (g : RiemannianMetric 3 N) (e : Diffeomorph (𝓡 3) (𝓡 3) M N ∞) |
| 58 | (hf : MetricHomothety (g.pullbackOfLocalDiffeomorph e e.isLocalDiffeomorph) |
| 59 | g e 1) : |
| 60 | MetricHomothetyCalculus |
| 61 | (g.pullbackOfLocalDiffeomorph e e.isLocalDiffeomorph) g e 1 := |
| 62 | M13.metricHomothetyCalculus _ _ e 1 (by norm_num) hf |
| 63 | |
| 64 | /-- Internal producer data for the chart-sensitive metric-limit field. |
| 65 | |
| 66 | `metric_converges` is the only part of event transport that does not reduce to |
| 67 | the checked pullback and image identities. `MetricLimitTransportData.of_source` |
| 68 | in `EventTransportMetricCovariance` constructs it from the source limit; this |
| 69 | record is not a new public hypothesis of the M51 contract. |
| 70 | It packages the regular-limit clause of Definition 15.8, pp. 361-362. |
| 71 | -/ |
| 72 | structure MetricLimitTransportData |
| 73 | {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} |
| 74 | {P : SurgeryParameters} {slice slice' : ℝ → GeneralizedSliceCarrier.{u}} |
| 75 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 76 | (E : SurgeryEventData g₀ K P slice metric T) |
| 77 | (p : Diffeomorph (𝓡 3) (𝓡 3) |
| 78 | (slice E.tMinus).carrier (slice' E.tMinus).carrier ∞) where |
| 79 | metric_converges : |
| 80 | SurgeryMetricLimitOn (slice' E.tMinus) E.terminal |
| 81 | (E.pre_flow.pullbackDiffeomorph p.symm).metric E.limit_metric |
| 82 | (fun x => E.limit_identify.map (p.symm x)) |
| 83 | (p.symm ⁻¹' E.regular_limit) T |
| 84 | |
| 85 | /-- Read the transported regular-limit convergence; Definition 15.8, pp. 361-362. -/ |
| 86 | theorem MetricLimitTransportData.metricConverges |
| 87 | {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} |
| 88 | {P : SurgeryParameters} {slice slice' : ℝ → GeneralizedSliceCarrier.{u}} |
| 89 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 90 | (E : SurgeryEventData g₀ K P slice metric T) |
| 91 | (p : Diffeomorph (𝓡 3) (𝓡 3) |
| 92 | (slice E.tMinus).carrier (slice' E.tMinus).carrier ∞) |
| 93 | (D : MetricLimitTransportData E p) : |
| 94 | SurgeryMetricLimitOn (slice' E.tMinus) E.terminal |
| 95 | (E.pre_flow.pullbackDiffeomorph p.symm).metric E.limit_metric |
| 96 | (fun x => E.limit_identify.map (p.symm x)) |
| 97 | (p.symm ⁻¹' E.regular_limit) T := |
| 98 | D.metric_converges |
| 99 | |
| 100 | /-- The terminal image is unchanged after pulling back the pre-carrier; |
| 101 | Definition 15.8, pp. 361-362. -/ |
| 102 | theorem limit_identify_image_preimage |
| 103 | {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} |
| 104 | {P : SurgeryParameters} {slice slice' : ℝ → GeneralizedSliceCarrier.{u}} |
| 105 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} |
| 106 | {T : ℝ} |
| 107 | (E : SurgeryEventData g₀ K P slice metric T) |
| 108 | (p : Diffeomorph (𝓡 3) (𝓡 3) |
| 109 | (slice E.tMinus).carrier (slice' E.tMinus).carrier ∞) |
| 110 | (U : Set (slice E.tMinus).carrier) : |
| 111 | (fun x => E.limit_identify.map (p.symm x)) '' (p.symm ⁻¹' U) = |
| 112 | E.limit_identify.map '' U := by |
| 113 | ext y |
| 114 | constructor |
| 115 | · rintro ⟨x, hx, rfl⟩ |
| 116 | exact ⟨p.symm x, hx, rfl⟩ |
| 117 | · rintro ⟨x, hx, rfl⟩ |
| 118 | refine ⟨p x, ?_, ?_⟩ |
| 119 | · change p.symm (p x) ∈ U |
| 120 | simpa using hx |
| 121 | · simp |
| 122 | |
| 123 | end M51EventTransport |
| 124 | |
| 125 | end PoincareMT |