cfahlgren1/math / lean /OAI /NumberTheory /Ostmann /Arithmetic /BulkLogBudgetComparison.lean
cfahlgren1's picture
download
raw
2.13 kB
import OAI.NumberTheory.Ostmann.Arithmetic.BulkLogWeightedKernelPairComparison
namespace OAI
/-! # Cost of retaining the original terminal logarithmic factors -/
namespace Ostmann
open scoped SchwartzMap
/-- Two trees have at most twice their leaf count in logarithmic factors.
Their additional derivative-root cuts cost at most one more copy of the
existing root budget. Only a fixed, depth-dependent variation factor remains. -/
theorem bulkLogWeightedKernelPairBudget_le
(ψ : 𝓢(ℝ, ℂ)) (V lo hi : ℝ) (n d r e t rlog : ℕ) (B D Dlog : ℝ)
(hDlog : 0 ≤ Dlog) (ht : t ≤ 2 * 2 ^ n) (hr : rlog ≤ r) :
bulkLogWeightedKernelPairBudget ψ V lo hi n d r e t rlog B D Dlog ≤
(2 * (2 + Dlog * (Real.exp 2 - 1)) ^ t) *
bulkKernelPairComparisonBudget ψ V lo hi n d r e B D := by
let H := 2 * (n * d + e) + r
let A := (2 ^ n + (2 ^ n - 1)) * H
let B' := (3 * (2 ^ n - 1) + 2 * 2 ^ n) * H
have htr : t * rlog ≤ 2 * A := by
calc
_ ≤ (2 * 2 ^ n) * r := Nat.mul_le_mul ht hr
_ = 2 * (2 ^ n * r) := by ring
_ ≤ 2 * A := Nat.mul_le_mul_left 2
(Nat.mul_le_mul (Nat.le_add_right _ _) (show r ≤ H by dsimp only [H]; omega))
have hcount : 2 * (A + B') + t * rlog + 1 ≤ 2 * (2 * (A + B') + 1) := by omega
have hcountR : ((2 * (A + B') + t * rlog + 1 : ℕ) : ℝ) ≤
2 * ((2 * (A + B') + 1 : ℕ) : ℝ) := by exact_mod_cast hcount
have hexp : 0 ≤ Real.exp 2 - 1 := sub_nonneg.mpr (Real.one_le_exp (by norm_num))
have hfactor : 0 ≤ (2 + Dlog * (Real.exp 2 - 1)) ^ t :=
pow_nonneg (add_nonneg (by norm_num) (mul_nonneg hDlog hexp)) _
have h := mul_le_mul_of_nonneg_right hcountR
(mul_nonneg (sq_nonneg
(movingFourierVariationBudget ψ V lo hi n * (2 * B + D * (Real.exp 2 - 1)) ^ (2 ^ n - 1))) hfactor)
change ((2 * (A + B') + t * rlog + 1 : ℕ) : ℝ) *
((movingFourierVariationBudget ψ V lo hi n * (2 * B + D * (Real.exp 2 - 1)) ^ (2 ^ n - 1)) ^ 2 *
(2 + Dlog * (Real.exp 2 - 1)) ^ t) ≤ _
exact h.trans_eq (by dsimp only [bulkKernelPairComparisonBudget, A, B', H]; ring)
end Ostmann
end OAI

Xet Storage Details

Size:
2.13 kB
·
Xet hash:
20d97dcddc63cd982f299ddb553892eda0a98bb7a3bb215c841ef0438d5cd39d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.