File size: 3,744 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 100 | import Mathlib
namespace OAI
section
noncomputable section
open scoped Classical
namespace CriticalPercolation.HarmonicAnalysis
lemma sparse_real_doubling (f : β β β) (hf : Monotone f)
(Rβ : β) (hpos : β nβ₯Rβ, 0<f n) (C : β) (hC : 0β€C)
(d b : β) (hb : 2β€b) (hpoly : β R, β nβ₯R, f nβ€C*(n:β)^d) :
β R : β, β nβ₯max R Rβ, f (b*n)β€(b:β)^(d+1)*f n := by
intro R
by_contra! hbad
let a := max (max R Rβ) 1
have ha : 0<a := by dsimp [a]; omega
have haR : max R Rββ€a := le_max_left _ _
have hfapos : 0<f a := hpos a ((le_max_right R Rβ).trans haR)
have hgrow : β k : β, ((b:β)^(d+1))^k*f aβ€f (b^k*a) := by
intro k
induction k with
| zero => simp
| succ k ih =>
have hr : max R Rββ€b^k*a := haR.trans (by
have hh : 1β€b^k := Nat.one_le_pow k b (by omega)
nlinarith)
have hh := (hbad (b^k*a) hr).le
calc
_ = (b:β)^(d+1)*(((b:β)^(d+1))^k*f a) := by rw [pow_succ]; ring
_ β€ (b:β)^(d+1)*f (b^k*a) := mul_le_mul_of_nonneg_left ih (by positivity)
_ β€ f (b*(b^k*a)) := hh
_ = _ := by congr 1; rw [pow_succ]; ring
obtain β¨N,hNβ© := exists_nat_gt (C*((b*a:β):β)^d/f a)
have hNF : C*((b*a:β):β)^d<(N:β)*f a := (div_lt_iffβ hfapos).mp hN
obtain β¨n,hn,hnpolyβ© := hpoly (b*a*(N+1))
have hnA : b*(N+1)β€n/a := (Nat.le_div_iff_mul_le ha).mpr (by nlinarith)
have hnAp : n/aβ 0 := by nlinarith
let k := Nat.log b (n/a)
let P := b^k
have hP : Pβ€n/a := Nat.pow_log_le_self b hnAp
have hP' : n/a<b*P := by
have hh := Nat.lt_pow_of_log_lt (b := b) (x := k+1) (y := n/a) hb
(show Nat.log b (n/a)<k+1 by omega)
simpa only [pow_succ,Nat.mul_comm] using hh
have hNP : N<P := by nlinarith
have hNP' : (N:β)<P := by exact_mod_cast hNP
have hPA : P*aβ€n := (Nat.le_div_iff_mul_le ha).mp hP
have hnupper : n<(b*P)*a := (Nat.div_lt_iff_lt_mul ha).mp hP'
have hlow : (P:β)^d*((P:β)*f a)β€f n := by
have hh := (hgrow k).trans (hf hPA)
have he : (P:β)^d*((P:β)*f a) = ((b:β)^(d+1))^k*f a := by
dsimp [P]
push_cast
rw [βmul_assoc,βpow_succ,βpow_mul,βpow_mul,Nat.mul_comm k (d+1)]
rw [he]
exact hh
have hupper : f nβ€(P:β)^d*(C*((b*a:β):β)^d) := by
have hnupper' : (n:β)β€((b*P)*a:β) := by exact_mod_cast hnupper.le
have hh := mul_le_mul_of_nonneg_left (pow_le_pow_leftβ (Nat.cast_nonneg _) hnupper' d) hC
apply hnpoly.trans
convert hh using 1
push_cast
ring
have hPpos : (0:β)<(P:β)^d := by
apply pow_pos
exact_mod_cast (show 0<P by dsimp [P]; positivity)
have hsmall : C*((b*a:β):β)^d<(P:β)*f a :=
hNF.trans (mul_lt_mul_of_pos_right hNP' hfapos)
exact (not_lt_of_ge (hlow.trans hupper)) (mul_lt_mul_of_pos_left hsmall hPpos)
lemma exists_local_ratio (f : β β β) (L : β) (hL : 0<L)
(C : β) (hC : 0<C) (hbound : f Lβ€C^L*f 0) :
β i<L, f (i+1)β€C*f i := by
by_contra! hbad
have hgrow : β iβ€L, C^i*f 0β€f i := by
intro i hi
induction i with
| zero => simp
| succ i ih =>
have hh := ih (by omega)
calc
_ = C*(C^i*f 0) := by rw [pow_succ]; ring
_ β€ C*f i := mul_le_mul_of_nonneg_left hh hC.le
_ β€ _ := (hbad i (by omega)).le
have hlast := hbad (L-1) (by omega)
rw [Nat.sub_add_cancel (by omega : 1β€L)] at hlast
have hg := mul_le_mul_of_nonneg_left (hgrow (L-1) (by omega)) hC.le
have he : C*(C^(L-1)*f 0)=C^L*f 0 := by
rw [βmul_assoc,βpow_succ',Nat.sub_add_cancel (by omega : 1β€L)]
rw [he] at hg
exact (not_lt_of_ge hbound) (hg.trans_lt hlast)
end CriticalPercolation.HarmonicAnalysis
end
end
end OAI
|