Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarProfilePadding

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

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

12 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/-! # Padding different profile palettes into one finite register alphabet910Extending a coefficient family by zero through an injection preserves its sum11and both Gram factors exactly. Hence arbitrary finite profile palettes can use12the same register type without changing any of the coefficient budgets.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false1718namespace Nonadditivity.HaarProfilePadding1920open scoped BigOperators21open NoncommutativeCS HaarProfileCoefficient HaarOperatorPolynomial HaarPathProfiles2223variable {I J R S : Type*} [Fintype I] [Fintype J] [Zero R] [AddCommMonoid S]2425/-- Exact finite sum preservation under zero padding, including nonlinear26functions such as the two Gram summands. -/27theorem sum_map_extend_zero (e : I → J) (he : Function.Injective e)28    (A : I → R) (F : R → S) (hF : F 0 = 0) :29    ∑ j, F (Function.extend e A 0 j) = ∑ i, F (A i) := by30  classical31  calc32    _ = ∑ j ∈ Finset.univ.image e, F (Function.extend e A 0 j) := by33      symm34      apply Finset.sum_subset (Finset.subset_univ _)35      intro j hj hjnot36      have hr : j ∉ Set.range e := by37        rintro ⟨i,rfl⟩38        exact hjnot (Finset.mem_image.mpr ⟨i,Finset.mem_univ _,rfl⟩)39      rw [Function.extend_apply' _ _ _ hr]40      exact hF41    _ = _ := by42      rw [Finset.sum_image he.injOn]43      simp only [he.extend_apply]4445theorem sum_extend_zero (e : I → J) (he : Function.Injective e) (A : I → S) :46    ∑ j, Function.extend e A 0 j = ∑ i, A i :=47  sum_map_extend_zero e he A id rfl4849variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]5051/-- Column Gram factors are unchanged, even when unused register values exist. -/52theorem columnGram_extend_zero (e : I → J) (he : Function.Injective e)53    (A : I → E →L[ℂ] E) : columnGram (Function.extend e A 0) = columnGram A := by54  exact sum_map_extend_zero e he A (fun B => B.adjoint ∘L B) (by simp)5556/-- Row Gram factors are unchanged as well. -/57theorem rowGram_extend_zero (e : I → J) (he : Function.Injective e)58    (A : I → E →L[ℂ] E) : rowGram (Function.extend e A 0) = rowGram A := by59  exact sum_map_extend_zero e he A (fun B => B ∘L B.adjoint) (by simp)6061/-- Pointwise power bounds are also preserved by zero padding. -/62theorem norm_extend_zero_le (e : I → J) (he : Function.Injective e)63    (A : I → E →L[ℂ] E) (C : ℝ) (hC : 0 ≤ C) (hA : ∀ i, ‖A i‖ ≤ C) (j : J) :64    ‖Function.extend e A 0 j‖ ≤ C := by65  classical66  by_cases hj : j ∈ Set.range e67  · obtain ⟨i,rfl⟩ := hj68    rw [he.extend_apply]69    exact hA i70  · rw [Function.extend_apply' _ _ _ hj]71    simpa using hC7273/-- A common finite alphabet for every signed word of length at most `m`. -/74abbrev Palette (d m : ℕ) := Σ k : Fin (m + 1), Fin k.val → Color d7576/-- Every actual fixed-length reduced profile family injects into that common palette. -/77def embedWords {d k m : ℕ} {p : Profile (Color d)} (hk : k ≤ m) :78    Words d k p → Palette d m := fun w => ⟨⟨k, by omega⟩, w.val⟩7980theorem embedWords_injective {d k m : ℕ} {p : Profile (Color d)} (hk : k ≤ m) :81    Function.Injective (embedWords (p := p) hk) := by82  intro a b h83  exact Subtype.ext (Sigma.mk.inj_iff.mp h |>.2 |> eq_of_heq)8485/-- Common-register endpoint factors retain the same sharp bound. -/86theorem padded_endpoint_bounds {d k m : ℕ} (p : Profile (Color d)) (hk : k ≤ m)87    (A : Polynomial (FreeGroup (Fin d)) E)88    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1) (n : ℕ) :89    Real.sqrt ‖columnGram (Function.extend (embedWords hk)90        (returningCoefficients (k := k) A n p) 0)‖ ≤91      (n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) ∧92    Real.sqrt ‖rowGram (Function.extend (embedWords hk)93        (returningCoefficients (k := k) A n p) 0)‖ ≤94      (n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) := by95  rw [columnGram_extend_zero _ (embedWords_injective hk),96    rowGram_extend_zero _ (embedWords_injective hk)]97  exact returning_endpoint_bounds A hA n p9899/-- Common-register singleton factors retain the original small palette count. -/100theorem padded_singleton_bound {d k m : ℕ} (p : Profile (Color d)) (hk : k ≤ m)101    (A : Polynomial (FreeGroup (Fin d)) E)102    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1) (n : ℕ) :103    ‖∑ j : Palette d m, Function.extend (embedWords hk)104      (returningCoefficients (k := k) A n p) 0 j‖ ≤105      Real.sqrt (((2 * d) ^ k : ℕ) : ℝ) *106        ((n + 1 : ℕ) * ‖regular A‖ ^ (n + 1)) := by107  rw [sum_extend_zero _ (embedWords_injective hk)]108  exact returning_singleton_bound A hA n p109110end Nonadditivity.HaarProfilePadding