Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarProfileOrientation

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

Direct imports

Imported by project modules

2 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

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

11 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileCoefficient78/-! # Both orientations of a fixed core-edge profile910A repeated core edge may be traversed in either direction. Inversion preserves11the injectivity of its word family, and the reversed traversal has a fixed12terminal letter determined by the original profile's first letter. Thus the13same sharp endpoint estimates apply without identifying the two orientations.14-/1516noncomputable section17set_option backward.isDefEq.respectTransparency false1819namespace Nonadditivity.HaarProfileCoefficient2021open scoped BigOperators22open HaarPathProfiles HaarNonbacktracking HaarOperatorPolynomial NoncommutativeCS2324variable {d k : ℕ} {p : Profile (Color d)}2526def orientedWord (forward : Bool) (w : Words d k p) : FreeGroup (Fin d) :=27  if forward then word w else (word w)⁻¹2829def terminalLetter (forward : Bool) (p : Profile (Color d)) : Color d :=30  if forward then p.last else FreeCreation.flip p.first3132theorem last_inverse_word (w : Words d k p) :33    (word w)⁻¹.toWord.getLast? = some (FreeCreation.flip p.first) := by34  cases hw : List.ofFn w.val with35  | nil =>36      have hh := w.property.2.137      simp [hw] at hh38  | cons a l =>39      have ha : a = p.first := by simpa [hw] using w.property.2.140      simp [FreeGroup.toWord_inv, word_toWord, hw, FreeGroup.invRev, ha, FreeCreation.flip]4142theorem orientedWord_injective (forward : Bool) :43    Function.Injective (orientedWord (d := d) (k := k) (p := p) forward) := by44  cases forward45  · exact fun _ _ h => word_injective (inv_injective h)46  · exact word_injective4748theorem last_orientedWord (forward : Bool) (w : Words d k p) :49    (orientedWord forward w).toWord.getLast? = some (terminalLetter forward p) := by50  cases forward51  · exact last_inverse_word w52  · exact last_word w5354variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]55variable (A : Polynomial (FreeGroup (Fin d)) E)56variable (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)57variable (n : ℕ) (forward : Bool) (p : Profile (Color d))5859def orientedCoefficients (w : Words d k p) : E →L[ℂ] E :=60  killedPolynomial A 1 (n + 1) (orientedWord forward w)6162include hA6364theorem orientedCoefficients_eq_firstStep (w : Words d k p) :65    orientedCoefficients A n forward p w =66      firstStep A (FreeCreation.letter (terminalLetter forward p)) n (orientedWord forward w) := by67  exact killedPolynomial_first_step A hA _ _ (last_orientedWord forward w) n6869theorem oriented_coefficient_norm_le (w : Words d k p) :70    ‖orientedCoefficients A n forward p w‖ ≤ ‖regular A‖ ^ (n + 1) := by71  rw [orientedCoefficients_eq_firstStep A hA]72  exact firstStep_coefficient_norm_le _ _ _ _7374theorem oriented_endpoint_bounds :75    Real.sqrt ‖columnGram (orientedCoefficients (k := k) A n forward p)‖ ≤76        (n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) ∧77    Real.sqrt ‖rowGram (orientedCoefficients (k := k) A n forward p)‖ ≤78        (n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) := by79  have he : orientedCoefficients (k := k) A n forward p =80      fun w => firstStep A (FreeCreation.letter (terminalLetter forward p)) n81        (orientedWord forward w) := by82    funext w83    exact orientedCoefficients_eq_firstStep A hA n forward p w84  rw [he]85  exact firstStep_endpoint_bounds _ _ _ _ (orientedWord_injective forward)8687theorem oriented_singleton_bound :88    ‖∑ w : Words d k p, orientedCoefficients A n forward p w‖ ≤89      Real.sqrt (((2 * d) ^ k : ℕ) : ℝ) * ((n + 1 : ℕ) * ‖regular A‖ ^ (n + 1)) := by90  have hc : (Fintype.card (Words d k p) : ℝ) ≤ (2 * d : ℝ) ^ k := by91    exact_mod_cast card_words_le d k p92  calc93    _ ≤ Real.sqrt (Fintype.card (Words d k p) : ℝ) *94        Real.sqrt ‖columnGram (orientedCoefficients (k := k) A n forward p)‖ :=95      HaarCoefficientBounds.singleton_sum_norm_le _96    _ ≤ Real.sqrt ((2 * d : ℝ) ^ k) * ((n + 1 : ℕ) * ‖regular A‖ ^ (n + 1)) :=97      mul_le_mul (Real.sqrt_le_sqrt hc) (oriented_endpoint_bounds A hA n forward p).198        (Real.sqrt_nonneg _) (Real.sqrt_nonneg _)99    _ = _ := by norm_cast100101end Nonadditivity.HaarProfileCoefficient