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.Analysis.Calculus.SmoothCompactness.Uniqueness |
| 2 | |
| 3 | /-! |
| 4 | # Smooth convergence of coordinate pullbacks |
| 5 | |
| 6 | Local eventual smoothness and compact-uniform convergence of all derivatives |
| 7 | are preserved by varying coordinate composition, differentiation, and bilinear |
| 8 | contraction. These operations give convergence of the actual pulled-back |
| 9 | bilinear coefficient fields. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | open Set Filter |
| 14 | open scoped ContDiff Topology |
| 15 | |
| 16 | namespace Poincare.Analysis.Calculus |
| 17 | |
| 18 | theorem eventually_contDiffAt_on_compact |
| 19 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 20 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 21 | {U K : Set E} {f : ℕ → E → F} (hK : IsCompact K) (hKU : K ⊆ U) |
| 22 | (hlocal : ∀ x ∈ U, ∃ V, IsOpen V ∧ x ∈ V ∧ |
| 23 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (f k) V) : |
| 24 | ∀ᶠ k in atTop, ∀ x ∈ K, ContDiffAt ℝ ∞ (f k) x := by |
| 25 | refine hK.induction_on (p := fun S => ∀ᶠ k in atTop, |
| 26 | ∀ x ∈ S, ContDiffAt ℝ ∞ (f k) x) ?_ ?_ ?_ ?_ |
| 27 | · exact Eventually.of_forall (by simp) |
| 28 | · intro S T hST hT |
| 29 | exact hT.mono fun _ hk x hx => hk x (hST hx) |
| 30 | · intro S T hS hT |
| 31 | filter_upwards [hS, hT] with k hkS hkT x hx |
| 32 | exact hx.elim (hkS x) (hkT x) |
| 33 | · intro x hx |
| 34 | obtain ⟨V, hV, hxV, hVsmooth⟩ := hlocal x (hKU hx) |
| 35 | exact ⟨V, mem_nhdsWithin_of_mem_nhds (hV.mem_nhds hxV), |
| 36 | hVsmooth.mono fun _ hk _ hy => hk.contDiffAt (hV.mem_nhds hy)⟩ |
| 37 | |
| 38 | private theorem locallyUniformly_of_zeroJet |
| 39 | {d : ℕ} {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 40 | {U : Set (EuclideanSpace ℝ (Fin d))} (hU : IsOpen U) |
| 41 | {f : ℕ → EuclideanSpace ℝ (Fin d) → F} {f₀ : EuclideanSpace ℝ (Fin d) → F} |
| 42 | (hjet : ∀ K, IsCompact K → K ⊆ U → TendstoUniformlyOn |
| 43 | (fun k => iteratedFDeriv ℝ 0 (f k)) (iteratedFDeriv ℝ 0 f₀) atTop K) : |
| 44 | TendstoLocallyUniformlyOn f f₀ atTop U := by |
| 45 | apply (tendstoLocallyUniformlyOn_iff_forall_isCompact hU).mpr |
| 46 | intro K hKU hK |
| 47 | simpa only [Function.comp_def, iteratedFDeriv_zero_apply] using |
| 48 | (ContinuousMultilinearMap.uniformContinuous_eval_const (0 : Fin 0 → |
| 49 | EuclideanSpace ℝ (Fin d))).comp_tendstoUniformlyOn (hjet K hK hKU) |
| 50 | |
| 51 | /-- Varying composition on open coordinate domains, allowing arbitrary |
| 52 | finite-dimensional output. The conclusion retains local eventual smoothness. -/ |
| 53 | theorem smooth_convergence_comp_on_open |
| 54 | {d : ℕ} {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 55 | [FiniteDimensional ℝ F] |
| 56 | {U V : Set (EuclideanSpace ℝ (Fin d))} (hU : IsOpen U) (hV : IsOpen V) |
| 57 | {f : ℕ → EuclideanSpace ℝ (Fin d) → F} |
| 58 | {g : ℕ → EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d)} |
| 59 | {f₀ : EuclideanSpace ℝ (Fin d) → F} |
| 60 | {g₀ : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d)} |
| 61 | (hf₀ : ContDiffOn ℝ ∞ f₀ U) (hg₀ : ContDiffOn ℝ ∞ g₀ V) |
| 62 | (hgU : MapsTo g₀ V U) |
| 63 | (hflocal : ∀ x ∈ U, ∃ W, IsOpen W ∧ x ∈ W ∧ |
| 64 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (f k) W) |
| 65 | (hglocal : ∀ x ∈ V, ∃ W, IsOpen W ∧ x ∈ W ∧ |
| 66 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (g k) W) |
| 67 | (hfjet : ∀ m K, IsCompact K → K ⊆ U → TendstoUniformlyOn |
| 68 | (fun k => iteratedFDeriv ℝ m (f k)) (iteratedFDeriv ℝ m f₀) atTop K) |
| 69 | (hgjet : ∀ m K, IsCompact K → K ⊆ V → TendstoUniformlyOn |
| 70 | (fun k => iteratedFDeriv ℝ m (g k)) (iteratedFDeriv ℝ m g₀) atTop K) : |
| 71 | (∀ x ∈ V, ∃ W, IsOpen W ∧ x ∈ W ∧ W ⊆ V ∧ |
| 72 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (f k ∘ g k) W) ∧ |
| 73 | ∀ m K, IsCompact K → K ⊆ V → TendstoUniformlyOn |
| 74 | (fun k => iteratedFDeriv ℝ m (f k ∘ g k)) |
| 75 | (iteratedFDeriv ℝ m (f₀ ∘ g₀)) atTop K := by |
| 76 | have hfconv := locallyUniformly_of_zeroJet hU (hfjet 0) |
| 77 | have hgconv := locallyUniformly_of_zeroJet hV (hgjet 0) |
| 78 | have hgc (K : Set (EuclideanSpace ℝ (Fin d))) (hK : IsCompact K) (hKV : K ⊆ V) : |
| 79 | TendstoUniformlyOn g g₀ atTop K := |
| 80 | (tendstoLocallyUniformlyOn_iff_tendstoUniformlyOn_of_compact hK).mp (hgconv.mono hKV) |
| 81 | have hfb := locallyEventuallyBoundedDerivatives_of_tendsto_jets hU hf₀ hfjet |
| 82 | have hgb := locallyEventuallyBoundedDerivatives_of_tendsto_jets hV hg₀ hgjet |
| 83 | have hlocal : ∀ x ∈ V, ∃ W, IsOpen W ∧ x ∈ W ∧ W ⊆ V ∧ |
| 84 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (f k ∘ g k) W := by |
| 85 | intro x hx |
| 86 | obtain ⟨K, hK, hxK, hKV⟩ := exists_compact_between isCompact_singleton hV |
| 87 | (singleton_subset_iff.mpr hx) |
| 88 | obtain ⟨T, hT, hTU, hmap⟩ := exists_compact_target_of_tendstoUniformlyOn hK hU |
| 89 | (hg₀.continuousOn.mono hKV) (hgU.mono_left hKV) (hgc K hK hKV) |
| 90 | refine ⟨interior K, isOpen_interior, hxK (mem_singleton x), interior_subset.trans hKV, ?_⟩ |
| 91 | filter_upwards [hmap, |
| 92 | eventually_contDiffAt_on_compact hT hTU hflocal, |
| 93 | eventually_contDiffAt_on_compact hK hKV hglocal] |
| 94 | with k hkmap hkf hkg y hy |
| 95 | exact ((hkf _ (hkmap (interior_subset hy))).comp y |
| 96 | (hkg y (interior_subset hy))).contDiffWithinAt |
| 97 | refine ⟨hlocal, fun m K hK hKV => ?_⟩ |
| 98 | have hbound : LocallyEventuallyBoundedDerivatives V (fun k => f k ∘ g k) := by |
| 99 | intro C hC hCV l |
| 100 | obtain ⟨T, hT, hTU, hmap⟩ := exists_compact_target_of_tendstoUniformlyOn hC hU |
| 101 | (hg₀.continuousOn.mono hCV) (hgU.mono_left hCV) (hgc C hC hCV) |
| 102 | obtain ⟨A, _, hA⟩ := hfb.bound_all hT hTU l |
| 103 | obtain ⟨B, _, hB⟩ := hgb.bound_all hC hCV l |
| 104 | refine ⟨l.factorial * A * (max B 1) ^ l, ?_⟩ |
| 105 | filter_upwards [hmap, hA, hB, |
| 106 | eventually_contDiffAt_on_compact hT hTU hflocal, |
| 107 | eventually_contDiffAt_on_compact hC hCV hglocal] |
| 108 | with k hkmap hkA hkB hkf hkg x hx |
| 109 | apply norm_iteratedFDeriv_comp_le_of_contDiffAt (hkg x hx) (hkf _ (hkmap hx)) l |
| 110 | (fun r hr => hkA r hr _ (hkmap hx)) |
| 111 | intro r hr hrl |
| 112 | exact (hkB r hrl x hx).trans ((le_max_left _ _).trans |
| 113 | (le_self_pow₀ (le_max_right B 1) (Nat.ne_of_gt hr))) |
| 114 | have hpoint (x : EuclideanSpace ℝ (Fin d)) (hx : x ∈ V) : |
| 115 | Tendsto (fun k => (f k ∘ g k) x) atTop (𝓝 ((f₀ ∘ g₀) x)) := |
| 116 | hfconv.tendsto_comp (hf₀.continuousOn _ (hgU hx)) (hgU hx) |
| 117 | (tendsto_nhdsWithin_iff.mpr ⟨hgconv.tendsto_at hx, |
| 118 | (hgconv.tendsto_at hx).eventually (hU.mem_nhds (hgU hx))⟩) |
| 119 | exact (tendstoLocallyUniformlyOn_iff_tendstoUniformlyOn_of_compact hK).mp |
| 120 | ((tendstoLocallyUniformlyOn_iteratedFDeriv_of_locally_eventually_smooth |
| 121 | hpoint hlocal hbound m).mono hKV) |
| 122 | |
| 123 | /-- Differentiation shifts the compact-uniform jet convergence by one order. -/ |
| 124 | theorem tendstoUniformlyOn_fderiv_jets |
| 125 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 126 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 127 | {f : ℕ → E → F} {f₀ : E → F} {K : Set E} (m : ℕ) |
| 128 | (hjet : TendstoUniformlyOn (fun k => iteratedFDeriv ℝ (m + 1) (f k)) |
| 129 | (iteratedFDeriv ℝ (m + 1) f₀) atTop K) : |
| 130 | TendstoUniformlyOn (fun k => iteratedFDeriv ℝ m (fderiv ℝ (f k))) |
| 131 | (iteratedFDeriv ℝ m (fderiv ℝ f₀)) atTop K := by |
| 132 | have heq (q : E → F) : (fun x => continuousMultilinearCurryRightEquiv' ℝ m E F |
| 133 | (iteratedFDeriv ℝ (m + 1) q x)) = iteratedFDeriv ℝ m (fderiv ℝ q) := by |
| 134 | funext x |
| 135 | rw [iteratedFDeriv_succ_eq_comp_right, Function.comp_apply, |
| 136 | LinearIsometryEquiv.apply_symm_apply] |
| 137 | simpa only [Function.comp_def, heq] using |
| 138 | (continuousMultilinearCurryRightEquiv' ℝ m E F).isometry.uniformContinuous.comp_tendstoUniformlyOn hjet |
| 139 | |
| 140 | private theorem norm_iteratedFDeriv_bilinear_le_at |
| 141 | {E F G H : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 142 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 143 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 144 | [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 145 | (B : F →L[ℝ] G →L[ℝ] H) {f : E → F} {g : E → G} {x : E} |
| 146 | (hf : ContDiffAt ℝ ∞ f x) (hg : ContDiffAt ℝ ∞ g x) (m : ℕ) : |
| 147 | ‖iteratedFDeriv ℝ m (fun y => B (f y) (g y)) x‖ ≤ |
| 148 | ‖B‖ * ∑ l ∈ Finset.range (m + 1), (m.choose l : ℝ) * |
| 149 | ‖iteratedFDeriv ℝ l f x‖ * ‖iteratedFDeriv ℝ (m - l) g x‖ := by |
| 150 | obtain ⟨s, hs, hfs⟩ := hf.contDiffOn (m := (m : ℕ∞ω)) (by exact_mod_cast le_top) (by simp) |
| 151 | obtain ⟨t, ht, hgt⟩ := hg.contDiffOn (m := (m : ℕ∞ω)) (by exact_mod_cast le_top) (by simp) |
| 152 | obtain ⟨v, hv, hvo, hxv⟩ := mem_nhds_iff.mp (inter_mem hs ht) |
| 153 | have h := B.norm_iteratedFDerivWithin_le_of_bilinear |
| 154 | (hfs.mono (fun _ hy => (hv hy).1)) (hgt.mono (fun _ hy => (hv hy).2)) |
| 155 | hvo.uniqueDiffOn hxv (le_refl (m : ℕ∞ω)) |
| 156 | simpa only [iteratedFDerivWithin_of_isOpen _ hvo hxv] using h |
| 157 | |
| 158 | /-- A fixed continuous bilinear operation preserves smooth convergence on an |
| 159 | open coordinate domain, including local eventual smoothness. -/ |
| 160 | theorem smooth_convergence_bilinear_on_open |
| 161 | {d : ℕ} {F G H : Type*} |
| 162 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 163 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 164 | [NormedAddCommGroup H] [NormedSpace ℝ H] [FiniteDimensional ℝ H] |
| 165 | {U : Set (EuclideanSpace ℝ (Fin d))} (hU : IsOpen U) |
| 166 | (B : F →L[ℝ] G →L[ℝ] H) |
| 167 | {f : ℕ → EuclideanSpace ℝ (Fin d) → F} {f₀ : EuclideanSpace ℝ (Fin d) → F} |
| 168 | {g : ℕ → EuclideanSpace ℝ (Fin d) → G} {g₀ : EuclideanSpace ℝ (Fin d) → G} |
| 169 | (hf₀ : ContDiffOn ℝ ∞ f₀ U) (hg₀ : ContDiffOn ℝ ∞ g₀ U) |
| 170 | (hflocal : ∀ x ∈ U, ∃ W, IsOpen W ∧ x ∈ W ∧ |
| 171 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (f k) W) |
| 172 | (hglocal : ∀ x ∈ U, ∃ W, IsOpen W ∧ x ∈ W ∧ |
| 173 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (g k) W) |
| 174 | (hfjet : ∀ m K, IsCompact K → K ⊆ U → TendstoUniformlyOn |
| 175 | (fun k => iteratedFDeriv ℝ m (f k)) (iteratedFDeriv ℝ m f₀) atTop K) |
| 176 | (hgjet : ∀ m K, IsCompact K → K ⊆ U → TendstoUniformlyOn |
| 177 | (fun k => iteratedFDeriv ℝ m (g k)) (iteratedFDeriv ℝ m g₀) atTop K) : |
| 178 | (∀ x ∈ U, ∃ W, IsOpen W ∧ x ∈ W ∧ W ⊆ U ∧ |
| 179 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (fun y => B (f k y) (g k y)) W) ∧ |
| 180 | ∀ m K, IsCompact K → K ⊆ U → TendstoUniformlyOn |
| 181 | (fun k => iteratedFDeriv ℝ m (fun y => B (f k y) (g k y))) |
| 182 | (iteratedFDeriv ℝ m (fun y => B (f₀ y) (g₀ y))) atTop K := by |
| 183 | have hlocal : ∀ x ∈ U, ∃ W, IsOpen W ∧ x ∈ W ∧ W ⊆ U ∧ |
| 184 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (fun y => B (f k y) (g k y)) W := by |
| 185 | intro x hx |
| 186 | obtain ⟨V, hV, hxV, hf⟩ := hflocal x hx |
| 187 | obtain ⟨W, hW, hxW, hg⟩ := hglocal x hx |
| 188 | refine ⟨U ∩ V ∩ W, (hU.inter hV).inter hW, ⟨⟨hx, hxV⟩, hxW⟩, |
| 189 | fun _ hy => hy.1.1, ?_⟩ |
| 190 | filter_upwards [hf, hg] with k hkf hkg |
| 191 | exact B.isBoundedBilinearMap.contDiff.comp₂_contDiffOn |
| 192 | (hkf.mono fun _ hy => hy.1.2) (hkg.mono fun _ hy => hy.2) |
| 193 | refine ⟨hlocal, fun m K hK hKU => ?_⟩ |
| 194 | have hfb := locallyEventuallyBoundedDerivatives_of_tendsto_jets hU hf₀ hfjet |
| 195 | have hgb := locallyEventuallyBoundedDerivatives_of_tendsto_jets hU hg₀ hgjet |
| 196 | have hbound : LocallyEventuallyBoundedDerivatives U (fun k y => B (f k y) (g k y)) := by |
| 197 | intro C hC hCU l |
| 198 | obtain ⟨A, hA0, hA⟩ := hfb.bound_all hC hCU l |
| 199 | obtain ⟨D, hD0, hD⟩ := hgb.bound_all hC hCU l |
| 200 | refine ⟨‖B‖ * ∑ r ∈ Finset.range (l + 1), (l.choose r : ℝ) * A * D, ?_⟩ |
| 201 | filter_upwards [hA, hD, |
| 202 | eventually_contDiffAt_on_compact hC hCU hflocal, |
| 203 | eventually_contDiffAt_on_compact hC hCU hglocal] |
| 204 | with k hkA hkD hkf hkg x hx |
| 205 | refine (norm_iteratedFDeriv_bilinear_le_at B (hkf x hx) (hkg x hx) l).trans ?_ |
| 206 | apply mul_le_mul_of_nonneg_left _ (norm_nonneg B) |
| 207 | apply Finset.sum_le_sum |
| 208 | intro r hr |
| 209 | have hrl := Nat.le_of_lt_succ (Finset.mem_range.mp hr) |
| 210 | exact mul_le_mul (mul_le_mul_of_nonneg_left (hkA r hrl x hx) (by positivity)) |
| 211 | (hkD (l - r) (Nat.sub_le _ _) x hx) (norm_nonneg _) (by positivity) |
| 212 | have hfpoint := locallyUniformly_of_zeroJet hU (hfjet 0) |
| 213 | have hgpoint := locallyUniformly_of_zeroJet hU (hgjet 0) |
| 214 | have hpoint (x : EuclideanSpace ℝ (Fin d)) (hx : x ∈ U) : |
| 215 | Tendsto (fun k => B (f k x) (g k x)) atTop (𝓝 (B (f₀ x) (g₀ x))) := |
| 216 | (B.isBoundedBilinearMap.continuous.tendsto (f₀ x, g₀ x)).comp |
| 217 | ((hfpoint.tendsto_at hx).prodMk_nhds (hgpoint.tendsto_at hx)) |
| 218 | exact (tendstoLocallyUniformlyOn_iff_tendstoUniformlyOn_of_compact hK).mp |
| 219 | ((tendstoLocallyUniformlyOn_iteratedFDeriv_of_locally_eventually_smooth |
| 220 | hpoint hlocal hbound m).mono hKU) |
| 221 | |
| 222 | /-- Pulling back varying bilinear coefficient fields by varying coordinate maps |
| 223 | preserves compact-uniform convergence of every derivative. The pulled-back |
| 224 | form at `x` evaluates to `B k (a k x) (Da k x v) (Da k x w)`. -/ |
| 225 | theorem smooth_convergence_pullback_bilinear_on_open |
| 226 | {d : ℕ} {U V : Set (EuclideanSpace ℝ (Fin d))} |
| 227 | (hU : IsOpen U) (hV : IsOpen V) |
| 228 | {B : ℕ → EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d) →L[ℝ] |
| 229 | EuclideanSpace ℝ (Fin d) →L[ℝ] ℝ} |
| 230 | {B₀ : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d) →L[ℝ] |
| 231 | EuclideanSpace ℝ (Fin d) →L[ℝ] ℝ} |
| 232 | {a : ℕ → EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d)} |
| 233 | {a₀ : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d)} |
| 234 | (hB₀ : ContDiffOn ℝ ∞ B₀ U) (ha₀ : ContDiffOn ℝ ∞ a₀ V) |
| 235 | (haU : MapsTo a₀ V U) |
| 236 | (hBlocal : ∀ x ∈ U, ∃ W, IsOpen W ∧ x ∈ W ∧ |
| 237 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (B k) W) |
| 238 | (halocal : ∀ x ∈ V, ∃ W, IsOpen W ∧ x ∈ W ∧ |
| 239 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (a k) W) |
| 240 | (hBjet : ∀ m K, IsCompact K → K ⊆ U → TendstoUniformlyOn |
| 241 | (fun k => iteratedFDeriv ℝ m (B k)) (iteratedFDeriv ℝ m B₀) atTop K) |
| 242 | (hajet : ∀ m K, IsCompact K → K ⊆ V → TendstoUniformlyOn |
| 243 | (fun k => iteratedFDeriv ℝ m (a k)) (iteratedFDeriv ℝ m a₀) atTop K) : |
| 244 | (∀ x ∈ V, ∃ W, IsOpen W ∧ x ∈ W ∧ W ⊆ V ∧ ∀ᶠ k in atTop, |
| 245 | ContDiffOn ℝ ∞ (fun y => (B k (a k y)).bilinearComp |
| 246 | (fderiv ℝ (a k) y) (fderiv ℝ (a k) y)) W) ∧ |
| 247 | ∀ m K, IsCompact K → K ⊆ V → TendstoUniformlyOn |
| 248 | (fun k => iteratedFDeriv ℝ m (fun y => (B k (a k y)).bilinearComp |
| 249 | (fderiv ℝ (a k) y) (fderiv ℝ (a k) y))) |
| 250 | (iteratedFDeriv ℝ m (fun y => (B₀ (a₀ y)).bilinearComp |
| 251 | (fderiv ℝ a₀ y) (fderiv ℝ a₀ y))) atTop K := by |
| 252 | let E := EuclideanSpace ℝ (Fin d) |
| 253 | let T := E →L[ℝ] E →L[ℝ] ℝ |
| 254 | let : NormedAddCommGroup T := inferInstance |
| 255 | let : NormedSpace ℝ T := inferInstance |
| 256 | let : NormedAddCommGroup (E →L[ℝ] E) := inferInstance |
| 257 | let : NormedSpace ℝ (E →L[ℝ] E) := inferInstance |
| 258 | let flip : T →L[ℝ] T := |
| 259 | (ContinuousLinearMap.flipₗᵢ ℝ E E ℝ).toContinuousLinearEquiv.toContinuousLinearMap |
| 260 | let op : T →L[ℝ] (E →L[ℝ] E) →L[ℝ] T := |
| 261 | (ContinuousLinearMap.compL ℝ (E →L[ℝ] E) T T flip).comp |
| 262 | (ContinuousLinearMap.compL ℝ E E (E →L[ℝ] ℝ)) |
| 263 | have hop (b : T) (A : E →L[ℝ] E) : op b A = (b.comp A).flip := rfl |
| 264 | obtain ⟨hClocal, hCjet⟩ := smooth_convergence_comp_on_open hU hV hB₀ ha₀ haU |
| 265 | hBlocal halocal hBjet hajet |
| 266 | have hC₀ : ContDiffOn ℝ ∞ (B₀ ∘ a₀) V := hB₀.comp ha₀ haU |
| 267 | have hd₀ : ContDiffOn ℝ ∞ (fderiv ℝ a₀) V := |
| 268 | ha₀.fderiv_of_isOpen hV (by simp) |
| 269 | have hdlocal : ∀ x ∈ V, ∃ W, IsOpen W ∧ x ∈ W ∧ |
| 270 | ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (fderiv ℝ (a k)) W := by |
| 271 | intro x hx |
| 272 | obtain ⟨W, hW, hxW, hks⟩ := halocal x hx |
| 273 | exact ⟨W, hW, hxW, hks.mono fun k hk => hk.fderiv_of_isOpen hW (by simp)⟩ |
| 274 | have hdjet : ∀ m K, IsCompact K → K ⊆ V → TendstoUniformlyOn |
| 275 | (fun k => iteratedFDeriv ℝ m (fderiv ℝ (a k))) |
| 276 | (iteratedFDeriv ℝ m (fderiv ℝ a₀)) atTop K := |
| 277 | fun m K hK hKV => tendstoUniformlyOn_fderiv_jets m (hajet (m + 1) K hK hKV) |
| 278 | obtain ⟨hfirstlocal, hfirstjet⟩ := smooth_convergence_bilinear_on_open hV op hC₀ hd₀ |
| 279 | (fun x hx => let ⟨W, hW, hxW, _, hks⟩ := hClocal x hx; ⟨W, hW, hxW, hks⟩) |
| 280 | hdlocal hCjet hdjet |
| 281 | have hfirst₀ : ContDiffOn ℝ ∞ (fun y => op (B₀ (a₀ y)) (fderiv ℝ a₀ y)) V := |
| 282 | op.isBoundedBilinearMap.contDiff.comp₂_contDiffOn hC₀ hd₀ |
| 283 | have hsecond := smooth_convergence_bilinear_on_open hV op hfirst₀ hd₀ |
| 284 | (fun x hx => let ⟨W, hW, hxW, _, hks⟩ := hfirstlocal x hx; ⟨W, hW, hxW, hks⟩) |
| 285 | hdlocal hfirstjet hdjet |
| 286 | simpa only [hop, Function.comp_apply, ContinuousLinearMap.bilinearComp] using hsecond |
| 287 | |
| 288 | end Poincare.Analysis.Calculus |