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.Noncollapse.Volume.SliceTransfer |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Volume.LocalVolume |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Lemma8_8_SliceVolume.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 6 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # Compact earlier-slice volume in the actual cylinder |
| 10 | |
| 11 | Morgan-Tian Claim 8.8, pp. 174-175. The terminal-to-earlier transfer and |
| 12 | the calibrated compact-image theorem compare actual slice volumes. The |
| 13 | closed 5r/12 buffer is compact without a completeness assumption. |
| 14 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-slice-volume.md`. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.Generalized.Noncollapse |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 27 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 28 | {T r : ℝ} {x : (G.slices T).Point} {K : SpacetimeInterval} |
| 29 | {C : Type u} [TopologicalSpace C] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 31 | [T2Space C] [SecondCountableTopology C] |
| 32 | |
| 33 | /-- The actual slice image of a compact source set has the backward |
| 34 | volume bound used in Claim 8.8, pp. 174-175. -/ |
| 35 | theorem actualBallCylinder_compact_slice_image_volume_le |
| 36 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 37 | (B : M15ActualBallCylinder G T x r K C) |
| 38 | (t : (G.timeIntervals.interval K).Point) |
| 39 | {V : Set C} (hV : IsCompact V) : |
| 40 | calibratedMetricVolume (G.slices t.val).metricOnPoints |
| 41 | (movingGaugeSliceMap B.embedding.toMovingSpacetimeGauge G.slices t '' V) ≤ |
| 42 | ENNReal.ofReal (Real.exp ((n : ℝ) * (r⁻¹) ^ 2 * (T - t.val))) ^ n * |
| 43 | calibratedMetricVolume (G.slices T).metricOnPoints (B.source_map '' V) := by |
| 44 | obtain ⟨f, hf, hrecover, hbound⟩ := actualBallCylinder_exists_slice_transfer hM12 B t |
| 45 | have hlocal : IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ B.source_map := by |
| 46 | rw [← actualBallCylinder_terminal_sliceMap_eq B] |
| 47 | exact movingGaugeSliceMap_localDiffeomorph B.embedding.toMovingSpacetimeGauge |
| 48 | G.slices B.metric.toMovingSpacetimeGaugeGeometry ⟨T, B.base_mem⟩ |
| 49 | have hU : IsOpen ((G.slices T).metricOnPoints.ball x r) := by |
| 50 | rw [← B.source_map_range] |
| 51 | exact hlocal.isOpen_range |
| 52 | have hsub : B.source_map '' V ⊆ (G.slices T).metricOnPoints.ball x r := by |
| 53 | rw [← B.source_map_range] |
| 54 | exact image_subset_range _ _ |
| 55 | have himage : f '' (B.source_map '' V) = |
| 56 | movingGaugeSliceMap B.embedding.toMovingSpacetimeGauge G.slices t '' V := by |
| 57 | rw [image_image] |
| 58 | exact congrArg (fun m : C → (G.slices t.val).Point => m '' V) (funext hrecover) |
| 59 | rw [← himage] |
| 60 | exact calibratedMetricVolume_image_le_of_tangentNorm_le_on_compact |
| 61 | (G.slices T).metricOnPoints (G.slices t.val).metricOnPoints hU |
| 62 | (hV.image B.source_map_embedding.continuous) hsub (hf.of_le (by simp)) |
| 63 | (Real.exp_pos _) hbound |
| 64 | |
| 65 | /-- The strict 5r/12 interior margin gives a compact earlier-slice buffer |
| 66 | with controlled calibrated volume. Source: Claim 8.8, pp. 174-175. -/ |
| 67 | theorem actualBallCylinder_compact_slice_buffer |
| 68 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 69 | (B : M15ActualBallCylinder G T x r K C) |
| 70 | (hcompact : IsCompact (closure ((G.slices T).metricOnPoints.ball x r))) |
| 71 | (t : (G.timeIntervals.interval K).Point) : |
| 72 | let A : Set C := {c | (G.slices T).metricOnPoints.edist x (B.source_map c) ≤ |
| 73 | ENNReal.ofReal (5 * r / 12)} |
| 74 | IsCompact (movingGaugeSliceMap B.embedding.toMovingSpacetimeGauge G.slices t '' A) ∧ |
| 75 | calibratedMetricVolume (G.slices t.val).metricOnPoints |
| 76 | (movingGaugeSliceMap B.embedding.toMovingSpacetimeGauge G.slices t '' A) ≤ |
| 77 | ENNReal.ofReal (Real.exp ((n : ℝ) * (r⁻¹) ^ 2 * (T - t.val))) ^ n * |
| 78 | calibratedMetricVolume (G.slices T).metricOnPoints |
| 79 | ((G.slices T).metricOnPoints.ball x r) := by |
| 80 | intro A |
| 81 | let : Bundle.RiemannianBundle |
| 82 | (TangentSpace (𝓡 n) : (G.slices T).Point → Type _) := |
| 83 | ⟨(G.slices T).metricOnPoints.toRiemannianMetric⟩ |
| 84 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 85 | (TangentSpace (𝓡 n) : (G.slices T).Point → Type _) := |
| 86 | ⟨⟨(G.slices T).metricOnPoints.inner, |
| 87 | (G.slices T).metricOnPoints.contMDiff.continuous, fun _ _ _ => rfl⟩⟩ |
| 88 | let : PseudoEMetricSpace (G.slices T).Point := |
| 89 | .ofRiemannianMetric (𝓡 n) (G.slices T).Point |
| 90 | have hfull : Metric.closedEBall x (ENNReal.ofReal (5 * r / 12)) ⊆ |
| 91 | (G.slices T).metricOnPoints.ball x r := by |
| 92 | intro z hz |
| 93 | change edist x z < ENNReal.ofReal r |
| 94 | rw [edist_comm] |
| 95 | exact (Metric.mem_closedEBall.mp hz).trans_lt |
| 96 | ((ENNReal.ofReal_lt_ofReal_iff B.radius_pos).mpr (by linarith [B.radius_pos])) |
| 97 | have hA : A = B.source_map ⁻¹' Metric.closedEBall x (ENNReal.ofReal (5 * r / 12)) := by |
| 98 | ext c |
| 99 | change edist x (B.source_map c) ≤ _ ↔ edist (B.source_map c) x ≤ _ |
| 100 | rw [edist_comm] |
| 101 | have hAcompact : IsCompact A := by |
| 102 | rw [hA] |
| 103 | exact B.source_map_embedding.isInducing.isCompact_preimage' |
| 104 | (hcompact.of_isClosed_subset Metric.isClosed_closedEBall (hfull.trans subset_closure)) |
| 105 | (by rw [B.source_map_range]; exact hfull) |
| 106 | have hm := (movingGaugeSliceMap_localDiffeomorph B.embedding.toMovingSpacetimeGauge |
| 107 | G.slices B.metric.toMovingSpacetimeGaugeGeometry t).contMDiff.continuous |
| 108 | refine ⟨hAcompact.image hm, (actualBallCylinder_compact_slice_image_volume_le |
| 109 | hM12 B t hAcompact).trans ?_⟩ |
| 110 | have hsub : B.source_map '' A ⊆ (G.slices T).metricOnPoints.ball x r := by |
| 111 | rw [← B.source_map_range] |
| 112 | exact image_subset_range _ _ |
| 113 | exact mul_le_mul' le_rfl (measure_mono hsub) |
| 114 | |
| 115 | end PoincareMT.Generalized.Noncollapse |