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.StandardCap.Persistence.Limit.Cylinder.CylinderFlow |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Coordinates.CoordinateTargetCoefficients |
| 3 | |
| 4 | /-! |
| 5 | # The actual normalized Ricci flow on a surviving physical buffer |
| 6 | |
| 7 | Coordinate reconstruction, physical descent and the authorized |
| 8 | M13 rescaling give exactly the frozen cylinder pullback on its |
| 9 | half-open interval. Morgan--Tian, Lemma 16.8 and Proposition 16.5, |
| 10 | pp. 372-375; see M44 derivation 62. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set TopologicalSpace |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M44 |
| 22 | |
| 23 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 24 | |
| 25 | variable {F : SurgeryFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 26 | {origin scale B : ℝ} {U : Set C.carrier} |
| 27 | |
| 28 | /-- An actual surviving cylinder carries an ordinary normalized |
| 29 | Ricci flow on the literal physical birth-chart target. In the |
| 30 | target-valued birth chart its coefficients are exactly the frozen |
| 31 | cylinder pullback, with both tangent slots and one scale factor. |
| 32 | Source: Lemma 16.8 and Proposition 16.5; M44 derivation 62. -/ |
| 33 | theorem exists_normalized_cylinder_physical_flow |
| 34 | (P : M44CapPersistencePredecessors.{u}) (hpinch : SurgeryFlowPinched F) |
| 35 | (e : SurgeryFlowCylinder F C origin scale (Ico 0 B) U) (hU : IsOpen U) (hB : 0 < B) |
| 36 | (f : PartialDiffeomorph (𝓡 3) (𝓡 3) E C.carrier ∞) (hmap : f.target ⊆ U) : |
| 37 | ∃ G : RicciFlow 3 (⟨f.target, f.open_target⟩ : Opens C.carrier) (Ico 0 B), |
| 38 | ∀ (p : (⟨f.target, f.open_target⟩ : Opens C.carrier)) (s : ℝ) (hs : s ∈ Ico 0 B), |
| 39 | ∀ x ∈ f.source, ∀ v w : E, |
| 40 | (G.metric s).pullbackCoefficients (targetChart f p) x v w = |
| 41 | e.pullbackInner s hs (f x) (mfderiv (𝓡 3) (𝓡 3) f x v) |
| 42 | (mfderiv (𝓡 3) (𝓡 3) f x w) := by |
| 43 | obtain ⟨H0, hcoeff⟩ := exists_cylinder_coordinate_flow P hpinch e hU hB f hmap |
| 44 | let H := coordinateFlowToTarget f H0 |
| 45 | have htime : origin < origin + B / scale := by linarith [div_pos hB e.scale_pos] |
| 46 | let I : SpacetimeInterval := { |
| 47 | domain := Ico origin (origin + B / scale) |
| 48 | ordConnected := ordConnected_Ico |
| 49 | nontrivial := (Ico_infinite htime).nontrivial } |
| 50 | obtain ⟨R⟩ := P.ordinary_flow (⟨f.target, f.open_target⟩ : Opens C.carrier) |
| 51 | I H scale e.scale_pos origin |
| 52 | have hsub : Ico (0 : ℝ) B ⊆ (parabolicInterval scale e.scale_pos origin I).domain := by |
| 53 | intro s hs |
| 54 | apply (mem_parabolicInterval_iff scale e.scale_pos origin I s).mpr |
| 55 | change origin ≤ origin + s / scale ∧ origin + s / scale < origin + B / scale |
| 56 | exact ⟨le_add_of_nonneg_right (div_nonneg hs.1 e.scale_pos.le), |
| 57 | by linarith [(div_lt_div_iff_of_pos_right e.scale_pos).mpr hs.2]⟩ |
| 58 | let G := Poincare.Geometry.RicciFlow.Harnack.restrictFlow R.flow hsub ordConnected_Ico |
| 59 | (Ico_infinite hB).nontrivial |
| 60 | refine ⟨G, ?_⟩ |
| 61 | intro p s hs x hx v w |
| 62 | have htarget := coordinateFlowToTarget_pullbackCoefficients f H0 (origin + s / scale) |
| 63 | (fun y => cylinderTimeCoefficients e f 0 ⟨le_rfl, hB⟩ (origin + s / scale, y)) |
| 64 | (hcoeff (origin + s / scale)) p hx |
| 65 | rw [cylinderTimeCoefficients_at e f 0 ⟨le_rfl, hB⟩ s hs x] at htarget |
| 66 | have hscaled : (G.metric s).pullbackCoefficients (targetChart f p) x v w = |
| 67 | scale * (H.metric (origin + s / scale)).pullbackCoefficients (targetChart f p) x v w := by |
| 68 | exact R.metric_eq s (targetChart f p x) |
| 69 | (mfderiv (𝓡 3) (𝓡 3) (targetChart f p) x v) |
| 70 | (mfderiv (𝓡 3) (𝓡 3) (targetChart f p) x w) |
| 71 | rw [hscaled, htarget] |
| 72 | exact cylinderPhysicalCoefficients_normalization e hU f.open_source f.contMDiffOn |
| 73 | (fun _ hy => hmap (f.map_source hy)) s hs hx v w |
| 74 | |
| 75 | end PoincareMT.M44 |