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.Induction.Noncollapse.Compat.ParabolicRescaling |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.ParabolicRescaling |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Homothety |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.SeedPaths |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.ObservedSeedCylinder |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.ReducedVolume |
| 7 | |
| 8 | /-! |
| 9 | # The stable reduced-volume source in the observed flow |
| 10 | |
| 11 | Morgan--Tian Claim 16.27 and completion of Proposition 16.1, |
| 12 | pp. 391-394. The compact action sublevel gives a short minimizer and |
| 13 | an old low-scalar point. The same chosen overlap cutoff excludes caps |
| 14 | from the old seed cylinder. Its actual seed comparisons then supply |
| 15 | the fixed stable set, with constants chosen from the old prefix before |
| 16 | the new radius, cutoff, flow and test. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set |
| 23 | open scoped Manifold ContDiff Bundle ENNReal |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M13 |
| 28 | export PoincareMT.EpochExtension.SliceGeometry (originalSlice_scalar) |
| 29 | end PoincareMT.M13 |
| 30 | |
| 31 | namespace PoincareMT.Proofs.M46 |
| 32 | |
| 33 | /-- The literal stable-source endpoint at the common selected cutoff. |
| 34 | The scalar-rate birth bound is the same one used for the small-test |
| 35 | cylinders. The output time, reduced-length and volume constants do not |
| 36 | depend on the next surgery radius or the observed flow. -/ |
| 37 | theorem stableSource_of_observed_cap_birth |
| 38 | (P : M46Predecessors.{u}) (P44 : M44CapPersistencePredecessors.{u}) |
| 39 | (S : RepairedControlledSchedulesData.{u}) (p : SurgeryParameterPrefix S.constants) |
| 40 | (hp : S.SeedCompatible p) {B c rNext cutoff : ℝ} |
| 41 | (hB : 1 ≤ B) (hBanalytic : seedAnalyticConstant S ≤ B) (hc : 0 < c) |
| 42 | (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) |
| 43 | (hcutoff : cutoff ≤ capScalarCutoff p.setup.epsilon c rNext) |
| 44 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 45 | (inputs : ObservedInputs p rNext cutoff F O) |
| 46 | {D : NoncollapseTest F O} (H : HalfRadiusHistory D) |
| 47 | (hTlo : surgeryEpochStart p.i ≤ D.time) |
| 48 | (C : ActionConfinement H.spacetime.geometry.toLGeometry |
| 49 | D.time (surgeryEpochStart (p.i - 1)) |
| 50 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val) |
| 51 | (hbarrier : C.barrier = actionBudget p) |
| 52 | (M : MinimizingRegion H.spacetime.geometry.toLGeometry |
| 53 | D.time (surgeryEpochStart (p.i - 1)) |
| 54 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val C) |
| 55 | (positive : PositiveAncestorExclusion H) |
| 56 | (hbirth : ∀ (s : ℝ) (hs : s ∈ F.surgery_times) |
| 57 | [Nonempty (F.slice s).carrier], s ∈ surgeryObservationInterval O → |
| 58 | surgeryEpochStart (p.i - 1) ≤ s → |
| 59 | ∀ i : Fin (F.event s hs).cap_count, |
| 60 | ∀ y ∈ ((F.event s hs).caps i).carrier, |
| 61 | c / (2 * (F.parameters.h s) ^ 2) ≤ (F.connection s).scalarCurvature y) : |
| 62 | Nonempty (StableSource H (surgeryEpochStart (p.i + 1)) |
| 63 | (actionBudget p / (4 * p.setup.epsilon)) |
| 64 | (p.kappa (Fin.last p.i) * seedImageRadius B (p.r (Fin.last p.i)) ^ 3 / 8)) := by |
| 65 | let G := H.spacetime.geometry.toLGeometry |
| 66 | let r := p.r (Fin.last p.i) |
| 67 | let d := seedImageDelay B r |
| 68 | have hrOld : 0 < r := p.r_pos _ |
| 69 | have hd : 0 < d := seedImageDelay_pos hB hrOld |
| 70 | have hdEps : d ≤ p.setup.epsilon ^ 2 := by |
| 71 | apply (seedImageDelay_lt_duration hB hrOld).le.trans |
| 72 | apply (seedCylinderDuration_le_radius_sq hB hrOld).trans |
| 73 | exact (sq_le_sq₀ hrOld.le p.setup.epsilon_pos.le).mpr (p.r_le_epsilon _) |
| 74 | have hThi : D.time ≤ surgeryEpochStart (p.i + 1) := |
| 75 | D.time_mem.2.le.trans inputs.next_epoch.2 |
| 76 | obtain ⟨endpoint, path, hmin, hshort, tau, htauWindow, hbefore, hlow⟩ := |
| 77 | H.low_scalar_minimizer P p inputs.old hTlo hThi C M |
| 78 | have htauEps : p.setup.epsilon ^ 2 ≤ tau := |
| 79 | (le_max_left _ _).trans htauWindow.1 |
| 80 | have htau : 0 < tau := (sq_pos_of_pos p.setup.epsilon_pos).trans_le htauEps |
| 81 | have htauS : tau ≤ D.time - surgeryEpochStart (p.i - 1) := by |
| 82 | linarith [htauWindow.2, sq_nonneg p.setup.epsilon] |
| 83 | have hmargin : surgeryEpochStart (p.i - 1) + p.setup.epsilon ^ 2 ≤ D.time - tau := by |
| 84 | linarith [htauWindow.2] |
| 85 | have htobs : D.time - tau ∈ surgeryObservationInterval O := by |
| 86 | refine ⟨?_, ?_⟩ |
| 87 | · linarith [epochStart_ge_initial (p.i - 1), sq_nonneg p.setup.epsilon] |
| 88 | · exact (sub_lt_self _ htau).trans D.time_mem.2 |
| 89 | have htold : D.time - tau ∈ surgeryObservationInterval O ∩ surgeryEpochEntry p.i := |
| 90 | ⟨htobs, prefix_seed_time_slab p htauWindow.2 hbefore |
| 91 | ⟨by linarith [sq_nonneg p.setup.epsilon], le_rfl⟩⟩ |
| 92 | have htime0 : D.time - tau ∈ H.spacetime.history.generalized.interval := by |
| 93 | rw [H.spacetime.history.interval_eq] |
| 94 | exact ⟨htobs.1, sub_le_self _ htau.le⟩ |
| 95 | let q0 : (G.slices (D.time - tau)).Point := |
| 96 | ⟨path.curve tau, path.curve_time tau ⟨htau.le, htauS⟩⟩ |
| 97 | let y0 := (H.spacetime.geometry.sliceIdentification (D.time - tau)).identification.symm q0 |
| 98 | let x0 := H.spacetime.history.history.forward (D.time - tau) htime0 y0 |
| 99 | have hlabel : |
| 100 | ((H.spacetime.geometry.sliceIdentification (D.time - tau)).identification y0).val = |
| 101 | path.curve tau := by |
| 102 | exact congrArg Subtype.val |
| 103 | ((H.spacetime.geometry.sliceIdentification (D.time - tau)).identification.apply_symm_apply q0) |
| 104 | have hpoint : path.curve tau = |
| 105 | (⟨D.time - tau, y0⟩ : H.spacetime.geometry.toLGeometry.Point) := |
| 106 | hlabel.symm.trans |
| 107 | ((H.spacetime.geometry.sliceIdentification (D.time - tau)).identification_eq y0) |
| 108 | have hpositive : ¬ SurgeryPositiveComponentAt F (D.time - tau) x0 := by |
| 109 | apply positive tau htau htime0 y0 |
| 110 | rw [hlabel] |
| 111 | exact ⟨M14.prefixPath path tau htau htauS⟩ |
| 112 | have hlowPhysical : (F.connection (D.time - tau)).scalarCurvature x0 ≤ r⁻¹ ^ 2 := by |
| 113 | rw [hpoint] at hlow |
| 114 | change horizontalScalarCurvature H.spacetime.geometry.leafwise |
| 115 | (⟨D.time - tau, y0⟩ : H.spacetime.history.generalized.point) < r⁻¹ ^ 2 at hlow |
| 116 | rw [M13.originalSlice_scalar H.spacetime.geometry P.m13, |
| 117 | ← H.spacetime.history.scalar_pullback (D.time - tau) htime0] at hlow |
| 118 | exact hlow.le |
| 119 | obtain ⟨e, hbase, hscalar, hRm⟩ := observed_old_seed_cylinder P P44 S p hp |
| 120 | hB hBanalytic hc hr hrLast hcutoff inputs htobs hmargin hbefore x0 hpositive hlowPhysical |
| 121 | hbirth |
| 122 | have htime : ∀ s ∈ Icc (-d) 0, |
| 123 | (D.time - tau) + s / 1 ∈ H.spacetime.history.generalized.interval := by |
| 124 | intro s hs |
| 125 | rw [H.spacetime.history.interval_eq] |
| 126 | simp only [div_one] |
| 127 | constructor <;> linarith [hs.1, hs.2, epochStart_ge_initial (p.i - 1)] |
| 128 | have hStime : D.time - surgeryEpochStart (p.i - 1) ≤ D.time := by |
| 129 | linarith [epochStart_ge_initial (p.i - 1)] |
| 130 | have hwindow : |
| 131 | Icc (D.time - (D.time - surgeryEpochStart (p.i - 1))) D.time ⊆ |
| 132 | H.spacetime.history.generalized.interval := by |
| 133 | rw [H.spacetime.history.interval_eq] |
| 134 | intro t ht |
| 135 | refine ⟨?_, ht.2⟩ |
| 136 | linarith [ht.1, epochStart_ge_initial (p.i - 1)] |
| 137 | have hfloor := regular_history_path_scalar_lower P inputs.old H.spacetime path |
| 138 | D.time_mem hStime hwindow |
| 139 | have htotalStart : tau + d ≤ D.time - surgeryEpochStart (p.i - 1) := by |
| 140 | linarith [htauWindow.2] |
| 141 | have htotalTop : tau + d ≤ surgeryEpochStart (p.i + 1) := |
| 142 | htotalStart.trans (hStime.trans hThi) |
| 143 | obtain ⟨A, hA, hne, hvolume, hpaths⟩ := seed_image_comparisons P P44 p inputs.old |
| 144 | inputs.pinched H.spacetime hB path hmin htau htauS (hStime.trans hThi) htotalTop |
| 145 | hfloor hshort htold htime htime0 y0 x0 rfl hpoint hpositive e hbase hscalar hRm |
| 146 | have hinterior : D.time - (tau + d) ∈ interior H.spacetime.history.generalized.interval := by |
| 147 | rw [H.spacetime.history.interval_eq] |
| 148 | change D.time - (tau + d) ∈ interior (Icc (0 : ℝ) D.time) |
| 149 | rw [interior_Icc] |
| 150 | constructor |
| 151 | · linarith [epochStart_ge_initial (p.i - 1)] |
| 152 | · linarith |
| 153 | exact stableSource_of_actual_seed_comparisons P p inputs.old H C hbarrier M |
| 154 | (by linarith : p.setup.epsilon ^ 2 ≤ tau + d) htotalStart htotalTop hinterior A hA hne |
| 155 | hvolume (fun q hq => by |
| 156 | obtain ⟨comparison, hcomparison⟩ := hpaths q hq |
| 157 | exact ⟨comparison, hcomparison.le⟩) |
| 158 | |
| 159 | end PoincareMT.Proofs.M46 |