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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundTransfer |
| 4 | import PoincareLib.Geometry.RicciFlow.Rescaling.Construction |
| 5 | |
| 6 | /-! |
| 7 | # Scalar readout in a common round-model parametrization |
| 8 | |
| 9 | The actual model and normalized source metric two-jets have scalar values |
| 10 | six and the original source scalar divided by the component scale. The |
| 11 | parametrization is any smooth local map with invertible differential; no |
| 12 | atlas, Gauss identity or quantitative comparison is needed for the readout. |
| 13 | This supplies the scalar interpretation used in Morgan--Tian section 10.3.1, |
| 14 | printed p. 247. See the derivation in |
| 15 | `proof-work/tasks/M28/review-endpoints/2026-09-23-gauss-scalar-readout.md`. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | set_option maxSynthPendingDepth 12 |
| 22 | |
| 23 | open Set |
| 24 | open scoped Manifold ContDiff Bundle BigOperators Topology |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.M28.tube |
| 29 | |
| 30 | open PoincareMT.SpacetimeBounds |
| 31 | |
| 32 | private abbrev ScalarReadoutE := EuclideanSpace ℝ (Fin 3) |
| 33 | |
| 34 | variable {M : Type u} [TopologicalSpace M] |
| 35 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 36 | [IsManifold (𝓡 3) ∞ M] |
| 37 | |
| 38 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 39 | normedSpaceTangentSpaceVectorSpace |
| 40 | |
| 41 | /-- The smooth inverse in the frozen round certificate makes its actual |
| 42 | forward differential invertible. This is the local-coordinate input for |
| 43 | the scalar interpretation in section 10.3.1, printed p. 247. -/ |
| 44 | theorem round_forward_mfderiv_isInvertible |
| 45 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 46 | (N : SingularRoundComponent g epsilon) (x : N.model.carrier) : |
| 47 | (mfderiv (𝓡 3) (𝓡 3) N.forward x).IsInvertible := by |
| 48 | have hopen : IsOpen N.carrier := |
| 49 | N.forward_image ▸ N.forward_openEmbedding.isOpen_range |
| 50 | have hx : N.forward x ∈ N.carrier := |
| 51 | N.forward_image ▸ mem_range_self x |
| 52 | have hcomp := mfderiv_comp x |
| 53 | ((N.inverse_smooth.contMDiffAt (hopen.mem_nhds hx)).mdifferentiableAt |
| 54 | (by simp)) |
| 55 | ((N.forward_smooth x).mdifferentiableAt (by simp)) |
| 56 | have hid : mfderiv (𝓡 3) (𝓡 3) |
| 57 | (N.inverse ∘ N.forward) x = |
| 58 | ContinuousLinearMap.id ℝ (TangentSpace (𝓡 3) x) := by |
| 59 | rw [show N.inverse ∘ N.forward = id by |
| 60 | funext y |
| 61 | exact N.left_inverse y, mfderiv_id] |
| 62 | rw [hid] at hcomp |
| 63 | have hinj : Function.Injective (mfderiv (𝓡 3) (𝓡 3) N.forward x) := by |
| 64 | intro v w hvw |
| 65 | have hv := congrArg (fun L : TangentSpace (𝓡 3) x →L[ℝ] |
| 66 | TangentSpace (𝓡 3) x => L v) hcomp |
| 67 | have hw := congrArg (fun L : TangentSpace (𝓡 3) x →L[ℝ] |
| 68 | TangentSpace (𝓡 3) x => L w) hcomp |
| 69 | exact hv.trans ((congrArg |
| 70 | (mfderiv (𝓡 3) (𝓡 3) N.inverse (N.forward x)) hvw).trans hw.symm) |
| 71 | let : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 72 | unfold TangentSpace |
| 73 | infer_instance |
| 74 | let : FiniteDimensional ℝ (TangentSpace (𝓡 3) (N.forward x)) := by |
| 75 | unfold TangentSpace |
| 76 | infer_instance |
| 77 | let : T2Space (TangentSpace (𝓡 3) x) := |
| 78 | FiberBundle.t2Space (EuclideanSpace ℝ (Fin 3)) (TangentSpace (𝓡 3)) x |
| 79 | let : T2Space (TangentSpace (𝓡 3) (N.forward x)) := |
| 80 | FiberBundle.t2Space (EuclideanSpace ℝ (Fin 3)) |
| 81 | (TangentSpace (𝓡 3)) (N.forward x) |
| 82 | have hfin : Module.finrank ℝ (TangentSpace (𝓡 3) x) = |
| 83 | Module.finrank ℝ (TangentSpace (𝓡 3) (N.forward x)) := by |
| 84 | unfold TangentSpace |
| 85 | rfl |
| 86 | have hbij : Function.Bijective (mfderiv (𝓡 3) (𝓡 3) N.forward x) := by |
| 87 | refine ⟨hinj, ?_⟩ |
| 88 | exact (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hfin).mp hinj |
| 89 | exact ⟨(LinearEquiv.ofBijective |
| 90 | (mfderiv (𝓡 3) (𝓡 3) N.forward x).toLinearMap hbij).toContinuousLinearEquiv, rfl⟩ |
| 91 | |
| 92 | /-- Any genuine local parametrization reads the curvature-one model scalar |
| 93 | as six, as used in section 10.3.1, printed p. 247. -/ |
| 94 | theorem round_gauss_model_scalar_eq_six |
| 95 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 96 | (N : SingularRoundComponent g epsilon) |
| 97 | {U : Set ScalarReadoutE} (hU : IsOpen U) |
| 98 | {e : ScalarReadoutE → N.model.carrier} |
| 99 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e U) |
| 100 | (hi : ∀ y ∈ U, (mfderiv (𝓡 3) (𝓡 3) e y).IsInvertible) |
| 101 | {x : ScalarReadoutE} (hx : x ∈ U) : |
| 102 | jetScalarCurvature (metricTwoJet (N.model_metric.pullbackCoefficients e) x) = 6 := by |
| 103 | rw [jetScalarCurvature_metricTwoJet_pullback N.model_connection hU he hi hx] |
| 104 | exact N.model_scalar_eq_six (e x) |
| 105 | |
| 106 | /-- The metric scale in the frozen round comparison divides the actual |
| 107 | source scalar by that same positive scale. This is the common-chart scalar |
| 108 | readout for section 10.3.1, printed p. 247. -/ |
| 109 | theorem round_gauss_source_scalar_eq |
| 110 | [T2Space M] |
| 111 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 112 | (N : SingularRoundComponent g epsilon) (D : LeviCivitaData g) |
| 113 | {U : Set ScalarReadoutE} (hU : IsOpen U) |
| 114 | {e : ScalarReadoutE → N.model.carrier} |
| 115 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e U) |
| 116 | (hi : ∀ y ∈ U, (mfderiv (𝓡 3) (𝓡 3) e y).IsInvertible) |
| 117 | {x : ScalarReadoutE} (hx : x ∈ U) : |
| 118 | jetScalarCurvature |
| 119 | (metricTwoJet (fun y => N.scale • |
| 120 | g.pullbackCoefficients (N.forward ∘ e) y) x) = |
| 121 | D.scalarCurvature (N.forward (e x)) / N.scale := by |
| 122 | have hsource : ContMDiffOn (𝓡 3) (𝓡 3) ∞ (N.forward ∘ e) U := |
| 123 | N.forward_smooth.comp_contMDiffOn he |
| 124 | have hsourceInv : ∀ y ∈ U, |
| 125 | (mfderiv (𝓡 3) (𝓡 3) (N.forward ∘ e) y).IsInvertible := by |
| 126 | intro y hy |
| 127 | rw [mfderiv_comp y |
| 128 | ((N.forward_smooth (e y)).mdifferentiableAt (by simp)) |
| 129 | ((he.contMDiffAt (hU.mem_nhds hy)).mdifferentiableAt (by simp))] |
| 130 | exact (round_forward_mfderiv_isInvertible N (e y)).comp (hi y hy) |
| 131 | let gs : RiemannianMetric 3 M := |
| 132 | M13.scaleSmoothMetric g N.scale N.scale_pos |
| 133 | let Ds : LeviCivitaData gs := |
| 134 | M13.scaleLeviCivitaData D N.scale N.scale_pos |
| 135 | have hcoeff : (fun y => N.scale • g.pullbackCoefficients (N.forward ∘ e) y) = |
| 136 | gs.pullbackCoefficients (N.forward ∘ e) := by |
| 137 | funext y |
| 138 | ext v w |
| 139 | rfl |
| 140 | rw [hcoeff, jetScalarCurvature_metricTwoJet_pullback Ds hU hsource hsourceInv hx] |
| 141 | have hscale := M13.homothety_scalarCurvature_eq g gs |
| 142 | (Diffeomorph.refl (𝓡 3) M ∞) N.scale N.scale_pos |
| 143 | (M13.identity_metricHomothety g N.scale N.scale_pos) D Ds (N.forward (e x)) |
| 144 | simpa only [Diffeomorph.coe_refl, id_eq, Function.comp_apply] using hscale |
| 145 | |
| 146 | end PoincareMT.M28.tube |