Buckets:
| import OAI.Analysis.LpDimension.CutoffEnvelope | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory Filter ProbabilityTheory Set Finset Matrix | |
| open scoped BigOperators Topology Matrix ENNReal NNReal RealInnerProductSpace | |
| universe u | |
| namespace SubpolynomialLp | |
| lemma above_small_error (R : ℝ) (hR : 3 < R) : | |
| let ε := 1/(28*R) | |
| 0 < ε ∧ ((1+ε)^3-1) ≤ 1/(2*R) := by | |
| let ε := 1/(28*R) | |
| have hε : 0 < ε := by dsimp | |
| apply (div_le_one (by positivity)).mpr | |
| linarith | |
| have hε2 : ε^2 ≤ ε := by nlinarith | |
| have hε3 : ε^3 ≤ ε := by | |
| have hh := mul_le_mul_of_nonneg_left hε2 hε.le | |
| nlinarith | |
| refine ⟨hε,?_⟩ | |
| calc | |
| _ ≤ 7*ε := by nlinarith | |
| _ ≤ 1/(2*R) := (le_div_iff₀ (by positivity)).mpr (by nlinarith only | |
| let L := 2*R*(3*C+1)/c+1 | |
| have hL : 1 ≤ L := by | |
| dsimp | |
| exact le_add_of_nonneg_left (by positivity) | |
| have hcL : 2*R*(3*C+1) ≤ c*L := by | |
| have he : c*L=2*R*(3*C+1)+c := by dsimp | |
| linarith | |
| have hr0 : 0 < 1-2/p := by apply sub_pos.mpr; exact (div_lt_one hp0).mpr hp | |
| have hr1 : 1-2/p < 1 := by | |
| have hh : 0 < 2/p := by positivity | |
| linarith | |
| have hU := aboveVariance_pos p hp | |
| obtain ⟨A,hA,hEnvelope⟩ := ramp_cutoff_envelope p C (aboveVariance p) L (1-2/p) hp0 hC hU hL hr0 hr1 | |
| refine ⟨A,hA,fun n hn => ?_⟩ | |
| let H := 4*Real.log (n:ℝ) | |
| have hH : 1 ≤ H := by have hh := log_nat_lower n hn; dsimp | |
| push_cast | |
| nlinarith | |
| have hLp : L ≤ L^p := by simpa only | |
| congr 1 | |
| field_simp | |
| calc | |
| _ ≤ L^p*H^(p-2) := mul_le_mul_of_nonneg_right hLp (Real.rpow_nonneg hH0.le _) | |
| _ = (L*H^(1-2/p))^p := by rw | |
| _ ≤ _ := Real.rpow_le_rpow (by positivity) hmL hp0.le | |
| have hHp : 1 ≤ H^(p-2) := Real.one_le_rpow hH (by linarith) | |
| have hb0 : 0 ≤ b := integral_nonneg (fun r => Real.rpow_nonneg (abs_nonneg _) _) | |
| have henergy : c*(m:ℝ)^p*(m:ℝ) ≤ b := by | |
| have hh := pareto_dyadicRamp_energy_lower p hp0 m hm1 | |
| rw | |
| have hbBig : 2*R*(3*C+1)*(m:ℝ)*H^(p-2) ≤ b := by | |
| have h₁ := mul_le_mul_of_nonneg_right hcL (show 0 ≤ (m:ℝ)*H^(p-2) by positivity) | |
| have h₂ := mul_le_mul_of_nonneg_left hmp (show 0 ≤ c*(m:ℝ) by positivity) | |
| nlinarith only | |
| have hrest : C*H^(p-2)*((ℓ:ℝ)+1)+1 ≤ b/(2*R) := by | |
| have hmh : 1 ≤ (m:ℝ)*H^(p-2) := by nlinarith | |
| have hm3 : (ℓ:ℝ)+1 ≤ 3*(m:ℝ) := by dsimp | |
| apply (le_div_iff₀ (by positivity : 0 < 2*R)).mpr | |
| have hr := mul_le_mul_of_nonneg_left hh (show 0 ≤ 2*R by positivity) | |
| nlinarith only | |
| have hbR : R ≤ b := by | |
| have hc0 : 0 ≤ C*H^(p-2)*((ℓ:ℝ)+1) := by positivity | |
| have hh := (le_div_iff₀ (by positivity : 0 < 2*R)).mp hrest | |
| nlinarith | |
| have hEnv := hEnvelope H hH | |
| change 1 ≤ J ∧ 0 ≤ T ∧ T ≤ H^2*Real.exp (A*(H^(1-2/p)+1)) at hEnv | |
| have hJ : 0 < J := by linarith | |
| have htail := global_cutoff_tail p C J hC hJ n hn | |
| change C*J^p*Real.exp (-T/(2*J))*(n:ℝ)^2 ≤ 1 at htail | |
| refine ⟨ℓ,T,hEnv.2.1,hEnv.2.2,(le_div_iff₀ hR0).mpr (by simpa only | |
| _ = _ := hhalf | |
| end SubpolynomialLp | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 5.34 kB
- Xet hash:
- 6fc6ab53254a778f67b034f70968a08e608aced6034bb42d52db5887f4160a10
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.