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.ReducedGeometry.Measure.Jacobian |
| 2 | |
| 3 | /-! |
| 4 | # The actual derivative in the endpoint Jacobian |
| 5 | |
| 6 | Morgan-Tian Proposition 6.28, p. 117, and Lemma 6.71, p. 141. The stable |
| 7 | set's derivative identity identifies the frozen endpoint tangent map with |
| 8 | the manifold derivative of its actual slice endpoint map. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.M14 |
| 18 | |
| 19 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 20 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 21 | {T τ : ℝ} {x : G.Point} {E : M14ExponentialFamily G T x} |
| 22 | {H : M14StableSet G T τ x E} |
| 23 | |
| 24 | private theorem horizontal_map_transport_val {p q : G.Point} (h : p = q) |
| 25 | (A : G.Horizontal x →L[ℝ] G.Horizontal p) (v : G.Horizontal x) : |
| 26 | ((h ▸ A : G.Horizontal x →L[ℝ] G.Horizontal q) v).val = (A v).val := by |
| 27 | cases h |
| 28 | rfl |
| 29 | |
| 30 | private theorem tangent_transport_val {p q : G.Point} (h : p = q) |
| 31 | (v : TangentSpace (spacetimeModel n) p) : |
| 32 | (show SpacetimeModelVector n from |
| 33 | (h ▸ v : TangentSpace (spacetimeModel n) q)) = v := by |
| 34 | cases h |
| 35 | rfl |
| 36 | |
| 37 | /-- The tangent map used in the metric Jacobian is the actual slice |
| 38 | derivative, as required by Morgan-Tian Lemma 6.71, p. 141. -/ |
| 39 | theorem endpointTangentDifferential_eq_mfderiv |
| 40 | (Z : G.Horizontal x) (hZ : Z ∈ H.carrier) : |
| 41 | M14EndpointTangentDifferential G Z hZ = |
| 42 | M14EndpointSliceMfderiv G H.endpoint_slice_map Z := by |
| 43 | ext v |
| 44 | apply ((G.slices (T - τ)).tangentEquiv (H.endpoint_slice_map Z)).injective |
| 45 | simp only [M14EndpointTangentDifferential, ContinuousLinearMap.comp_apply, |
| 46 | ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.apply_symm_apply] |
| 47 | apply Subtype.ext |
| 48 | rw [horizontal_map_transport_val] |
| 49 | have hd := H.endpoint_slice_differential Z hZ v |
| 50 | have hmodel := congrArg |
| 51 | (fun w : TangentSpace (spacetimeModel n) (H.endpoint_map Z) => |
| 52 | (show SpacetimeModelVector n from w)) hd |
| 53 | have heq := hmodel.symm |
| 54 | simp only [tangent_transport_val] at heq |
| 55 | exact heq |
| 56 | |
| 57 | end PoincareMT.M14 |