Exact Lean source
Nonadditivity.PrescribedCostDimensions
Download original .lean · View on GitHub · Jump to source
Catalog entries: Input-qubit cost of the growing-K separation
Direct imports
Imported by project modules
3 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
13 project constants, including generated, internal and private declarations.
13 declarations
Nonadditivity.PrescribedCost.growingFamilyNonadditivity.PrescribedCost.growingFamily._proof_1internal/detail/privateNonadditivity.PrescribedCost.growingFamily.eq_1internal/detail/privateNonadditivity.PrescribedCost.growingFamily_input_qubits_div_sq_tendstoNonadditivity.PrescribedCost.growingFamily_input_qubits_eventuallyNonadditivity.PrescribedCost.log_div_nat_tendsto_zeroNonadditivity.PrescribedCost.normalized_ceiling_error_tendstoNonadditivity.PrescribedCost.normalized_ceiling_error_tendsto._simp_1_1internal/detail/privateNonadditivity.PrescribedCost.normalized_dimension_leading_tendstoNonadditivity.PrescribedCost.scalarInputQubitsNonadditivity.PrescribedCost.scalarInputQubits_div_sq_tendstoNonadditivity.PrescribedCost.scalarInputQubits_div_sq_tendsto._proof_1_1internal/detail/privateNonadditivity.Quantitative.dimensionExponent.eq_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.PrescribedCostScalars78/-! # Exact quadratic input-qubit cost along the growing-parameter separation -/910noncomputable section11namespace Nonadditivity.PrescribedCost12open Filter Topology Asymptotics13open ActualConsequences HaarPrescribedDimension StructuredHaarConsequences1415def scalarInputQubits (K : ℕ) : ℝ :=16Dimensions.inputQubits K (Dimensions.matrixDimension17(Quantitative.dimensionExponent (Real.log K)) (blockLength K)) (blockLength K)1819theorem log_div_nat_tendsto_zero :20Tendsto (fun K : ℕ => Real.log K / K) atTop (𝓝 0) := by21have h := (isLittleO_log_rpow_atTop (show (0:ℝ)<1 by norm_num)).tendsto_div_nhds_zero22simpa only [Real.rpow_one] using h.comp tendsto_natCast_atTop_atTop2324theorem normalized_dimension_leading_tendsto :25Tendsto (fun K : ℕ => Quantitative.dimensionExponent (Real.log K) *26(blockLength K : ℝ)^2 / (K:ℝ)^2) atTop (𝓝 280) := by27have h := ((normalized_blockLength_tendsto_one.pow 2).const_mul 280).add28((blockLength_div_tendsto_zero.pow 2).const_mul 80)29have h' : Tendsto (fun K : ℕ =>30280*((blockLength K:ℝ)*Real.sqrt (Real.log K)/K)^2 +3180*((blockLength K:ℝ)/K)^2) atTop (𝓝 280) := by simpa using h32apply h'.congr'33filter_upwards [eventually_ge_atTop 2] with K hK34simp only [Quantitative.dimensionExponent, div_pow, mul_pow,35Real.sq_sqrt (log_nat_pos hK).le]36ring3738theorem normalized_ceiling_error_tendsto :39Tendsto (fun K : ℕ => ((blockLength K:ℝ) *40(Real.log (Dimensions.matrixDimension (Quantitative.dimensionExponent (Real.log K))41(blockLength K) : ℝ) - Quantitative.dimensionExponent (Real.log K)*(blockLength K))) /42(K:ℝ)^2) atTop (𝓝 0) := by43have hupper : Tendsto (fun K : ℕ => (blockLength K:ℝ)/(K:ℝ)^2) atTop (𝓝 0) := by44have h := blockLength_div_tendsto_zero.div_atTop tendsto_natCast_atTop_atTop45simpa only [div_div, ← pow_two] using h46apply squeeze_zero' (Eventually.of_forall (fun K =>47div_nonneg (mul_nonneg (Nat.cast_nonneg _)48(Dimensions.log_matrixDimension_error _ _).1) (sq_nonneg _))) _ hupper49filter_upwards [eventually_ge_atTop 2] with K hK50have hb : 0 ≤ Quantitative.dimensionExponent (Real.log K) := by51unfold Quantitative.dimensionExponent52have hlog := (log_nat_pos hK).le53positivity54have he := (Dimensions.log_matrixDimension_error55(Quantitative.dimensionExponent (Real.log K)) (blockLength K)).256have he1 : Real.exp (-(Quantitative.dimensionExponent (Real.log K)*(blockLength K))) ≤ 1 :=57Real.exp_le_one_iff.mpr (neg_nonpos.mpr (mul_nonneg hb (Nat.cast_nonneg _)))58exact div_le_div_of_nonneg_right (by nlinarith [show (0:ℝ) ≤ blockLength K from Nat.cast_nonneg _]) (sq_nonneg (K:ℝ))5960/-- The exact rounded prescribed input dimension has the manuscript's61leading qubit cost `(280/log 2)*K^2`. -/62theorem scalarInputQubits_div_sq_tendsto :63Tendsto (fun K : ℕ => scalarInputQubits K/(K:ℝ)^2)64atTop (𝓝 (280/Real.log 2)) := by65have hconst : Tendsto (fun K : ℕ => 1/(K:ℝ)^2) atTop (𝓝 0) := by66simpa only [Function.comp_apply, one_div, inv_pow, zero_pow (by decide : 2 ≠ 0)] using67((tendsto_inv_atTop_zero : Tendsto (fun x : ℝ => x⁻¹) atTop (𝓝 0)).comp68(tendsto_natCast_atTop_atTop : Tendsto (fun K : ℕ => (K:ℝ)) atTop atTop)).pow 269have hlinear : Tendsto (fun K : ℕ =>70(2/Real.log 2)*((blockLength K:ℝ)/K)*(Real.log K/K)) atTop (𝓝 0) := by71simpa only [mul_zero] using72(blockLength_div_tendsto_zero.const_mul (2/Real.log 2)).mul log_div_nat_tendsto_zero73have h := ((hconst.add (normalized_dimension_leading_tendsto.div_const (Real.log 2))).add74hlinear).add (normalized_ceiling_error_tendsto.div_const (Real.log 2))75have h' : Tendsto (fun K : ℕ => 1/(K:ℝ)^2 +76(Quantitative.dimensionExponent (Real.log K)*(blockLength K:ℝ)^2/(K:ℝ)^2)/Real.log 2 +77(2/Real.log 2)*((blockLength K:ℝ)/K)*(Real.log K/K) +78(((blockLength K:ℝ)*(Real.log (Dimensions.matrixDimension79(Quantitative.dimensionExponent (Real.log K)) (blockLength K):ℝ) -80Quantitative.dimensionExponent (Real.log K)*(blockLength K)))/(K:ℝ)^2)/Real.log 2)81atTop (𝓝 (280/Real.log 2)) := by simpa using h82apply h'.congr'83filter_upwards [eventually_ge_atTop 2] with K hK84unfold scalarInputQubits85rw [Dimensions.input_qubits_formula (blockLength K) (by omega)86(Dimensions.matrixDimension_pos _ _)]87unfold Scalar.log288ring8990/-- The actual prescribed channel at the growing block length. Initial91indices use the threshold built into `prescribedFamily`; eventually none do. -/92def growingFamily (K : ℕ) : FiniteQuantumChannel :=93if hK : 2 ≤ K then prescribedFamily hK (blockLength K)94else prescribedFamily (K := 2) (by decide) 19596theorem growingFamily_input_qubits_eventually :97∀ᶠ K : ℕ in atTop,98Scalar.log2 (Fintype.card (growingFamily K).Input) = scalarInputQubits K := by99filter_upwards [threshold_le_blockLength_eventually, eventually_ge_atTop 2] with K hn hK100rw [growingFamily, dif_pos hK, (prescribedFamily_spec hK hn).1]101rfl102103/-- The input cost statement concerns the actual selected channels, not a104dimension sequence disconnected from the quantum construction. -/105theorem growingFamily_input_qubits_div_sq_tendsto :106Tendsto (fun K : ℕ => Scalar.log2 (Fintype.card (growingFamily K).Input)/(K:ℝ)^2)107atTop (𝓝 (280/Real.log 2)) := by108apply scalarInputQubits_div_sq_tendsto.congr'109filter_upwards [growingFamily_input_qubits_eventually] with K hK110rw [hK]111112end Nonadditivity.PrescribedCost