Exact Lean source
Nonadditivity.PrescribedCostLogarithms
Download original .lean · View on GitHub · Jump to source
Direct imports
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
8 project constants, including generated, internal and private declarations.
8 declarations
Nonadditivity.PrescribedCost.inputQubitsNonadditivity.PrescribedCost.inputQubits_div_sq_tendstoNonadditivity.PrescribedCost.inputQubits_pos_eventuallyNonadditivity.PrescribedCost.inputQubits_pos_eventually._proof_1_1internal/detail/privateNonadditivity.PrescribedCost.log2_inputQubits_div_log_tendstoNonadditivity.PrescribedCost.log_inputQubits_div_log_tendstoNonadditivity.PrescribedCost.log_inputQubits_div_log_tendsto._proof_1_1internal/detail/privateNonadditivity.PrescribedCost.sqrt_inputLog_ratio_tendsto
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.PrescribedCostDimensions78/-! # Logarithmic input-cost scale of the actual growing family -/9noncomputable section10namespace Nonadditivity.PrescribedCost11open Filter Topology Asymptotics1213def inputQubits (K : ℕ) : ℝ := Scalar.log2 (Fintype.card (growingFamily K).Input)1415theorem inputQubits_div_sq_tendsto :16Tendsto (fun K : ℕ => inputQubits K/(K:ℝ)^2) atTop (𝓝 (280/Real.log 2)) :=17growingFamily_input_qubits_div_sq_tendsto1819theorem inputQubits_pos_eventually : ∀ᶠ K : ℕ in atTop, 0 < inputQubits K := by20have hc : (0:ℝ)<280/Real.log 2 := by positivity21have hh := inputQubits_div_sq_tendsto.eventually (lt_mem_nhds hc)22filter_upwards [hh,eventually_ge_atTop 2] with K h hK23have hk : (0:ℝ)<K := by exact_mod_cast (show 0<K by omega)24simpa using (lt_div_iff₀ (sq_pos_of_pos hk)).mp h2526/-- Taking the logarithm of the actual input-qubit count gives twice ln K27at leading order, because that count is asymptotic to a positive multiple of K². -/28theorem log_inputQubits_div_log_tendsto :29Tendsto (fun K : ℕ => Real.log (inputQubits K)/Real.log K) atTop (𝓝 2) := by30have hc : (0:ℝ)<280/Real.log 2 := by positivity31have hlogK : Tendsto (fun K : ℕ => Real.log (K:ℝ)) atTop atTop :=32Real.tendsto_log_atTop.comp tendsto_natCast_atTop_atTop33have h := (inputQubits_div_sq_tendsto.log hc.ne').div_atTop hlogK34have h' : Tendsto (fun K : ℕ =>35Real.log (inputQubits K/(K:ℝ)^2)/Real.log K + 2) atTop (𝓝 2) := by36simpa using h.add_const 237apply h'.congr'38filter_upwards [inputQubits_pos_eventually,eventually_ge_atTop 2] with K hq hK39have hk : (0:ℝ)<K := by exact_mod_cast (show 0<K by omega)40have hl := (log_nat_pos hK).ne'41rw [Real.log_div hq.ne' (pow_ne_zero _ hk.ne'),Real.log_pow]42field_simp43ring4445/-- The logarithm is in bits, as in the manuscript's information quantities. -/46theorem log2_inputQubits_div_log_tendsto :47Tendsto (fun K : ℕ => Scalar.log2 (inputQubits K)/Real.log K)48atTop (𝓝 (2/Real.log 2)) := by49convert log_inputQubits_div_log_tendsto.div_const (Real.log 2) using 150funext K51unfold Scalar.log252ring5354theorem sqrt_inputLog_ratio_tendsto :55Tendsto (fun K : ℕ => Real.sqrt (Scalar.log2 (inputQubits K)/Real.log K))56atTop (𝓝 (Real.sqrt (2/Real.log 2))) :=57log2_inputQubits_div_log_tendsto.sqrt5859end Nonadditivity.PrescribedCost