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.CanonicalInduction.Seed.Old.SeedOldHistoryAnalytics |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Seed.Low.SeedLowScale |
| 3 | |
| 4 | /-! |
| 5 | # Joint-seed analytics on the actual observed interval |
| 6 | |
| 7 | The future reference point bounds an earlier compact minimum. Actual |
| 8 | observed canonical control supplies the estimate at the next-radius |
| 9 | threshold, including a recent onset. Source: MT pp. 392-394; |
| 10 | derivations/seed-observed-history-analytics.md. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M47 |
| 22 | |
| 23 | /-- The analytic coefficient precedes the next radius. The actual |
| 24 | observed history need not lie in the old prefix interval. -/ |
| 25 | theorem exists_seed_observed_history_analytic_bound |
| 26 | (P : M47Predecessors.{u}) (S : RepairedControlledSchedulesData.{u}) |
| 27 | (p : SurgeryParameterPrefix S.constants) (compatible : S.SeedCompatible p) : |
| 28 | ∃ A : ℝ, 1 ≤ A ∧ S.setup.C ≤ A ∧ |
| 29 | ∀ (rNext cutoff : ℝ) (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 30 | M46.ObservedInputs p rNext cutoff F O → |
| 31 | ∀ (C : GeneralizedSliceCarrier.{u}) (origin scale : ℝ) (I J : Set ℝ) |
| 32 | (U : TopologicalSpace.Opens C.carrier), |
| 33 | IsCompact (U : Set C.carrier) → IsConnected (U : Set C.carrier) → |
| 34 | ∀ (e : SurgeryFlowCylinder F C origin scale I U) (s : ℝ) (hs : s ∈ I), |
| 35 | origin + s / scale ∈ surgeryObservationInterval O → |
| 36 | ∀ (G : RicciFlow 3 U J) (t L : ℝ), |
| 37 | origin + s / scale ≤ t → Icc (origin + s / scale) t ⊆ J → |
| 38 | (∀ y : U, ∀ v w : TangentSpace (𝓡 3) y, |
| 39 | (F.metric (origin + s / scale)).inner (e.forward s hs y.val) |
| 40 | (mfderiv (𝓡 3) (𝓡 3) (fun z : U => e.forward s hs z.val) y v) |
| 41 | (mfderiv (𝓡 3) (𝓡 3) (fun z : U => e.forward s hs z.val) y w) = |
| 42 | (G.metric (origin + s / scale)).inner y v w) → |
| 43 | (∀ y : U, (G.connection (origin + s / scale)).scalarCurvature y = |
| 44 | (F.connection (origin + s / scale)).scalarCurvature (e.forward s hs y.val)) → |
| 45 | (∀ y : U, 0 ≤ (G.connection (origin + s / scale)).scalarCurvature y) → |
| 46 | ∀ q z : U, S.setup.C * (G.connection t).scalarCurvature q ≤ L → |
| 47 | rNext⁻¹ ^ 2 ≤ L → |
| 48 | L < (G.connection (origin + s / scale)).scalarCurvature z → |
| 49 | M45PointwiseAnalyticEstimate (G.metric (origin + s / scale)) |
| 50 | (G.connection (origin + s / scale)) z A := by |
| 51 | obtain ⟨A, hA, hCA, hmodel⟩ := M47.exists_jointSeed_physical_analytic_bound.{u} S.setup.C |
| 52 | let PS : M47ScalarPersistencePredecessors.{u} := { |
| 53 | tensor_calculus := fun M _ _ _ => P.m04.tensor_calculus 3 M |
| 54 | scalar_regular := fun M _ _ _ => P.m04.scalar_regular 3 M |
| 55 | scalar_evolution := fun M _ _ _ => P.m04.scalar_evolution 3 M } |
| 56 | refine ⟨A, hA, hCA, ?_⟩ |
| 57 | intro rNext cutoff F O inputs C origin scale I J U hcompact hconnected e s hs htime |
| 58 | G t L hst hJ hmetric hread hnonnegative q z hterminal hlevel hhigh |
| 59 | let : CompactSpace U := isCompact_iff_compactSpace.mp hcompact |
| 60 | have himage := M47.component_cylinder_image_eq e U.isOpen hcompact hconnected s hs z.property |
| 61 | have hcomponent (y : U) : e.forward s hs y.val ∈ connectedComponent (e.forward s hs z.val) := by |
| 62 | rw [← himage] |
| 63 | exact mem_image_of_mem _ y.property |
| 64 | obtain ⟨y, hy, hgap⟩ := M47.jointSeed_physical_reference_low_point_gap PS G F q z |
| 65 | (fun y : U => e.forward s hs y.val) hcomponent hread hst hJ S.setup.C_large |
| 66 | hnonnegative hterminal hhigh |
| 67 | have hscalar : rNext⁻¹ ^ 2 ≤ |
| 68 | (F.connection (origin + s / scale)).scalarCurvature (e.forward s hs z.val) := by |
| 69 | rw [← hread] |
| 70 | exact hlevel.trans hhigh.le |
| 71 | have hcanonical := inputs.canonical (origin + s / scale) htime |
| 72 | (O.interval_subset htime) (e.forward s hs z.val) hscalar |
| 73 | have hC : F.parameters.C = S.setup.C := by |
| 74 | rw [inputs.old.C_eq, compatible.setup_eq] |
| 75 | rw [hC] at hcanonical |
| 76 | have hanalytic := hmodel F _ y (e.forward s hs z.val) hy hgap hcanonical |
| 77 | exact M47Positive.cylinder_pointwise_analytic_estimate U e s hs |
| 78 | (G.metric (origin + s / scale)) (G.connection (origin + s / scale)) |
| 79 | (P.m04.tensor_calculus 3 _ (F.metric (origin + s / scale)) |
| 80 | (F.connection (origin + s / scale))) hmetric hanalytic |
| 81 | |
| 82 | end PoincareMT.Proofs.M47 |