import Euler.MeanBoundaryOperator /-! Genuine mixed cutoff Newtonian operators and their quantitative dependence on both cutoffs. -/ noncomputable section namespace EulerMeanBoundary open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus EulerMeanSolenoidal EulerMeanCutoffCurl EulerMeanGradientTest open scoped ContDiff @[ext] theorem Cutoff.ext {χ ψ : Cutoff} (h : χ.field = ψ.field) : χ = ψ := by cases χ cases ψ cases h rfl def Cutoff.add (χ ψ : Cutoff) : Cutoff := ⟨χ.field + ψ.field, χ.smooth.add ψ.smooth, χ.compact.add ψ.compact⟩ def Cutoff.scale (χ : Cutoff) (c : ℝ) : Cutoff := ⟨c • χ.field, χ.smooth.const_smul c, χ.compact.comp_left (g := fun t : ℝ => c • t) (smul_zero c)⟩ def Cutoff.sub (χ ψ : Cutoff) : Cutoff := ⟨χ.field - ψ.field, χ.smooth.sub ψ.smooth, χ.compact.sub ψ.compact⟩ def Cutoff.translate (χ : Cutoff) (a : Space) : Cutoff := ⟨fun x => χ.field (x+a), χ.smooth.comp (contDiff_id.add contDiff_const), χ.compact.comp_homeomorph (Homeomorph.addRight a)⟩ def Cutoff.derivative (χ : Cutoff) (i : Fin 3) : Cutoff := ⟨partialDerivative χ.field i, contDiff_partialDerivative χ.field χ.smooth i, χ.compact.fderiv_apply ℝ (EuclideanSpace.single i 1)⟩ theorem testCurl_cutoff_add (χ ψ : Cutoff) (f : Test) : testCurl (χ.add ψ) f = testCurl χ f + testCurl ψ f := by apply Lp.ext filter_upwards [testCurl_ae (χ.add ψ) f, testCurl_ae χ f, testCurl_ae ψ f, Lp.coeFn_add (testCurl χ f) (testCurl ψ f)] with x hsum hχ hψ ha rw [hsum, ha] simp only [Pi.add_apply] rw [hχ, hψ] have heq : (fun y => (χ.add ψ).field y • (f : Space → Space) y) = (fun y => χ.field y • (f : Space → Space) y) + (fun y => ψ.field y • (f : Space → Space) y) := by funext y exact add_smul _ _ _ rw [heq] exact congrFun (vectorCurl_add (fun y => χ.field y • (f : Space → Space) y) (fun y => ψ.field y • (f : Space → Space) y) ((χ.smooth.smul f.smooth).differentiable (by simp)) ((ψ.smooth.smul f.smooth).differentiable (by simp))) x theorem testCurl_cutoff_scale (χ : Cutoff) (c : ℝ) (f : Test) : testCurl (χ.scale c) f = c • testCurl χ f := by apply Lp.ext filter_upwards [testCurl_ae (χ.scale c) f, testCurl_ae χ f, Lp.coeFn_smul c (testCurl χ f)] with x hscale hχ hs rw [hscale, hs] simp only [Pi.smul_apply] rw [hχ] have heq : (fun y => (χ.scale c).field y • (f : Space → Space) y) = c • (fun y => χ.field y • (f : Space → Space) y) := by funext y exact smul_assoc c (χ.field y) ((f : Space → Space) y) rw [heq] exact congrFun (vectorCurl_smul c (fun y => χ.field y • (f : Space → Space) y) ((χ.smooth.smul f.smooth).differentiable (by simp))) x theorem cutoffCurl_add (χ ψ : Cutoff) : cutoffCurl (χ.add ψ) = cutoffCurl χ + cutoffCurl ψ := by apply ContinuousLinearMap.ext intro u refine homogeneousGradient_dense.induction_on u ?_ ?_ · exact isClosed_eq (cutoffCurl (χ.add ψ)).continuous ((cutoffCurl χ).continuous.add (cutoffCurl ψ).continuous) · intro f change cutoffCurl (χ.add ψ) (homogeneousGradient f) = cutoffCurl χ (homogeneousGradient f) + cutoffCurl ψ (homogeneousGradient f) rw [cutoffCurl_on_test, cutoffCurl_on_test, cutoffCurl_on_test] exact testCurl_cutoff_add χ ψ f theorem cutoffCurl_scale (χ : Cutoff) (c : ℝ) : cutoffCurl (χ.scale c) = c • cutoffCurl χ := by apply ContinuousLinearMap.ext intro u refine homogeneousGradient_dense.induction_on u ?_ ?_ · exact isClosed_eq (cutoffCurl (χ.scale c)).continuous ((cutoffCurl χ).continuous.const_smul c) · intro f change cutoffCurl (χ.scale c) (homogeneousGradient f) = c • cutoffCurl χ (homogeneousGradient f) rw [cutoffCurl_on_test, cutoffCurl_on_test] exact testCurl_cutoff_scale χ c f theorem cutoffCurl_sub (χ ψ : Cutoff) : cutoffCurl (χ.sub ψ) = cutoffCurl χ - cutoffCurl ψ := by have heq : χ.sub ψ = χ.add (ψ.scale (-1)) := by apply Cutoff.ext ext x simp [Cutoff.sub, Cutoff.add, Cutoff.scale, sub_eq_add_neg] rw [heq, cutoffCurl_add, cutoffCurl_scale] apply ContinuousLinearMap.ext intro u change cutoffCurl χ u + (-1 : ℝ) • cutoffCurl ψ u = cutoffCurl χ u - cutoffCurl ψ u rw [neg_one_smul ℝ, sub_eq_add_neg] theorem weakPotential_add (χ ψ : Cutoff) : weakPotential (χ.add ψ) = weakPotential χ + weakPotential ψ := by simp only [weakPotential, cutoffCurl_add, map_add] theorem weakPotential_scale (χ : Cutoff) (c : ℝ) : weakPotential (χ.scale c) = c • weakPotential χ := by simp only [weakPotential, cutoffCurl_scale, map_smul] theorem weakPotential_sub (χ ψ : Cutoff) : weakPotential (χ.sub ψ) = weakPotential χ - weakPotential ψ := by have heq : χ.sub ψ = χ.add (ψ.scale (-1)) := by apply Cutoff.ext ext x simp [Cutoff.sub, Cutoff.add, Cutoff.scale, sub_eq_add_neg] rw [heq, weakPotential_add, weakPotential_scale] apply ContinuousLinearMap.ext intro z change weakPotential χ z + (-1 : ℝ) • weakPotential ψ z = weakPotential χ z - weakPotential ψ z rw [neg_one_smul ℝ, sub_eq_add_neg] /-- The literal weak `curl χ (-Δ)⁻¹ ψ curl` operator. -/ def mixedBoundaryOperator (χ ψ : Cutoff) : L2 →L[ℝ] L2 := (cutoffCurl χ).comp (weakPotential ψ) theorem mixedBoundaryOperator_diagonal (χ : Cutoff) : mixedBoundaryOperator χ χ = boundaryOperator χ := rfl end EulerMeanBoundary