Buckets:
| import Mathlib | |
| import OAI.Analysis.CoulombIonization.FormDomain.Forms | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators ContDiff | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators ContDiff InnerProductSpace Convolution | |
| open Filter | |
| open scoped Topology InnerProductSpace | |
| open MeasureTheory Complex Filter | |
| open scoped Topology InnerProductSpace | |
| open MeasureTheory Complex Filter | |
| open scoped Topology InnerProductSpace ContDiff | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators ContDiff InnerProductSpace Convolution | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators ContDiff InnerProductSpace | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators ContDiff InnerProductSpace ENNReal | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| open Set Filter Topology InnerProductSpace Laplacian | |
| open MeasureTheory Filter | |
| open scoped Topology | |
| open MeasureTheory Filter | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators InnerProductSpace | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators Pointwise | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set Metric Topology InnerProductSpace Laplacian | |
| open scoped Convolution | |
| open scoped RealInnerProductSpace | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set Metric Topology InnerProductSpace Laplacian | |
| open MeasureTheory Filter Set Metric Topology InnerProductSpace Laplacian | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Set Filter Metric Topology InnerProductSpace Laplacian | |
| open MeasureTheory Set Filter Metric Topology InnerProductSpace Laplacian | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Filter Set Metric Topology InnerProductSpace Laplacian | |
| open Filter Set Metric Topology InnerProductSpace Laplacian | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Filter Set Metric Topology | |
| open Filter | |
| open scoped Topology | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Filter Set Metric Topology | |
| open MeasureTheory Complex Filter | |
| open scoped Topology InnerProductSpace ContDiff BigOperators | |
| open MeasureTheory Filter Set | |
| open scoped Topology BigOperators | |
| open MeasureTheory Filter | |
| open scoped Topology BigOperators InnerProductSpace | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| namespace CoulombAtom | |
| lemma smoothTransition_deriv_zero_of_neg {x : β} (hx : x < 0) : | |
| deriv Real.smoothTransition x = 0 := by | |
| have hh : Real.smoothTransition =αΆ [π x] fun _ => (0 : β) := | |
| (eventually_lt_nhds hx).mono fun _ hy => Real.smoothTransition.zero_of_nonpos hy.le | |
| simpa only [deriv_const] using hh.deriv_eq | |
| lemma smoothTransition_deriv_zero_of_one_lt {x : β} (hx : 1 < x) : | |
| deriv Real.smoothTransition x = 0 := by | |
| have hh : Real.smoothTransition =αΆ [π x] fun _ => (1 : β) := | |
| (eventually_gt_nhds hx).mono fun _ hy => Real.smoothTransition.one_of_one_le hy.le | |
| simpa only [deriv_const] using hh.deriv_eq | |
| lemma smoothTransition_deriv_compact : HasCompactSupport (deriv Real.smoothTransition) := by | |
| apply HasCompactSupport.of_support_subset_isCompact (isCompact_Icc (a := (0:β)) (b := 1)) | |
| intro x hx | |
| constructor | |
| Β· by_contra h | |
| exact hx (smoothTransition_deriv_zero_of_neg (lt_of_not_ge h)) | |
| Β· by_contra h | |
| exact hx (smoothTransition_deriv_zero_of_one_lt (lt_of_not_ge h)) | |
| lemma smoothTransition_deriv_bounded : β C : β, 0 < C β§ | |
| β x, |deriv Real.smoothTransition x| β€ C := by | |
| obtain β¨C,hCβ© := smoothTransition_deriv_compact.exists_bound_of_continuous | |
| ((Real.smoothTransition.contDiff (n := β€)).continuous_deriv (by simp)) | |
| refine β¨1 + |C|, by positivity, fun x => ?_β© | |
| exact (hC x).trans (by linarith [le_abs_self C]) | |
| def smoothTransitionBound : β := Classical.choose smoothTransition_deriv_bounded | |
| lemma smoothTransitionBound_pos : 0 < smoothTransitionBound := | |
| (Classical.choose_spec smoothTransition_deriv_bounded).1 | |
| lemma smoothTransition_deriv_le (x : β) : | |
| |deriv Real.smoothTransition x| β€ smoothTransitionBound := | |
| (Classical.choose_spec smoothTransition_deriv_bounded).2 x | |
| def radialParameter (y : Space) (t b : β) (x : Space) : β := | |
| (βx-yβ ^ 2 - t ^ 2) / ((t+b)^2-t^2) | |
| def radialPhase (y : Space) (t b : β) (x : Space) : β := | |
| (Real.pi / 2) * Real.smoothTransition (radialParameter y t b x) | |
| lemma radialParameter_regular (y : Space) (t b : β) : ContDiff β β (radialParameter y t b) := | |
| (((contDiff_norm_sq β).comp (contDiff_id.sub contDiff_const)).sub contDiff_const).div_const _ | |
| lemma radialPhase_regular (y : Space) (t b : β) : ContDiff β β (radialPhase y t b) := | |
| contDiff_const.mul ((Real.smoothTransition.contDiff (n := β€)).comp (radialParameter_regular y t b)) | |
| lemma radialParameter_derivative (y : Space) (t b : β) (x v : Space) : | |
| lineDeriv β (radialParameter y t b) x v = | |
| 2 * inner β (x-y) v / ((t+b)^2-t^2) := by | |
| have hh := (((hasFDerivAt_id x).sub_const y).norm_sq.sub_const (t^2)).mul_const (((t+b)^2-t^2)β»ΒΉ) | |
| change HasFDerivAt (radialParameter y t b) _ x at hh | |
| rw [hh.differentiableAt.lineDeriv_eq_fderiv, hh.fderiv] | |
| simp [smul_eq_mul, div_eq_mul_inv, inner_sub_left] | |
| ring | |
| lemma radialPhase_derivative (y : Space) (t b : β) (x v : Space) : | |
| lineDeriv β (radialPhase y t b) x v = | |
| (Real.pi / 2) * deriv Real.smoothTransition (radialParameter y t b x) * | |
| (2 * inner β (x-y) v / ((t+b)^2-t^2)) := by | |
| have hp := (radialParameter_regular y t b).differentiable (by simp) x | |
| have hs := ((Real.smoothTransition.contDiff (n := β€)).differentiable (by simp) | |
| (radialParameter y t b x)).hasDerivAt | |
| have hh := (hs.comp_hasFDerivAt x hp.hasFDerivAt).const_mul (Real.pi/2) | |
| change HasFDerivAt (radialPhase y t b) _ x at hh | |
| rw [hh.differentiableAt.lineDeriv_eq_fderiv, hh.fderiv] | |
| simp only [smul_apply, smul_eq_mul] | |
| rw [β hp.lineDeriv_eq_fderiv, radialParameter_derivative] | |
| ring | |
| lemma radial_denominator_pos {t b : β} (ht : 0 β€ t) (hb : 0 < b) : | |
| 0 < (t+b)^2-t^2 := by nlinarith | |
| lemma radialPhase_derivative_le (y : Space) {t b : β} (ht : 0 β€ t) (hb : 0 < b) | |
| (x : Space) (a : Fin 3) : | |
| |lineDeriv β (radialPhase y t b) x (spaceDirections a)| β€ | |
| Real.pi * smoothTransitionBound / b := by | |
| rw [radialPhase_derivative] | |
| have hD := radial_denominator_pos ht hb | |
| have hC := smoothTransitionBound_pos | |
| by_cases hlow : radialParameter y t b x < 0 | |
| Β· rw [smoothTransition_deriv_zero_of_neg hlow] | |
| simp only [mul_zero, zero_mul, abs_zero] | |
| positivity | |
| by_cases hhigh : 1 < radialParameter y t b x | |
| Β· rw [smoothTransition_deriv_zero_of_one_lt hhigh] | |
| simp only [mul_zero, zero_mul, abs_zero] | |
| positivity | |
| have hr : βx-yβ β€ t+b := by | |
| have hh : (βx-yβ ^ 2 - t^2) β€ (t+b)^2-t^2 := | |
| (div_le_one hD).mp (le_of_not_gt hhigh) | |
| nlinarith [norm_nonneg (x-y)] | |
| have hi : |inner β (x-y) (spaceDirections a)| β€ t+b := by | |
| calc | |
| _ β€ βx-yβ * βspaceDirections aβ := by simpa only [Real.norm_eq_abs] using (norm_inner_le_norm (π := β) (x-y) (spaceDirections a)) | |
| _ = βx-yβ := by simp [spaceDirections] | |
| _ β€ t+b := hr | |
| have hd : |2 * inner β (x-y) (spaceDirections a) / ((t+b)^2-t^2)| β€ | |
| 2 * (t+b) / ((t+b)^2-t^2) := by | |
| rw [abs_div, abs_mul, abs_of_pos hD, abs_of_pos (by norm_num : (0:β)<2)] | |
| exact div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left hi (by norm_num)) hD.le | |
| rw [abs_mul, abs_mul, abs_of_pos (div_pos Real.pi_pos (by norm_num))] | |
| calc | |
| _ β€ ((Real.pi / 2) * smoothTransitionBound) * (2 * (t+b) / ((t+b)^2-t^2)) := | |
| mul_le_mul (mul_le_mul_of_nonneg_left (smoothTransition_deriv_le _) (by positivity)) | |
| hd (abs_nonneg _) (by positivity) | |
| _ = (Real.pi * smoothTransitionBound) * ((t+b) / ((t+b)^2-t^2)) := by ring | |
| _ β€ (Real.pi * smoothTransitionBound) * (1/b) := by | |
| apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| apply (div_le_div_iffβ hD hb).mpr | |
| nlinarith [mul_nonneg ht hb.le] | |
| _ = _ := by ring | |
| end CoulombAtom | |
| open MeasureTheory Filter | |
| open scoped Topology ContDiff BigOperators | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 9.2 kB
- Xet hash:
- 640cb4da363c599585bf3dc609a88cd2dbe626c0cf26fbf9b4aef9f1f8718c8f
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.