Exact Lean source
Nonadditivity.GaussianScalar
Download original .lean · View on GitHub · Jump to source
Direct imports
Mathlib.Analysis.SpecialFunctions.Log.BasicdependencyMathlib.Data.Real.ArchimedeandependencyMathlib.Tacticdependency
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
1 project constants, including generated, internal and private declarations.
1 declarations
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.Analysis.SpecialFunctions.Log.Basic7import Mathlib.Data.Real.Archimedean8import Mathlib.Tactic910/-! # Simultaneous scalar parameters for the Gaussian construction -/11noncomputable section1213namespace Nonadditivity.GaussianScalar1415/-- One sufficiently large integer makes the one-use upper bound arbitrarily16small and the two-use ratio lower bound arbitrarily large, simultaneously. -/17theorem exists_parameter {ε : ℝ} (hε : 0 < ε) (R : ℝ) :18∃ K : ℕ, 4096 ≤ K ∧19(512:ℝ)^2 / ((K:ℝ) * Real.log 2) ≤ ε ∧20R ≤ (Real.log K - 1) / (2 * (512:ℝ)^2) ∧210 ≤ Real.log K - 1 := by22have hlogtwo : 0 < Real.log 2 := Real.log_pos (by norm_num)23let C : ℝ := (512:ℝ)^224have hC : 0 < C := by norm_num [C]25obtain ⟨K, hK⟩ := exists_nat_gt26(max (4096:ℝ) (max (C / (ε * Real.log 2)) (Real.exp (2*C*max R 0+1))))27have hsize : (4096:ℝ) ≤ K := (le_max_left _ _).trans hK.le28have hKpos : (0:ℝ) < K := lt_of_lt_of_le (by norm_num) hsize29have hsmall : C / (ε * Real.log 2) ≤ K :=30(le_max_left _ _).trans ((le_max_right _ _).trans hK.le)31have hexp : Real.exp (2*C*max R 0+1) ≤ K :=32(le_max_right _ _).trans ((le_max_right _ _).trans hK.le)33have hlarge : 2*C*max R 0+1 ≤ Real.log K := by34simpa only [Real.log_exp] using Real.log_le_log (Real.exp_pos _) hexp35refine ⟨K, ?_, ?_, ?_, ?_⟩36· exact_mod_cast hsize37· change C / ((K:ℝ) * Real.log 2) ≤ ε38apply (div_le_iff₀ (mul_pos hKpos hlogtwo)).mpr39have hs := (div_le_iff₀ (mul_pos hε hlogtwo)).mp hsmall40nlinarith41· change R ≤ (Real.log K - 1) / (2*C)42apply (le_div_iff₀ (mul_pos (by norm_num) hC)).mpr43have hm := mul_le_mul_of_nonneg_left (le_max_left R 0) (le_of_lt (mul_pos (by norm_num : (0:ℝ)<2) hC))44linarith45· have hm : 0 ≤ max R 0 := le_max_right _ _46have hcmax : 0 ≤ 2*C*max R 0 := mul_nonneg (by positivity) hm47linarith4849end Nonadditivity.GaussianScalar