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.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cylinder.CylinderChart |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Basic.LocalCalibratedImageVolume |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Neck.NeckCoordinates |
| 5 | |
| 6 | /-! |
| 7 | # The actual retained negative-neck chart and its volume |
| 8 | |
| 9 | The retained collar maps in Theorem 13.2, MT pp. 332-333, form a genuine |
| 10 | partial diffeomorphism. Their exact metric identity preserves calibrated |
| 11 | volume on every measurable subset of the negative half-neck. This is the |
| 12 | local volume transport in the Uniform Seed no-crossing alternative. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.Proofs.M47 |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | {g : RiemannianMetric 3 M} {g0 : StandardInitialMetric} |
| 28 | {K : MetricSurgeryConstants} {I : MetricSurgeryInput K g} |
| 29 | |
| 30 | /-- The actual supplied collapse and inverse give a smooth chart on the |
| 31 | negative half-neck, retaining their literal maps, Theorem 13.2. -/ |
| 32 | noncomputable def retainedNegativeChart (R : MetricSurgeryResult g0 I) : |
| 33 | PartialDiffeomorph (𝓡 3) (𝓡 3) M R.output.carrier ∞ := by |
| 34 | let U := I.neck.region (-I.neck.epsilon⁻¹) 0 |
| 35 | have hsub : U ⊆ I.neck.region (-I.neck.epsilon⁻¹) 1 := |
| 36 | fun _ hy => ⟨hy.1, hy.2.1, hy.2.2.trans zero_lt_one⟩ |
| 37 | have hf := R.retained_smooth.mono hsub |
| 38 | have hi := R.retained_inverse_smooth.mono (image_mono hsub) |
| 39 | have hleft : LeftInvOn R.retained_inverse R.collapse U := |
| 40 | fun _ hx => R.retained_left_inverse (hsub hx) |
| 41 | exact { |
| 42 | toFun := R.collapse |
| 43 | invFun := R.retained_inverse |
| 44 | source := U |
| 45 | target := R.collapse '' U |
| 46 | map_source' := fun _ hx => mem_image_of_mem _ hx |
| 47 | map_target' := by |
| 48 | rintro _ ⟨x, hx, rfl⟩ |
| 49 | rwa [hleft hx] |
| 50 | left_inv' := fun _ hx => hleft hx |
| 51 | right_inv' := fun _ hy => R.retained_right_inverse (image_subset_range _ _ hy) |
| 52 | open_source := M36.neck_region_isOpen I.neck _ _ |
| 53 | open_target := Poincare.isOpen_image_of_smooth_leftInvOn |
| 54 | (M36.neck_region_isOpen I.neck _ _) hf hi hleft |
| 55 | contMDiffOn_toFun := hf |
| 56 | contMDiffOn_invFun := hi } |
| 57 | |
| 58 | variable [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 59 | |
| 60 | /-- Every measurable negative-neck subset has exactly its original |
| 61 | calibrated volume after collapse, without a finiteness or cutoff premise. |
| 62 | Theorem 13.2 and the Uniform Seed construction, pp. 332-333 and 392-393. -/ |
| 63 | theorem retained_negative_volume_eq (R : MetricSurgeryResult g0 I) |
| 64 | {A : Set M} (hA : MeasurableSet A) |
| 65 | (hAU : A ⊆ I.neck.region (-I.neck.epsilon⁻¹) 0) : |
| 66 | calibratedMetricVolume R.metric (R.collapse '' A) = calibratedMetricVolume g A := by |
| 67 | let e := retainedNegativeChart R |
| 68 | have hmap : (e.toOpenPartialHomeomorph : M → R.output.carrier) = R.collapse := rfl |
| 69 | have hnorm (x : M) (hx : x ∈ e.source) (v : TangentSpace (𝓡 3) x) : |
| 70 | R.metric.tangentNorm (R.collapse x) |
| 71 | (mfderiv (𝓡 3) (𝓡 3) R.collapse x v) = g.tangentNorm x v := |
| 72 | congrArg Real.sqrt (R.retained_metric x (Or.inl hx) v v) |
| 73 | have hf := e.contMDiffOn.of_le (show (1 : ℕ∞ω) ≤ (∞ : ℕ∞ω) by simp) |
| 74 | have hi := e.contMDiffOn_invFun.of_le (show (1 : ℕ∞ω) ≤ (∞ : ℕ∞ω) by simp) |
| 75 | have hupper := M34.calibratedMetricVolume_image_le_of_local_tangentNorm_le |
| 76 | g R.metric e.toOpenPartialHomeomorph hf (C := 1) zero_lt_one |
| 77 | (fun x hx v => by |
| 78 | change R.metric.tangentNorm (R.collapse x) |
| 79 | (mfderiv (𝓡 3) (𝓡 3) R.collapse x v) ≤ 1 * g.tangentNorm x v |
| 80 | simpa only [one_mul] using (hnorm x hx v).le) hA hAU |
| 81 | have hlower := M34.calibratedMetricVolume_le_mul_image_of_local_tangentNorm_lower |
| 82 | g R.metric e.toOpenPartialHomeomorph hf hi (C := 1) zero_lt_one |
| 83 | (fun x hx v => by |
| 84 | change g.tangentNorm x v ≤ 1 * R.metric.tangentNorm (R.collapse x) |
| 85 | (mfderiv (𝓡 3) (𝓡 3) R.collapse x v) |
| 86 | simpa only [one_mul] using (hnorm x hx v).ge) hA hAU |
| 87 | exact le_antisymm |
| 88 | (by simpa only [hmap, ENNReal.ofReal_one, one_pow, one_mul] using hupper) |
| 89 | (by simpa only [hmap, ENNReal.ofReal_one, one_pow, one_mul] using hlower) |
| 90 | |
| 91 | end PoincareMT.Proofs.M47 |