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/ConnectionCoordinates.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Connection.Koszul |
| 6 | import Mathlib.Geometry.Manifold.VectorBundle.Hom |
| 7 | import Mathlib.Geometry.Manifold.VectorBundle.Riemannian |
| 8 | |
| 9 | /-! |
| 10 | # Local reconstruction from Koszul pairings |
| 11 | |
| 12 | Morgan-Tian, Theorem 1.2 and formula (1.1), pp. 3-4: smooth metric |
| 13 | pairings and inversion of the positive metric matrix reconstruct the |
| 14 | connection in each chart. Same-task donor leads and their exact hashes are |
| 15 | recorded in `proof-work/tasks/M03/cluster-resumption.md`; the present helpers |
| 16 | use the frozen contracts and pinned Mathlib directly. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option maxHeartbeats 1000000 |
| 21 | |
| 22 | open scoped Manifold ContDiff Bundle Topology |
| 23 | open Bundle Manifold Set |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.RicciFlow.Local |
| 28 | |
| 29 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 31 | |
| 32 | /-- A finite-dimensional operator family is smooth if each evaluation is smooth. -/ |
| 33 | theorem contMDiffAt_clm_apply_iff |
| 34 | [IsManifold (𝓡 n) ∞ M] |
| 35 | {F G : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 36 | [NormedAddCommGroup G] [NormedSpace ℝ G] [FiniteDimensional ℝ F] |
| 37 | {f : M → F →L[ℝ] G} {p : M} : |
| 38 | ContMDiffAt (𝓡 n) 𝓘(ℝ, F →L[ℝ] G) ∞ f p ↔ |
| 39 | ∀ v : F, ContMDiffAt (𝓡 n) 𝓘(ℝ, G) ∞ (fun q ↦ f q v) p := by |
| 40 | constructor |
| 41 | · intro h v |
| 42 | exact h.clm_apply contMDiffAt_const |
| 43 | · intro h |
| 44 | let d := Module.finrank ℝ F |
| 45 | have hd : d = Module.finrank ℝ (Fin d → ℝ) := (Module.finrank_fin_fun ℝ).symm |
| 46 | let e₁ := ContinuousLinearEquiv.ofFinrankEq hd |
| 47 | let e₂ := (e₁.arrowCongr (ContinuousLinearEquiv.refl ℝ G)).trans |
| 48 | (ContinuousLinearEquiv.piRing (Fin d)) |
| 49 | have hc : ContMDiffAt (𝓡 n) 𝓘(ℝ, Fin d → G) ∞ (fun q ↦ e₂ (f q)) p := by |
| 50 | apply contMDiffAt_pi_space.mpr |
| 51 | intro i |
| 52 | change ContMDiffAt (𝓡 n) 𝓘(ℝ, G) ∞ |
| 53 | (fun q ↦ f q (e₁.symm (Pi.single i 1))) p |
| 54 | exact h (e₁.symm (Pi.single i 1)) |
| 55 | have hb := (contMDiffAt_const (c := e₂.symm.toContinuousLinearMap)).clm_apply hc |
| 56 | simpa only [ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.symm_apply_apply] using hb |
| 57 | |
| 58 | variable [IsManifold (𝓡 n) ∞ M] |
| 59 | |
| 60 | /-- The scalar Koszul formula is smooth for fields smooth on an open set. -/ |
| 61 | theorem contMDiffOn_koszulExpression |
| 62 | (g : RiemannianMetric n M) {U : Set M} (hU : IsOpen U) |
| 63 | (X Y Z : (x : M) → TangentSpace (𝓡 n) x) |
| 64 | (hX : ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) ∞ (T% X) U) |
| 65 | (hY : ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) ∞ (T% Y) U) |
| 66 | (hZ : ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) ∞ (T% Z) U) : |
| 67 | ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ |
| 68 | (fun x ↦ |
| 69 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (Y y) (Z y)) x (X x) + |
| 70 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (Z y) (X y)) x (Y x) - |
| 71 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (X y) (Y y)) x (Z x) + |
| 72 | g.inner x (VectorField.mlieBracket (𝓡 n) X Y x) (Z x) - |
| 73 | g.inner x (Y x) (VectorField.mlieBracket (𝓡 n) X Z x) - |
| 74 | g.inner x (X x) (VectorField.mlieBracket (𝓡 n) Y Z x)) U := by |
| 75 | intro x hx |
| 76 | have hXp := (hX x hx).contMDiffAt (hU.mem_nhds hx) |
| 77 | have hYp := (hY x hx).contMDiffAt (hU.mem_nhds hx) |
| 78 | have hZp := (hZ x hx).contMDiffAt (hU.mem_nhds hx) |
| 79 | let : IsManifold (𝓡 n) (minSmoothness ℝ 2) M := |
| 80 | IsManifold.of_le (m := minSmoothness ℝ 2) (n := ∞) |
| 81 | (by |
| 82 | rw [minSmoothness_of_isRCLikeNormedField] |
| 83 | exact WithTop.coe_le_coe.mpr (le_top : (2 : ℕ∞) ≤ ⊤)) |
| 84 | let : IsManifold (𝓡 n) (∞ + 1) M := by |
| 85 | simpa using (inferInstance : IsManifold (𝓡 n) ∞ M) |
| 86 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 87 | ⟨g.toRiemannianMetric⟩ |
| 88 | have hXY := hX.inner_bundle hY |
| 89 | have hZX := hZ.inner_bundle hX |
| 90 | have hYZ := hY.inner_bundle hZ |
| 91 | have hXY_at := (hXY x hx).contMDiffAt (hU.mem_nhds hx) |
| 92 | have hZX_at := (hZX x hx).contMDiffAt (hU.mem_nhds hx) |
| 93 | have hYZ_at := (hYZ x hx).contMDiffAt (hU.mem_nhds hx) |
| 94 | have hXdir := ContMDiffAt.clm_apply_of_inCoordinates |
| 95 | (b₁ := id) (b₂ := fun q ↦ (g.inner q) (Y q) (Z q)) |
| 96 | (hYZ_at.mfderiv_const (m := ∞) (n := ∞) (by simp)) hXp hYZ_at |
| 97 | have hYdir := ContMDiffAt.clm_apply_of_inCoordinates |
| 98 | (b₁ := id) (b₂ := fun q ↦ (g.inner q) (Z q) (X q)) |
| 99 | (hZX_at.mfderiv_const (m := ∞) (n := ∞) (by simp)) hYp hZX_at |
| 100 | have hZdir := ContMDiffAt.clm_apply_of_inCoordinates |
| 101 | (b₁ := id) (b₂ := fun q ↦ (g.inner q) (X q) (Y q)) |
| 102 | (hXY_at.mfderiv_const (m := ∞) (n := ∞) (by simp)) hZp hXY_at |
| 103 | have hbrXY := hXp.mlieBracket_vectorField (m := ⊤) (n := ⊤) hYp (by simp) |
| 104 | have hbrXZ := hXp.mlieBracket_vectorField (m := ⊤) (n := ⊤) hZp (by simp) |
| 105 | have hbrYZ := hYp.mlieBracket_vectorField (m := ⊤) (n := ⊤) hZp (by simp) |
| 106 | have hXdir' := (Bundle.contMDiffAt_totalSpace.mp hXdir).2 |
| 107 | have hYdir' := (Bundle.contMDiffAt_totalSpace.mp hYdir).2 |
| 108 | have hZdir' := (Bundle.contMDiffAt_totalSpace.mp hZdir).2 |
| 109 | have hsum := (((((hXdir'.add hYdir').sub hZdir').add |
| 110 | (hbrXY.inner_bundle hZp)).sub (hYp.inner_bundle hbrXZ)).sub |
| 111 | (hXp.inner_bundle hbrYZ)) |
| 112 | convert hsum.contMDiffWithinAt using 1 |
| 113 | funext y |
| 114 | simp only [trivializationAt_model_space_apply, Pi.add_apply] |
| 115 | rfl |
| 116 | |
| 117 | /-- Smooth Koszul pairings determine a smooth local connection operator. -/ |
| 118 | theorem koszul_operator_contMDiffOn |
| 119 | (g : RiemannianMetric n M) |
| 120 | (A : (Y : (x : M) → TangentSpace (𝓡 n) x) → |
| 121 | (x : M) → TangentSpace (𝓡 n) x →L[ℝ] TangentSpace (𝓡 n) x) |
| 122 | (hA : ∀ (X Y Z : (x : M) → TangentSpace (𝓡 n) x) {x : M}, |
| 123 | MDifferentiableAt (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) (T% X) x → |
| 124 | MDifferentiableAt (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) (T% Y) x → |
| 125 | MDifferentiableAt (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) (T% Z) x → |
| 126 | g.inner x (A Y x (X x)) (Z x) = (1 / 2 : ℝ) * |
| 127 | (mvfderiv (𝓡 n) (fun y ↦ g.inner y (Y y) (Z y)) x (X x) + |
| 128 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (Z y) (X y)) x (Y x) - |
| 129 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (X y) (Y y)) x (Z x) + |
| 130 | g.inner x (VectorField.mlieBracket (𝓡 n) X Y x) (Z x) - |
| 131 | g.inner x (Y x) (VectorField.mlieBracket (𝓡 n) X Z x) - |
| 132 | g.inner x (X x) (VectorField.mlieBracket (𝓡 n) Y Z x))) |
| 133 | {U : Set M} (hU : IsOpen U) |
| 134 | (Y : (x : M) → TangentSpace (𝓡 n) x) |
| 135 | (hY : ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) ∞ (T% Y) U) : |
| 136 | ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n)))) ∞ |
| 137 | (fun x ↦ Bundle.TotalSpace.mk' ((EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n))) x (A Y x)) U := by |
| 138 | intro p hp |
| 139 | let e := trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) p |
| 140 | have hep : p ∈ e.baseSet := FiberBundle.mem_baseSet_trivializationAt' p |
| 141 | let frame (v : (EuclideanSpace ℝ (Fin n))) (q : M) : TangentSpace (𝓡 n) q := e.symmL ℝ q v |
| 142 | have hframe (v : (EuclideanSpace ℝ (Fin n))) : ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)))) ∞ |
| 143 | (T% (frame v)) e.baseSet := by |
| 144 | rw [e.contMDiffOn_section_baseSet_iff (IB := (𝓡 n)) (n := ∞)] |
| 145 | refine (contMDiffOn_const (c := v)).congr ?_ |
| 146 | intro q hq |
| 147 | simpa [frame, Trivialization.symmL_apply _ hq] using |
| 148 | congrArg Prod.snd (e.apply_mk_symm hq v) |
| 149 | let K (X Y Z : (x : M) → TangentSpace (𝓡 n) x) (x : M) : ℝ := |
| 150 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (Y y) (Z y)) x (X x) + |
| 151 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (Z y) (X y)) x (Y x) - |
| 152 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (X y) (Y y)) x (Z x) + |
| 153 | g.inner x (VectorField.mlieBracket (𝓡 n) X Y x) (Z x) - |
| 154 | g.inner x (Y x) (VectorField.mlieBracket (𝓡 n) X Z x) - |
| 155 | g.inner x (X x) (VectorField.mlieBracket (𝓡 n) Y Z x) |
| 156 | let G (q : M) : (EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ := |
| 157 | ContinuousLinearMap.inCoordinates (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) |
| 158 | ((EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ) (fun x ↦ TangentSpace (𝓡 n) x →L[ℝ] ℝ) p q p q (g.inner q) |
| 159 | let B (q : M) : (EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n)) := |
| 160 | ContinuousLinearMap.inCoordinates (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) |
| 161 | p q p q (A Y q) |
| 162 | have hG : ContMDiffAt (𝓡 n) 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ) ∞ G p := by |
| 163 | exact ((contMDiffAt_hom_bundle (fun q ↦ |
| 164 | (TotalSpace.mk' ((EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ) q (g.inner q) : |
| 165 | TotalSpace ((EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ) |
| 166 | (fun x ↦ TangentSpace (𝓡 n) x →L[ℝ] TangentSpace (𝓡 n) x →L[ℝ] ℝ)))).mp |
| 167 | (g.contMDiff p)).2 |
| 168 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 169 | ⟨g.toRiemannianMetric⟩ |
| 170 | have hGinv (q : M) (hq : q ∈ e.baseSet) : (G q).IsInvertible := by |
| 171 | rw [show G q = |
| 172 | (e.continuousLinearEquivAt ℝ q hq).arrowCongr (1 : ℝ ≃L[ℝ] ℝ) ∘L |
| 173 | (g.inner q) ∘L (e.continuousLinearEquivAt ℝ q hq).symm by |
| 174 | ext a b |
| 175 | dsimp [G] |
| 176 | rw [inCoordinates_apply_eq₂ (F₁ := (EuclideanSpace ℝ (Fin n))) (F₂ := (EuclideanSpace ℝ (Fin n))) (F₃ := ℝ) |
| 177 | (E₁ := TangentSpace (𝓡 n)) (E₂ := TangentSpace (𝓡 n)) |
| 178 | (E₃ := fun _ : M ↦ ℝ) hq hq (by simp)] |
| 179 | simp [e] |
| 180 | rfl] |
| 181 | let : FiniteDimensional ℝ (TangentSpace (𝓡 n) q) := |
| 182 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n) : M → Type _) q |
| 183 | have hinj : Function.Injective (g.inner q).toLinearMap := by |
| 184 | intro a b hab |
| 185 | apply ext_inner_right ℝ |
| 186 | intro c |
| 187 | exact congrArg (fun L : TangentSpace (𝓡 n) q →L[ℝ] ℝ ↦ L c) hab |
| 188 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) q) = |
| 189 | Module.finrank ℝ (TangentSpace (𝓡 n) q →L[ℝ] ℝ) := by |
| 190 | calc |
| 191 | _ = Module.finrank ℝ (Module.Dual ℝ (TangentSpace (𝓡 n) q)) := |
| 192 | Subspace.dual_finrank_eq.symm |
| 193 | _ = _ := (LinearMap.toContinuousLinearMap : |
| 194 | (TangentSpace (𝓡 n) q →ₗ[ℝ] ℝ) ≃ₗ[ℝ] (TangentSpace (𝓡 n) q →L[ℝ] ℝ)).finrank_eq |
| 195 | let j : TangentSpace (𝓡 n) q ≃L[ℝ] (TangentSpace (𝓡 n) q →L[ℝ] ℝ) := |
| 196 | ((g.inner q).toLinearMap.linearEquivOfInjective hinj hdim).toContinuousLinearEquiv |
| 197 | have hi : (g.inner q).IsInvertible := by |
| 198 | rw [show g.inner q = j by |
| 199 | ext a b |
| 200 | rfl] |
| 201 | exact ContinuousLinearMap.isInvertible_equiv |
| 202 | have hdual : ((e.continuousLinearEquivAt ℝ q hq).arrowCongr |
| 203 | (1 : ℝ ≃L[ℝ] ℝ) : |
| 204 | (TangentSpace (𝓡 n) q →L[ℝ] ℝ) →L[ℝ] ((EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ)).IsInvertible := |
| 205 | ContinuousLinearMap.isInvertible_equiv |
| 206 | have hT : ((e.continuousLinearEquivAt ℝ q hq).symm : |
| 207 | (EuclideanSpace ℝ (Fin n)) →L[ℝ] TangentSpace (𝓡 n) q).IsInvertible := ContinuousLinearMap.isInvertible_equiv |
| 208 | exact hdual.comp (hi.comp hT) |
| 209 | have hGinv_smooth : ContMDiffAt (𝓡 n) 𝓘(ℝ, ((EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ) →L[ℝ] (EuclideanSpace ℝ (Fin n))) ∞ |
| 210 | (fun q ↦ ContinuousLinearMap.inverse (G q)) p := |
| 211 | (hGinv p hep).contDiffAt_map_inverse.contMDiffAt.comp p hG |
| 212 | have hB : ContMDiffAt (𝓡 n) 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n))) ∞ B p := by |
| 213 | apply contMDiffAt_clm_apply_iff.mpr |
| 214 | intro v |
| 215 | have hQv : ContMDiffAt (𝓡 n) 𝓘(ℝ, (EuclideanSpace ℝ (Fin n)) →L[ℝ] ℝ) ∞ |
| 216 | (fun q ↦ (G q).comp (B q) v) p := by |
| 217 | apply contMDiffAt_clm_apply_iff.mpr |
| 218 | intro w |
| 219 | have hR : ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ (K (frame v) Y (frame w)) |
| 220 | (U ∩ e.baseSet) := |
| 221 | contMDiffOn_koszulExpression g (hU.inter e.open_baseSet) |
| 222 | (frame v) Y (frame w) ((hframe v).mono inter_subset_right) |
| 223 | (hY.mono inter_subset_left) ((hframe w).mono inter_subset_right) |
| 224 | have heq : ∀ᶠ q in 𝓝 p, (G q) (B q v) w = |
| 225 | (1 / 2 : ℝ) * K (frame v) Y (frame w) q := by |
| 226 | filter_upwards [hU.mem_nhds hp, e.open_baseSet.mem_nhds hep] with q hq hqe |
| 227 | have hXq := ((hframe v q hqe).contMDiffAt |
| 228 | (e.open_baseSet.mem_nhds hqe)).mdifferentiableAt (by simp) |
| 229 | have hYq := ((hY q hq).contMDiffAt (hU.mem_nhds hq)).mdifferentiableAt (by simp) |
| 230 | have hZq := ((hframe w q hqe).contMDiffAt |
| 231 | (e.open_baseSet.mem_nhds hqe)).mdifferentiableAt (by simp) |
| 232 | rw [show (G q) (B q v) w = g.inner q (A Y q (frame v q)) (frame w q) by |
| 233 | dsimp [G, B] |
| 234 | rw [inCoordinates_apply_eq₂ (F₁ := (EuclideanSpace ℝ (Fin n))) (F₂ := (EuclideanSpace ℝ (Fin n))) (F₃ := ℝ) |
| 235 | (E₁ := TangentSpace (𝓡 n)) (E₂ := TangentSpace (𝓡 n)) |
| 236 | (E₃ := fun _ : M ↦ ℝ) hqe hqe (by simp)] |
| 237 | rw [ContinuousLinearMap.inCoordinates_eq hqe hqe] |
| 238 | simp only [Trivial.fiberBundle_trivializationAt', |
| 239 | Trivial.linearMapAt_trivialization, LinearMap.id_coe, id_eq, |
| 240 | ContinuousLinearMap.comp_apply] |
| 241 | have hcancel (z : TangentSpace (𝓡 n) q) : |
| 242 | e.symmL ℝ q ((e.continuousLinearEquivAt ℝ q hqe) z) = z := by |
| 243 | rw [← e.symm_continuousLinearEquivAt_eq' hqe] |
| 244 | exact (e.continuousLinearEquivAt ℝ q hqe).symm_apply_apply z |
| 245 | rw [← Trivialization.symmL_apply (R := ℝ) e hqe] |
| 246 | rw [Trivialization.symm_continuousLinearEquivAt_eq' (R := ℝ) e hqe] |
| 247 | change g.inner q (e.symmL ℝ q ((e.continuousLinearEquivAt ℝ q hqe) |
| 248 | (A Y q (e.symmL ℝ q v)))) (e.symm q w) = _ |
| 249 | rw [hcancel] |
| 250 | rw [← Trivialization.symmL_apply (R := ℝ) e hqe w]] |
| 251 | exact hA _ _ _ hXq hYq hZq |
| 252 | have hhalf : ContMDiffAt (𝓡 n) 𝓘(ℝ, ℝ) ∞ (fun _ : M ↦ (1 / 2 : ℝ)) p := |
| 253 | contMDiffAt_const |
| 254 | have hscalar := (hhalf.smul |
| 255 | ((hR p ⟨hp, hep⟩).contMDiffAt |
| 256 | ((hU.inter e.open_baseSet).mem_nhds ⟨hp, hep⟩))).congr_of_eventuallyEq heq |
| 257 | simpa only [ContinuousLinearMap.comp_apply] using hscalar |
| 258 | have hBv := hGinv_smooth.clm_apply hQv |
| 259 | have heq : ∀ᶠ q in 𝓝 p, |
| 260 | (ContinuousLinearMap.inverse (G q)) ((G q).comp (B q) v) = B q v := by |
| 261 | filter_upwards [e.open_baseSet.mem_nhds hep] with q hq |
| 262 | simpa only [ContinuousLinearMap.comp_apply, ContinuousLinearMap.id_apply] using |
| 263 | congrArg (fun L : (EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n)) ↦ L (B q v)) |
| 264 | (ContinuousLinearMap.IsInvertible.inverse_comp_self (hGinv q hq)) |
| 265 | exact hBv.congr_of_eventuallyEq (Filter.EventuallyEq.symm heq) |
| 266 | have htotal := (contMDiffAt_hom_bundle (fun q ↦ |
| 267 | (TotalSpace.mk' ((EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n))) q (A Y q) : |
| 268 | TotalSpace ((EuclideanSpace ℝ (Fin n)) →L[ℝ] (EuclideanSpace ℝ (Fin n))) (fun x ↦ TangentSpace (𝓡 n) x →L[ℝ] TangentSpace (𝓡 n) x)))).mpr |
| 269 | ⟨contMDiffAt_id, hB⟩ |
| 270 | exact htotal.contMDiffWithinAt |
| 271 | |
| 272 | end PoincareMT.RicciFlow.Local |