Buckets:
| import Mathlib | |
| import OAI.Analysis.CoulombRadii.FieldAnalysis.FlatDensityPower | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory Set | |
| open scoped BigOperators ENNReal Classical NNReal ComplexConjugate | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal | |
| open MeasureTheory Set | |
| open scoped BigOperators ENNReal Classical NNReal ComplexConjugate | |
| open MeasureTheory Set | |
| open scoped BigOperators ENNReal Classical NNReal ComplexConjugate | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology | |
| open MeasureTheory Set | |
| open scoped BigOperators ENNReal ContDiff | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal ContDiff | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal ContDiff | |
| open scoped Classical | |
| open scoped BigOperators ComplexConjugate | |
| open scoped Classical | |
| open scoped Classical | |
| open MeasureTheory Set Filter | |
| open scoped Classical ENNReal NNReal ComplexConjugate | |
| open MeasureTheory Set Filter Module Module.End TopologicalSpace Function | |
| open scoped Classical ComplexConjugate | |
| open MeasureTheory Set Filter Module Module.End TopologicalSpace Function | |
| open scoped Classical ComplexConjugate | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology SchwartzMap FourierTransform ComplexConjugate | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology SchwartzMap FourierTransform ComplexConjugate | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal BigOperators Classical Topology SchwartzMap FourierTransform ComplexConjugate | |
| open MeasureTheory Filter | |
| open scoped ENNReal NNReal FourierTransform SchwartzMap LineDeriv ComplexConjugate | |
| open scoped LineDeriv | |
| open MeasureTheory Set Metric | |
| open scoped ENNReal NNReal RealInnerProductSpace | |
| open MeasureTheory Set Metric Filter | |
| open scoped ENNReal NNReal RealInnerProductSpace Convolution | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal ComplexConjugate | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal ContDiff | |
| open MeasureTheory Set Filter | |
| open scoped Classical SchwartzMap FourierTransform ENNReal NNReal ComplexConjugate Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped Classical SchwartzMap FourierTransform ENNReal NNReal Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped Classical SchwartzMap FourierTransform ENNReal NNReal Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped Classical SchwartzMap ENNReal NNReal Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped Classical SchwartzMap FourierTransform ENNReal NNReal Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Classical SchwartzMap Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Classical SchwartzMap Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Classical SchwartzMap Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Classical SchwartzMap Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Classical SchwartzMap Pointwise | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Classical SchwartzMap Pointwise | |
| open MeasureTheory Set | |
| open scoped BigOperators ENNReal | |
| open MeasureTheory Set | |
| open scoped BigOperators Matrix | |
| namespace Coulomb | |
| abbrev Rotation := Matrix.specialOrthogonalGroup (Fin 3) β | |
| lemma rotation_entry_sq_sum (Q : Rotation) (j : Fin 3) : | |
| β i : Fin 3, (Q.1 i j)^2 = 1 := by | |
| have H := congrArg (fun M : Matrix (Fin 3) (Fin 3) β => M j j) Q.prop.1.1 | |
| simpa [Matrix.mul_apply, Matrix.star_apply, pow_two] using H | |
| lemma rotation_entry_abs_le (Q : Rotation) (i j : Fin 3) : |Q.1 i j| β€ 1 := by | |
| have H : (Q.1 i j)^2 β€ 1 := by | |
| rw [β rotation_entry_sq_sum Q j] | |
| exact Finset.single_le_sum (fun k _ => sq_nonneg (Q.1 k j)) (Finset.mem_univ i) | |
| exact (sq_le_one_iff_abs_le_one _).mp H | |
| lemma rotation_closed : IsClosed (Matrix.specialOrthogonalGroup (Fin 3) β : Set (Matrix (Fin 3) (Fin 3) β)) := by | |
| change IsClosed ((unitary (Matrix (Fin 3) (Fin 3) β) : Set _) β© | |
| (fun M : Matrix (Fin 3) (Fin 3) β => M.det) β»ΒΉ' {1}) | |
| exact isClosed_unitary.inter (isClosed_singleton.preimage continuous_id.matrix_det) | |
| lemma rotation_set_compact : IsCompact (Matrix.specialOrthogonalGroup (Fin 3) β : Set (Matrix (Fin 3) (Fin 3) β)) := by | |
| apply (isCompact_Icc : IsCompact (Icc (fun _ _ : Fin 3 => (-1:β)) (fun _ _ => (1:β)) )).of_isClosed_subset rotation_closed | |
| intro Q hQ | |
| constructor <;> intro i j | |
| Β· exact (abs_le.mp (rotation_entry_abs_le β¨Q,hQβ© i j)).1 | |
| Β· exact (abs_le.mp (rotation_entry_abs_le β¨Q,hQβ© i j)).2 | |
| noncomputable instance rotation_compact : CompactSpace Rotation := | |
| isCompact_iff_compactSpace.mp rotation_set_compact | |
| instance rotation_continuousStar : ContinuousStar Rotation where | |
| continuous_star := continuous_induced_rng.mpr continuous_subtype_val.star | |
| instance rotation_continuousInv : ContinuousInv Rotation where | |
| continuous_inv := continuous_star | |
| instance rotation_topologicalGroup : IsTopologicalGroup Rotation where | |
| instance rotation_measurable : MeasurableSpace Rotation := borel Rotation | |
| instance rotation_borel : BorelSpace Rotation := β¨rflβ© | |
| noncomputable def rotationMeasure : Measure Rotation := | |
| Measure.haarMeasure (β¨β¨univ,isCompact_univβ©,by simpβ© : TopologicalSpace.PositiveCompacts Rotation) | |
| instance : IsProbabilityMeasure rotationMeasure := β¨Measure.haarMeasure_selfβ© | |
| noncomputable def rotationIsometry (Q : Rotation) : Space ββα΅’[β] Space := | |
| Unitary.linearIsometryEquiv β¨Matrix.toEuclideanCLM (n := Fin 3) (π := β) Q.1, by | |
| constructor | |
| Β· have H := congrArg (Matrix.toEuclideanCLM (n := Fin 3) (π := β)) Q.prop.1.1 | |
| simpa only [map_mul, map_star, map_one] using H | |
| Β· have H := congrArg (Matrix.toEuclideanCLM (n := Fin 3) (π := β)) Q.prop.1.2 | |
| simpa only [map_mul, map_star, map_one] using Hβ© | |
| lemma rotationIsometry_apply (Q : Rotation) (x : Space) (j : Fin 3) : | |
| rotationIsometry Q x j = β k, Q.1 j k*x k := rfl | |
| lemma rotationIsometry_measurePreserving (Q : Rotation) : | |
| MeasurePreserving (rotationIsometry Q) volume volume := | |
| (rotationIsometry Q).measurePreserving | |
| lemma rotation_action_continuous : Continuous (fun p : Rotation Γ Space => rotationIsometry p.1 p.2) := by | |
| apply (PiLp.continuous_toLp 2 _).comp | |
| apply continuous_pi | |
| intro j | |
| change Continuous (fun p : Rotation Γ Space => β k, p.1.1 j k * p.2 k) | |
| apply continuous_finsetSum | |
| intro k _ | |
| have hQ : Continuous (fun p : Rotation Γ Space => p.1.val) := | |
| continuous_subtype_val.comp continuous_fst | |
| have hx : Continuous (fun p : Rotation Γ Space => p.2 k) := | |
| (PiLp.continuous_apply 2 _ k).comp continuous_snd | |
| exact ((continuous_apply k).comp ((continuous_apply j).comp hQ)).mul hx | |
| lemma flatFineKernel_continuous (b : β) : Continuous (flatFineKernel b) := by | |
| apply Continuous.const_mul | |
| apply continuous_finsetProd | |
| intro j _ | |
| exact continuous_const.max (continuous_const.sub (continuous_apply j).abs) | |
| lemma flatFineKernel_le {b : β} (hb : 0 < b) (x : Fin 3 β β) : | |
| flatFineKernel b x β€ (bβ»ΒΉ)^3 := by | |
| have H : (β j : Fin 3, max 0 (b-|x j|)) β€ b^3 := by | |
| calc | |
| _ β€ β _ : Fin 3, b := Finset.prod_le_prodβ (fun _ _ => le_max_left _ _) | |
| (fun i _ => max_le hb.le (sub_le_self _ (abs_nonneg _))) | |
| _ = _ := by simp | |
| apply (mul_le_mul_of_nonneg_left H (show 0 β€ (bβ»ΒΉ)^6 by positivity)).trans_eq | |
| field_simp [hb.ne'] | |
| lemma flatFineKernel_eq_zero {b : β} (hb : 0 < b) (x : Space) | |
| (hx : 3*b^2 < βxβ^2) : flatFineKernel b x.ofLp = 0 := by | |
| have hj : β j : Fin 3, b β€ |x j| := by | |
| by_contra! H | |
| have Hs : βxβ^2 β€ 3*b^2 := by | |
| rw [EuclideanSpace.real_norm_sq_eq] | |
| calc | |
| _ β€ β _ : Fin 3, b^2 := Finset.sum_le_sum (fun j _ => | |
| (sq_abs _).symm.trans_le ((sq_le_sqβ (abs_nonneg _) hb.le).mpr (H j).le)) | |
| _ = _ := by simp | |
| linarith | |
| obtain β¨j,hjβ© := hj | |
| unfold flatFineKernel | |
| rw [Finset.prod_eq_zero (Finset.mem_univ j)] | |
| Β· ring | |
| Β· exact max_eq_left (by dsimp; linarith) | |
| noncomputable def fineKernel (b : β) (x : Space) : β := | |
| β« Q : Rotation, flatFineKernel b (rotationIsometry Q x).ofLp βrotationMeasure | |
| lemma rotated_flatKernel_continuous (b : β) : | |
| Continuous (fun p : Rotation Γ Space => flatFineKernel b (rotationIsometry p.1 p.2).ofLp) := | |
| (flatFineKernel_continuous b).comp ((PiLp.continuous_ofLp 2 _).comp rotation_action_continuous) | |
| lemma rotated_flatKernel_integrable (b : β) (x : Space) : | |
| Integrable (fun Q : Rotation => flatFineKernel b (rotationIsometry Q x).ofLp) rotationMeasure := | |
| ((rotated_flatKernel_continuous b).comp (continuous_id.prodMk continuous_const)).integrable_of_hasCompactSupport | |
| (HasCompactSupport.of_compactSpace _) | |
| lemma fineKernel_nonneg (b : β) (x : Space) : 0 β€ fineKernel b x := | |
| integral_nonneg (fun _ => flatFineKernel_nonneg _ _) | |
| lemma fineKernel_le {b : β} (hb : 0 < b) (x : Space) : fineKernel b x β€ (bβ»ΒΉ)^3 := by | |
| calc | |
| _ β€ β« _ : Rotation, (bβ»ΒΉ)^3 βrotationMeasure := | |
| integral_mono (rotated_flatKernel_integrable b x) (integrable_const _) | |
| (fun _ => flatFineKernel_le hb _) | |
| _ = _ := by simp | |
| lemma fineKernel_eq_zero {b : β} (hb : 0 < b) (x : Space) | |
| (hx : 3*b^2 < βxβ^2) : fineKernel b x = 0 := by | |
| unfold fineKernel | |
| calc | |
| _ = β« _ : Rotation, (0 : β) βrotationMeasure := by | |
| apply integral_congr_ae | |
| exact Filter.Eventually.of_forall (fun Q => flatFineKernel_eq_zero hb _ (by simpa using hx)) | |
| _ = 0 := integral_zero _ _ | |
| lemma rotationIsometry_mul (P Q : Rotation) (x : Space) : | |
| rotationIsometry (P*Q) x = rotationIsometry P (rotationIsometry Q x) := by | |
| ext j | |
| simp only [rotationIsometry_apply] | |
| change (β k, (P.val * Q.val) j k * x k) = β k, P.val j k * (β l, Q.val k l * x l) | |
| simp only [Matrix.mul_apply, Finset.sum_mul, Finset.mul_sum, mul_assoc] | |
| rw [Finset.sum_comm] | |
| instance : Measure.IsMulLeftInvariant rotationMeasure := by | |
| unfold rotationMeasure | |
| infer_instance | |
| instance : Measure.IsHaarMeasure rotationMeasure := by | |
| unfold rotationMeasure | |
| infer_instance | |
| instance : Measure.IsMulRightInvariant rotationMeasure where | |
| map_mul_right_eq_self P := by | |
| have : IsProbabilityMeasure (Measure.map (Β· * P) rotationMeasure) := inferInstance | |
| have H := Measure.isMulInvariant_eq_smul_of_compactSpace | |
| (Measure.map (Β· * P) rotationMeasure) rotationMeasure | |
| have H1 := congrArg (fun ΞΌ : Measure Rotation => ΞΌ univ) H | |
| simp only [Measure.smul_apply, measure_univ, ENNReal.smul_def, smul_eq_mul, mul_one] at H1 | |
| have H2 : (Measure.map (Β· * P) rotationMeasure).haarScalarFactor rotationMeasure = 1 := | |
| ENNReal.coe_injective (by simpa using H1.symm) | |
| rw [H2, one_smul] at H | |
| exact H | |
| lemma fineKernel_rotation (b : β) (P : Rotation) (x : Space) : | |
| fineKernel b (rotationIsometry P x) = fineKernel b x := by | |
| unfold fineKernel | |
| simp_rw [β rotationIsometry_mul] | |
| exact integral_mul_right_eq_self (ΞΌ := rotationMeasure) (fun Q : Rotation => flatFineKernel b (rotationIsometry Q x).ofLp) P | |
| lemma tent_continuous (b : β) : Continuous (fun x : β => max 0 (b-|x|)) := by fun_prop | |
| lemma tent_eq_zero {b : β} (x : β) (hx : x β Icc (-b) b) : max 0 (b-|x|) = 0 := by | |
| apply max_eq_left | |
| have : b β€ |x| := by | |
| by_contra! h | |
| exact hx β¨by linarith [(neg_abs_le x)], by linarith [le_abs_self x]β© | |
| linarith | |
| lemma tent_integrable (b : β) : Integrable (fun x : β => max 0 (b-|x|)) := by | |
| have H := (tent_continuous b).integrableOn_Icc (ΞΌ := volume) (a := -b) (b := b) | |
| have he : (Icc (-b) b).indicator (fun x : β => max 0 (b-|x|)) = | |
| (fun x : β => max 0 (b-|x|)) := by | |
| funext x | |
| by_cases hx : x β Icc (-b) b | |
| Β· simp [hx] | |
| Β· simp [hx, tent_eq_zero x hx] | |
| rw [β he] | |
| exact H.integrable_indicator measurableSet_Icc | |
| lemma tent_integral {b : β} (hb : 0 < b) : | |
| (β« x : β, max 0 (b-|x|)) = b^2 := by | |
| have hi (a c : β) := (tent_continuous b).intervalIntegrable (ΞΌ := volume) a c | |
| calc | |
| _ = β« x in Icc (-b) b, max 0 (b-|x|) := | |
| (setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => tent_eq_zero x hx)).symm | |
| _ = β« x in (-b)..b, max 0 (b-|x|) := by | |
| rw [intervalIntegral.integral_of_le (by linarith : -b β€ b), integral_Icc_eq_integral_Ioc] | |
| _ = (β« x in (-b)..0, max 0 (b-|x|)) + β« x in (0 : β)..b, max 0 (b-|x|) := | |
| (intervalIntegral.integral_add_adjacent_intervals (hi (-b) 0) (hi 0 b)).symm | |
| _ = (β« x in (-b)..0, b+x) + β« x in (0 : β)..b, b-x := by | |
| congr 1 <;> apply intervalIntegral.integral_congr | |
| Β· intro x hx | |
| dsimp only | |
| rw [uIcc_of_le (by linarith)] at hx | |
| rw [abs_of_nonpos hx.2, sub_neg_eq_add, max_eq_right (by linarith [hx.1])] | |
| Β· intro x hx | |
| dsimp only | |
| rw [uIcc_of_le hb.le] at hx | |
| rw [abs_of_nonneg hx.1, max_eq_right (by linarith [hx.2])] | |
| _ = b^2 := by | |
| rw [intervalIntegral.integral_add (intervalIntegrable_const (c := b)) (show IntervalIntegrable (fun x : β => x) volume _ _ from continuous_id.intervalIntegrable _ _), | |
| intervalIntegral.integral_sub (intervalIntegrable_const (c := b)) (show IntervalIntegrable (fun x : β => x) volume _ _ from continuous_id.intervalIntegrable _ _)] | |
| simp only [intervalIntegral.integral_const, integral_id, smul_eq_mul] | |
| ring | |
| lemma flatFineKernel_integrable (b : β) : Integrable (flatFineKernel b) := by | |
| exact ((Integrable.fintype_prod_dep (fun _ : Fin 3 => tent_integrable b)).const_mul ((bβ»ΒΉ)^6)) | |
| lemma flatFineKernel_integral {b : β} (hb : 0 < b) : | |
| (β« x : Fin 3 β β, flatFineKernel b x) = 1 := by | |
| unfold flatFineKernel | |
| rw [integral_const_mul, | |
| integral_fintype_prod_volume_eq_prod (fun (_ : Fin 3) (u : β) => max 0 (b-|u|))] | |
| simp_rw [tent_integral hb] | |
| simp only [Finset.prod_const, Finset.card_univ, Fintype.card_fin] | |
| field_simp [hb.ne'] | |
| lemma flatFineKernel_space_integrable (b : β) : | |
| Integrable (fun x : Space => flatFineKernel b x.ofLp) := | |
| (PiLp.volume_preserving_ofLp (Fin 3)).integrable_comp_of_integrable (flatFineKernel_integrable b) | |
| lemma flatFineKernel_space_integral {b : β} (hb : 0 < b) : | |
| (β« x : Space, flatFineKernel b x.ofLp) = 1 := by | |
| exact ((EuclideanSpace.volume_preserving_symm_measurableEquiv_toLp (Fin 3)).integral_comp' (flatFineKernel b)).trans | |
| (flatFineKernel_integral hb) | |
| lemma rotated_flatKernel_space_integrable (b : β) (Q : Rotation) : | |
| Integrable (fun x : Space => flatFineKernel b (rotationIsometry Q x).ofLp) := | |
| (rotationIsometry Q).measurePreserving.integrable_comp_of_integrable (flatFineKernel_space_integrable b) | |
| lemma rotated_flatKernel_space_integral {b : β} (hb : 0 < b) (Q : Rotation) : | |
| (β« x : Space, flatFineKernel b (rotationIsometry Q x).ofLp) = 1 := by | |
| exact ((show MeasurePreserving (rotationIsometry Q).toHomeomorph.toMeasurableEquiv volume volume from | |
| (rotationIsometry Q).measurePreserving).integral_comp' (fun x : Space => flatFineKernel b x.ofLp)).trans | |
| (flatFineKernel_space_integral hb) | |
| lemma rotated_flatKernel_integrable_prod {b : β} (hb : 0 < b) : | |
| Integrable (fun p : Rotation Γ Space => flatFineKernel b (rotationIsometry p.1 p.2).ofLp) | |
| (rotationMeasure.prod volume) := by | |
| apply (integrable_prod_iff (rotated_flatKernel_continuous b).aestronglyMeasurable).mpr | |
| constructor | |
| Β· exact Filter.Eventually.of_forall (fun Q => rotated_flatKernel_space_integrable b Q) | |
| Β· simp_rw [Real.norm_of_nonneg (flatFineKernel_nonneg ..)] | |
| simp_rw [rotated_flatKernel_space_integral hb] | |
| exact integrable_const _ | |
| lemma fineKernel_integrable {b : β} (hb : 0 < b) : Integrable (fineKernel b) := | |
| (rotated_flatKernel_integrable_prod hb).integral_prod_right | |
| lemma fineKernel_integral {b : β} (hb : 0 < b) : (β« x, fineKernel b x) = 1 := by | |
| unfold fineKernel | |
| rw [β integral_integral_swap (rotated_flatKernel_integrable_prod hb)] | |
| simp_rw [rotated_flatKernel_space_integral hb] | |
| simp | |
| lemma rpow_five_thirds_le_linear {a A : β} (ha : 0 β€ a) (hA : a β€ A) : | |
| a^(5/3 : β) β€ A^(2/3 : β)*a := by | |
| calc | |
| _ = a^(2/3 : β)*a := by | |
| rw [show (5/3 : β) = 2/3 + 1 by norm_num, Real.rpow_add_one' ha (by norm_num)] | |
| _ β€ _ := mul_le_mul_of_nonneg_right (Real.rpow_le_rpow ha hA (by norm_num)) ha | |
| lemma fineKernel_measurable (b : β) : Measurable (fineKernel b) := | |
| (rotated_flatKernel_continuous b).stronglyMeasurable.integral_prod_left'.measurable | |
| noncomputable def fineDensity {n : β} (b : β) (x : Fin n β Space) (y : Space) : β := | |
| β i, fineKernel b (y-x i) | |
| noncomputable def rotatedFlatDensity {n : β} (b : β) (Q : Rotation) (x : Fin n β Space) (y : Space) : β := | |
| β i, flatFineKernel b (rotationIsometry Q (y-x i)).ofLp | |
| lemma fineDensity_nonneg {n : β} (b : β) (x : Fin n β Space) (y : Space) : | |
| 0 β€ fineDensity b x y := Finset.sum_nonneg (fun _ _ => fineKernel_nonneg ..) | |
| lemma fineDensity_le {n : β} {b : β} (hb : 0 < b) (x : Fin n β Space) (y : Space) : | |
| fineDensity b x y β€ n*(bβ»ΒΉ)^3 := by | |
| calc | |
| _ β€ β _ : Fin n, (bβ»ΒΉ)^3 := Finset.sum_le_sum (fun _ _ => fineKernel_le hb _) | |
| _ = _ := by simp | |
| lemma rotatedFlatDensity_nonneg {n : β} (b : β) (Q : Rotation) (x : Fin n β Space) (y : Space) : | |
| 0 β€ rotatedFlatDensity b Q x y := Finset.sum_nonneg (fun _ _ => flatFineKernel_nonneg ..) | |
| lemma rotatedFlatDensity_le {n : β} {b : β} (hb : 0 < b) (Q : Rotation) (x : Fin n β Space) (y : Space) : | |
| rotatedFlatDensity b Q x y β€ n*(bβ»ΒΉ)^3 := by | |
| calc | |
| _ β€ β _ : Fin n, (bβ»ΒΉ)^3 := Finset.sum_le_sum (fun _ _ => flatFineKernel_le hb _) | |
| _ = _ := by simp | |
| lemma fineDensity_measurable {n : β} (b : β) (x : Fin n β Space) : | |
| Measurable (fineDensity b x) := | |
| Finset.measurable_sum _ (fun _ _ => (fineKernel_measurable b).comp (measurable_id.sub_const _)) | |
| lemma rotatedFlatDensity_continuous {n : β} (b : β) (x : Fin n β Space) : | |
| Continuous (fun p : Rotation Γ Space => rotatedFlatDensity b p.1 x p.2) := by | |
| apply continuous_finsetSum | |
| intro i _ | |
| have hs : Continuous (fun p : Rotation Γ Space => (p.1, p.2 - x i)) := | |
| continuous_fst.prodMk (continuous_snd.sub continuous_const) | |
| have hc := (rotated_flatKernel_continuous b).comp hs | |
| dsimp only [Function.comp_def] at hc | |
| exact hc | |
| lemma fineDensity_integrable {n : β} {b : β} (hb : 0 < b) (x : Fin n β Space) : | |
| Integrable (fineDensity b x) := by | |
| apply integrable_finsetSum | |
| intro i _ | |
| exact (measurePreserving_sub_right volume (x i)).integrable_comp_of_integrable (fineKernel_integrable hb) | |
| lemma fineDensity_integral {n : β} {b : β} (hb : 0 < b) (x : Fin n β Space) : | |
| (β« y, fineDensity b x y) = (n : β) := by | |
| have hi (i : Fin n) : Integrable (fun y : Space => fineKernel b (y - x i)) := | |
| (measurePreserving_sub_right volume (x i)).integrable_comp_of_integrable (fineKernel_integrable hb) | |
| unfold fineDensity | |
| rw [integral_finsetSum _ (fun i _ => hi i)] | |
| simp_rw [integral_sub_right_eq_self, fineKernel_integral hb] | |
| simp | |
| lemma rotatedFlatDensity_integrable {n : β} (b : β) (Q : Rotation) (x : Fin n β Space) : | |
| Integrable (rotatedFlatDensity b Q x) := by | |
| apply integrable_finsetSum | |
| intro i _ | |
| exact (measurePreserving_sub_right volume (x i)).integrable_comp_of_integrable | |
| (rotated_flatKernel_space_integrable b Q) | |
| lemma rotatedFlatDensity_integral {n : β} {b : β} (hb : 0 < b) (Q : Rotation) (x : Fin n β Space) : | |
| (β« y, rotatedFlatDensity b Q x y) = (n : β) := by | |
| have hi (i : Fin n) : Integrable (fun y : Space => flatFineKernel b (rotationIsometry Q (y-x i)).ofLp) := | |
| (measurePreserving_sub_right volume (x i)).integrable_comp_of_integrable | |
| (rotated_flatKernel_space_integrable b Q) | |
| unfold rotatedFlatDensity | |
| rw [integral_finsetSum _ (fun i _ => hi i)] | |
| have hrot (i : Fin n) : (β« y : Space, flatFineKernel b (rotationIsometry Q (y-x i)).ofLp) = 1 := by | |
| change (β« y : Space, (fun z : Space => flatFineKernel b (rotationIsometry Q z).ofLp) (y-x i)) = 1 | |
| exact (integral_sub_right_eq_self (fun z : Space => flatFineKernel b (rotationIsometry Q z).ofLp) (x i)).trans | |
| (rotated_flatKernel_space_integral hb Q) | |
| simp_rw [hrot] | |
| simp | |
| lemma rotatedFlatDensity_power_integrable {n : β} {b : β} (hb : 0 < b) (Q : Rotation) (x : Fin n β Space) : | |
| Integrable (fun y => rotatedFlatDensity b Q x y ^ (5/3 : β)) := by | |
| apply ((rotatedFlatDensity_integrable b Q x).const_mul ((n*(bβ»ΒΉ)^3)^(2/3:β))).mono' | |
| Β· exact (((rotatedFlatDensity_continuous b x).comp (continuous_const.prodMk continuous_id)).measurable.pow_const _).aestronglyMeasurable | |
| Β· exact Filter.Eventually.of_forall (fun y => by | |
| rw [Real.norm_of_nonneg (Real.rpow_nonneg (rotatedFlatDensity_nonneg ..) _)] | |
| exact rpow_five_thirds_le_linear (rotatedFlatDensity_nonneg ..) (rotatedFlatDensity_le hb ..)) | |
| lemma rotatedFlatDensity_power_integral_le {n : β} {b : β} (hb : 0 < b) (Q : Rotation) (x : Fin n β Space) : | |
| (β« y, rotatedFlatDensity b Q x y ^ (5/3 : β)) β€ ((n:β)*(bβ»ΒΉ)^3)^(2/3:β)*n := by | |
| calc | |
| _ β€ β« y, ((n:β)*(bβ»ΒΉ)^3)^(2/3:β) * rotatedFlatDensity b Q x y := | |
| integral_mono (rotatedFlatDensity_power_integrable hb Q x) | |
| ((rotatedFlatDensity_integrable b Q x).const_mul _) (fun _ => | |
| rpow_five_thirds_le_linear (rotatedFlatDensity_nonneg ..) (rotatedFlatDensity_le hb ..)) | |
| _ = _ := by rw [integral_const_mul, rotatedFlatDensity_integral hb] | |
| lemma rotatedFlatDensity_power_integrable_prod {n : β} {b : β} (hb : 0 < b) (x : Fin n β Space) : | |
| Integrable (fun p : Rotation Γ Space => rotatedFlatDensity b p.1 x p.2^(5/3:β)) | |
| (rotationMeasure.prod volume) := by | |
| have hm := (rotatedFlatDensity_continuous b x).measurable.pow_const (5/3:β) | |
| apply (integrable_prod_iff hm.aestronglyMeasurable).mpr | |
| constructor | |
| Β· exact Filter.Eventually.of_forall (fun Q => rotatedFlatDensity_power_integrable hb Q x) | |
| Β· simp_rw [Real.norm_of_nonneg (Real.rpow_nonneg (rotatedFlatDensity_nonneg ..) _)] | |
| apply (integrable_const (((n:β)*(bβ»ΒΉ)^3)^(2/3:β)*n)).mono' | |
| hm.stronglyMeasurable.integral_prod_right'.aestronglyMeasurable | |
| exact Filter.Eventually.of_forall (fun Q => by | |
| rw [Real.norm_of_nonneg (integral_nonneg (fun _ => Real.rpow_nonneg (rotatedFlatDensity_nonneg ..) _))] | |
| exact rotatedFlatDensity_power_integral_le hb Q x) | |
| lemma fineDensity_eq_angularAverage {n : β} (b : β) (x : Fin n β Space) (y : Space) : | |
| fineDensity b x y = β« Q, rotatedFlatDensity b Q x y βrotationMeasure := by | |
| unfold fineDensity fineKernel rotatedFlatDensity | |
| exact (integral_finsetSum _ (fun _ _ => rotated_flatKernel_integrable b _)).symm | |
| lemma rotatedFlatDensity_angular_integrable {n : β} (b : β) (x : Fin n β Space) (y : Space) : | |
| Integrable (fun Q => rotatedFlatDensity b Q x y) rotationMeasure := | |
| integrable_finsetSum _ (fun _ _ => rotated_flatKernel_integrable b _) | |
| lemma rotatedFlatDensity_power_angular_integrable {n : β} {b : β} (hb : 0 < b) (x : Fin n β Space) (y : Space) : | |
| Integrable (fun Q => rotatedFlatDensity b Q x y^(5/3:β)) rotationMeasure := by | |
| apply (integrable_const (((n:β)*(bβ»ΒΉ)^3)^(5/3:β))).mono' | |
| Β· exact (((rotatedFlatDensity_continuous b x).comp (continuous_id.prodMk continuous_const)).measurable.pow_const _).aestronglyMeasurable | |
| Β· exact Filter.Eventually.of_forall (fun Q => by | |
| rw [Real.norm_of_nonneg (Real.rpow_nonneg (rotatedFlatDensity_nonneg ..) _)] | |
| exact Real.rpow_le_rpow (rotatedFlatDensity_nonneg ..) (rotatedFlatDensity_le hb ..) (by norm_num)) | |
| lemma fineDensity_Jensen {n : β} {b : β} (hb : 0 < b) (x : Fin n β Space) (y : Space) : | |
| fineDensity b x y^(5/3:β) β€ β« Q, rotatedFlatDensity b Q x y^(5/3:β) βrotationMeasure := by | |
| rw [fineDensity_eq_angularAverage] | |
| exact (convexOn_rpow (by norm_num : (1:β) β€ 5/3)).map_integral_le | |
| (Real.continuous_rpow_const (by norm_num : (0:β) β€ 5/3)).continuousOn isClosed_Ici | |
| (Filter.Eventually.of_forall (fun _ => rotatedFlatDensity_nonneg ..)) | |
| (rotatedFlatDensity_angular_integrable b x y) | |
| (rotatedFlatDensity_power_angular_integrable hb x y) | |
| noncomputable def fineDensityPower {n : β} (b : β) (x : Fin n β Space) : β := | |
| β« y, fineDensity b x y^(5/3:β) | |
| lemma fineDensityPower_le_angularAverage {n : β} {b : β} (hb : 0 < b) (x : Fin n β Space) : | |
| fineDensityPower b x β€ β« Q, β« y, rotatedFlatDensity b Q x y^(5/3:β) βvolume βrotationMeasure := by | |
| have hi := rotatedFlatDensity_power_integrable_prod hb x | |
| have hm := (fineDensity_measurable b x).pow_const (5/3:β) | |
| have hl := hi.integral_prod_right.mono' hm.aestronglyMeasurable | |
| (Filter.Eventually.of_forall (fun y => by | |
| rw [Real.norm_of_nonneg (Real.rpow_nonneg (fineDensity_nonneg ..) _)] | |
| exact fineDensity_Jensen hb x y)) | |
| exact (integral_mono hl hi.integral_prod_right (fun y => fineDensity_Jensen hb x y)).trans_eq | |
| (integral_integral_swap hi).symm | |
| lemma rotatedFlatDensityPower_eq {n : β} (b : β) (Q : Rotation) (x : Configuration n) : | |
| (β« y, rotatedFlatDensity b Q (position x) y ^ (5/3:β)) = | |
| flatDensityPower b (commonIsometry (rotationIsometry Q) x).ofLp := by | |
| let f : Space β β := fun y => (β i : Fin n, flatFineKernel b | |
| (y.ofLp - (rotationIsometry Q (position x i)).ofLp)) ^ (5/3:β) | |
| have hrot := (show MeasurePreserving (rotationIsometry Q).toHomeomorph.toMeasurableEquiv volume volume from | |
| (rotationIsometry Q).measurePreserving).integral_comp' f | |
| have hpi := (EuclideanSpace.volume_preserving_symm_measurableEquiv_toLp (Fin 3)).integral_comp' | |
| (fun y : Fin 3 β β => (β i : Fin n, flatFineKernel b | |
| (y - (rotationIsometry Q (position x i)).ofLp)) ^ (5/3:β)) | |
| calc | |
| _ = β« y, f (rotationIsometry Q y) := by | |
| apply integral_congr_ae | |
| exact Filter.Eventually.of_forall (fun y => by | |
| dsimp only [f, rotatedFlatDensity] | |
| simp only [map_sub] | |
| rfl) | |
| _ = β« y, f y := hrot | |
| _ = _ := by | |
| convert hpi using 1 <;> rfl | |
| end Coulomb | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 27.7 kB
- Xet hash:
- 4b4587aed897d502a32540b06f04647bd2b53d5d0a437dd1668a6f78c871c550
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.