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.Soliton.ThreeDimensional.Splitting.UnitCover |
| 2 | |
| 3 | /-! |
| 4 | # The static two-sheeted Ricci-null cover |
| 5 | |
| 6 | Local smooth unit sections of the actual one-dimensional Ricci kernel |
| 7 | trivialize its intrinsic orientation cover. The construction uses the |
| 8 | unit tangent-bundle subtype and its existing topology. This isolates |
| 9 | the covering step of Morgan--Tian Claim 9.45, pp. 208-209, for the |
| 10 | finite-window null branch of Claim 11.7, pp. 270-271. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set PoincareMT.RicciFlow.Splitting |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M30 |
| 21 | |
| 22 | /-- Local smooth unit null sections construct the actual two-sheeted |
| 23 | Ricci-kernel cover (Claims 9.45 and 11.7, pp. 208-209 and 270-271). |
| 24 | No common Ricci-flow interval or local parallelism is needed. -/ |
| 25 | theorem unitRicciKernel_doubleCover_of_local_unit_sections |
| 26 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | (g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 29 | (hdim : ∀ x : M, ricciNullity D x = 1) |
| 30 | (hsections : ∀ x : M, |
| 31 | ∃ (U : Set M) (V : (y : M) → TangentSpace (𝓡 n) y), |
| 32 | IsOpen U ∧ x ∈ U ∧ |
| 33 | ContMDiffOn (𝓡 n) ((𝓡 n).prod (𝓡 n)) ∞ (T% V) U ∧ |
| 34 | ∀ y ∈ U, g.inner y (V y) (V y) = 1 ∧ |
| 35 | ∀ w : TangentSpace (𝓡 n) y, D.ricci y (V y) w = 0) : |
| 36 | IsCoveringMap (unitRicciKernelProjection D) ∧ |
| 37 | ∀ x : M, Nat.card (unitRicciKernelProjection D ⁻¹' {x}) = 2 := by |
| 38 | have heven (x : M) : IsEvenlyCovered (unitRicciKernelProjection D) x LineSign := by |
| 39 | obtain ⟨U, V, hU, hx, hV, hn⟩ := hsections x |
| 40 | exact ⟨inferInstance, U, hx, hU, |
| 41 | hU.preimage (continuous_unitRicciKernelProjection D), |
| 42 | unitRicciKernelLocalHomeomorph D V hV (fun y _ => hdim y) |
| 43 | (fun y hy => (hn y hy).1) (fun y hy => (hn y hy).2), fun _ => rfl⟩ |
| 44 | refine ⟨fun x => (heven x).to_isEvenlyCovered_preimage, ?_⟩ |
| 45 | intro x |
| 46 | rw [← Nat.card_congr (heven x).fiberHomeomorph.toEquiv] |
| 47 | exact Set.ncard_pair (by norm_num : (1 : ℝ) ≠ -1) |
| 48 | |
| 49 | end PoincareMT.M30 |