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.Surgery.CanonicalInduction.Generalized.GeneralizedBridgeIsometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Generalized.GeneralizedBridgeTopology |
| 3 | |
| 4 | /-! |
| 5 | # Actual round components under the regular slice isometry |
| 6 | |
| 7 | The original curvature-one model, scale and full pulled-back tensor are |
| 8 | unchanged. The actual forward and inverse maps identify the entire image |
| 9 | component and preserve the original strict metric-jet witness. |
| 10 | Source: Morgan--Tian Definition 9.76 and Proposition 14.12. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | section Isometry |
| 24 | |
| 25 | variable {M X : Type u} [TopologicalSpace M] [TopologicalSpace X] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] |
| 28 | [IsManifold (𝓡 3) ∞ M] [IsManifold (𝓡 3) ∞ X] |
| 29 | {g : RiemannianMetric 3 M} {h : RiemannianMetric 3 X} |
| 30 | |
| 31 | /-- A genuine isometry retains the complete actual round model and its |
| 32 | full metric-jet comparison, with the same epsilon and scale. -/ |
| 33 | noncomputable def metricIsometry_pullback_round_component |
| 34 | (f : Diffeomorph (𝓡 3) (𝓡 3) M X ∞) (hf : MetricHomothety g h f 1) |
| 35 | {epsilon : ℝ} (N : SingularRoundComponent h epsilon) : |
| 36 | SingularRoundComponent g epsilon := by |
| 37 | have hi := metricHomothety_one_symm f hf |
| 38 | have hpullback : singularMetricPullback g (f.symm ∘ N.forward) = |
| 39 | singularMetricPullback h N.forward := by |
| 40 | funext y v |
| 41 | unfold singularMetricPullback |
| 42 | rw [f.symm.mfderiv_comp (by simp)] |
| 43 | simpa only [Function.comp_apply, ContinuousLinearMap.comp_apply, one_mul] using |
| 44 | hi (N.forward y) (mfderiv (𝓡 3) (𝓡 3) N.forward y (v 0)) |
| 45 | (mfderiv (𝓡 3) (𝓡 3) N.forward y (v 1)) |
| 46 | refine { |
| 47 | epsilon_pos := N.epsilon_pos |
| 48 | basepoint := f.symm N.basepoint |
| 49 | carrier := f.symm '' N.carrier |
| 50 | component_eq := by rw [N.component_eq]; exact diffeomorph_image_connectedComponent f.symm _ |
| 51 | compact := N.compact.image f.symm.continuous |
| 52 | model := N.model |
| 53 | model_compact := N.model_compact |
| 54 | model_connected := N.model_connected |
| 55 | model_metric := N.model_metric |
| 56 | model_connection := N.model_connection |
| 57 | model_curvature_one := N.model_curvature_one |
| 58 | forward := f.symm ∘ N.forward |
| 59 | inverse := N.inverse ∘ f |
| 60 | forward_image := by rw [range_comp, N.forward_image] |
| 61 | forward_openEmbedding := f.symm.toHomeomorph.isOpenEmbedding.comp N.forward_openEmbedding |
| 62 | forward_smooth := f.symm.contMDiff.comp N.forward_smooth |
| 63 | inverse_smooth := N.inverse_smooth.comp f.contMDiff.contMDiffOn ?_ |
| 64 | left_inverse := ?_ |
| 65 | right_inverse := ?_ |
| 66 | scale := N.scale |
| 67 | scale_pos := N.scale_pos |
| 68 | metric_comparison := by rw [hpullback]; exact N.metric_comparison |
| 69 | } |
| 70 | · rintro _ ⟨x, hx, rfl⟩ |
| 71 | change f (f.symm x) ∈ N.carrier |
| 72 | rw [f.apply_symm_apply] |
| 73 | exact hx |
| 74 | · intro y |
| 75 | simp only [Function.comp_apply, f.apply_symm_apply, N.left_inverse y] |
| 76 | · rintro _ ⟨x, hx, rfl⟩ |
| 77 | simp only [Function.comp_apply, f.apply_symm_apply, N.right_inverse hx] |
| 78 | |
| 79 | end Isometry |
| 80 | |
| 81 | variable {F : SurgeryFlowData.{u}} {W : M33RegularHistoryWindow F} |
| 82 | (H : M33RegularHistoryData W) {t : ℝ} (ht : t ∈ H.generalized.interval) |
| 83 | (hregular : t ∉ F.surgery_times) |
| 84 | |
| 85 | include hregular |
| 86 | |
| 87 | /-- The full round canonical alternative transfers on a regular slice, |
| 88 | with the original epsilon and actual image component. -/ |
| 89 | theorem regular_history_round_control {epsilon C : ℝ} |
| 90 | (x : (H.generalized.slice t).carrier) (N : SingularRoundComponent (F.metric t) epsilon) |
| 91 | (hx : H.history.forward t ht x ∈ N.carrier) : |
| 92 | Nonempty (GeneralizedCanonicalControl (F := H.generalized) t x epsilon C) := by |
| 93 | let f := regular_history_slice_diffeomorph H t ht hregular |
| 94 | have hf : MetricHomothety (H.generalized.metric t) (F.metric t) f 1 := by |
| 95 | intro y v w |
| 96 | change (F.metric t).inner (H.history.forward t ht y) |
| 97 | (mfderiv (𝓡 3) (𝓡 3) (H.history.forward t ht) y v) |
| 98 | (mfderiv (𝓡 3) (𝓡 3) (H.history.forward t ht) y w) = _ |
| 99 | rw [H.history.metric_pullback, one_mul] |
| 100 | refine ⟨GeneralizedCanonicalControl.round (metricIsometry_pullback_round_component f hf N) ?_⟩ |
| 101 | exact ⟨f x, hx, f.symm_apply_apply x⟩ |
| 102 | |
| 103 | end PoincareMT.M47 |