Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.CauchyRestriction |
| 2 | import NavierStokes.CompactSmoothFamily |
| 3 | |
| 4 | /-! |
| 5 | # Joint real smoothness of smooth families of holomorphic disk functions |
| 6 | |
| 7 | A fixed-contour Cauchy formula realizes evaluation inside a disk as a smooth |
| 8 | supremum-norm kernel paired with the supplied Banach-valued curve. This proves |
| 9 | joint smoothness, rather than inferring it from separate smoothness. |
| 10 | -/ |
| 11 | |
| 12 | namespace NavierStokes.HolomorphicFamily |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter Metric Complex MeasureTheory |
| 17 | open scoped Topology ContDiff Interval |
| 18 | |
| 19 | open CauchyRestriction |
| 20 | |
| 21 | abbrev Angles := ↥(Icc (0 : ℝ) (2 * Real.pi)) |
| 22 | |
| 23 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 24 | |
| 25 | /-- Continuous extension of an angle path, used only inside its integration interval. -/ |
| 26 | noncomputable def angleExtend (f : C(Angles, E)) (θ : ℝ) : E := |
| 27 | f (projIcc 0 (2 * Real.pi) Real.two_pi_pos.le θ) |
| 28 | |
| 29 | omit [NormedSpace ℂ E] in |
| 30 | theorem continuous_angleExtend (f : C(Angles, E)) : Continuous (angleExtend f) := |
| 31 | f.continuous.comp continuous_projIcc |
| 32 | |
| 33 | omit [NormedSpace ℂ E] in |
| 34 | theorem angleExtend_coe (f : C(Angles, E)) (θ : Angles) : angleExtend f θ = f θ := by |
| 35 | simp only [angleExtend, projIcc_val] |
| 36 | |
| 37 | theorem norm_angleIntegral_le (f : C(Angles, E)) : |
| 38 | ‖∫ θ in (0 : ℝ)..(2 * Real.pi), angleExtend f θ‖ ≤ (2 * Real.pi) * ‖f‖ := by |
| 39 | have h := intervalIntegral.norm_integral_le_of_norm_le_const |
| 40 | (a := (0 : ℝ)) (b := 2 * Real.pi) (f := angleExtend f) |
| 41 | (fun θ _ => f.norm_coe_le_norm (projIcc 0 (2 * Real.pi) Real.two_pi_pos.le θ)) |
| 42 | calc |
| 43 | _ ≤ ‖f‖ * |2 * Real.pi - 0| := h |
| 44 | _ = (2 * Real.pi) * ‖f‖ := by rw [sub_zero, abs_of_pos Real.two_pi_pos]; ring |
| 45 | |
| 46 | /-- Integration is a bounded real-linear map on continuous angle paths. -/ |
| 47 | noncomputable def angleIntegral : C(Angles, E) →L[ℝ] E := |
| 48 | LinearMap.mkContinuous { |
| 49 | toFun f := ∫ θ in (0 : ℝ)..(2 * Real.pi), angleExtend f θ |
| 50 | map_add' := by |
| 51 | intro f g |
| 52 | exact intervalIntegral.integral_add (continuous_angleExtend f |>.intervalIntegrable _ _) |
| 53 | (continuous_angleExtend g |>.intervalIntegrable _ _) |
| 54 | map_smul' := by |
| 55 | intro r f |
| 56 | exact intervalIntegral.integral_smul r (angleExtend f) |
| 57 | } (2 * Real.pi) norm_angleIntegral_le |
| 58 | |
| 59 | /-- Sampling the outer circle as a continuous map into the closed disk. -/ |
| 60 | noncomputable def circleInput (c : ℂ) {σ : ℝ} (hσ : 0 < σ) : C(Angles, Disk c σ) where |
| 61 | toFun θ := ⟨circleMap c σ θ, sphere_subset_closedBall (circleMap_mem_sphere c hσ.le θ)⟩ |
| 62 | continuous_toFun := ((continuous_circleMap c σ).comp continuous_subtype_val).subtype_mk _ |
| 63 | |
| 64 | /-- Circle sampling has operator norm at most one. -/ |
| 65 | noncomputable def sampleCircle (c : ℂ) {σ : ℝ} (hσ : 0 < σ) : |
| 66 | C(Disk c σ, E) →L[ℝ] C(Angles, E) := |
| 67 | LinearMap.mkContinuous { |
| 68 | toFun f := f.comp (circleInput c hσ) |
| 69 | map_add' := by intros; rfl |
| 70 | map_smul' := by intros; rfl |
| 71 | } 1 (by |
| 72 | intro f |
| 73 | change ‖f.comp (circleInput c hσ)‖ ≤ 1 * ‖f‖ |
| 74 | simpa only [one_mul] using |
| 75 | (ContinuousMap.norm_le (f.comp (circleInput c hσ)) (norm_nonneg f)).mpr |
| 76 | (fun θ => f.norm_coe_le_norm _)) |
| 77 | |
| 78 | /-- Pointwise complex multiplication of a scalar angle path and a vector path. -/ |
| 79 | noncomputable def multiplyPaths (k : C(Angles, ℂ)) (v : C(Angles, E)) : C(Angles, E) := |
| 80 | ⟨fun θ => k θ • v θ, k.continuous.smul v.continuous⟩ |
| 81 | |
| 82 | theorem norm_multiplyPaths_le (k : C(Angles, ℂ)) (v : C(Angles, E)) : |
| 83 | ‖multiplyPaths k v‖ ≤ ‖k‖ * ‖v‖ := by |
| 84 | apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg _) (norm_nonneg _))).mpr |
| 85 | intro θ |
| 86 | change ‖k θ • v θ‖ ≤ _ |
| 87 | rw [norm_smul] |
| 88 | exact mul_le_mul (k.norm_coe_le_norm _) (v.norm_coe_le_norm _) |
| 89 | (norm_nonneg _) (norm_nonneg _) |
| 90 | |
| 91 | noncomputable def multiplyPathsLinear : |
| 92 | C(Angles, ℂ) →ₗ[ℝ] C(Angles, E) →ₗ[ℝ] C(Angles, E) where |
| 93 | toFun k := { |
| 94 | toFun := multiplyPaths k |
| 95 | map_add' := by intro f g; ext θ; exact smul_add _ _ _ |
| 96 | map_smul' := by intro r f; ext θ; exact smul_comm _ _ _ } |
| 97 | map_add' := by intro k l; ext f θ; exact add_smul _ _ _ |
| 98 | map_smul' := by |
| 99 | intro r k |
| 100 | ext f θ |
| 101 | exact smul_assoc r (k θ) (f θ) |
| 102 | |
| 103 | /-- A concrete bounded bilinear pairing of continuous contour paths. -/ |
| 104 | noncomputable def pathAction : |
| 105 | C(Angles, ℂ) →L[ℝ] C(Angles, E) →L[ℝ] C(Angles, E) := |
| 106 | (multiplyPathsLinear (E := E)).mkContinuous₂ |
| 107 | (𝕜 := ℝ) (𝕜₂ := ℝ) (𝕜₃ := ℝ) 1 |
| 108 | (fun k v => by |
| 109 | change ‖multiplyPaths k v‖ ≤ 1 * ‖k‖ * ‖v‖ |
| 110 | simpa only [one_mul] using norm_multiplyPaths_le k v) |
| 111 | |
| 112 | /-- The fixed-circle Cauchy kernel, including the circle's tangent factor. -/ |
| 113 | noncomputable def kernel (c : ℂ) (σ : ℝ) (p : ℂ × ℝ) : ℂ := |
| 114 | (circleMap 0 σ p.2 * I) * (circleMap c σ p.2 - p.1)⁻¹ |
| 115 | |
| 116 | theorem contDiffOn_kernel (c : ℂ) (σ : ℝ) : |
| 117 | ContDiffOn ℝ ∞ (kernel c σ) (ball c σ ×ˢ (univ : Set ℝ)) := by |
| 118 | have hc : ContDiff ℝ ∞ (fun p : ℂ × ℝ => circleMap c σ p.2) := |
| 119 | (contDiff_circleMap c σ).comp contDiff_snd |
| 120 | have ht : ContDiff ℝ ∞ (fun p : ℂ × ℝ => circleMap 0 σ p.2 * I) := |
| 121 | ((contDiff_circleMap 0 σ).comp contDiff_snd).mul contDiff_const |
| 122 | exact ht.contDiffOn.mul ((hc.sub contDiff_fst).contDiffOn.inv |
| 123 | (fun p hp => sub_ne_zero.mpr (circleMap_ne_mem_ball hp.1 p.2))) |
| 124 | |
| 125 | /-- The Cauchy kernel is smooth as a supremum-norm continuous path. -/ |
| 126 | noncomputable def kernelPath (c : ℂ) (σ : ℝ) : ℂ → C(Angles, ℂ) := |
| 127 | CompactSmoothFamily.family (Icc (0 : ℝ) (2 * Real.pi)) (kernel c σ) |
| 128 | |
| 129 | theorem contDiffOn_kernelPath (c : ℂ) (σ : ℝ) : |
| 130 | ContDiffOn ℝ ∞ (kernelPath c σ) (ball c σ) := |
| 131 | CompactSmoothFamily.contDiffOn_family_of_joint (Icc (0 : ℝ) (2 * Real.pi)) |
| 132 | (ball c σ) univ isOpen_ball isOpen_univ (subset_univ _) |
| 133 | (kernel c σ) (contDiffOn_kernel c σ) |
| 134 | |
| 135 | theorem kernelPath_apply (c : ℂ) (σ : ℝ) {z : ℂ} (hz : z ∈ ball c σ) (θ : Angles) : |
| 136 | kernelPath c σ z θ = (circleMap 0 σ θ * I) * (circleMap c σ θ - z)⁻¹ := |
| 137 | CompactSmoothFamily.family_apply_of_joint (Icc (0 : ℝ) (2 * Real.pi)) (subset_univ _) |
| 138 | (kernel c σ) (contDiffOn_kernel c σ).continuousOn hz θ |
| 139 | |
| 140 | /-- Fixed-contour evaluation, defined for every continuous outer-disk input. -/ |
| 141 | noncomputable def cauchyValue (c : ℂ) {σ : ℝ} (hσ : 0 < σ) |
| 142 | (V : ℝ → C(Disk c σ, E)) (p : ℝ × ℂ) : E := |
| 143 | (2 * Real.pi * I : ℂ)⁻¹ • angleIntegral |
| 144 | (pathAction (E := E) (kernelPath c σ p.2) (sampleCircle c hσ (V p.1))) |
| 145 | |
| 146 | /-- Joint smoothness of the actual Cauchy integral follows from bounded |
| 147 | bilinearity and supremum-norm smoothness of its two contour inputs. -/ |
| 148 | theorem contDiffOn_cauchyValue (c : ℂ) {σ : ℝ} (hσ : 0 < σ) |
| 149 | {S : Set ℝ} (V : ℝ → C(Disk c σ, E)) (hV : ContDiffOn ℝ ∞ V S) : |
| 150 | ContDiffOn ℝ ∞ (cauchyValue c hσ V) (S ×ˢ ball c σ) := by |
| 151 | have hk : ContDiffOn ℝ ∞ (fun p : ℝ × ℂ => kernelPath c σ p.2) (S ×ˢ ball c σ) := |
| 152 | (contDiffOn_kernelPath c σ).comp contDiffOn_snd (fun p hp => hp.2) |
| 153 | have hv : ContDiffOn ℝ ∞ (fun p : ℝ × ℂ => V p.1) (S ×ˢ ball c σ) := |
| 154 | hV.comp contDiffOn_fst (fun p hp => hp.1) |
| 155 | have hs : ContDiffOn ℝ ∞ |
| 156 | (fun p : ℝ × ℂ => sampleCircle c hσ (V p.1)) (S ×ˢ ball c σ) := |
| 157 | (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 158 | (E := C(Disk c σ, E)) (F := C(Angles, E)) (sampleCircle c hσ)).comp_contDiffOn hv |
| 159 | have hpa : ContDiff ℝ ∞ (pathAction (E := E)) := |
| 160 | ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) (E := C(Angles, ℂ)) |
| 161 | (F := C(Angles, E) →L[ℝ] C(Angles, E)) (pathAction (E := E)) |
| 162 | have hp : ContDiffOn ℝ ∞ |
| 163 | (fun p : ℝ × ℂ => pathAction (E := E) (kernelPath c σ p.2) (sampleCircle c hσ (V p.1))) |
| 164 | (S ×ˢ ball c σ) := |
| 165 | (hpa.comp_contDiffOn hk).clm_apply hs |
| 166 | exact ((ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 167 | (E := C(Angles, E)) (F := E) (angleIntegral (E := E))).comp_contDiffOn hp).const_smul _ |
| 168 | |
| 169 | /-- Continuous disk data supplies the boundary-continuity part of the Cauchy formula. -/ |
| 170 | theorem diffContOnCl_of_values (c : ℂ) {σ : ℝ} (v : C(Disk c σ, E)) (F : ℂ → E) |
| 171 | (hF : DifferentiableOn ℂ F (ball c σ)) (hvalues : ∀ z : Disk c σ, v z = F z) : |
| 172 | DiffContOnCl ℂ F (ball c σ) := by |
| 173 | apply DiffContOnCl.mk_ball hF |
| 174 | apply continuousOn_iff_continuous_domRestrict.mpr |
| 175 | convert! v.continuous using 1 |
| 176 | funext z |
| 177 | exact (hvalues z).symm |
| 178 | |
| 179 | variable [CompleteSpace E] |
| 180 | |
| 181 | /-- The jointly smooth Cauchy expression agrees with every holomorphic slice |
| 182 | represented by the given continuous disk input. -/ |
| 183 | theorem cauchyValue_eq (c : ℂ) {σ : ℝ} (hσ : 0 < σ) |
| 184 | (V : ℝ → C(Disk c σ, E)) (F : ℝ → ℂ → E) {r : ℝ} |
| 185 | (hF : DifferentiableOn ℂ (F r) (ball c σ)) |
| 186 | (hvalues : ∀ z : Disk c σ, V r z = F r z) {z : ℂ} (hz : z ∈ ball c σ) : |
| 187 | cauchyValue c hσ V (r, z) = F r z := by |
| 188 | have hC := diffContOnCl_of_values c (V r) (F r) hF hvalues |
| 189 | rw [← hC.two_pi_i_inv_smul_circleIntegral_sub_inv_smul hz] |
| 190 | apply congrArg (fun v : E => (2 * Real.pi * I : ℂ)⁻¹ • v) |
| 191 | change (∫ θ in (0 : ℝ)..(2 * Real.pi), angleExtend |
| 192 | (pathAction (E := E) (kernelPath c σ z) (sampleCircle c hσ (V r))) θ) = |
| 193 | ∫ θ in (0 : ℝ)..(2 * Real.pi), deriv (circleMap c σ) θ • |
| 194 | ((circleMap c σ θ - z)⁻¹ • F r (circleMap c σ θ)) |
| 195 | apply intervalIntegral.integral_congr |
| 196 | intro θ hθ |
| 197 | rw [uIcc_of_le Real.two_pi_pos.le] at hθ |
| 198 | have he : angleExtend (pathAction (E := E) (kernelPath c σ z) (sampleCircle c hσ (V r))) θ = |
| 199 | kernelPath c σ z ⟨θ, hθ⟩ • V r (circleInput c hσ ⟨θ, hθ⟩) := by |
| 200 | rw [angleExtend, projIcc_of_mem Real.two_pi_pos.le hθ] |
| 201 | rfl |
| 202 | rw [he, kernelPath_apply c σ hz, hvalues] |
| 203 | dsimp only |
| 204 | rw [deriv_circleMap, mul_smul] |
| 205 | rfl |
| 206 | |
| 207 | /-- A genuine smooth Banach-valued disk family of holomorphic slices is jointly |
| 208 | real smooth throughout the open disk. -/ |
| 209 | theorem contDiffOn_of_disk_family (c : ℂ) {σ : ℝ} (hσ : 0 < σ) |
| 210 | {S : Set ℝ} (V : ℝ → C(Disk c σ, E)) (F : ℝ → ℂ → E) |
| 211 | (hV : ContDiffOn ℝ ∞ V S) |
| 212 | (hF : ∀ r ∈ S, DifferentiableOn ℂ (F r) (ball c σ)) |
| 213 | (hvalues : ∀ r ∈ S, ∀ z : Disk c σ, V r z = F r z) : |
| 214 | ContDiffOn ℝ ∞ (fun p : ℝ × ℂ => F p.1 p.2) (S ×ˢ ball c σ) := by |
| 215 | apply (contDiffOn_cauchyValue c hσ V hV).congr |
| 216 | intro p hp |
| 217 | exact (cauchyValue_eq c hσ V F (hF p.1 hp.1) (hvalues p.1 hp.1) hp.2).symm |
| 218 | |
| 219 | /-- The smaller-disk form used by the Volterra regularity construction. -/ |
| 220 | theorem contDiffOn_of_disk_family_smaller (c : ℂ) {ρ σ : ℝ} (hσ : 0 < σ) (hgap : ρ < σ) |
| 221 | {S : Set ℝ} (V : ℝ → C(Disk c σ, E)) (F : ℝ → ℂ → E) |
| 222 | (hV : ContDiffOn ℝ ∞ V S) |
| 223 | (hF : ∀ r ∈ S, DifferentiableOn ℂ (F r) (ball c σ)) |
| 224 | (hvalues : ∀ r ∈ S, ∀ z : Disk c σ, V r z = F r z) : |
| 225 | ContDiffOn ℝ ∞ (fun p : ℝ × ℂ => F p.1 p.2) (S ×ˢ ball c ρ) := |
| 226 | (contDiffOn_of_disk_family c hσ V F hV hF hvalues).mono |
| 227 | (Set.prod_mono Subset.rfl (ball_subset_ball hgap.le)) |
| 228 | |
| 229 | /-- Real-linear joint derivative: a real radial increment and a complex disk |
| 230 | increment act on the two actual partial derivatives. -/ |
| 231 | noncomputable def jointDerivative (a b : E) : ℝ × ℂ →L[ℝ] E := |
| 232 | ((1 : ℝ →L[ℝ] ℝ).smulRight a).coprod |
| 233 | (((1 : ℂ →L[ℂ] ℂ).smulRight b).restrictScalars ℝ) |
| 234 | |
| 235 | omit [CompleteSpace E] in |
| 236 | @[simp] theorem jointDerivative_apply (a b : E) (v : ℝ × ℂ) : |
| 237 | jointDerivative a b v = v.1 • a + v.2 • b := rfl |
| 238 | |
| 239 | omit [CompleteSpace E] in |
| 240 | /-- The radial partial derivative is obtained by evaluating the genuine |
| 241 | supremum-norm derivative of the supplied disk curve. -/ |
| 242 | theorem hasDerivAt_parameter (c : ℂ) {σ : ℝ} {S : Set ℝ} (hS : IsOpen S) |
| 243 | (V : ℝ → C(Disk c σ, E)) (F : ℝ → ℂ → E) |
| 244 | (hV : ContDiffOn ℝ ∞ V S) |
| 245 | (hvalues : ∀ r ∈ S, ∀ z : Disk c σ, V r z = F r z) |
| 246 | {r : ℝ} (hr : r ∈ S) (z : Disk c σ) : |
| 247 | HasDerivAt (fun s => F s z) (deriv V r z) r := by |
| 248 | have hdV : HasDerivAt V (deriv V r) r := |
| 249 | ((hV r hr).contDiffAt (hS.mem_nhds hr)).differentiableAt (by simp) |>.hasDerivAt |
| 250 | have heval : HasFDerivAt (ContinuousMap.evalCLM ℝ z) |
| 251 | (ContinuousMap.evalCLM ℝ z) (V r) := |
| 252 | ContinuousLinearMap.hasFDerivAt (𝕜 := ℝ) |
| 253 | (E := C(Disk c σ, E)) (F := E) (ContinuousMap.evalCLM ℝ z) |
| 254 | apply (heval.comp_hasDerivAt r hdV).congr_of_eventuallyEq |
| 255 | filter_upwards [hS.mem_nhds hr] with s hs |
| 256 | exact (hvalues s hs z).symm |
| 257 | |
| 258 | /-- CauchyRestriction's bounded operator is the actual complex partial. -/ |
| 259 | theorem hasDerivAt_complex (c : ℂ) {ρ σ : ℝ} (hgap : ρ < σ) |
| 260 | (v : C(Disk c σ, E)) (F : ℂ → E) |
| 261 | (hF : DifferentiableOn ℂ F (ball c σ)) |
| 262 | (hvalues : ∀ z : Disk c σ, v z = F z) (z : Disk c ρ) : |
| 263 | HasDerivAt F (derivativeCLM c hgap v z) z := by |
| 264 | rw [derivativeCLM_apply_of_eq c hgap v F (diffContOnCl_of_values c v F hF hvalues) hvalues] |
| 265 | exact (hF.differentiableAt (isOpen_ball.mem_nhds (z.2.trans_lt hgap))).hasDerivAt |
| 266 | |
| 267 | /-- The actual joint Fréchet derivative combines the supremum-norm radial |
| 268 | derivative with the bounded Cauchy differentiation operator. -/ |
| 269 | theorem hasFDerivAt_joint (c : ℂ) {ρ σ : ℝ} (hσ : 0 < σ) (hgap : ρ < σ) |
| 270 | {S : Set ℝ} (hS : IsOpen S) (V : ℝ → C(Disk c σ, E)) (F : ℝ → ℂ → E) |
| 271 | (hV : ContDiffOn ℝ ∞ V S) |
| 272 | (hF : ∀ r ∈ S, DifferentiableOn ℂ (F r) (ball c σ)) |
| 273 | (hvalues : ∀ r ∈ S, ∀ z : Disk c σ, V r z = F r z) |
| 274 | {r : ℝ} (hr : r ∈ S) (z : Disk c ρ) : |
| 275 | HasFDerivAt (fun p : ℝ × ℂ => F p.1 p.2) |
| 276 | (jointDerivative (deriv V r ⟨z, closedBall_subset_closedBall hgap.le z.2⟩) |
| 277 | (derivativeCLM c hgap (V r) z)) (r, (z : ℂ)) := by |
| 278 | let g : ℝ × ℂ → E := fun p => F p.1 p.2 |
| 279 | let a := deriv V r ⟨z, closedBall_subset_closedBall hgap.le z.2⟩ |
| 280 | let b := derivativeCLM c hgap (V r) z |
| 281 | let D := fderiv ℝ g (r, (z : ℂ)) |
| 282 | have hz : (z : ℂ) ∈ ball c σ := z.2.trans_lt hgap |
| 283 | have hg : HasFDerivAt g D (r, (z : ℂ)) := |
| 284 | ((contDiffOn_of_disk_family c hσ V F hV hF hvalues (r, (z : ℂ)) ⟨hr, hz⟩).contDiffAt |
| 285 | ((hS.prod isOpen_ball).mem_nhds ⟨hr, hz⟩)).differentiableAt (by simp) |>.hasFDerivAt |
| 286 | have ha : HasDerivAt (fun s => F s z) a r := |
| 287 | hasDerivAt_parameter c hS V F hV hvalues hr ⟨z, closedBall_subset_closedBall hgap.le z.2⟩ |
| 288 | have hb : HasDerivAt (F r) b (z : ℂ) := |
| 289 | hasDerivAt_complex c hgap (V r) (F r) (hF r hr) (hvalues r hr) z |
| 290 | have hleftD : HasFDerivAt (fun s => F s z) (D.comp (ContinuousLinearMap.inl ℝ ℝ ℂ)) r := |
| 291 | HasFDerivAt.comp (𝕜 := ℝ) (E := ℝ) (F := ℝ × ℂ) (G := E) |
| 292 | (f := fun s : ℝ => (s, (z : ℂ))) (g := g) |
| 293 | (f' := ContinuousLinearMap.inl ℝ ℝ ℂ) (g' := D) r hg |
| 294 | (hasFDerivAt_prodMk_left (𝕜 := ℝ) r (z : ℂ)) |
| 295 | have hrightD : HasFDerivAt (F r) (D.comp (ContinuousLinearMap.inr ℝ ℝ ℂ)) (z : ℂ) := |
| 296 | HasFDerivAt.comp (𝕜 := ℝ) (E := ℂ) (F := ℝ × ℂ) (G := E) |
| 297 | (f := fun w : ℂ => (r, w)) (g := g) |
| 298 | (f' := ContinuousLinearMap.inr ℝ ℝ ℂ) (g' := D) (z : ℂ) hg |
| 299 | (hasFDerivAt_prodMk_right (𝕜 := ℝ) r (z : ℂ)) |
| 300 | have hleft := hleftD.unique ha.hasFDerivAt |
| 301 | have hright := hrightD.unique (hb.hasFDerivAt.restrictScalars ℝ) |
| 302 | have hD : D = jointDerivative a b := by |
| 303 | apply ContinuousLinearMap.ext |
| 304 | intro v |
| 305 | have hl := congrArg (fun L : ℝ →L[ℝ] E => L v.1) hleft |
| 306 | have hr' := congrArg (fun L : ℂ →L[ℝ] E => L v.2) hright |
| 307 | change D (v.1, 0) = v.1 • a at hl |
| 308 | change D (0, v.2) = v.2 • b at hr' |
| 309 | change D v = v.1 • a + v.2 • b |
| 310 | calc |
| 311 | D v = D ((v.1, 0) + (0, v.2)) := by simp only [Prod.mk_add_mk, add_zero, zero_add] |
| 312 | _ = D (v.1, 0) + D (0, v.2) := map_add D _ _ |
| 313 | _ = v.1 • a + v.2 • b := by rw [hl, hr'] |
| 314 | simpa only [hD] using hg |
| 315 | |
| 316 | omit [CompleteSpace E] in |
| 317 | /-- The Cauchy partial has the expected inverse-gap bound. -/ |
| 318 | theorem norm_complex_partial_le (c : ℂ) {ρ σ : ℝ} (hgap : ρ < σ) |
| 319 | (v : C(Disk c σ, E)) (z : Disk c ρ) : |
| 320 | ‖derivativeCLM c hgap v z‖ ≤ (σ - ρ)⁻¹ * ‖v‖ := by |
| 321 | exact ((derivativeCLM c hgap v).norm_coe_le_norm z).trans |
| 322 | (((derivativeCLM (E := E) c hgap).le_opNorm v).trans |
| 323 | (mul_le_mul_of_nonneg_right (norm_derivativeCLM_le c hgap) (norm_nonneg v))) |
| 324 | |
| 325 | omit [CompleteSpace E] in |
| 326 | /-- Real differentiability into a compact-function Banach space upgrades to |
| 327 | complex differentiability when every evaluation has a complex derivative. |
| 328 | The complex linearity is proved by the separating evaluation maps. -/ |
| 329 | theorem differentiableAt_of_evaluations {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 330 | (G : ℂ → C(K, E)) {z : ℂ} (hG : DifferentiableAt ℝ G z) |
| 331 | (heval : ∀ x : K, DifferentiableAt ℂ (fun w => G w x) z) : |
| 332 | DifferentiableAt ℂ G z := by |
| 333 | let L := fderiv ℝ G z |
| 334 | let Lc : ℂ →L[ℂ] C(K, E) := (1 : ℂ →L[ℂ] ℂ).smulRight (L 1) |
| 335 | have hL : Lc.restrictScalars ℝ = L := by |
| 336 | ext v x |
| 337 | let T := fderiv ℂ (fun w => G w x) z |
| 338 | have hEvalMap : HasFDerivAt (ContinuousMap.evalCLM ℝ x) |
| 339 | (ContinuousMap.evalCLM ℝ x) (G z) := |
| 340 | ContinuousLinearMap.hasFDerivAt (𝕜 := ℝ) (E := C(K, E)) (F := E) |
| 341 | (ContinuousMap.evalCLM ℝ x) |
| 342 | have hreal : HasFDerivAt (fun w => G w x) ((ContinuousMap.evalCLM ℝ x).comp L) z := |
| 343 | HasFDerivAt.comp (𝕜 := ℝ) (E := ℂ) (F := C(K, E)) (G := E) z hEvalMap hG.hasFDerivAt |
| 344 | have hc : HasFDerivAt (fun w => G w x) (T.restrictScalars ℝ) z := |
| 345 | (heval x).hasFDerivAt.restrictScalars ℝ |
| 346 | have heq := hreal.unique hc |
| 347 | have h1 := congrArg (fun D : ℂ →L[ℝ] E => D 1) heq |
| 348 | have hv := congrArg (fun D : ℂ →L[ℝ] E => D v) heq |
| 349 | change L 1 x = T 1 at h1 |
| 350 | change L v x = T v at hv |
| 351 | change v • L 1 x = L v x |
| 352 | rw [h1, hv] |
| 353 | simpa only [smul_eq_mul, mul_one] using (T.map_smul v 1).symm |
| 354 | exact (hasFDerivAt_of_restrictScalars ℝ (f' := Lc) hG.hasFDerivAt hL).differentiableAt |
| 355 | |
| 356 | /-- Joint real smoothness near a compact radial set and holomorphic parameter |
| 357 | slices give genuine complex differentiability of the compact-valued family. |
| 358 | This is the input bridge for compact-family Volterra operators. -/ |
| 359 | theorem differentiableOn_family_of_joint {B : Type} [NormedAddCommGroup B] [NormedSpace ℂ B] |
| 360 | (K : Set ℝ) [CompactSpace K] |
| 361 | (U : Set ℂ) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hKV : K ⊆ V) |
| 362 | (G : ℂ × ℝ → B) (hG : ContDiffOn ℝ ∞ G (U ×ˢ V)) |
| 363 | (hhol : ∀ r ∈ K, DifferentiableOn ℂ (fun z => G (z, r)) U) : |
| 364 | DifferentiableOn ℂ (CompactSmoothFamily.family (P := ℂ) (Z := ℝ) (E := B) K G) U := by |
| 365 | have hreal := CompactSmoothFamily.contDiffOn_family_of_joint |
| 366 | (P := ℂ) (Z := ℝ) (E := B) K U V hU hV hKV G hG |
| 367 | intro z hz |
| 368 | apply DifferentiableAt.differentiableWithinAt |
| 369 | apply differentiableAt_of_evaluations (CompactSmoothFamily.family (P := ℂ) (Z := ℝ) (E := B) K G) |
| 370 | (((hreal z hz).contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp)) |
| 371 | intro x |
| 372 | have hc := (hhol x x.2).differentiableAt (hU.mem_nhds hz) |
| 373 | apply hc.congr_of_eventuallyEq |
| 374 | filter_upwards [hU.mem_nhds hz] with w hw |
| 375 | exact CompactSmoothFamily.family_apply_of_joint K hKV G hG.continuousOn hw x |
| 376 | |
| 377 | end |
| 378 | |
| 379 | end NavierStokes.HolomorphicFamily |