Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.ShortEmbeddingNorm

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

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

21 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.FreeEmbedding7import Nonadditivity.RegularRestriction89/-!10# Exact norm preservation for the logarithmic free-group substitution1112The concrete short-word embedding is coupled to the actual regular-representation13operators. Both word-degree control and norm preservation are proved here,14including the coordinatewise embedding of product free groups.15-/1617noncomputable section1819namespace Nonadditivity.ShortEmbeddingNorm2021open scoped BigOperators22open Nonadditivity.FreeModel Nonadditivity.RegularRestriction2324/-- A uniform generator-length bound controls the length of every reduced word. -/25theorem norm_hom_le {α β : Type*} [DecidableEq α] [DecidableEq β]26    (φ : FreeGroup α →* FreeGroup β) (L : ℕ)27    (hgen : ∀ i, FreeGroup.norm (φ (FreeGroup.of i)) ≤ L) (x : FreeGroup α) :28    FreeGroup.norm (φ x) ≤ L * FreeGroup.norm x := by29  have hlist : ∀ l : List (α × Bool),30      FreeGroup.norm (FreeGroup.lift (fun i => φ (FreeGroup.of i)) (FreeGroup.mk l)) ≤31        L * l.length := by32    intro l33    induction l with34    | nil => simp35    | cons c l ih =>36      rw [FreeGroup.lift_mk] at ih ⊢37      simp only [List.map_cons, List.prod_cons]38      have hc : FreeGroup.norm (cond c.2 (φ (FreeGroup.of c.1))39          (φ (FreeGroup.of c.1))⁻¹) ≤ L := by40        cases c.2 <;> simp [hgen c.1]41      calc42        FreeGroup.norm _ ≤ FreeGroup.norm _ + FreeGroup.norm _ :=43          FreeGroup.norm_mul_le _ _44        _ ≤ L + L * l.length := Nat.add_le_add hc ih45        _ = L * (c :: l).length := by simp [Nat.mul_add, Nat.add_comm]46  calc47    FreeGroup.norm (φ x) =48        FreeGroup.norm (FreeGroup.lift (fun i => φ (FreeGroup.of i)) (FreeGroup.mk x.toWord)) := by49      rw [FreeGroup.mk_toWord]50      exact congrArg FreeGroup.norm (FreeGroup.lift_unique φ (fun _ => rfl))51    _ ≤ L * x.toWord.length := hlist _52    _ = L * FreeGroup.norm x := rfl5354/-- The sharp logarithmic generator bound extends to every word. -/55theorem logarithmicEmbedding_norm_le (K : ℕ) (hK : 2 ≤ K)56    (x : FreeGroup (Fin K)) :57    FreeGroup.norm (FreeEmbedding.logarithmicEmbedding K hK x) ≤58      (2 * Nat.log 2 (K - 1) + 1) * FreeGroup.norm x :=59  norm_hom_le _ _ (FreeEmbedding.norm_logarithmicEmbedding_of_le K hK) x6061/-- The actual short-word substitution preserves the norm of every finite scalar polynomial. -/62theorem logarithmicEmbedding_regularPolynomial_norm_eq (K : ℕ) (hK : 2 ≤ K)63    {I : Type*} [Fintype I] (w : I → FreeGroup (Fin K)) (a : I → ℂ) :64    ‖regularPolynomial (fun i => FreeEmbedding.logarithmicEmbedding K hK (w i)) a‖ =65      ‖regularPolynomial w a‖ :=66  regularPolynomial_injective_norm_eq _ (FreeEmbedding.logarithmicEmbedding_injective K hK) w a6768/-- Degree reduction and actual operator norm preservation in one checked statement. -/69theorem logarithmic_substitution (K : ℕ) (hK : 2 ≤ K)70    {I : Type*} [Fintype I] (w : I → FreeGroup (Fin K)) (a : I → ℂ)71    (d : ℕ) (hdegree : ∀ i, FreeGroup.norm (w i) ≤ d) :72    (∀ i, FreeGroup.norm (FreeEmbedding.logarithmicEmbedding K hK (w i)) ≤73      (2 * Nat.log 2 (K - 1) + 1) * d) ∧74    ‖regularPolynomial (fun i => FreeEmbedding.logarithmicEmbedding K hK (w i)) a‖ =75      ‖regularPolynomial w a‖ := by76  constructor77  · intro i78    exact (logarithmicEmbedding_norm_le K hK (w i)).trans79      (Nat.mul_le_mul_left _ (hdegree i))80  · exact logarithmicEmbedding_regularPolynomial_norm_eq K hK w a8182/-- The short embedding in every free-group factor. -/83def productLogarithmicEmbedding (K n : ℕ) (hK : 2 ≤ K) :84    ProductFreeGroup K n →* (Fin n → FreeGroup Bool) where85  toFun x j := FreeEmbedding.logarithmicEmbedding K hK (x j)86  map_one' := by ext j; exact map_one _87  map_mul' x y := by ext j; exact map_mul _ _ _8889theorem productLogarithmicEmbedding_injective (K n : ℕ) (hK : 2 ≤ K) :90    Function.Injective (productLogarithmicEmbedding K n hK) := by91  intro x y hxy92  funext j93  apply FreeEmbedding.logarithmicEmbedding_injective K hK94  exact congrFun hxy j9596/-- Product-group scalar regular polynomials keep their exact norm after substitution. -/97theorem productLogarithmicEmbedding_regularPolynomial_norm_eq (K n : ℕ) (hK : 2 ≤ K)98    {I : Type*} [Fintype I] (w : I → ProductFreeGroup K n) (a : I → ℂ) :99    ‖regularPolynomial (fun i => productLogarithmicEmbedding K n hK (w i)) a‖ =100      ‖regularPolynomial w a‖ :=101  regularPolynomial_injective_norm_eq _ (productLogarithmicEmbedding_injective K n hK) w a102103/-- The full product free-group short substitution, with degree in each coordinate. -/104theorem product_logarithmic_substitution (K n : ℕ) (hK : 2 ≤ K)105    {I : Type*} [Fintype I] (w : I → ProductFreeGroup K n) (a : I → ℂ)106    (d : ℕ) (hdegree : ∀ i j, FreeGroup.norm (w i j) ≤ d) :107    (∀ i j, FreeGroup.norm (productLogarithmicEmbedding K n hK (w i) j) ≤108      (2 * Nat.log 2 (K - 1) + 1) * d) ∧109    ‖regularPolynomial (fun i => productLogarithmicEmbedding K n hK (w i)) a‖ =110      ‖regularPolynomial w a‖ := by111  constructor112  · intro i j113    exact (logarithmicEmbedding_norm_le K hK (w i j)).trans114      (Nat.mul_le_mul_left _ (hdegree i j))115  · exact productLogarithmicEmbedding_regularPolynomial_norm_eq K n hK w a116117/-- The total reduced-word length is controlled by the same logarithmic factor. -/118theorem productLogarithmicEmbedding_total_norm_le (K n : ℕ) (hK : 2 ≤ K)119    (x : ProductFreeGroup K n) :120    (∑ j, FreeGroup.norm (productLogarithmicEmbedding K n hK x j)) ≤121      (2 * Nat.log 2 (K - 1) + 1) * ∑ j, FreeGroup.norm (x j) := by122  rw [Finset.mul_sum]123  exact Finset.sum_le_sum (fun j _ => logarithmicEmbedding_norm_le K hK (x j))124125/-- The actual normalized block comparison polynomial after short substitution. -/126def gammaShort {K n : ℕ} (hK : 2 ≤ K)127    (A : Matrix (Branch K n) (Branch K n) ℂ) :128    Hilbert (Fin n → FreeGroup Bool) →L[ℂ] Hilbert (Fin n → FreeGroup Bool) :=129  (1 / ((K : ℂ) ^ n)) •130    ∑ a : Branch K n, ∑ b : Branch K n,131      A a b • leftRegular (productLogarithmicEmbedding K n hK132        ((branchWord a)⁻¹ * branchWord b))133134/-- The actual short substitution has exactly the original block comparison norm. -/135theorem gammaShort_norm_eq {K n : ℕ} (hK : 2 ≤ K)136    (A : Matrix (Branch K n) (Branch K n) ℂ) : ‖gammaShort hK A‖ = freeNorm A := by137  have hpoly := productLogarithmicEmbedding_regularPolynomial_norm_eq K n hK138    (fun p : Branch K n × Branch K n => (branchWord p.1)⁻¹ * branchWord p.2)139    (fun p => A p.1 p.2)140  simp only [regularPolynomial, Fintype.sum_prod_type] at hpoly141  simp only [gammaShort, freeNorm, gamma, norm_smul]142  rw [hpoly]143144/-- Every block-polynomial support word has the exact logarithmic degree bound. -/145theorem gammaShort_coordinate_degree {K n : ℕ} (hK : 2 ≤ K)146    (a b : Branch K n) (j : Fin n) :147    FreeGroup.norm (productLogarithmicEmbedding K n hK148      ((branchWord a)⁻¹ * branchWord b) j) ≤ 2 * (2 * Nat.log 2 (K - 1) + 1) := by149  have hword : FreeGroup.norm (((branchWord a)⁻¹ * branchWord b : ProductFreeGroup K n) j) ≤ 2 := by150    change FreeGroup.norm ((FreeGroup.of (a j))⁻¹ * FreeGroup.of (b j)) ≤ 2151    simpa using FreeGroup.norm_mul_le (FreeGroup.of (a j))⁻¹ (FreeGroup.of (b j))152  exact (logarithmicEmbedding_norm_le K hK (((branchWord a)⁻¹ * branchWord b) j)).trans153    (by simpa [Nat.mul_comm] using Nat.mul_le_mul_left (2 * Nat.log 2 (K - 1) + 1) hword)154155/-- Exact norm preservation and logarithmic support degree for the block comparison model. -/156theorem block_degree_reduction {K n : ℕ} (hK : 2 ≤ K)157    (A : Matrix (Branch K n) (Branch K n) ℂ) :158    ‖gammaShort hK A‖ = freeNorm A ∧159    ∀ a b : Branch K n, ∀ j : Fin n,160      FreeGroup.norm (productLogarithmicEmbedding K n hK161        ((branchWord a)⁻¹ * branchWord b) j) ≤ 2 * (2 * Nat.log 2 (K - 1) + 1) :=162  ⟨gammaShort_norm_eq hK A, gammaShort_coordinate_degree hK⟩163164end Nonadditivity.ShortEmbeddingNorm