Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarSharpSummation

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

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

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

17 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarSharpCounting7import Nonadditivity.HaarSharpConstants8import Nonadditivity.HaarSharpPathWeight910/-! Weighted chronological counts recover the original dimension range. -/11noncomputable section12set_option maxHeartbeats 100000013namespace Nonadditivity.HaarSharpSummation14open HaarPathClasses HaarOperatorPathBridge HaarMomentConstants15open scoped BigOperators1617def countMajorant (p : ℕ) (e r : ℕ) : ℝ :=18  (1+64/(p:ℝ))^p * (4*(p:ℝ)^2)^(3*(e+2*r)+4) * ((p:ℝ)^3)^(e+2*r+2)1920theorem countMajorant_nonneg (p e r : ℕ) : 0 ≤ countMajorant p e r := by21  unfold countMajorant; positivity2223theorem card_fibre_le {N p t : ℕ} (hp : 2≤p) (ht : 0<t) (htp : t≤p) (e r : ℕ) :24    (((activeRefinedClasses N t).filter (fun C =>25      refinedSingletonCount C=e ∧ refinedVertexDeficit C=r)).card:ℝ) ≤26      countMajorant p e r := by27  classical28  have hp0 : (0:ℝ)<p := by exact_mod_cast (show 0<p by omega)29  have hp1 : (1:ℝ)≤p := by exact_mod_cast (show 1≤p by omega)30  have htpR : (t:ℝ)≤p := by exact_mod_cast htp31  have hz : 1/(p:ℝ)^3≤1 := by32    apply (div_le_iff₀ (by positivity)).233    simpa using one_le_pow₀ hp134  have h := card_refined_subfamily_weighted_le ht (e+2*r)35    ((activeRefinedClasses N t).filter (fun C =>36      refinedSingletonCount C=e ∧ refinedVertexDeficit C=r))37    (by38      intro C hC39      obtain ⟨hC,he,hr⟩ := Finset.mem_filter.mp hC40      rw [active_refined_defect_identity ht hC,he,hr])41    (by positivity : 0≤1/(p:ℝ)^3) hz42  have hb : 1+64*(t:ℝ)^2*(1/(p:ℝ)^3) ≤ 1+64/(p:ℝ) := by43    calc44      _ ≤ 1+64*(p:ℝ)^2*(1/(p:ℝ)^3) := by gcongr45      _ = _ := by field_simp46  have hf : (1+64*(t:ℝ)^2*(1/(p:ℝ)^3))^t ≤ (1+64/(p:ℝ))^p :=47    (pow_le_pow_left₀ (by positivity) hb t).trans48      (pow_le_pow_right₀ (le_add_of_nonneg_right (by positivity)) htp)49  have hu := h.trans (mul_le_mul hf50    (pow_le_pow_left₀ (by positivity) (by gcongr : 4*(t:ℝ)^2≤4*(p:ℝ)^2) _)51    (by positivity) (by positivity))52  simp only [one_div_pow, mul_one_div] at hu53  exact (div_le_iff₀ (by positivity)).mp hu5455theorem weight_mono {N p t : ℝ} (hN : 0≤N) (hp : 0≤p) (ht : 0≤t) (htp : t≤p)56    (e r : ℕ) : refinedClassWeightMajorant p N t e r ≤57      refinedClassWeightMajorant p N p e r := by58  unfold refinedClassWeightMajorant59  gcongr6061theorem product_eq (p : ℕ) (N : ℝ) (e r : ℕ) :62    countMajorant p e r * refinedClassWeightMajorant p N p e r =63      (1024*(p:ℝ)^25/N*(1+64/(p:ℝ))^p) *64        (alpha p N)^e * (beta p N)^r := by65  unfold countMajorant refinedClassWeightMajorant alpha beta66  have h3 : 3*(e+2*r)+4=e*3+r*6+4 := by omega67  have h9 : 9*(e+2*r)+11=e*9+r*18+11 := by omega68  rw [h3,h9, show (128:ℝ)=2*4^3 by norm_num,69    show (4096:ℝ)=4^6 by norm_num]70  simp only [pow_add,pow_mul,mul_pow,div_pow,pow_succ]71  ring7273theorem sum_products_le {p : ℕ} {N : ℝ} (hp : 2≤p)74    (hN : 2^32*(p:ℝ)^80≤N) (a b : ℕ) :75    (∑ e ∈ Finset.range a, ∑ r ∈ Finset.range b,76      countMajorant p e r * refinedClassWeightMajorant p N p e r) ≤77        4096*(p:ℝ)^25/N*(1+64/(p:ℝ))^p := by78  have hpR : (2:ℝ)≤p := by exact_mod_cast hp79  have hN0 := dimension_pos hpR hN80  have ha := alpha_bounds hpR hN81  have hb := beta_bounds hpR hN82  simp_rw [product_eq]83  have heq : (∑ e ∈ Finset.range a, ∑ r ∈ Finset.range b,84      1024*(p:ℝ)^25/N*(1+64/(p:ℝ))^p * (alpha p N)^e * (beta p N)^r) =85      (1024*(p:ℝ)^25/N*(1+64/(p:ℝ))^p) *86        (∑ e ∈ Finset.range a, (alpha p N)^e) *87        (∑ r ∈ Finset.range b, (beta p N)^r) := by88    simp only [← Finset.mul_sum, ← Finset.sum_mul]89  rw [heq]90  have hsumA := geometric_sum_bound ha.1 ha.2 a91  have hsumB := geometric_sum_bound hb.1 hb.2 b92  calc93    _ ≤ (1024*(p:ℝ)^25/N*(1+64/(p:ℝ))^p)*2*2 := by94      gcongr95      exact Finset.sum_nonneg (fun r _ => pow_nonneg hb.1 r)96    _ = _ := by ring979899100theorem sum_active_weights_le {N p t : ℕ} (hp : 2≤p) (ht : 0<t) (htp : t≤p)101    (hN : 2^32*(p:ℝ)^80≤N+1) :102    (∑ C ∈ activeRefinedClasses N t,103      refinedClassWeightMajorant p (N+1) t (refinedSingletonCount C) (refinedVertexDeficit C)) ≤104        4096*(p:ℝ)^25/(N+1)*(1+64/(p:ℝ))^p := by105  classical106  let s := activeRefinedClasses N t107  have hm : ∀ C ∈ s, (refinedSingletonCount C,refinedVertexDeficit C) ∈108      (Finset.range (p+1)).product (Finset.range (p+1)) := by109    intro C hC110    have he := refinedSingletonCount_le C111    have hr := refinedVertexDeficit_le C112    have hh := Nat.div_le_self t 2113    exact Finset.mem_product.mpr ⟨Finset.mem_range.mpr (by omega),Finset.mem_range.mpr (by omega)⟩114  calc115    _ ≤ ∑ C ∈ s, refinedClassWeightMajorant p (N+1) p116        (refinedSingletonCount C) (refinedVertexDeficit C) := by117      apply Finset.sum_le_sum118      intro C _119      exact weight_mono (by positivity) (by positivity) (by positivity) (by exact_mod_cast htp) _ _120    _ = ∑ e ∈ Finset.range (p+1), ∑ r ∈ Finset.range (p+1),121        ((s.filter (fun C => refinedSingletonCount C=e ∧ refinedVertexDeficit C=r)).card:ℝ) *122          refinedClassWeightMajorant p (N+1) p e r := by123      have hh := Finset.sum_fiberwise_of_maps_to' hm124        (fun q : ℕ × ℕ => refinedClassWeightMajorant p (N+1) p q.1 q.2)125      rw [Finset.product_eq_sprod, Finset.sum_product] at hh126      simpa only [Finset.sum_product, Prod.mk.injEq, Finset.sum_const,nsmul_eq_mul] using hh.symm127    _ ≤ ∑ e ∈ Finset.range (p+1), ∑ r ∈ Finset.range (p+1),128        countMajorant p e r * refinedClassWeightMajorant p (N+1) p e r := by129      apply Finset.sum_le_sum130      intro e _131      apply Finset.sum_le_sum132      intro r _133      exact mul_le_mul_of_nonneg_right (card_fibre_le hp ht htp e r)134        (refinedClassWeightMajorant_nonneg (by positivity) (by positivity) (by positivity) e r)135    _ ≤ _ := sum_products_le hp hN _ _136137end Nonadditivity.HaarSharpSummation