File size: 4,300 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | import Mathlib
import OAI.MeasureTheory.FalconerCompletion.Recursion.MaskScale
import OAI.MeasureTheory.FalconerCompletion.Sphere.SphereAmbient2
namespace OAI
/-! Recursive policies and quantitative depth estimates. -/
section
section
open Set MeasureTheory
open scoped ComplexConjugate RealInnerProductSpace
namespace GraphLiteralSupport
namespace Attempt4PrefixShell
open Filter Real
open scoped Topology
noncomputable def sourceMaskScaleND (l : β) (R Ο : β) : β :=
max 1 ((2:β)^l*R^(-50*Ο))
noncomputable def sourceMaskRadiusND (d l : β) (R Ο : β) : β :=
(sourceMaskScaleND l R Ο)β»ΒΉ/(100*(d+1)^2)
noncomputable def sourceTestWidthND (J i n : β) (R Ο : β) : β :=
(2-(i:β)/J)*((2:β)^n)β»ΒΉ*R^(500*Ο)
lemma sourceMaskScaleND_one_le (l : β) (R Ο : β) : 1 β€ sourceMaskScaleND l R Ο := le_max_left _ _
lemma sourceMaskScaleND_pos (l : β) (R Ο : β) : 0<sourceMaskScaleND l R Ο :=
zero_lt_one.trans_le (sourceMaskScaleND_one_le l R Ο)
lemma sourceMaskRadiusND_pos (d l : β) (R Ο : β) : 0<sourceMaskRadiusND d l R Ο :=
div_pos (inv_pos.mpr (sourceMaskScaleND_pos l R Ο)) (by positivity)
lemma sourceMaskScaleND_mono {l L : β} (h : l β€ L) {R Ο : β} (hR : 0 β€ R) :
sourceMaskScaleND l R Ο β€ sourceMaskScaleND L R Ο := by
apply max_le_max_left
exact mul_le_mul_of_nonneg_right (pow_le_pow_rightβ (by norm_num) h) (Real.rpow_nonneg hR _)
lemma sourceMaskScaleND_inv_depth {g p : β} (hgp : g β€ p) {R Ο : β} (hR : 0<R) :
((2:β)^g)β»ΒΉ*(sourceMaskScaleND (p-g) R Ο)β»ΒΉ β€ ((2:β)^p)β»ΒΉ*R^(50*Ο) := by
have hpos : 0<(2:β)^(p-g)*R^(-50*Ο) := by positivity
have hh := inv_antiβ hpos (le_max_right (1:β) ((2:β)^(p-g)*R^(-50*Ο)))
apply (mul_le_mul_of_nonneg_left hh (by positivity : (0:β) β€ ((2:β)^g)β»ΒΉ)).trans_eq
rw [mul_inv_rev,show -50*Ο=-(50*Ο) by ring,Real.rpow_neg hR.le,inv_inv]
calc
_ = (((2:β)^g)*((2:β)^(p-g)))β»ΒΉ*R^(50*Ο) := by rw [mul_inv_rev]; ring
_ = _ := by rw [β pow_add,Nat.add_sub_of_le hgp]
lemma sourceTestWidthND_gap {J : β} (hJ : 0<J) (i n : β) (R Ο : β) :
sourceTestWidthND J i n R Ο-sourceTestWidthND J (i+1) n R Ο =
(J:β)β»ΒΉ*((2:β)^n)β»ΒΉ*R^(500*Ο) := by
unfold sourceTestWidthND
push_cast
have hJ' : (J:β) β 0 := by exact_mod_cast hJ.ne'
field_simp
ring
lemma source_mask_width_gapND {d g p J i : β} {R Ο : β}
(hgp : g β€ p) (hJ : 0<J) (hR : 0<R) (hlarge : (J:β) β€ R^(450*Ο)) :
sourceTestWidthND J (i+1) p R Ο+
40*(d+1)^2/(2:β)^g*sourceMaskRadiusND d (p-g) R Ο β€
sourceTestWidthND J i p R Ο := by
have hD := sourceMaskScaleND_inv_depth hgp hR (Ο := Ο)
have hJn : (0:β)<J := by exact_mod_cast hJ
have hpow : R^(50*Ο) β€ (J:β)β»ΒΉ*R^(500*Ο) := by
calc
_ β€ ((J:β)β»ΒΉ*R^(450*Ο))*R^(50*Ο) := by
apply le_mul_of_one_le_left (Real.rpow_nonneg hR.le _)
exact (one_le_inv_mulβ hJn).mpr hlarge
_ = _ := by rw [mul_assoc,β Real.rpow_add hR]; congr 2; ring
have hpert : 40*(d+1)^2/(2:β)^g*sourceMaskRadiusND d (p-g) R Ο β€
(J:β)β»ΒΉ*((2:β)^p)β»ΒΉ*R^(500*Ο) := by
unfold sourceMaskRadiusND
calc
_ = (2/5:β)*(((2:β)^g)β»ΒΉ*(sourceMaskScaleND (p-g) R Ο)β»ΒΉ) := by field_simp; ring
_ β€ (2/5:β)*(((2:β)^p)β»ΒΉ*R^(50*Ο)) := mul_le_mul_of_nonneg_left hD (by norm_num)
_ β€ ((2:β)^p)β»ΒΉ*R^(50*Ο) := mul_le_of_le_one_left (by positivity) (by norm_num)
_ β€ _ := by simpa only [mul_left_comm,mul_assoc] using mul_le_mul_of_nonneg_left hpow (by positivity : (0:β) β€ ((2:β)^p)β»ΒΉ)
have he := sourceTestWidthND_gap hJ i p R Ο
linarith
theorem source_mask_width_gap_eventuallyND {Ο : β} (hΟ : 0<Ο) (d J : β) (hJ : 0<J) :
βαΆ R : β in atTop, β g p i : β, g β€ p β
sourceTestWidthND J (i+1) p R Ο+
40*(d+1)^2/(2:β)^g*sourceMaskRadiusND d (p-g) R Ο β€
sourceTestWidthND J i p R Ο := by
filter_upwards [eventually_gt_atTop (0:β),
(tendsto_rpow_atTop (by positivity : (0:β)<450*Ο)).eventually_ge_atTop (J:β)] with R hR hlarge
intro g p i hgp
exact source_mask_width_gapND hgp hJ hR hlarge
end Attempt4PrefixShell
end GraphLiteralSupport
end
end
end OAI
|