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.Singular.RegularLimit.Canonical.Cap.VolumeUpper |
| 2 | |
| 3 | /-! # The terminal volume bound on shortened cap carriers -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | set_option backward.isDefEq.respectTransparency false |
| 7 | |
| 8 | open Set Filter MeasureTheory |
| 9 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | namespace PoincareMT.SingularTimeAssumptions |
| 14 | |
| 15 | variable {M : Type u} [TopologicalSpace M] |
| 16 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 17 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 18 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 19 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 20 | |
| 21 | /-- Restricting a captured terminal cap decreases volume and increases the |
| 22 | inverse scalar-supremum scale, preserving the strict doubled volume bound. -/ |
| 23 | theorem eventually_captured_cap_terminal_volume_bound_on_subset |
| 24 | (H : SingularTimeAssumptions F T M) (P04 : RicciFlowCurvatureTheory.{u}) |
| 25 | {A : Set (H.regularRegion P04)} (hA : IsCompact A) |
| 26 | (x₀ : H.regularRegion P04) |
| 27 | (hx₀ : 0 < (H.terminalConnection P04).scalarCurvature x₀) : |
| 28 | ∀ᶠ t in 𝓝[<] T, ∀ ht : t ∈ Ico H.reference.tMinus T, |
| 29 | ∀ N : CapCertificate (F.metric t), N.cap_constant ≤ H.constant → |
| 30 | N.connection = F.connection t → |
| 31 | H.reference.inverse t ht '' N.carrier ⊆ Subtype.val '' A → |
| 32 | H.reference.forward t ht x₀ ∈ N.core → |
| 33 | ∀ S : Set (H.regularRegion P04), x₀ ∈ S → |
| 34 | S ⊆ H.regularReferencePreimage P04 t ht N.carrier → |
| 35 | calibratedMetricVolume (H.terminalMetric P04) S < |
| 36 | ENNReal.ofReal (2 * H.constant) * ENNReal.ofReal |
| 37 | (scalarCurvatureSupOn (H.terminalMetric P04) (H.terminalConnection P04) S ^ |
| 38 | (-3 / 2 : ℝ)) := by |
| 39 | filter_upwards [H.eventually_captured_cap_terminal_volume_bound P04 hA x₀ hx₀] |
| 40 | with t hvolume |
| 41 | intro ht N hconstant hconnection hcapture hxcore S hxS hsub |
| 42 | let U := H.regularReferencePreimage P04 t ht N.carrier |
| 43 | have hUA : U ⊆ A := H.regularReferencePreimage_subset P04 t ht N.carrier hcapture |
| 44 | have hbdd : BddAbove ((H.terminalConnection P04).scalarCurvature '' U) := |
| 45 | (hA.image (H.terminalConnection P04).continuous_scalarCurvature).bddAbove.mono |
| 46 | (image_mono hUA) |
| 47 | have hpos : 0 < scalarCurvatureSupOn (H.terminalMetric P04) (H.terminalConnection P04) S := by |
| 48 | apply hx₀.trans_le |
| 49 | rw [scalarCurvatureSupOn, ← image_eq_range] |
| 50 | exact le_csSup (hbdd.mono (image_mono hsub)) ⟨x₀, hxS, rfl⟩ |
| 51 | have hsup : scalarCurvatureSupOn (H.terminalMetric P04) (H.terminalConnection P04) S ≤ |
| 52 | scalarCurvatureSupOn (H.terminalMetric P04) (H.terminalConnection P04) U := by |
| 53 | simp only [scalarCurvatureSupOn, ← image_eq_range] |
| 54 | exact csSup_le_csSup hbdd (Nonempty.image _ ⟨x₀, hxS⟩) (image_mono hsub) |
| 55 | have hpower := Real.rpow_le_rpow_of_nonpos hpos hsup (by norm_num : (-3 / 2 : ℝ) ≤ 0) |
| 56 | have hmeasure : calibratedMetricVolume (H.terminalMetric P04) S ≤ |
| 57 | calibratedMetricVolume (H.terminalMetric P04) U := by |
| 58 | simpa only [Generalized.Noncollapse.calibratedMetricVolume_eq_volumeMeasure] |
| 59 | using measure_mono hsub |
| 60 | exact hmeasure.trans_lt ((hvolume ht N hconstant hconnection hcapture hxcore).trans_le |
| 61 | (mul_le_mul' le_rfl (ENNReal.ofReal_le_ofReal hpower))) |
| 62 | |
| 63 | end PoincareMT.SingularTimeAssumptions |