import OAI.Analysis.HodgeTheory.Decomposition.VectorDifferences import OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceCriterion import OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.SobolevInv /-! # Vector Difference Criterion -/ namespace OAI.Analysis.HodgeTheory.Decomposition.VectorDifferenceCriterion.Constructions noncomputable section /-! Bounded actual difference quotients produce genuine L2 weak derivatives. -/ open _root_.MeasureTheory FourierTransform TemperedDistribution Filter open scoped SchwartzMap LineDeriv _root_.Topology variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] /-- Fatou's lemma turns an eventual norm bound on the spatial difference quotients into square integrability of the actual Fourier derivative symbol. -/ theorem vectorFourierDerivative_memLp_of_difference_bound (m : E) (u : Lp F 2 (volume : Measure E)) {C : ℝ} (hC : ∀ᶠ t : ℝ in 𝓝[≠] 0, ‖VectorDifferences.Constructions.vectorL2DifferenceQuotient m t u‖ ≤ C) : MemLp (fun x => AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceCriterion.CM.Construction.fourierDerivativeSymbol m x • (𝓕 u : Lp F 2 volume) x) 2 (volume : Measure E) := by let f : ℝ → E → F := fun t x => AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceQuotients.CM.Construction.differenceQuotientSymbol t (inner ℝ m x) • (𝓕 u : Lp F 2 volume) x let g : E → F := fun x => AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceCriterion.CM.Construction.fourierDerivativeSymbol m x • (𝓕 u : Lp F 2 volume) x have hf (t : ℝ) : AEStronglyMeasurable (f t) (volume : Measure E) := (Lp.aestronglyMeasurable (𝓕 (VectorDifferences.Constructions.vectorL2DifferenceQuotient m t u) : Lp F 2 volume)).congr (VectorDifferences.Constructions.fourier_vectorL2DifferenceQuotient_coe m t u) have hlim : ∀ᵐ x ∂(volume : Measure E), Tendsto (fun t : ℝ => f t x) (𝓝[≠] 0) (𝓝 (g x)) := Filter.Eventually.of_forall (fun x => (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceQuotients.CM.Construction.differenceQuotientSymbol_tendsto (inner ℝ m x)).smul_const _) have hbound : ∀ᶠ t : ℝ in 𝓝[≠] 0, eLpNorm (f t) 2 (volume : Measure E) ≤ ENNReal.ofReal C := by filter_upwards [hC] with t ht calc _ = eLpNorm (𝓕 (VectorDifferences.Constructions.vectorL2DifferenceQuotient m t u) : Lp F 2 volume) 2 volume := (eLpNorm_congr_ae (VectorDifferences.Constructions.fourier_vectorL2DifferenceQuotient_coe m t u)).symm _ = ENNReal.ofReal ‖VectorDifferences.Constructions.vectorL2DifferenceQuotient m t u‖ := by rw [← Lp.enorm_def, ← ofReal_norm, Lp.norm_fourier_eq] _ ≤ ENNReal.ofReal C := ENNReal.ofReal_le_ofReal ht exact (Lp.eLpNorm_le_of_ae_tendsto hbound hf (aestronglyMeasurable_of_tendsto_ae (𝓝[≠] (0 : ℝ)) hf hlim) hlim).trans_lt ENNReal.ofReal_lt_top /-- Multiplication by a temperate coefficient agrees with distributional multiplication whenever its actual product is in L2. -/ theorem vectorL2_product_distribution {g : E → ℂ} (hg : g.HasTemperateGrowth) (u : Lp F 2 (volume : Measure E)) (hprod : MemLp (fun x => g x • u x) 2 (volume : Measure E)) : ((hprod.toLp (fun x => g x • u x) : Lp F 2 volume) : 𝓢'(E, F)) = smulLeftCLM F g (u : 𝓢'(E, F)) := by ext φ simp only [Lp.toTemperedDistribution_apply, smulLeftCLM_apply_apply] apply integral_congr_ae filter_upwards [hprod.coeFn_toLp] with x hx simp only [hx, SchwartzMap.smulLeftCLM_apply_apply hg, smul_smul, smul_eq_mul] rw [mul_comm] /-- The limit is the derivative of the given L2 function as a tempered distribution, rather than an independently chosen formal derivative. -/ theorem vectorL2_weakDerivative_of_difference_bound (m : E) (u : Lp F 2 (volume : Measure E)) {C : ℝ} (hC : ∀ᶠ t : ℝ in 𝓝[≠] 0, ‖VectorDifferences.Constructions.vectorL2DifferenceQuotient m t u‖ ≤ C) : ∃ v : Lp F 2 (volume : Measure E), (v : 𝓢'(E, F)) = ∂_{m} (u : 𝓢'(E, F)) := by let g := AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceCriterion.CM.Construction.fourierDerivativeSymbol m have hg : g.HasTemperateGrowth := AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceCriterion.CM.Construction.fourierDerivativeSymbol_temperate m have hprod := vectorFourierDerivative_memLp_of_difference_bound m u hC let w : Lp F 2 (volume : Measure E) := hprod.toLp _ refine ⟨𝓕⁻ w, ?_⟩ rw [← Lp.fourierInv_toTemperedDistribution_eq] have hw : (w : 𝓢'(E, F)) = smulLeftCLM F g (𝓕 (u : 𝓢'(E, F))) := by rw [Lp.fourier_toTemperedDistribution_eq] exact vectorL2_product_distribution hg (𝓕 u) hprod rw [hw, TemperedDistribution.lineDeriv_eq_fourierMultiplierCLM, fourierMultiplierCLM_apply] have hg0 : (fun x : E => ((inner ℝ x m : ℝ) : ℂ)).HasTemperateGrowth := by fun_prop have hgeq : g = (2 * Real.pi * Complex.I : ℂ) • (fun x : E => ((inner ℝ x m : ℝ) : ℂ)) := by funext x simp only [g, AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DifferenceCriterion.CM.Construction.fourierDerivativeSymbol, Pi.smul_apply, smul_eq_mul, Complex.ofReal_mul, Complex.ofReal_ofNat, real_inner_comm m x] ring rw [hgeq, smulLeftCLM_smul hg0, smul_apply, FourierTransform.fourierInv_smul] /-- Uniform bounds for all coordinate difference quotients characterize membership in the actual distributional H1 space in the direction needed for elliptic regularity. -/ theorem vectorMemSobolev_one_of_difference_bounds {ι : Type*} [Fintype ι] (b : OrthonormalBasis ι ℝ E) (u : Lp F 2 (volume : Measure E)) (hbound : ∀ i, ∃ C : ℝ, ∀ᶠ t : ℝ in 𝓝[≠] 0, ‖VectorDifferences.Constructions.vectorL2DifferenceQuotient (b i) t u‖ ≤ C) : MemSobolev 1 2 (u : 𝓢'(E, F)) := by have hzero : MemSobolev 0 2 (u : 𝓢'(E, F)) := memSobolev_zero_iff.mpr ⟨u, rfl⟩ have hd : ∀ i, MemSobolev 0 2 (∂_{b i} (u : 𝓢'(E, F))) := by intro i obtain ⟨C, hC⟩ := hbound i obtain ⟨v, hv⟩ := vectorL2_weakDerivative_of_difference_bound (b i) u hC exact memSobolev_zero_iff.mpr ⟨v, hv.symm⟩ simpa only [zero_add] using (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.SobolevInv.CM.Construction.memSobolev_succ_iff_derivatives b 0 (u : 𝓢'(E, F))).mpr ⟨hzero, hd⟩ end end OAI.Analysis.HodgeTheory.Decomposition.VectorDifferenceCriterion.Constructions