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.SourceNames.ReducedVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.PullbackJacobian |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.MetricBases |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.MetricJacobian |
| 5 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Measure.Chart.ChartIntegralTransport |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Theory |
| 7 | |
| 8 | /-! |
| 9 | # Calibrated measure transport on a supplied stable carrier |
| 10 | |
| 11 | Morgan-Tian Lemma 6.71, p. 141. The actual stable endpoint chart, its |
| 12 | specified metric Gram Jacobian, and the exact basis coordinate volume |
| 13 | satisfy the signed change-of-variables law. The lower M10 calibrated area |
| 14 | formula applies to the produced Euclidean chart and its smooth inverse. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 26 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 27 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 28 | |
| 29 | /-- Produce the full frozen metric-Jacobian and signed integral transport |
| 30 | data on a supplied stable carrier, Morgan-Tian Lemma 6.71, p. 141. -/ |
| 31 | theorem measureJacobianData (H : M14StableSet G T τ x E) : |
| 32 | Nonempty (M14MeasureJacobianData G T τ x E H) := by |
| 33 | classical |
| 34 | let : T2Space (G.Horizontal x) := |
| 35 | FiberBundle.t2Space (EuclideanSpace ℝ (Fin n)) G.Horizontal x |
| 36 | obtain ⟨b, hb⟩ := exists_orthonormal_horizontalBasis G x |
| 37 | let c (Z : G.Horizontal x) (_hZ : Z ∈ H.carrier) := |
| 38 | Classical.choose (exists_orthonormal_tangentBasis |
| 39 | (G.slices (T - τ)).metricOnPoints (H.endpoint_slice_map Z)) |
| 40 | have hc (Z : G.Horizontal x) (hZ : Z ∈ H.carrier) (i j : Fin n) : |
| 41 | (G.slices (T - τ)).metricOnPoints.inner (H.endpoint_slice_map Z) |
| 42 | (c Z hZ i) (c Z hZ j) = if i = j then 1 else 0 := |
| 43 | Classical.choose_spec (exists_orthonormal_tangentBasis |
| 44 | (G.slices (T - τ)).metricOnPoints (H.endpoint_slice_map Z)) i j |
| 45 | let C := b.euclideanCoordinates |
| 46 | let e := stableCoordinateChart H b |
| 47 | let ρ := M10.pullbackJacobian (G.slices (T - τ)).metricOnPoints e |
| 48 | let J : G.Horizontal x → ℝ := fun Z => ρ (C.symm Z) |
| 49 | have hJ (Z : G.Horizontal x) (hZ : Z ∈ H.carrier) : |
| 50 | J Z = M14MetricJacobianFromBasis G b c Z hZ := by |
| 51 | have hpre : b.euclideanCoordinates (C.symm Z) ∈ H.carrier := by |
| 52 | simpa only [C, ContinuousLinearEquiv.apply_symm_apply] using hZ |
| 53 | have h := pullbackJacobian_eq_metricJacobian H b c (C.symm Z) hpre |
| 54 | simpa only [J, ρ, C, e, ContinuousLinearEquiv.apply_symm_apply] using h |
| 55 | have he : ContMDiffOn (𝓡 n) (𝓡 n) 1 e e.source := |
| 56 | (stableCoordinateChart_smooth H b).of_le (by simp) |
| 57 | have hei : ContMDiffOn (𝓡 n) (𝓡 n) 1 e.symm e.target := |
| 58 | (stableCoordinateChart_symm_smooth H b).of_le (by simp) |
| 59 | have hρ : ContinuousOn ρ e.source := by |
| 60 | intro z hz |
| 61 | exact (M10.pullbackJacobian_continuousAt (G.slices (T - τ)).metricOnPoints |
| 62 | (he.contMDiffAt (e.open_source.mem_nhds hz))).continuousWithinAt |
| 63 | refine ⟨{ |
| 64 | sourceMeasure := M14HorizontalCoordinateVolume G b |
| 65 | sourceBasis := b |
| 66 | targetBasis := c |
| 67 | source_basis_orthonormal := hb |
| 68 | target_basis_orthonormal := hc |
| 69 | source_volume_eq_metric_volume := rfl |
| 70 | carrier_measurable := H.carrier_open.measurableSet |
| 71 | endpoint_measurable := H.endpoint_slice_continuous.domRestrict.measurable |
| 72 | image_measurable := e.open_target.measurableSet |
| 73 | jacobian := J |
| 74 | jacobian_eq := hJ |
| 75 | coordinate_jacobian_eq := fun Z hZ => (hJ Z hZ).trans |
| 76 | (metricJacobian_eq_coordinateJacobian b c hc Z hZ) |
| 77 | jacobian_nonnegative := fun Z => M10.pullbackJacobian_nonneg _ _ _ |
| 78 | change_of_variables := ?_ }⟩ |
| 79 | intro φ hφ |
| 80 | let f : G.Horizontal x → ℝ := fun Z => φ (H.endpoint_slice_map Z) * J Z |
| 81 | have hfcomp : f ∘ C = fun z => ρ z * φ (e z) := by |
| 82 | funext z |
| 83 | change φ (H.endpoint_slice_map (C z)) * ρ (C.symm (C z)) = |
| 84 | ρ z * φ (H.endpoint_slice_map (C z)) |
| 85 | rw [ContinuousLinearEquiv.symm_apply_apply, mul_comm] |
| 86 | have hsource := b.integrableOn_coordinateVolume_iff f H.carrier |
| 87 | have hsourceIntegral := b.setIntegral_coordinateVolume f H.carrier |
| 88 | rw [hfcomp] at hsource hsourceIntegral |
| 89 | have hφae : MeasureTheory.AEStronglyMeasurable φ |
| 90 | ((calibratedMetricVolume (G.slices (T - τ)).metricOnPoints).restrict e.target) := |
| 91 | hφ.aestronglyMeasurable |
| 92 | have htarget := M10.integrableOn_calibrated_iff_pullback |
| 93 | (G.slices (T - τ)).metricOnPoints e he hei hρ hφae |
| 94 | have htargetIntegral := M10.integralOn_calibrated_eq_pullback |
| 95 | (G.slices (T - τ)).metricOnPoints e he hei hρ hφae |
| 96 | exact ⟨hsource.trans htarget.symm, hsourceIntegral.trans htargetIntegral.symm⟩ |
| 97 | |
| 98 | /-- The exact frozen measure-transport statement follows from the produced |
| 99 | metric-Jacobian data, Morgan-Tian Lemma 6.71, p. 141. -/ |
| 100 | theorem measureTransportStatement (G : GeneralizedLGeometryTransport n X time I) : |
| 101 | M14MeasureTransportStatement G := |
| 102 | fun _ _ _ _ H => measureJacobianData H |
| 103 | |
| 104 | end PoincareMT.M14 |