Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.UpperHaarRealization

Download original .lean · View on GitHub · Jump to source

Catalog entries: Generic Haar-convergence interfaces

Direct imports

Imported by project modules

1 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

35 project constants, including generated, internal and private declarations.

35 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarConsequences7import Nonadditivity.HaarMomentTail89/-! # One-sided Haar upper tails suffice for channel separation1011The channel proof uses no lower spectral convergence. This module proves the12finite-net selection directly from upper tails and connects that weaker input13to actual channel bounds. The Haar upper-tail estimate itself is not assumed14proved by the existence of this interface.15-/1617noncomputable section18set_option maxHeartbeats 80000019set_option backward.isDefEq.respectTransparency false2021namespace Nonadditivity.UpperHaarRealization2223open MeasureTheory Filter FiniteRealization AdjointPurity BlockConstruction24open Channels.KrausChannel BlockScalars ActualConsequences25open scoped Topology Matrix.Norms.L2Operator2627section FiniteNet2829variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]30  [FiniteDimensional ℝ E]3132/-- Only the upper deviations on each fixed sphere point are needed to33construct an eventual uniform norm certificate. -/34theorem eventually_exists_certificate_of_upper_tails35    {ν : Type*} {Ω : ν → Type*} [∀ i, MeasurableSpace (Ω i)]36    {F : ν → Type*} [∀ i, NormedAddCommGroup (F i)] [∀ i, NormedSpace ℝ (F i)]37    (μ : (i : ν) → Measure (Ω i)) [∀ i, IsProbabilityMeasure (μ i)]38    (T : (i : ν) → Ω i → E →L[ℝ] F i) (l : Filter ν)39    {κ c : ℝ} (hκ : 1 < κ) (hc : 0 < c)40    (htail : ∀ y, ‖y‖ = 1 → ∀ ε : ℝ, 0 < ε → Tendsto41      (fun i => μ i {ω | c + ε ≤ ‖T i ω y‖}) l (𝓝 0)) :42    ∀ᶠ i in l, ∃ ω, ∀ x : E, ‖T i ω x‖ ≤ κ * c * ‖x‖ := by43  have hd : 0 < κ + 1 := by linarith44  have hr : 0 < (κ - 1) / (κ + 1) := div_pos (by linarith) hd45  have hr1 : (κ - 1) / (κ + 1) < 1 := by46    apply (div_lt_one hd).mpr47    linarith48  obtain ⟨tests, hunit, hnet⟩ := exists_unitSphereNet (E := E) hr49  have hB : 0 < (1 + (κ - 1) / (κ + 1)) * c := mul_pos (by linarith) hc50  have hf : ∀ y ∈ tests, Tendsto51      (fun i => μ i {ω | (1 + (κ - 1) / (κ + 1)) * c < ‖T i ω y‖}) l (𝓝 0) := by52    intro y hy53    have h := htail y (hunit y hy) (((κ - 1) / (κ + 1)) * c) (mul_pos hr hc)54    refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds h55      (fun _ => zero_le _) ?_56    intro i57    apply measure_mono58    intro ω hω59    dsimp only [Set.mem_setOf_eq] at hω60    change c + (κ - 1) / (κ + 1) * c ≤ ‖T i ω y‖61    nlinarith62  have hcert := eventually_exists_norm_certificate_of_test_failures63    μ T l hr.le hr1 hB.le hnet hf64  have heq : ((1 + (κ - 1) / (κ + 1)) * c) /65      (1 - (κ - 1) / (κ + 1)) = κ * c := by66    field_simp67    ring68  exact hcert.mono fun i ⟨ω, _, hω⟩ => ⟨ω, by simpa only [heq] using hω⟩6970end FiniteNet7172variable {K : ℕ} [NeZero K]7374/-- The precise weaker input: the upper tail above the proved CY constant75vanishes on each fixed normalized traceless Hermitian test. -/76def HaarUpperConvergence (K n : ℕ) [NeZero K] : Prop :=77  ∀ A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ,78    A.IsHermitian → A.trace = 0 → hsLength A = 1 →79    ∀ ε : ℝ, 0 < ε → Tendsto80      (fun N => HaarModel.sampleMeasure K n N {ω |81        collinsYounConstant K n + ε ≤82          ‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖})83      atTop (𝓝 0)8485/-- A literal sufficient high-moment estimate for the canonical Haar model.86The order may grow with the input dimension and may depend on the fixed test87and tolerance. This estimate remains an analytic obligation. -/88def HaarTraceMomentControl (K n : ℕ) [NeZero K] : Prop :=89  ∀ A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ,90    A.IsHermitian → A.trace = 0 → hsLength A = 1 →91    ∀ ε : ℝ, 0 < ε → ∃ p : ℕ → ℕ, Tendsto (fun N =>92      (∫⁻ ω, ENNReal.ofReal93        ((((blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A)94          ^ (2 * p N)).trace.re) ∂HaarModel.sampleMeasure K n N) /95        ENNReal.ofReal (collinsYounConstant K n + ε) ^ (2 * p N))96      atTop (𝓝 0)9798/-- The high-moment criterion implies exactly the upper tails consumed by99the finite-net channel argument. -/100theorem upper_of_trace_moments {n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n)101    (hmoment : HaarTraceMomentControl K n) : HaarUpperConvergence K n := by102  intro A hA ht hhs ε hε103  obtain ⟨p, hp⟩ := hmoment A hA ht hhs ε hε104  exact HaarMomentTail.canonical_upper_tail_of_trace_moments n A hA p105    (add_pos (collinsYounConstant_pos hK hn) hε) hp106107theorem upper_of_strong {n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n)108    (hBC : HaarModel.HaarStrongConvergence K n) : HaarUpperConvergence K n := by109  intro A hA ht hhs ε hε110  have hfree := FreeBridge.outputFreeNorm_unit_bound111    (CollinsYounProduct.collinsYounBound hK hn) A hA ht hhs112  have h := hBC A hA ht hhs ε hε113  refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds h114    (fun _ => zero_le _) ?_115  intro N116  apply measure_mono117  intro ω hω118  dsimp only [Set.mem_setOf_eq] at hω119  have habs := le_abs_self120    (‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖ -121      FreeBridge.outputFreeNorm K n A)122  change ε ≤ |‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖ -123    FreeBridge.outputFreeNorm K n A|124  linarith125126theorem eventually_exists_certificate {n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n)127    {κ : ℝ} (hκ : 1 < κ) (hupper : HaarUpperConvergence K n) :128    ∀ᶠ N in atTop, ∃ ω,129      ∀ A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ,130        A.IsHermitian → A.trace = 0 →131        ‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖ ≤132          κ * collinsYounConstant K n * hsLength A := by133  have hcert := eventually_exists_certificate_of_upper_tails134    (E := ObservableSpace (ZMod (K ^ n)))135    (HaarModel.sampleMeasure K n)136    (fun N ω => adjointOnObservables (blockChannel (HaarModel.sampleUnitary K n N ω) n))137    atTop hκ (collinsYounConstant_pos hK hn)138    (fun x hx ε hε => by139      simpa only [adjointOnObservables_apply] using140        hupper (observableMatrix x) (observableMatrix_isHermitian x)141          (observableMatrix_trace_zero x) (by rwa [← observable_norm_eq_hsLength]) ε hε)142  exact hcert.mono fun N ⟨ω, hω⟩ => ⟨ω,143    matrix_certificate_of_observable_bound _ (κ * collinsYounConstant K n) hω⟩144145/-- The actual finite-channel estimates use only the stated one-sided tail.146No lower convergence to the free operator norm is required. -/147theorem exists_block_channel {n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n)148    {η : ℝ} (hη : 0 < η) (hupper : HaarUpperConvergence K n) :149    ∃ T : FiniteQuantumChannel, 0 < T.chi ∧150      T.chi ≤ (n : ℝ) * Scalar.aK K + η ∧151      (n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo ∧152      (n : ℝ) * Scalar.deltaK K - 2 * η ≤ T.gap := by153  let ε := η * Real.log 2154  have hε : 0 < ε := mul_pos hη Scalar.log_two_pos155  obtain ⟨N, ω, hω⟩ :=156    (eventually_exists_certificate hK hn (amplification_gt_one hε) hupper).exists157  let U := HaarModel.sampleUnitary K n N ω158  have h := block_converted_bounds_of_certificate U n159    (amplification_times_constant_pos (η := ε) hK hn).le hω160  have hu := h.1.trans (log_purity_factor_le_eta hK hε)161  let T := FiniteQuantumChannel.ofKraus (Conversion.converted (blockChannel U n))162  have hp : 0 < T.chi := PositiveHolevo.block_converted_holevoBits_pos hK U hn163  have hu' : T.chi ≤ (n : ℝ) * Scalar.aK K + η := HolevoBits.natural_upper_to_bits n hu164  have hl : (n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo :=165    HolevoBits.natural_lower_to_bits n h.2.1166  refine ⟨T, hp, hu', hl, ?_⟩167  unfold FiniteQuantumChannel.gap Scalar.deltaK168  rw [mul_sub, ← mul_div_assoc]169  nlinarith only [hu', hl]170171/-- Direct end-to-end route from the literal high-trace estimate to the172finite channel and all three information bounds. -/173theorem exists_block_channel_of_trace_moments {n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n)174    {η : ℝ} (hη : 0 < η) (hmoment : HaarTraceMomentControl K n) :175    ∃ T : FiniteQuantumChannel, 0 < T.chi ∧176      T.chi ≤ (n : ℝ) * Scalar.aK K + η ∧177      (n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo ∧178      (n : ℝ) * Scalar.deltaK K - 2 * η ≤ T.gap :=179  exists_block_channel hK hn hη (upper_of_trace_moments hK hn hmoment)180181theorem exists_arbitrarily_large_gap (hK : 2 ≤ K) (hlog : 18 < Real.log (K : ℝ))182    (hupper : ∀ n : ℕ, 1 ≤ n → HaarUpperConvergence K n) (R : ℝ) :183    ∃ T : FiniteQuantumChannel, 0 < T.chi ∧ R ≤ T.gap := by184  have hδ := Scalar.deltaK_pos185    (show (0 : ℝ) < K by exact_mod_cast (by omega : 0 < K)) hlog186  obtain ⟨n, hn⟩ := exists_nat_gt ((R + Scalar.deltaK K / 2) / Scalar.deltaK K)187  have hmul := (div_lt_iff₀ hδ).mp hn188  obtain ⟨T, hp, _, _, hg⟩ := exists_block_channel hK189    (show 1 ≤ n + 1 by omega) (show 0 < Scalar.deltaK K / 4 by positivity)190    (hupper (n+1) (by omega))191  refine ⟨T, hp, ?_⟩192  push_cast at hg193  nlinarith194195/-- The remaining upper-tail assertion at every fixed parameter pair. -/196def AllHaarUpperConvergence : Prop :=197  ∀ (K : ℕ) [NeZero K] (n : ℕ), 2 ≤ K → 1 ≤ n → HaarUpperConvergence K n198199/-- An unbounded additive gap needs only the one-sided canonical Haar tails. -/200theorem exists_arbitrarily_large_gap_of_all_upper201    (hupper : AllHaarUpperConvergence) (R : ℝ) :202    ∃ T : FiniteQuantumChannel, 0 < T.chi ∧ R ≤ T.gap := by203  let K : ℕ := max 2 ⌈Real.exp 19⌉₊204  have hK : 2 ≤ K := le_max_left _ _205  letI : NeZero K := ⟨by omega⟩206  have hceil : (⌈Real.exp 19⌉₊ : ℝ) ≤ (K : ℝ) := by207    exact_mod_cast (le_max_right 2 ⌈Real.exp 19⌉₊)208  have hlog := Real.log_le_log (Real.exp_pos 19) ((Nat.le_ceil _).trans hceil)209  rw [Real.log_exp] at hlog210  exact exists_arbitrarily_large_gap hK (by linarith)211    (fun n hn => hupper K n hK hn) R212213/-- The one-block multiplicative lower bound also consumes only an upper tail. -/214theorem exists_one_block_ratio (hK : 2 ≤ K) (hupper : HaarUpperConvergence K 1) :215    ∃ T : FiniteQuantumChannel, 0 < T.chi ∧216      Real.log (K : ℝ) / 36 ≤ T.twoUseRatio := by217  have hKr : (1 : ℝ) < K := by exact_mod_cast (by omega : 1 < K)218  have hKpos : (0 : ℝ) < K := by linarith219  obtain ⟨T, hp, hu, hl, _⟩ := exists_block_channel hK220    (by omega : 1 ≤ 1) (Scalar.aK_pos hKpos) hupper221  simp only [Nat.cast_one, one_mul] at hu hl222  refine ⟨T, hp, ?_⟩223  have hnum : 0 ≤ Scalar.log2 K / (K : ℝ) := by224    unfold Scalar.log2225    exact div_nonneg (div_nonneg (Real.log_pos hKr).le Scalar.log_two_pos.le) hKpos.le226  unfold FiniteQuantumChannel.twoUseRatio227  calc228    Real.log (K : ℝ) / 36 = (Real.log (K : ℝ) / 18) / 2 := by ring229    _ ≤ (Scalar.log2 K / (2 * (K : ℝ) * Scalar.aK K)) / 2 :=230      div_le_div_of_nonneg_right (Scalar.ratio_lower hKr) (by norm_num)231    _ = (Scalar.log2 K / (K : ℝ)) / (4 * Scalar.aK K) := by field_simp; ring232    _ ≤ (Scalar.log2 K / (K : ℝ)) / (2 * T.chi) :=233      div_le_div_of_nonneg_left hnum (by positivity) (by linarith)234    _ ≤ T.chiTwo / (2 * T.chi) := div_le_div_of_nonneg_right hl (by positivity)235236theorem exists_arbitrarily_large_ratio237    (hupper : ∀ (K : ℕ) [NeZero K], 2 ≤ K → HaarUpperConvergence K 1) (R : ℝ) :238    ∃ T : FiniteQuantumChannel, 0 < T.chi ∧ R ≤ T.twoUseRatio := by239  let L : ℝ := 36 * max R 0 + 1240  let K : ℕ := max 2 ⌈Real.exp L⌉₊241  have hK : 2 ≤ K := le_max_left _ _242  letI : NeZero K := ⟨by omega⟩243  have hceil : (⌈Real.exp L⌉₊ : ℝ) ≤ (K : ℝ) := by244    exact_mod_cast (le_max_right 2 ⌈Real.exp L⌉₊)245  have hlog := Real.log_le_log (Real.exp_pos L) ((Nat.le_ceil _).trans hceil)246  rw [Real.log_exp] at hlog247  obtain ⟨T, hp, hr⟩ := exists_one_block_ratio hK (hupper K hK)248  refine ⟨T, hp, ?_⟩249  have hmax : R ≤ max R 0 := le_max_left _ _250  dsimp [L] at hlog251  linarith252253end Nonadditivity.UpperHaarRealization