Exact Lean source
Nonadditivity.PrescribedCostScalars
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.HaarPrescribedScalingMathlib.Analysis.SpecialFunctions.Pow.Asymptoticsdependency
Imported by project modules
2 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
9 project constants, including generated, internal and private declarations.
9 declarations
Nonadditivity.PrescribedCost.log_pow_div_sqrt_tendsto_zeroNonadditivity.PrescribedCost.log_pow_div_sqrt_tendsto_zero._simp_1_1internal/detail/privateNonadditivity.PrescribedCost.normalized_blockLength_tendsto_oneNonadditivity.PrescribedCost.normalized_blockLength_tendsto_one._proof_1_1internal/detail/privateNonadditivity.PrescribedCost.sqrt_log_div_nat_tendsto_zeroNonadditivity.PrescribedCost.sqrt_log_div_nat_tendsto_zero._proof_1_1internal/detail/privateNonadditivity.PrescribedCost.threshold_div_sqrt_tendsto_zeroNonadditivity.PrescribedCost.threshold_le_blockLength_eventuallyNonadditivity.PrescribedCost.threshold_le_blockLength_eventually._proof_1_1internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPrescribedScaling7import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics89/-! # Rounded growing-block lengths and the prescribed construction threshold -/1011noncomputable section12namespace Nonadditivity.PrescribedCost13open Filter Topology14open Asymptotics1516theorem sqrt_log_div_nat_tendsto_zero :17Tendsto (fun K : ℕ => Real.sqrt (Real.log K) / K) atTop (𝓝 0) := by18have h : Tendsto (fun K : ℕ => 1 / Real.sqrt K) atTop (𝓝 0) := tendsto_const_nhds.div_atTop19(Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop)20apply squeeze_zero' (Eventually.of_forall (fun K => by positivity)) _21h22filter_upwards [eventually_ge_atTop 2] with K hK23have hKr : (0 : ℝ) < K := by exact_mod_cast (show 0<K by omega)24have hs := Real.sqrt_le_sqrt (Real.log_le_self hKr.le)25have hsq := Real.mul_self_sqrt hKr.le26apply (div_le_div_iff₀ hKr (Real.sqrt_pos.mpr hKr)).mpr27nlinarith [mul_le_mul_of_nonneg_right hs (Real.sqrt_nonneg (K:ℝ))]2829theorem normalized_blockLength_tendsto_one :30Tendsto (fun K : ℕ => (blockLength K : ℝ) * Real.sqrt (Real.log K) / K)31atTop (𝓝 1) := by32have hu : Tendsto (fun K : ℕ => 1 + Real.sqrt (Real.log K) / K) atTop (𝓝 1) := by33simpa using tendsto_const_nhds.add sqrt_log_div_nat_tendsto_zero34apply tendsto_of_tendsto_of_tendsto_of_le_of_le' tendsto_const_nhds hu35· filter_upwards [eventually_ge_atTop 2] with K hK36have hk : (0 : ℝ) < K := by exact_mod_cast (show 0<K by omega)37have hs := Real.sqrt_pos.mpr (log_nat_pos hK)38have hc := (div_le_iff₀ hs).mp (Nat.le_ceil ((K:ℝ)/Real.sqrt (Real.log K)))39exact (le_div_iff₀ hk).mpr (by simpa using hc)40· filter_upwards [eventually_ge_atTop 2] with K hK41have hk : (0 : ℝ) < K := by exact_mod_cast (show 0<K by omega)42have hs := Real.sqrt_pos.mpr (log_nat_pos hK)43have hc := (Nat.ceil_lt_add_one (div_nonneg hk.le hs.le)).le44have hm := mul_le_mul_of_nonneg_right hc hs.le45change (blockLength K : ℝ) * Real.sqrt (Real.log K) / K ≤ _46apply (div_le_iff₀ hk).mpr47have hid : (((K:ℝ)/Real.sqrt (Real.log K))+1)*Real.sqrt (Real.log K) =48(K:ℝ)+Real.sqrt (Real.log K) := by field_simp49rw [hid] at hm50convert hm using 151field_simp5253theorem log_pow_div_sqrt_tendsto_zero (m : ℕ) :54Tendsto (fun K : ℕ => (Real.log K)^m / Real.sqrt K) atTop (𝓝 0) := by55have h := (isLittleO_log_rpow_rpow_atTop (m:ℝ)56(show (0:ℝ)<1/2 by norm_num)).tendsto_div_nhds_zero.comp tendsto_natCast_atTop_atTop57simpa only [Real.rpow_natCast, ← Real.sqrt_eq_rpow] using h5859theorem threshold_div_sqrt_tendsto_zero :60Tendsto (fun K : ℕ => (Quantitative.n₀ K : ℝ) / Real.sqrt K) atTop (𝓝 0) := by61have hu : Tendsto (fun K : ℕ =>62(256*(1+Real.log K)^2+1)/Real.sqrt K) atTop (𝓝 0) := by63have h := ((log_pow_div_sqrt_tendsto_zero 0).const_mul 257).add64(((log_pow_div_sqrt_tendsto_zero 1).const_mul 512).add65((log_pow_div_sqrt_tendsto_zero 2).const_mul 256))66convert h using 167· funext K68simp only [pow_zero, pow_one]69ring70· norm_num71apply squeeze_zero (fun K => by positivity) (fun K => ?_) hu72exact div_le_div_of_nonneg_right73(Nat.ceil_lt_add_one (show (0:ℝ)≤256*(1+Real.log K)^2 by positivity)).le74(Real.sqrt_nonneg _)7576/-- The manuscript's unmodified rounded block length eventually exceeds the77prescribed threshold; the initial maximum in the actual family disappears. -/78theorem threshold_le_blockLength_eventually :79∀ᶠ K : ℕ in atTop, Quantitative.n₀ K ≤ blockLength K := by80have ht := threshold_div_sqrt_tendsto_zero.eventually (gt_mem_nhds (show (0:ℝ)<1 by norm_num))81filter_upwards [ht, eventually_ge_atTop 2] with K h hK82have hk : (0:ℝ)<K := by exact_mod_cast (show 0<K by omega)83have hs := (div_lt_iff₀ (Real.sqrt_pos.mpr hk)).mp h84have hb := sqrt_le_blockLength hK85exact_mod_cast (show (Quantitative.n₀ K : ℝ) ≤ (blockLength K : ℝ) by linarith)8687end Nonadditivity.PrescribedCost