Exact Lean source
Nonadditivity.UpperHaarRealization
Download original .lean · View on GitHub · Jump to source
Catalog entries: Generic Haar-convergence interfaces
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
Nonadditivity.UpperHaarRealization.AllHaarUpperConvergenceNonadditivity.UpperHaarRealization.HaarTraceMomentControlNonadditivity.UpperHaarRealization.HaarUpperConvergenceNonadditivity.UpperHaarRealization.eventually_exists_certificateNonadditivity.UpperHaarRealization.eventually_exists_certificate.match_1_1internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tailsNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails._simp_1_1internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails._simp_1_2internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails._simp_1_3internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails._simp_1_4internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails._simp_1_5internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails._simp_1_6internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails._simp_1_7internal/detail/privateNonadditivity.UpperHaarRealization.eventually_exists_certificate_of_upper_tails.match_1_8internal/detail/privateNonadditivity.UpperHaarRealization.exists_arbitrarily_large_gapNonadditivity.UpperHaarRealization.exists_arbitrarily_large_gap._proof_1_1internal/detail/privateNonadditivity.UpperHaarRealization.exists_arbitrarily_large_gap._proof_1_2internal/detail/privateNonadditivity.UpperHaarRealization.exists_arbitrarily_large_gap_of_all_upperNonadditivity.UpperHaarRealization.exists_arbitrarily_large_gap_of_all_upper._proof_1_1internal/detail/privateNonadditivity.UpperHaarRealization.exists_arbitrarily_large_ratioNonadditivity.UpperHaarRealization.exists_arbitrarily_large_ratio._proof_1_1internal/detail/privateNonadditivity.UpperHaarRealization.exists_block_channelNonadditivity.UpperHaarRealization.exists_block_channel_of_trace_momentsNonadditivity.UpperHaarRealization.exists_one_block_ratioNonadditivity.UpperHaarRealization.exists_one_block_ratio._proof_1_1internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._proof_1_2internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._simp_1_3internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._simp_1_4internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._simp_1_5internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._simp_1_6internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._simp_1_7internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._simp_1_8internal/detail/privateNonadditivity.UpperHaarRealization.exists_one_block_ratio._simp_1_9internal/detail/privateNonadditivity.UpperHaarRealization.upper_of_strongNonadditivity.UpperHaarRealization.upper_of_trace_moments
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‖ := by43have hd : 0 < κ + 1 := by linarith44have hr : 0 < (κ - 1) / (κ + 1) := div_pos (by linarith) hd45have hr1 : (κ - 1) / (κ + 1) < 1 := by46apply (div_lt_one hd).mpr47linarith48obtain ⟨tests, hunit, hnet⟩ := exists_unitSphereNet (E := E) hr49have hB : 0 < (1 + (κ - 1) / (κ + 1)) * c := mul_pos (by linarith) hc50have hf : ∀ y ∈ tests, Tendsto51(fun i => μ i {ω | (1 + (κ - 1) / (κ + 1)) * c < ‖T i ω y‖}) l (𝓝 0) := by52intro y hy53have h := htail y (hunit y hy) (((κ - 1) / (κ + 1)) * c) (mul_pos hr hc)54refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds h55(fun _ => zero_le _) ?_56intro i57apply measure_mono58intro ω hω59dsimp only [Set.mem_setOf_eq] at hω60change c + (κ - 1) / (κ + 1) * c ≤ ‖T i ω y‖61nlinarith62have hcert := eventually_exists_norm_certificate_of_test_failures63μ T l hr.le hr1 hB.le hnet hf64have heq : ((1 + (κ - 1) / (κ + 1)) * c) /65(1 - (κ - 1) / (κ + 1)) = κ * c := by66field_simp67ring68exact 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)) ℂ,78A.IsHermitian → A.trace = 0 → hsLength A = 1 →79∀ ε : ℝ, 0 < ε → Tendsto80(fun N => HaarModel.sampleMeasure K n N {ω |81collinsYounConstant K n + ε ≤82‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖})83atTop (𝓝 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)) ℂ,90A.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) /95ENNReal.ofReal (collinsYounConstant K n + ε) ^ (2 * p N))96atTop (𝓝 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 := by102intro A hA ht hhs ε hε103obtain ⟨p, hp⟩ := hmoment A hA ht hhs ε hε104exact 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 := by109intro A hA ht hhs ε hε110have hfree := FreeBridge.outputFreeNorm_unit_bound111(CollinsYounProduct.collinsYounBound hK hn) A hA ht hhs112have h := hBC A hA ht hhs ε hε113refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds h114(fun _ => zero_le _) ?_115intro N116apply measure_mono117intro ω hω118dsimp only [Set.mem_setOf_eq] at hω119have habs := le_abs_self120(‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖ -121FreeBridge.outputFreeNorm K n A)122change ε ≤ |‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖ -123FreeBridge.outputFreeNorm K n A|124linarith125126theorem 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)) ℂ,130A.IsHermitian → A.trace = 0 →131‖(blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖ ≤132κ * collinsYounConstant K n * hsLength A := by133have 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))137atTop hκ (collinsYounConstant_pos hK hn)138(fun x hx ε hε => by139simpa only [adjointOnObservables_apply] using140hupper (observableMatrix x) (observableMatrix_isHermitian x)141(observableMatrix_trace_zero x) (by rwa [← observable_norm_eq_hsLength]) ε hε)142exact hcert.mono fun N ⟨ω, hω⟩ => ⟨ω,143matrix_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 ∧150T.chi ≤ (n : ℝ) * Scalar.aK K + η ∧151(n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo ∧152(n : ℝ) * Scalar.deltaK K - 2 * η ≤ T.gap := by153let ε := η * Real.log 2154have hε : 0 < ε := mul_pos hη Scalar.log_two_pos155obtain ⟨N, ω, hω⟩ :=156(eventually_exists_certificate hK hn (amplification_gt_one hε) hupper).exists157let U := HaarModel.sampleUnitary K n N ω158have h := block_converted_bounds_of_certificate U n159(amplification_times_constant_pos (η := ε) hK hn).le hω160have hu := h.1.trans (log_purity_factor_le_eta hK hε)161let T := FiniteQuantumChannel.ofKraus (Conversion.converted (blockChannel U n))162have hp : 0 < T.chi := PositiveHolevo.block_converted_holevoBits_pos hK U hn163have hu' : T.chi ≤ (n : ℝ) * Scalar.aK K + η := HolevoBits.natural_upper_to_bits n hu164have hl : (n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo :=165HolevoBits.natural_lower_to_bits n h.2.1166refine ⟨T, hp, hu', hl, ?_⟩167unfold FiniteQuantumChannel.gap Scalar.deltaK168rw [mul_sub, ← mul_div_assoc]169nlinarith 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 ∧176T.chi ≤ (n : ℝ) * Scalar.aK K + η ∧177(n : ℝ) * Scalar.log2 K / (K : ℝ) ≤ T.chiTwo ∧178(n : ℝ) * Scalar.deltaK K - 2 * η ≤ T.gap :=179exists_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 := by184have hδ := Scalar.deltaK_pos185(show (0 : ℝ) < K by exact_mod_cast (by omega : 0 < K)) hlog186obtain ⟨n, hn⟩ := exists_nat_gt ((R + Scalar.deltaK K / 2) / Scalar.deltaK K)187have hmul := (div_lt_iff₀ hδ).mp hn188obtain ⟨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))191refine ⟨T, hp, ?_⟩192push_cast at hg193nlinarith194195/-- 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 := by203let K : ℕ := max 2 ⌈Real.exp 19⌉₊204have hK : 2 ≤ K := le_max_left _ _205letI : NeZero K := ⟨by omega⟩206have hceil : (⌈Real.exp 19⌉₊ : ℝ) ≤ (K : ℝ) := by207exact_mod_cast (le_max_right 2 ⌈Real.exp 19⌉₊)208have hlog := Real.log_le_log (Real.exp_pos 19) ((Nat.le_ceil _).trans hceil)209rw [Real.log_exp] at hlog210exact 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 ∧216Real.log (K : ℝ) / 36 ≤ T.twoUseRatio := by217have hKr : (1 : ℝ) < K := by exact_mod_cast (by omega : 1 < K)218have hKpos : (0 : ℝ) < K := by linarith219obtain ⟨T, hp, hu, hl, _⟩ := exists_block_channel hK220(by omega : 1 ≤ 1) (Scalar.aK_pos hKpos) hupper221simp only [Nat.cast_one, one_mul] at hu hl222refine ⟨T, hp, ?_⟩223have hnum : 0 ≤ Scalar.log2 K / (K : ℝ) := by224unfold Scalar.log2225exact div_nonneg (div_nonneg (Real.log_pos hKr).le Scalar.log_two_pos.le) hKpos.le226unfold FiniteQuantumChannel.twoUseRatio227calc228Real.log (K : ℝ) / 36 = (Real.log (K : ℝ) / 18) / 2 := by ring229_ ≤ (Scalar.log2 K / (2 * (K : ℝ) * Scalar.aK K)) / 2 :=230div_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) :=233div_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 := by239let L : ℝ := 36 * max R 0 + 1240let K : ℕ := max 2 ⌈Real.exp L⌉₊241have hK : 2 ≤ K := le_max_left _ _242letI : NeZero K := ⟨by omega⟩243have hceil : (⌈Real.exp L⌉₊ : ℝ) ≤ (K : ℝ) := by244exact_mod_cast (le_max_right 2 ⌈Real.exp L⌉₊)245have hlog := Real.log_le_log (Real.exp_pos L) ((Nat.le_ceil _).trans hceil)246rw [Real.log_exp] at hlog247obtain ⟨T, hp, hr⟩ := exists_one_block_ratio hK (hupper K hK)248refine ⟨T, hp, ?_⟩249have hmax : R ≤ max R 0 := le_max_left _ _250dsimp [L] at hlog251linarith252253end Nonadditivity.UpperHaarRealization