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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Spacetime.Cylinders.CylinderFlow |
| 4 | import PoincareLib.Geometry.RicciFlow.Rescaling.Construction |
| 5 | |
| 6 | /-! |
| 7 | # Ordinary parabolic rescaling on a generalized-flow cylinder |
| 8 | |
| 9 | The M12 raw-cylinder witness is an ordinary Ricci flow on the physical |
| 10 | clock. M13 then supplies the exact affine-clock rescaling, retaining the |
| 11 | same open source carrier and producing an actual normalized ordinary flow. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M28 |
| 21 | |
| 22 | variable {F : GeneralizedRicciFlowData.{u}} |
| 23 | {C : GeneralizedSliceCarrier.{u}} {a q : ℝ} {J : SpacetimeInterval} |
| 24 | {U : TopologicalSpace.Opens C.carrier} |
| 25 | (e : GeneralizedFlowCylinder F C a q J.domain U) |
| 26 | (hI : (Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J).domain ⊆ F.interval) |
| 27 | |
| 28 | /-- The physical ordinary witness and its M13 parabolic rescaling, bundled |
| 29 | so downstream arguments can use the selected metric and flow directly. -/ |
| 30 | structure RescaledRawCylinderData where |
| 31 | geometry : Proofs.M12.FlowBoxRicciGeometry F |
| 32 | metric : SpacetimeCylinderMetric |
| 33 | (Proofs.M12.rawCylinderTransport geometry.realization e hI) |
| 34 | ordinary : OrdinaryGaugeWitness geometry.leafwise |
| 35 | (Proofs.M12.rawCylinderTransport geometry.realization e hI) metric |
| 36 | rescaling : OrdinaryParabolicRescaling ordinary.flow q e.scale_pos a |
| 37 | |
| 38 | /-- M12's compatible-cylinder construction followed by M13's ordinary |
| 39 | parabolic rescaling gives an actual normalized flow on the affine image of |
| 40 | the physical cylinder interval. -/ |
| 41 | theorem exists_rescaled_raw_cylinder_flow : |
| 42 | Nonempty (RescaledRawCylinderData e hI) := by |
| 43 | obtain ⟨G, K, ⟨W⟩⟩ := exists_raw_cylinder_ordinary_flow e hI |
| 44 | obtain ⟨P⟩ := M13.ordinaryParabolicRescaling _ W.flow q e.scale_pos a |
| 45 | exact ⟨{ |
| 46 | geometry := G |
| 47 | metric := K |
| 48 | ordinary := W |
| 49 | rescaling := P |
| 50 | }⟩ |
| 51 | |
| 52 | /-- The normalized flow metric is exactly the positive scale factor times the |
| 53 | physical raw-cylinder metric at the inverse affine time. -/ |
| 54 | theorem rescaled_metric_eq |
| 55 | (H : RescaledRawCylinderData e hI) (s : ℝ) |
| 56 | (x : U) (v w : TangentSpace (𝓡 3) x) : |
| 57 | (H.rescaling.flow.metric s).inner x v w = |
| 58 | q * (H.ordinary.flow.metric (parabolicTimeInv q a s)).inner x v w := by |
| 59 | exact H.rescaling.metric_eq s x v w |
| 60 | |
| 61 | noncomputable def rescaledTime |
| 62 | (s : (parabolicInterval q e.scale_pos a |
| 63 | (Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J)).domain) : J.domain := |
| 64 | Proofs.M12.cylinderClockHomeomorph a q e.scale_pos J |
| 65 | ⟨parabolicTimeInv q a s.val, |
| 66 | (mem_parabolicInterval_iff q e.scale_pos a |
| 67 | (Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J) s.val).1 s.property⟩ |
| 68 | |
| 69 | @[simp] theorem rescaledTime_val |
| 70 | (s : (parabolicInterval q e.scale_pos a |
| 71 | (Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J)).domain) : |
| 72 | (rescaledTime e s).val = s.val := by |
| 73 | unfold rescaledTime |
| 74 | dsimp [Proofs.M12.cylinderClockHomeomorph] |
| 75 | exact parabolicTime_parabolicTimeInv q e.scale_pos a s.val |
| 76 | |
| 77 | /-- After rebasing the target clock through the original cylinder interval, |
| 78 | the normalized flow metric is the cylinder pullback metric itself. -/ |
| 79 | theorem rescaled_pullback_metric_eq |
| 80 | (H : RescaledRawCylinderData e hI) |
| 81 | (s : (parabolicInterval q e.scale_pos a |
| 82 | (Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J)).domain) |
| 83 | (x : U) (v w : TangentSpace (𝓡 3) x) : |
| 84 | (H.rescaling.flow.metric s.val).inner x v w = |
| 85 | e.pullbackInner (rescaledTime e s).val (rescaledTime e s).property x.val |
| 86 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 87 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w) := by |
| 88 | let K := Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J |
| 89 | let t : K.domain := |
| 90 | ⟨parabolicTimeInv q a s.val, |
| 91 | (mem_parabolicInterval_iff q e.scale_pos a K s.val).1 s.property⟩ |
| 92 | let sJ : J.domain := rescaledTime e s |
| 93 | have hsJ : sJ.val = s.val := rescaledTime_val e s |
| 94 | have ht : t.val = a + sJ.val / q := by |
| 95 | calc |
| 96 | t.val = parabolicTimeInv q a s.val := rfl |
| 97 | _ = a + s.val / q := by rfl |
| 98 | _ = a + sJ.val / q := by rw [hsJ] |
| 99 | calc |
| 100 | (H.rescaling.flow.metric s.val).inner x v w = |
| 101 | q * (H.ordinary.flow.metric (parabolicTimeInv q a s.val)).inner x v w := |
| 102 | H.rescaling.metric_eq s.val x v w |
| 103 | _ = q * (H.metric.metric (parabolicTimeInv q a s.val)).inner x v w := by |
| 104 | rw [H.ordinary.metric_eq] |
| 105 | _ = q * (H.metric.metric t.val).inner x v w := by rfl |
| 106 | _ = q * (e.pullbackInner sJ.val sJ.property x.val |
| 107 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 108 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w) / q) := by |
| 109 | rw [ht] |
| 110 | rw [Proofs.M12.rawCylinderMetric_eq H.geometry.realization e hI H.metric sJ |
| 111 | (H.geometry.sliceIdentification (a + sJ.val / q)) x v w] |
| 112 | _ = e.pullbackInner sJ.val sJ.property x.val |
| 113 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 114 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w) := by |
| 115 | field_simp [ne_of_gt e.scale_pos] |
| 116 | |
| 117 | end PoincareMT.M28 |