Download data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseOperatorMoment.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.13 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseOperatorMoment.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseOperatorMoment.lean
-
curl -L -o PulseOperatorMoment.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Pulses/PulseOperatorMoment.lean
9.13 kB
| import OAI.Geometry.IsometricImmersion.Pulses.PulseTemporalMoment | |
| import OAI.Geometry.IsometricImmersion.Comparison.ActualComparisonEquation | |
| import OAI.Geometry.IsometricImmersion.Caps.EllipticAbsorption | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped ContDiff Topology Interval | |
| namespace SmoothLocal.Pulse | |
| open SmoothLocal.Geometry SmoothLocal.Weighted SmoothLocal.Hyperbolic SmoothLocal.Taylor | |
| open SmoothLocal.HighEquation | |
| def testedOperatorSource (R S b c v : Coord β β) (p : Coord) : β := | |
| hyperbolicOperator R S v p-b p*coordPartial 1 v p-c p*coordPartial 0 v p | |
| theorem testedOperatorSource_contDiffOn {R S b c v : Coord β β} {U : Set Coord} | |
| (hR : ContDiffOn β β R U) (hS : ContDiffOn β β S U) | |
| (hb : ContDiffOn β β b U) (hc : ContDiffOn β β c U) | |
| (hv : ContDiffOn β β v U) (hU : IsOpen U) : | |
| ContDiffOn β β (testedOperatorSource R S b c v) U := | |
| ((((partial_contDiffOn (partial_contDiffOn hv hU 1) hU 1).sub | |
| (hR.mul (partial_contDiffOn (partial_contDiffOn hv hU 1) hU 0))).sub | |
| (hS.mul (partial_contDiffOn (partial_contDiffOn hv hU 0) hU 0))).sub | |
| (hb.mul (partial_contDiffOn hv hU 1))).sub (hc.mul (partial_contDiffOn hv hU 0)) | |
| theorem pulseWeightedMoment_eq_tested_rectangle {a delta tau : β} {f : Coord β β} | |
| (ha : 0 < a) (hd : 0 β€ delta) (ht : 0 < tau) | |
| (hf : ContinuousOn f (pulseStrip a delta tau)) : | |
| pulseWeightedMoment a delta tau f = | |
| rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) (fun p => pulseSpatialTest a tau p*f p) := by | |
| have hh := pulsePair_integral_eq_rectangleIntegral ha.le hd ht | |
| ((pulseSpatialTest_contDiff a tau).continuous.continuousOn.mul hf) | |
| simp only [Pi.mul_def] at hh | |
| have he : (fun q : β Γ β => pulseSpatialTest a tau (pulsePairPoint q)*f (pulsePairPoint q)) = | |
| (fun q => f (pulsePairPoint q)*pulseTest a tau q.2) := by | |
| funext q | |
| simp only [pulseSpatialTest,pulsePairPoint,pulse_boxPoint_zero,mul_comm] | |
| rw [he] at hh | |
| exact hh | |
| theorem testedOperatorSource_moment_identity {a delta tau : β} | |
| {R S b c v : Coord β β} {U : Set Coord} | |
| (ha : 0 < a) (hd : 0 β€ delta) (ht : 0 < tau) | |
| (hR : ContDiffOn β β R U) (hS : ContDiffOn β β S U) | |
| (hb : ContDiffOn β β b U) (hc : ContDiffOn β β c U) | |
| (hv : ContDiffOn β β v U) (hU : IsOpen U) (hSU : pulseStrip a delta tau β U) : | |
| pulseWeightedMoment a delta tau (testedOperatorSource R S b c v) = | |
| rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*coordPartial 1 (coordPartial 1 v) p)- | |
| rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*R p*coordPartial 0 (coordPartial 1 v) p)- | |
| rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*S p*coordPartial 0 (coordPartial 0 v) p)- | |
| rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*b p*coordPartial 1 v p)- | |
| rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*c p*coordPartial 0 v p) := by | |
| have hlr : -a β€ a := by linarith | |
| have hbt : -(delta/tau) β€ delta/tau := by linarith [div_nonneg hd ht.le] | |
| have hΟ : ContinuousOn (pulseSpatialTest a tau) (pulseStrip a delta tau) := | |
| (pulseSpatialTest_contDiff a tau).continuous.continuousOn | |
| have hvi (i : Fin 2) := (partial_contDiffOn hv hU i).continuousOn.mono hSU | |
| have hvij (i j : Fin 2) := (partial_contDiffOn (partial_contDiffOn hv hU j) hU i).continuousOn.mono hSU | |
| have h0 := hΟ.mul (hvij 1 1) | |
| have h1 := (hΟ.mul (hR.continuousOn.mono hSU)).mul (hvij 0 1) | |
| have h2 := (hΟ.mul (hS.continuousOn.mono hSU)).mul (hvij 0 0) | |
| have h3 := (hΟ.mul (hb.continuousOn.mono hSU)).mul (hvi 1) | |
| have h4 := (hΟ.mul (hc.continuousOn.mono hSU)).mul (hvi 0) | |
| rw [pulseWeightedMoment_eq_tested_rectangle ha hd ht | |
| ((testedOperatorSource_contDiffOn hR hS hb hc hv hU).continuousOn.mono hSU)] | |
| have heq : (fun p => pulseSpatialTest a tau p*testedOperatorSource R S b c v p) = | |
| fun p => (((pulseSpatialTest a tau p*coordPartial 1 (coordPartial 1 v) p- | |
| pulseSpatialTest a tau p*R p*coordPartial 0 (coordPartial 1 v) p)- | |
| pulseSpatialTest a tau p*S p*coordPartial 0 (coordPartial 0 v) p)- | |
| pulseSpatialTest a tau p*b p*coordPartial 1 v p)- | |
| pulseSpatialTest a tau p*c p*coordPartial 0 v p := by | |
| funext p | |
| unfold testedOperatorSource hyperbolicOperator | |
| ring | |
| have hs4 := rectangleIntegral_sub hlr hbt (((h0.sub h1).sub h2).sub h3) h4 | |
| have hs3 := rectangleIntegral_sub hlr hbt ((h0.sub h1).sub h2) h3 | |
| have hs2 := rectangleIntegral_sub hlr hbt (h0.sub h1) h2 | |
| have hs1 := rectangleIntegral_sub hlr hbt h0 h1 | |
| simp only [Pi.mul_def,Pi.sub_def] at hs4 hs3 hs2 hs1 | |
| rw [heq,hs4,hs3,hs2,hs1] | |
| theorem testedOperatorSource_moment_cost {a delta tau K K1 M B : β} {N : β} | |
| {R S b c v : Coord β β} {U : Set Coord} {I : Set β} | |
| (ha : 0 < a) (hd : 0 β€ delta) (ht : 1 β€ tau) | |
| (hK : 0 β€ K) (hK1 : 0 β€ K1) (hM : 0 β€ M) (hB : 0 β€ B) | |
| (hR : ContDiffOn β β R U) (hS : ContDiffOn β β S U) | |
| (hb : ContDiffOn β β b U) (hc : ContDiffOn β β c U) | |
| (hv : ContDiffOn β β v U) (hU : IsOpen U) (hSU : pulseStrip a delta tau β U) | |
| (hcoeff : β p β pulseStrip a delta tau, |R p| β€ K β§ |S p| β€ K β§ |b p| β€ K β§ |c p| β€ K) | |
| (hderiv : β p β pulseStrip a delta tau, |coordPartial 0 R p| β€ K1 β§ |coordPartial 0 S p| β€ K1) | |
| (hL2 : β theta β Icc (-(delta/tau)) (delta/tau), β i : Fin 2, | |
| Real.sqrt (β« x in Icc (-a) a, (coordPartial i v (boxPoint x theta))^2) β€ M*delta*tau/tau^N) | |
| (hI : IsOpen I) (hsub : Icc (-a) a β I) | |
| (hupper : β x β I, (![x,delta/tau] : Coord) β U) | |
| (hinitial : β x β Icc (-a) a, coordPartial 1 v (boxPoint x (-(delta/tau))) = 0) | |
| (hjet : β k β€ N, β x β Icc (-a) a, | |
| βiteratedFDeriv β k (heightCauchyVelocity v (delta/tau)) xβ β€ B) : | |
| |pulseWeightedMoment a delta tau (testedOperatorSource R S b c v)| β€ | |
| ((2*a)*cutoffEdgeDerivativeBound a ha N B)/tau^N+ | |
| (4*pulseTestDerivativeBound a ha*K*Real.sqrt (2*a)*M)*delta^2*tau/tau^N+ | |
| (4*axisBumpDerivativeBound a ha 0*(K1+K)*Real.sqrt (2*a)*M)*delta^2/tau^N := by | |
| have htpos := zero_lt_one.trans_le ht | |
| have hlr : -a β€ a := by linarith | |
| have hbt : -(delta/tau) β€ delta/tau := by linarith [div_nonneg hd htpos.le] | |
| have htime := pulse_temporal_moment_finite_bound ha hB hd htpos hv hU hSU hI hsub hupper hinitial N hjet | |
| have hRcost := pulse_spatial_second_cost 1 ha hd ht hK hK1 hM hR hv hU hSU | |
| (fun p hp => (hcoeff p hp).1) (fun p hp => (hderiv p hp).1) (fun theta ht => hL2 theta ht 1) | |
| have hScost := pulse_spatial_second_cost 0 ha hd ht hK hK1 hM hS hv hU hSU | |
| (fun p hp => (hcoeff p hp).2.1) (fun p hp => (hderiv p hp).2) (fun theta ht => hL2 theta ht 0) | |
| have hbcost := pulse_test_pairing_extra_inv_tau 1 ha hd ht hK hM hU hSU hb hv | |
| (fun p hp => (hcoeff p hp).2.2.1) (fun theta ht => hL2 theta ht 1) | |
| have hccost := pulse_test_pairing_extra_inv_tau 0 ha hd ht hK hM hU hSU hc hv | |
| (fun p hp => (hcoeff p hp).2.2.2) (fun theta ht => hL2 theta ht 0) | |
| have hfirst (F : Coord β β) (i : Fin 2) : | |
| rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*F p*coordPartial i v p) = | |
| β« theta in Icc (-(delta/tau)) (delta/tau), β« x in Icc (-a) a, | |
| pulseTest a tau x*F (boxPoint x theta)*coordPartial i v (boxPoint x theta) := by | |
| rw [rectangleIntegral_eq_Icc_slices _ hlr hbt] | |
| simp only [pulseSpatialTest,pulse_boxPoint_zero] | |
| rw [testedOperatorSource_moment_identity ha hd htpos hR hS hb hc hv hU hSU] | |
| rw [β hfirst b 1] at hbcost | |
| rw [β hfirst c 0] at hccost | |
| have htriangle (a0 a1 a2 a3 a4 : β) : | |
| |(((a0-a1)-a2)-a3)-a4| β€ (((|a0|+|a1|)+|a2|)+|a3|)+|a4| := by | |
| have h01 := abs_sub a0 a1 | |
| have h02 := (abs_sub (a0-a1) a2).trans (add_le_add h01 le_rfl) | |
| have h03 := (abs_sub ((a0-a1)-a2) a3).trans (add_le_add h02 le_rfl) | |
| exact (abs_sub (((a0-a1)-a2)-a3) a4).trans (add_le_add h03 le_rfl) | |
| calc | |
| _ β€ (((|rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*coordPartial 1 (coordPartial 1 v) p)|+ | |
| |rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*R p*coordPartial 0 (coordPartial 1 v) p)|)+ | |
| |rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*S p*coordPartial 0 (coordPartial 0 v) p)|)+ | |
| |rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*b p*coordPartial 1 v p)|)+ | |
| |rectangleIntegral (-a) a (-(delta/tau)) (delta/tau) | |
| (fun p => pulseSpatialTest a tau p*c p*coordPartial 0 v p)| := by | |
| exact htriangle _ _ _ _ _ | |
| _ β€ _ := by | |
| have hsum := add_le_add (add_le_add (add_le_add (add_le_add htime hRcost) hScost) hbcost) hccost | |
| apply hsum.trans_eq | |
| ring | |
| end SmoothLocal.Pulse | |
| end | |
| end OAI | |