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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/CoordinateMetricRegularityNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Analysis.Parabolic.Quasilinear.Frames.FrameCoordinateJet |
| 6 | |
| 7 | /-! |
| 8 | # Regularity and quasilinear structure of actual metric coordinates |
| 9 | |
| 10 | The native chart frame identifies metric coefficients with smooth bundle |
| 11 | pairings. Their positivity and actual second-derivative symmetries supply |
| 12 | the geometric hypotheses in the coordinate Ricci--DeTurck cancellation. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option maxHeartbeats 1600000 |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle BigOperators Topology |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.DeTurckNative |
| 25 | |
| 26 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | |
| 29 | local notation "E" => EuclideanSpace ℝ (Fin n) |
| 30 | |
| 31 | theorem chartMetricCoefficients_contDiffOn (g : RiemannianMetric n M) |
| 32 | (p : M) (i j : Fin n) : |
| 33 | ContDiffOn ℝ ∞ (fun z => chartMetricCoefficients g p z i j) |
| 34 | (extChartAt (𝓡 n) p).target := by |
| 35 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 36 | ⟨g.toRiemannianMetric⟩ |
| 37 | have hpair : ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ |
| 38 | (fun y => g.inner y (chartFrame p i y) (chartFrame p j y)) |
| 39 | (chartAt E p).source := |
| 40 | (chartFrame_contMDiffOn p i).inner_bundle (chartFrame_contMDiffOn p j) |
| 41 | have hcomp := hpair.comp (contMDiffOn_extChartAt_symm p) |
| 42 | (fun z hz => show (extChartAt (𝓡 n) p).symm z ∈ (chartAt E p).source from |
| 43 | by simpa only [extChartAt_source] using (extChartAt (𝓡 n) p).map_target hz) |
| 44 | exact hcomp.contDiffOn |
| 45 | |
| 46 | theorem chartMetricCoefficients_symm (g : RiemannianMetric n M) |
| 47 | (p : M) (z : E) (i j : Fin n) : |
| 48 | chartMetricCoefficients g p z i j = chartMetricCoefficients g p z j i := |
| 49 | g.symm _ _ _ |
| 50 | |
| 51 | theorem chartMetricCoefficients_posDef (g : RiemannianMetric n M) |
| 52 | (p : M) {z : E} (hz : z ∈ (extChartAt (𝓡 n) p).target) : |
| 53 | (chartMetricCoefficients g p z).PosDef := by |
| 54 | have hy : (extChartAt (𝓡 n) p).symm z ∈ (chartAt E p).source := by |
| 55 | simpa only [extChartAt_source] using (extChartAt (𝓡 n) p).map_target hz |
| 56 | exact frameMetricJet_value_posDef g (chartFrame p) _ (chartFrameBasis p _ hy) |
| 57 | (chartFrame_eq_basis p _ hy) |
| 58 | |
| 59 | theorem chartMetricJet_second_spatial_comm (g : RiemannianMetric n M) |
| 60 | (p : M) {z : E} (hz : z ∈ (extChartAt (𝓡 n) p).target) |
| 61 | (a b i j : Fin n) : |
| 62 | (coordinateMetricJet (PiLp.basisFun 2 ℝ (Fin n)) |
| 63 | (chartMetricCoefficients g p) z).second a b i j = |
| 64 | (coordinateMetricJet (PiLp.basisFun 2 ℝ (Fin n)) |
| 65 | (chartMetricCoefficients g p) z).second b a i j := by |
| 66 | exact coordinateMetricJet_second_spatial_comm _ _ (isOpen_extChartAt_target p) |
| 67 | (chartMetricCoefficients_contDiffOn g p) hz a b i j |
| 68 | |
| 69 | theorem chartMetricJet_second_metric_symm (g : RiemannianMetric n M) |
| 70 | (p : M) {z : E} (hz : z ∈ (extChartAt (𝓡 n) p).target) |
| 71 | (a b i j : Fin n) : |
| 72 | (coordinateMetricJet (PiLp.basisFun 2 ℝ (Fin n)) |
| 73 | (chartMetricCoefficients g p) z).second a b i j = |
| 74 | (coordinateMetricJet (PiLp.basisFun 2 ℝ (Fin n)) |
| 75 | (chartMetricCoefficients g p) z).second a b j i := by |
| 76 | exact coordinateMetricJet_second_metric_symm _ _ (isOpen_extChartAt_target p) |
| 77 | (chartMetricCoefficients_contDiffOn g p) |
| 78 | (fun w _ => chartMetricCoefficients_symm g p w) hz a b i j |
| 79 | |
| 80 | theorem ricciDeTurckSource_coordinateMetric_quasilinear |
| 81 | (g : RiemannianMetric n M) (p : M) (background : MetricJet2 (n := n)) |
| 82 | {z : E} (hz : z ∈ (extChartAt (𝓡 n) p).target) (i j : Fin n) : |
| 83 | ricciDeTurckSource background |
| 84 | (coordinateMetricJet (PiLp.basisFun 2 ℝ (Fin n)) |
| 85 | (chartMetricCoefficients g p) z) i j = |
| 86 | (∑ a, ∑ b, (chartMetricCoefficients g p z)⁻¹ a b * |
| 87 | (coordinateMetricJet (PiLp.basisFun 2 ℝ (Fin n)) |
| 88 | (chartMetricCoefficients g p) z).second a b i j) + |
| 89 | ricciDeTurckSource background |
| 90 | (eraseSecondJet (coordinateMetricJet (PiLp.basisFun 2 ℝ (Fin n)) |
| 91 | (chartMetricCoefficients g p) z)) i j := by |
| 92 | apply ricciDeTurckSource_quasilinear |
| 93 | · exact Matrix.IsSymm.ext fun a b => chartMetricCoefficients_symm g p z b a |
| 94 | · exact ne_of_gt (chartMetricCoefficients_posDef g p hz).det_pos |
| 95 | · exact chartMetricJet_second_metric_symm g p hz |
| 96 | · exact chartMetricJet_second_spatial_comm g p hz |
| 97 | |
| 98 | end PoincareMT.DeTurckNative |
| 99 | |
| 100 | end |