Download data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseMomentError.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.23 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseMomentError.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseMomentError.lean
-
curl -L -o PulseMomentError.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseMomentError.lean
5.23 kB
| import OAI.Geometry.IsometricImmersion.Pulses.ActualForcingMoment | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped ContDiff Topology | |
| namespace SmoothLocal.Pulse | |
| open SmoothLocal.Geometry SmoothLocal.Weighted | |
| theorem pulseTest_abs_le (a tau x : β) : |pulseTest a tau x| β€ axisBump a x := by | |
| unfold pulseTest | |
| rw [abs_mul,abs_of_nonneg (axisBump_nonneg a x)] | |
| simpa only [mul_one] using mul_le_mul_of_nonneg_left (Real.abs_cos_le_one _) (axisBump_nonneg a x) | |
| theorem axisBump_Icc_integral {a : β} (ha : 0 < a) : | |
| (β« x in Icc (-a) a, axisBump a x) = β« x : β, axisBump a x := by | |
| apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| intro x hx | |
| by_contra hn | |
| have h := abs_lt.mp (axisBump_support_bound ha hn) | |
| exact hx β¨h.1.le,h.2.leβ© | |
| theorem pulse_spatial_mass_integral {a delta tau : β} | |
| (ha : 0 < a) (hd : 0 β€ delta) (ht : 0 < tau) : | |
| (β« q in pulsePairRectangle a delta tau, axisBump a q.2 βvolume.prod volume) = | |
| (2*delta/tau)*(β« x : β, axisBump a x) := by | |
| have hw : -(delta/tau) β€ delta/tau := by linarith [div_nonneg hd ht.le] | |
| have hh := setIntegral_prod_mul (ΞΌ := (volume : Measure β)) (Ξ½ := (volume : Measure β)) | |
| (fun _ : β => (1 : β)) (axisBump a) (Icc (-(delta/tau)) (delta/tau)) (Icc (-a) a) | |
| simp only [one_mul] at hh | |
| rw [show pulsePairRectangle a delta tau = | |
| Icc (-(delta/tau)) (delta/tau) ΓΛ’ Icc (-a) a from rfl,hh, | |
| setIntegral_const,Real.volume_real_Icc_of_le hw,smul_eq_mul,mul_one,axisBump_Icc_integral ha] | |
| ring | |
| theorem pulseWeightedMoment_bound {a delta tau B : β} {f : Coord β β} | |
| (ha : 0 < a) (hd : 0 β€ delta) (ht : 0 < tau) (hB : 0 β€ B) | |
| (hf : β p β pulseStrip a delta tau, |f p| β€ B) : | |
| |pulseWeightedMoment a delta tau f| β€ | |
| B*(2*delta/tau)*(β« x : β, axisBump a x) := by | |
| have hmajor : IntegrableOn (fun q : β Γ β => B*axisBump a q.2) | |
| (pulsePairRectangle a delta tau) (volume.prod volume) := | |
| ((continuous_const.mul ((axisBump_contDiff a).continuous.comp continuous_snd)).continuousOn).integrableOn_compact | |
| (pulsePairRectangle_isCompact a delta tau) | |
| have hpoint : βα΅ q β(volume.prod volume).restrict (pulsePairRectangle a delta tau), | |
| βf (pulsePairPoint q)*pulseTest a tau q.2β β€ B*axisBump a q.2 := by | |
| filter_upwards [ae_restrict_mem (pulsePairRectangle_isCompact a delta tau).measurableSet] with q hq | |
| rw [Real.norm_eq_abs,abs_mul] | |
| exact mul_le_mul (hf _ (pulsePairPoint_mem hq)) (pulseTest_abs_le a tau q.2) | |
| (abs_nonneg _) hB | |
| have h := norm_integral_le_of_norm_le hmajor hpoint | |
| simp only [Real.norm_eq_abs,integral_const_mul] at h | |
| rw [pulse_spatial_mass_integral ha hd ht] at h | |
| simpa only [pulseWeightedMoment,mul_assoc] using h | |
| theorem pulseWeightedMoment_integrable {a delta tau : β} {f : Coord β β} | |
| (hf : ContinuousOn f (pulseStrip a delta tau)) : | |
| IntegrableOn (fun q => f (pulsePairPoint q)*pulseTest a tau q.2) | |
| (pulsePairRectangle a delta tau) (volume.prod volume) := | |
| ((hf.comp pulsePairPoint_continuous.continuousOn (fun _ hq => pulsePairPoint_mem hq)).mul | |
| ((pulseTest_continuous a tau).comp continuous_snd).continuousOn).integrableOn_compact | |
| (pulsePairRectangle_isCompact a delta tau) | |
| theorem pulseWeightedMoment_sub {a delta tau : β} {f h : Coord β β} | |
| (hf : ContinuousOn f (pulseStrip a delta tau)) (hh : ContinuousOn h (pulseStrip a delta tau)) : | |
| pulseWeightedMoment a delta tau (fun p => f p-h p) = | |
| pulseWeightedMoment a delta tau f-pulseWeightedMoment a delta tau h := by | |
| unfold pulseWeightedMoment | |
| simp_rw [sub_mul] | |
| exact integral_sub (pulseWeightedMoment_integrable hf) (pulseWeightedMoment_integrable hh) | |
| theorem pulseWeightedMoment_lower_of_remainder {a delta tau B L : β} {f h : Coord β β} | |
| (ha : 0 < a) (hd : 0 β€ delta) (ht : 0 < tau) (hB : 0 β€ B) | |
| (hf : ContinuousOn f (pulseStrip a delta tau)) (hh : ContinuousOn h (pulseStrip a delta tau)) | |
| (hrem : β p β pulseStrip a delta tau, |f p-h p| β€ B) | |
| (hlead : L β€ |pulseWeightedMoment a delta tau h|) : | |
| L-B*(2*delta/tau)*(β« x : β, axisBump a x) β€ |pulseWeightedMoment a delta tau f| := by | |
| have herr := pulseWeightedMoment_bound ha hd ht hB hrem | |
| rw [pulseWeightedMoment_sub hf hh] at herr | |
| have htriangle : |pulseWeightedMoment a delta tau h| β€ | |
| |pulseWeightedMoment a delta tau f|+ | |
| |pulseWeightedMoment a delta tau f-pulseWeightedMoment a delta tau h| := by | |
| calc | |
| _ = |pulseWeightedMoment a delta tau f- | |
| (pulseWeightedMoment a delta tau f-pulseWeightedMoment a delta tau h)| := by congr 1; ring | |
| _ β€ _ := abs_sub _ _ | |
| linarith | |
| theorem pulseWeightedMoment_lower_order_error {a delta tau C : β} {N : β} {f : Coord β β} | |
| (ha : 0 < a) (hd : 0 β€ delta) (ht : 0 < tau) (hC : 0 β€ C) | |
| (hf : β p β pulseStrip a delta tau, |f p| β€ C*tau/tau^N) : | |
| |pulseWeightedMoment a delta tau f| β€ | |
| (2*C*(β« x : β, axisBump a x))*delta/tau^N := by | |
| have hB : 0 β€ C*tau/tau^N := div_nonneg (mul_nonneg hC ht.le) (pow_nonneg ht.le N) | |
| apply (pulseWeightedMoment_bound ha hd ht hB hf).trans_eq | |
| field_simp [ht.ne'] | |
| end SmoothLocal.Pulse | |
| end | |
| end OAI | |