Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarProfileCoefficient

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.HaarOperatorCoefficient7import Nonadditivity.HaarNonbacktrackingFirstStep8import Nonadditivity.HaarPathProfiles910/-! # Actual reduced profile families and their coefficient factors1112A profile family consists of finite reduced words with prescribed endpoints13and letter counts. Its map into the free group is proved injective, and the14row, column, individual, and singleton factors are bounded for the literal15ordinary or non-returning coefficients. No norm hypothesis on a profile family16is introduced.17-/1819noncomputable section20set_option backward.isDefEq.respectTransparency false2122namespace Nonadditivity.HaarProfileCoefficient2324open scoped BigOperators25open HaarPathProfiles HaarNonbacktracking HaarOperatorPolynomial NoncommutativeCS2627/-- Words of exactly `k` letters with the indicated literal reduced-word profile. -/28def Words (d k : ℕ) (p : Profile (Color d)) :=29  {w : Fin k → Color d // FreeGroup.IsReduced (List.ofFn w) ∧30    (List.ofFn w).head? = some p.first ∧ (List.ofFn w).getLast? = some p.last ∧31    ∀ a, (List.ofFn w).count a = p.count a}3233instance wordsFintype (d k : ℕ) (p : Profile (Color d)) : Fintype (Words d k p) :=34by35  classical36  unfold Words37  infer_instance3839def word {d k : ℕ} {p : Profile (Color d)} (w : Words d k p) : FreeGroup (Fin d) :=40  FreeGroup.mk (List.ofFn w.val)4142@[simp] theorem word_toWord {d k : ℕ} {p : Profile (Color d)} (w : Words d k p) :43    (word w).toWord = List.ofFn w.val := by44  exact FreeGroup.toWord_mk.trans (FreeGroup.isReduced_iff_reduce_eq.mp w.property.1)4546theorem word_injective {d k : ℕ} {p : Profile (Color d)} :47    Function.Injective (word (d := d) (k := k) (p := p)) := by48  intro v w h49  apply Subtype.ext50  apply List.ofFn_injective51  simpa only [word_toWord] using congrArg FreeGroup.toWord h5253theorem last_word {d k : ℕ} {p : Profile (Color d)} (w : Words d k p) :54    (word w).toWord.getLast? = some p.last := by55  rw [word_toWord]56  exact w.property.2.2.15758theorem word_ne_one {d k : ℕ} {p : Profile (Color d)} (w : Words d k p) :59    word w ≠ 1 := by60  intro h61  have hh := last_word w62  rw [h] at hh63  simp at hh6465/-- A profile family has at most all words of its fixed length. -/66theorem card_words_le (d k : ℕ) (p : Profile (Color d)) :67    Fintype.card (Words d k p) ≤ (2 * d) ^ k := by68  have h := Fintype.card_le_of_injective (fun w : Words d k p => w.val)69    Subtype.val_injective70  simpa only [Fintype.card_fun, Fintype.card_fin, Fintype.card_prod,71    Fintype.card_bool, Nat.mul_comm d 2] using h7273variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]74variable {d k : ℕ} (A : Polynomial (FreeGroup (Fin d)) E)75variable (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)76variable (n : ℕ) (p : Profile (Color d))7778/-- The coefficient family after a cut is the actual killed-return polynomial. -/79def returningCoefficients (w : Words d k p) : E →L[ℂ] E :=80  killedPolynomial A 1 (n + 1) (word w)8182include hA8384/-- Every word with the same profile has the same distinguished first step. -/85theorem returningCoefficients_eq_firstStep (w : Words d k p) :86    returningCoefficients A n p w = firstStep A (FreeCreation.letter p.last) n (word w) := by87  exact killedPolynomial_first_step A hA p.last (word w) (last_word w) n8889/-- Interior blocks have the sharp power bound and incur no factor `n+1`. -/90theorem returning_coefficient_norm_le (w : Words d k p) :91    ‖returningCoefficients A n p w‖ ≤ ‖regular A‖ ^ (n + 1) := by92  rw [returningCoefficients_eq_firstStep A hA]93  exact firstStep_coefficient_norm_le _ _ _ _9495/-- First/last visits of a repeated profile use row or column Gram factors. -/96theorem returning_endpoint_bounds :97    Real.sqrt ‖columnGram (returningCoefficients (k := k) A n p)‖ ≤98        (n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) ∧99    Real.sqrt ‖rowGram (returningCoefficients (k := k) A n p)‖ ≤100        (n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) := by101  have he : returningCoefficients (k := k) A n p =102      fun w => firstStep A (FreeCreation.letter p.last) n (word w) := by103    funext w104    exact returningCoefficients_eq_firstStep A hA n p w105  rw [he]106  exact firstStep_endpoint_bounds _ _ _ word word_injective107108/-- A once-visited profile costs only the square root of its number of words. -/109theorem returning_singleton_bound :110    ‖∑ w : Words d k p, returningCoefficients A n p w‖ ≤111      Real.sqrt (((2 * d) ^ k : ℕ) : ℝ) * ((n + 1 : ℕ) * ‖regular A‖ ^ (n + 1)) := by112  have hc : (Fintype.card (Words d k p) : ℝ) ≤ (2 * d : ℝ) ^ k := by113    exact_mod_cast card_words_le d k p114  calc115    _ ≤ Real.sqrt (Fintype.card (Words d k p) : ℝ) *116        Real.sqrt ‖columnGram (returningCoefficients (k := k) A n p)‖ :=117      HaarCoefficientBounds.singleton_sum_norm_le _118    _ ≤ Real.sqrt ((2 * d : ℝ) ^ k) * ((n + 1 : ℕ) * ‖regular A‖ ^ (n + 1)) :=119      mul_le_mul (Real.sqrt_le_sqrt hc) (returning_endpoint_bounds A hA n p).1120        (Real.sqrt_nonneg _) (Real.sqrt_nonneg _)121    _ = _ := by norm_cast122123omit hA124125/-- Ordinary power coefficients, used by the initial block. -/126def ordinaryCoefficients (w : Words d k p) : E →L[ℂ] E := (A ^ (n + 1)) (word w)127128theorem ordinary_coefficient_norm_le (w : Words d k p) :129    ‖ordinaryCoefficients A n p w‖ ≤ ‖regular A‖ ^ (n + 1) := by130  exact (coefficient_norm_le (A ^ (n + 1)) (word w)).trans (by131    rw [map_pow]132    exact norm_pow_le' _ (Nat.succ_pos _))133134theorem ordinary_endpoint_bounds :135    Real.sqrt ‖columnGram (ordinaryCoefficients (k := k) A n p)‖ ≤ ‖regular A‖ ^ (n + 1) ∧136    Real.sqrt ‖rowGram (ordinaryCoefficients (k := k) A n p)‖ ≤ ‖regular A‖ ^ (n + 1) := by137  have hn : ‖regular (A ^ (n + 1))‖ ≤ ‖regular A‖ ^ (n + 1) := by138    rw [map_pow]139    exact norm_pow_le' _ (Nat.succ_pos _)140  constructor141  · exact (Real.sqrt_le_sqrt (coefficient_columnGram_le (A ^ (n + 1)) word word_injective)).trans142      (by rw [Real.sqrt_sq (norm_nonneg _)]; exact hn)143  · exact (Real.sqrt_le_sqrt (coefficient_rowGram_le (A ^ (n + 1)) word word_injective)).trans144      (by rw [Real.sqrt_sq (norm_nonneg _)]; exact hn)145146end Nonadditivity.HaarProfileCoefficient