Download data/lean/OAI/MeasureTheory/Falconer/Shells/HighShellNormalization.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Shells/HighShellNormalization.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Shells/HighShellNormalization.lean
-
curl -L -o HighShellNormalization.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Shells/HighShellNormalization.lean
3.8 kB
| import OAI.MeasureTheory.Falconer.Shells.HighShellStationaryScale | |
| namespace OAI | |
| namespace PlanarFalconer | |
| theorem source_block_dominates_slack {sig kap : β} (hsig : 0 β€ sig) | |
| (hpar : sig < kap/1000) (N : β) : | |
| sig*(N:β) β€ (Nat.ceil (kap*N):β) := by | |
| apply le_trans _ (Nat.le_ceil _) | |
| have : sig β€ kap := by linarith | |
| exact mul_le_mul_of_nonneg_right this (Nat.cast_nonneg N) | |
| theorem high_shell_descriptor_scale {sig v : β} (hsig : 0 β€ sig) | |
| (N l a t : β) (hl : 2*(l:β) β€ (t:β)-a) | |
| (hgap : 0 β€ v-a) (hv : (t:β)-sig*N β€ v) : | |
| (sourceAngularRadius N sig l)β»ΒΉ β€ (2:β)^((v-a)/2) := by | |
| rw [sourceAngularRadius_inv] | |
| apply max_le | |
| Β· exact Real.one_le_rpow (by norm_num) (by linarith) | |
| Β· rw [β Real.rpow_natCast_mul (by norm_num : (0:β) β€ 2),β Real.rpow_natCast, | |
| β Real.rpow_add (by norm_num : (0:β) < 2)] | |
| apply Real.rpow_le_rpow_of_exponent_le (by norm_num : (1:β) β€ 2) | |
| nlinarith [mul_nonneg (Nat.cast_nonneg N) hsig] | |
| theorem high_shell_extracted_scale {ΞΉ : Type*} (S : Finset ΞΉ) | |
| (b : ΞΉ β PolicyDescriptor) (k : ΞΉ β β) {sig v : β} | |
| (hsig : 0 β€ sig) (N a t j : β) | |
| (hl : β i β S, 2*(descriptorLength (b i):β) β€ (t:β)-a) | |
| (hgap : 0 β€ v-a) (hv : (t:β)-sig*N β€ v) (hk : β i β S, k i β€ 2*j) : | |
| (β i β S, ((sourceAngularRadius N sig (descriptorLength (b i)))β»ΒΉ)^(k i)) β€ | |
| (2:β)^((j:β)*(v-a)) := by | |
| calc | |
| _ β€ β i β S, ((2:β)^((v-a)/2))^(k i) := by | |
| apply Finset.prod_le_prodβ (fun index _ => | |
| pow_nonneg (inv_nonneg.mpr (sourceAngularRadius_pos N sig (descriptorLength (b index))).le) _) | |
| intro i hi | |
| exact pow_le_pow_leftβ (inv_nonneg.mpr (sourceAngularRadius_pos _ _ _).le) | |
| (high_shell_descriptor_scale hsig N _ a t (hl i hi) hgap hv) _ | |
| _ = ((2:β)^((v-a)/2))^(β i β S, k i) := Finset.prod_pow_eq_pow_sum _ _ _ | |
| _ β€ ((2:β)^((v-a)/2))^(2*j) := | |
| pow_le_pow_rightβ (Real.one_le_rpow (by norm_num) (by linarith)) hk | |
| _ = _ := by | |
| rw [β Real.rpow_mul_natCast (by norm_num : (0:β) β€ 2)] | |
| congr 1 | |
| push_cast | |
| ring | |
| theorem high_shell_inverse_power_split (a v r d : β) (j : β) : | |
| ((r*d)β»ΒΉ)^j = ((2:β)^(-(j:β)*(v-a))) * | |
| ((r/(2:β)^v)β»ΒΉ)^j * ((d/(2:β)^(-a))β»ΒΉ)^j := by | |
| have hp : (2:β)^(v-a) β 0 := (Real.rpow_pos_of_pos (by norm_num) _).ne' | |
| have he : (2:β)^(-(j:β)*(v-a)) = (((2:β)^(v-a))β»ΒΉ)^j := by | |
| rw [β Real.rpow_neg (by norm_num : (0:β) β€ 2), | |
| β Real.rpow_mul_natCast (by norm_num : (0:β) β€ 2)] | |
| congr 1 | |
| ring | |
| rw [he,β mul_pow,β mul_pow] | |
| congr 1 | |
| rw [inv_div,inv_div,mul_inv_rev] | |
| have he : (2:β)^v*(2:β)^(-a) = (2:β)^(v-a) := by | |
| rw [β Real.rpow_add (by norm_num : (0:β) < 2)]; rfl | |
| symm | |
| calc | |
| _ = rβ»ΒΉ*dβ»ΒΉ*(((2:β)^(v-a))β»ΒΉ*((2:β)^v*(2:β)^(-a))) := by ring | |
| _ = _ := by rw [he,inv_mul_cancelβ hp]; ring | |
| theorem high_shell_weight_cancellation {r d s : β} | |
| (hr : 0 < r) (hd : 0 < d) (hs : 0 < s) : | |
| (d/s)^(-(1/2:β))*(r*d)^(1/2:β) = (r*s)^(1/2:β) := by | |
| rw [Real.div_rpow hd.le hs.le, Real.mul_rpow hr.le hd.le, | |
| Real.mul_rpow hr.le hs.le] | |
| have he : d^(-(1/2:β))*d^(1/2:β) = 1 := by | |
| rw [β Real.rpow_add hd]; norm_num | |
| have hs' : s^(-(1/2:β)) = (s^(1/2:β))β»ΒΉ := Real.rpow_neg hs.le _ | |
| rw [hs',div_inv_eq_mul] | |
| calc | |
| _ = r^(1/2:β)*s^(1/2:β)*(d^(-(1/2:β))*d^(1/2:β)) := by ring | |
| _ = _ := by rw [he,mul_one] | |
| theorem high_shell_energy_prefactor (a v : β) : | |
| (2:β)^(-a)*(2:β)^v*(2:β)^(v-a) = (2:β)^(2*(v-a)) := by | |
| rw [β Real.rpow_add (by norm_num : (0:β) < 2), | |
| β Real.rpow_add (by norm_num : (0:β) < 2)] | |
| congr 1 | |
| ring | |
| end PlanarFalconer | |
| end OAI | |