Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.RegularRestriction

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

Direct imports

  • Nonadditivity.FreeModel
  • Mathlib.GroupTheory.Coset.Basic dependency
  • Mathlib.Topology.Algebra.InfiniteSum.Real dependency
  • Mathlib.Tactic.Positivity dependency

Imported by project modules

4 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

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

49 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.FreeModel7import Mathlib.GroupTheory.Coset.Basic8import Mathlib.Topology.Algebra.InfiniteSum.Real9import Mathlib.Tactic.Positivity1011noncomputable section1213namespace Nonadditivity.RegularRestriction1415open scoped BigOperators ENNReal1617set_option maxHeartbeats 80000018open Nonadditivity.FreeModel1920variable {G : Type*} [Group G]2122abbrev RightCosets (H : Subgroup G) := Quotient (QuotientGroup.rightRel H)2324private theorem rightCoset_mk_mul (H : Subgroup G) (q : RightCosets H) (h : H) :25    Quotient.mk'' ((h : G) * q.out) = q := by26  rw [← Quotient.out_eq q]27  apply Quotient.sound28  apply QuotientGroup.rightRel_apply.mpr29  simp3031/-- Right coset coordinates realize the subgroup regular action on every fiber. -/32def rightCosetEquiv (H : Subgroup G) : RightCosets H × H ≃ G :=33  Equiv.ofBijective (fun p => (p.2 : G) * p.1.out) (by34    constructor35    · intro p r heq36      dsimp only at heq37      have hq : p.1 = r.1 := by38        rw [← rightCoset_mk_mul H p.1 p.2, ← rightCoset_mk_mul H r.1 r.2, heq]39      apply Prod.ext hq40      apply Subtype.ext41      rw [hq] at heq42      exact mul_right_cancel heq43    · intro g44      let q : RightCosets H := Quotient.mk'' g45      have hm : g * q.out⁻¹ ∈ H := by46        apply QuotientGroup.rightRel_apply.mp47        exact Quotient.exact (Quotient.out_eq q)48      refine ⟨(q, ⟨g * q.out⁻¹, hm⟩), ?_⟩49      simp [mul_assoc])5051@[simp] theorem rightCosetEquiv_apply (H : Subgroup G) (q : RightCosets H) (h : H) :52    rightCosetEquiv H (q, h) = (h : G) * q.out := rfl5354theorem norm_sq {α : Type*} (f : Hilbert α) :55    ‖f‖ ^ 2 = ∑' x, ‖f x‖ ^ 2 := by56  simpa using lp.norm_rpow_eq_tsum (p := (2 : ℝ≥0∞)) (by norm_num) f5758/-- Restriction to one right coset, identified with the subgroup. -/59def cosetSlice (H : Subgroup G) (q : RightCosets H) (f : Hilbert G) : Hilbert H :=60  ⟨fun h => f (rightCosetEquiv H (q, h)), by61    apply memℓp_gen62    exact (f.property.summable (by norm_num)).comp_injective (by63      intro a b heq64      exact (Prod.mk.inj (rightCosetEquiv H |>.injective heq)).2)⟩6566@[simp] theorem cosetSlice_apply (H : Subgroup G) (q : RightCosets H)67    (f : Hilbert G) (h : H) : cosetSlice H q f h = f ((h : G) * q.out) := rfl6869/-- The square norm splits exactly as the sum of the square norms on right cosets. -/70theorem coset_energy (H : Subgroup G) (f : Hilbert G) :71    ‖f‖ ^ 2 = ∑' q : RightCosets H, ‖cosetSlice H q f‖ ^ 2 := by72  rw [norm_sq, ← (rightCosetEquiv H).tsum_eq (fun x => ‖f x‖ ^ 2)]73  have hs : Summable (fun p : RightCosets H × H => ‖f (rightCosetEquiv H p)‖ ^ 2) :=74    (rightCosetEquiv H).summable_iff (f := fun x => ‖f x‖ ^ 2) |>.mpr75      (by simpa using f.property.summable (by norm_num))76  rw [hs.tsum_prod]77  apply tsum_congr78  intro q79  exact (norm_sq (cosetSlice H q f)).symm8081theorem summable_coset_energy (H : Subgroup G) (f : Hilbert G) :82    Summable (fun q : RightCosets H => ‖cosetSlice H q f‖ ^ 2) := by83  have hs : Summable (fun p : RightCosets H × H => ‖f (rightCosetEquiv H p)‖ ^ 2) :=84    (rightCosetEquiv H).summable_iff (f := fun x => ‖f x‖ ^ 2) |>.mpr85      (by simpa using f.property.summable (by norm_num))86  convert hs.prod using 187  funext q88  exact norm_sq (cosetSlice H q f)8990/-- A finite scalar polynomial in the concrete regular shifts. -/91def regularPolynomial {α : Type*} [Group α] {I : Type*} [Fintype I]92    (w : I → α) (a : I → ℂ) : Hilbert α →L[ℂ] Hilbert α :=93  ∑ i, a i • leftRegular (w i)9495@[simp] theorem regularPolynomial_apply {α : Type*} [Group α] {I : Type*} [Fintype I]96    (w : I → α) (a : I → ℂ) (f : Hilbert α) (x : α) :97    regularPolynomial w a f x = ∑ i, a i * f ((w i)⁻¹ * x) := by98  simp only [regularPolynomial, ContinuousLinearMap.sum_apply, ContinuousLinearMap.smul_apply]99  rw [lp.coeFn_sum]100  simp [lp.coeFn_smul, Finset.sum_apply]101102/-- The restricted operator acts identically on every right coset. -/103theorem cosetSlice_regularPolynomial (H : Subgroup G) {I : Type*} [Fintype I]104    (w : I → H) (a : I → ℂ) (q : RightCosets H) (f : Hilbert G) :105    cosetSlice H q (regularPolynomial (fun i => (w i : G)) a f) =106      regularPolynomial w a (cosetSlice H q f) := by107  ext h108  simp [mul_assoc]109110/-- The ambient regular norm cannot exceed the subgroup regular norm. -/111theorem regularPolynomial_subgroup_norm_le (H : Subgroup G) {I : Type*} [Fintype I]112    (w : I → H) (a : I → ℂ) :113    ‖regularPolynomial (fun i => (w i : G)) a‖ ≤ ‖regularPolynomial w a‖ := by114  apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)115  intro f116  apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _))).mp117  rw [coset_energy H, mul_pow, coset_energy H,118    ← tsum_mul_left]119  apply Summable.tsum_le_tsum120  · intro q121    rw [cosetSlice_regularPolynomial]122    simpa only [mul_pow] using123      (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _))).mpr124        ((regularPolynomial w a).le_opNorm (cosetSlice H q f))125  · exact summable_coset_energy H _126  · exact (summable_coset_energy H f).mul_left _127128/-- Extension by zero through an injection is an actual square-summable function. -/129def extendZero {α β : Type*} (j : α → β) (hj : Function.Injective j)130    (f : Hilbert α) : Hilbert β :=131  ⟨Function.extend j f 0, by132    apply memℓp_gen133    have hs := (summable_extend_zero hj).mpr (f.property.summable (by norm_num))134    convert hs using 1135    funext y136    simpa [Function.comp_def] using137      Function.apply_extend (g := (⇑f)) (fun z : ℂ => ‖z‖ ^ (2 : ℝ≥0∞).toReal) j (0 : β → ℂ) y⟩138139@[simp] theorem extendZero_apply_image {α β : Type*} (j : α → β)140    (hj : Function.Injective j) (f : Hilbert α) (x : α) :141    extendZero j hj f (j x) = f x := hj.extend_apply _ _ _142143theorem extendZero_apply_outside {α β : Type*} (j : α → β)144    (hj : Function.Injective j) (f : Hilbert α) (x : β) (hx : x ∉ Set.range j) :145    extendZero j hj f x = 0 := Function.extend_apply' _ _ _ hx146147/-- Extension by zero preserves the Hilbert norm exactly. -/148theorem extendZero_norm {α β : Type*} (j : α → β)149    (hj : Function.Injective j) (f : Hilbert α) : ‖extendZero j hj f‖ = ‖f‖ := by150  apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp151  rw [norm_sq, norm_sq]152  have heq : (fun y => ‖extendZero j hj f y‖ ^ 2) =153      Function.extend j (fun x => ‖f x‖ ^ 2) 0 := by154    funext y155    simpa [extendZero, Function.comp_def] using156      Function.apply_extend (g := (⇑f)) (fun z : ℂ => ‖z‖ ^ (2 : ℕ)) j (0 : β → ℂ) y157  rw [heq, tsum_extend_zero hj]158159/-- The embedded subgroup subspace intertwines the two regular polynomials. -/160theorem extendZero_subgroup_regularPolynomial (H : Subgroup G) {I : Type*} [Fintype I]161    (w : I → H) (a : I → ℂ) (f : Hilbert H) :162    regularPolynomial (fun i => (w i : G)) a (extendZero Subtype.val Subtype.val_injective f) =163      extendZero Subtype.val Subtype.val_injective (regularPolynomial w a f) := by164  classical165  ext g166  by_cases hg : g ∈ H167  · let h : H := ⟨g, hg⟩168    change regularPolynomial (fun i => (w i : G)) a169      (extendZero Subtype.val Subtype.val_injective f) (h : G) =170        extendZero Subtype.val Subtype.val_injective (regularPolynomial w a f) (h : G)171    rw [extendZero_apply_image]172    simp only [regularPolynomial_apply]173    apply Finset.sum_congr rfl174    intro i hi175    change a i * extendZero Subtype.val Subtype.val_injective f (((w i)⁻¹ * h : H) : G) = _176    rw [extendZero_apply_image]177  · have houtside : g ∉ Set.range (Subtype.val : H → G) := by simpa using hg178    rw [extendZero_apply_outside _ _ _ _ houtside, regularPolynomial_apply]179    apply Finset.sum_eq_zero180    intro i hi181    have hm : (w i : G)⁻¹ * g ∉ Set.range (Subtype.val : H → G) := by182      simp only [Subtype.range_coe_subtype, Set.mem_setOf_eq]183      exact fun ht => hg (by simpa [mul_assoc] using H.mul_mem (w i).property ht)184    rw [extendZero_apply_outside _ _ _ _ hm, mul_zero]185186/-- The subgroup regular norm cannot exceed the ambient regular norm. -/187theorem regularPolynomial_subgroup_norm_ge (H : Subgroup G) {I : Type*} [Fintype I]188    (w : I → H) (a : I → ℂ) :189    ‖regularPolynomial w a‖ ≤ ‖regularPolynomial (fun i => (w i : G)) a‖ := by190  apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)191  intro f192  have hb := (regularPolynomial (fun i => (w i : G)) a).le_opNorm193    (extendZero Subtype.val Subtype.val_injective f)194  rw [extendZero_subgroup_regularPolynomial, extendZero_norm, extendZero_norm] at hb195  exact hb196197/-- Passing from a subgroup to its ambient group preserves every finite regular norm. -/198theorem regularPolynomial_subgroup_norm_eq (H : Subgroup G) {I : Type*} [Fintype I]199    (w : I → H) (a : I → ℂ) :200    ‖regularPolynomial (fun i => (w i : G)) a‖ = ‖regularPolynomial w a‖ :=201  le_antisymm (regularPolynomial_subgroup_norm_le H w a)202    (regularPolynomial_subgroup_norm_ge H w a)203204/-- Extension by zero intertwines a finite polynomial along any group embedding. -/205theorem extendZero_regularPolynomial {H : Type*} [Group H] (φ : H →* G)206    (hφ : Function.Injective φ) {I : Type*} [Fintype I]207    (w : I → H) (a : I → ℂ) (f : Hilbert H) :208    regularPolynomial (fun i => φ (w i)) a (extendZero φ hφ f) =209      extendZero φ hφ (regularPolynomial w a f) := by210  classical211  ext g212  by_cases hg : g ∈ Set.range φ213  · obtain ⟨h, rfl⟩ := hg214    rw [extendZero_apply_image]215    simp only [regularPolynomial_apply]216    apply Finset.sum_congr rfl217    intro i hi218    rw [← map_inv, ← map_mul, extendZero_apply_image]219  · rw [extendZero_apply_outside _ _ _ _ hg, regularPolynomial_apply]220    apply Finset.sum_eq_zero221    intro i hi222    have hm : (φ (w i))⁻¹ * g ∉ Set.range φ := by223      rintro ⟨h, hh⟩224      apply hg225      refine ⟨w i * h, ?_⟩226      rw [map_mul, hh]227      simp228    rw [extendZero_apply_outside _ _ _ _ hm, mul_zero]229230/-- The regular polynomial on an embedded group has at least the original norm. -/231theorem regularPolynomial_norm_le_of_injective {H : Type*} [Group H] (φ : H →* G)232    (hφ : Function.Injective φ) {I : Type*} [Fintype I] (w : I → H) (a : I → ℂ) :233    ‖regularPolynomial w a‖ ≤ ‖regularPolynomial (fun i => φ (w i)) a‖ := by234  apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)235  intro f236  have hb := (regularPolynomial (fun i => φ (w i)) a).le_opNorm (extendZero φ hφ f)237  rw [extendZero_regularPolynomial, extendZero_norm, extendZero_norm] at hb238  exact hb239240/-- An injective group homomorphism preserves every finite regular polynomial norm.241The proof uses actual square-summable right coset fibers and extension by zero. -/242theorem regularPolynomial_injective_norm_eq {H : Type*} [Group H] (φ : H →* G)243    (hφ : Function.Injective φ) {I : Type*} [Fintype I] (w : I → H) (a : I → ℂ) :244    ‖regularPolynomial (fun i => φ (w i)) a‖ = ‖regularPolynomial w a‖ := by245  let e : H ≃* φ.range := MonoidHom.ofInjective hφ246  apply le_antisymm247  · calc248      ‖regularPolynomial (fun i => φ (w i)) a‖ =249          ‖regularPolynomial (fun i => (e (w i) : G)) a‖ := rfl250      _ ≤ ‖regularPolynomial (fun i => e (w i)) a‖ :=251        regularPolynomial_subgroup_norm_le φ.range _ a252      _ ≤ ‖regularPolynomial w a‖ := by253        simpa using regularPolynomial_norm_le_of_injective e.symm.toMonoidHom254          e.symm.injective (fun i => e (w i)) a255  · exact regularPolynomial_norm_le_of_injective φ hφ w a256257/-- Group isomorphisms preserve the norm of the actual regular polynomial. -/258theorem regularPolynomial_equiv_norm_eq {H : Type*} [Group H] (e : H ≃* G)259    {I : Type*} [Fintype I] (w : I → H) (a : I → ℂ) :260    ‖regularPolynomial (fun i => e (w i)) a‖ = ‖regularPolynomial w a‖ :=261  regularPolynomial_injective_norm_eq e.toMonoidHom e.injective w a262263/-- An injection of nonempty generator sets induces an injective free-group homomorphism. -/264theorem freeGroup_map_injective {α β : Type*} [Nonempty α] (f : α → β)265    (hf : Function.Injective f) : Function.Injective (FreeGroup.map f) := by266  apply Function.LeftInverse.injective (g := FreeGroup.map (Function.invFun f))267  intro x268  rw [FreeGroup.map.comp]269  have heq : Function.invFun f ∘ f = id := Function.invFun_comp hf270  rw [heq, FreeGroup.map.id]271272/-- The canonical embedding of finitely many free generators into countably many. -/273def productFreeInclusion (K n : ℕ) : ProductFreeGroup K n →* (Fin n → FreeGroup ℕ) where274  toFun x j := FreeGroup.map (fun i : Fin K => i.val) (x j)275  map_one' := by ext j; exact map_one _276  map_mul' x y := by ext j; exact map_mul _ _ _277278/-- This inclusion is faithful in each factor. -/279theorem productFreeInclusion_injective (K n : ℕ) [NeZero K] :280    Function.Injective (productFreeInclusion K n) := by281  intro x y hxy282  funext j283  apply freeGroup_map_injective (fun i : Fin K => i.val) Fin.val_injective284  exact congrFun hxy j285286/-- Finitely and countably generated ambient free groups give exactly the same norm. -/287theorem productFree_regularPolynomial_norm_eq (K n : ℕ) [NeZero K]288    {I : Type*} [Fintype I] (w : I → ProductFreeGroup K n) (a : I → ℂ) :289    ‖regularPolynomial (fun i => productFreeInclusion K n (w i)) a‖ =290      ‖regularPolynomial w a‖ :=291  regularPolynomial_injective_norm_eq (productFreeInclusion K n)292    (productFreeInclusion_injective K n) w a293294/-- The manuscript's exact normalized polynomial in the countably generated model. -/295def gammaInfinite {K n : ℕ} (A : Matrix (Branch K n) (Branch K n) ℂ) :296    Hilbert (Fin n → FreeGroup ℕ) →L[ℂ] Hilbert (Fin n → FreeGroup ℕ) :=297  (1 / ((K : ℂ) ^ n)) •298    ∑ a : Branch K n, ∑ b : Branch K n,299      A a b • leftRegular (productFreeInclusion K n ((branchWord a)⁻¹ * branchWord b))300301/-- The concrete finite-generator model needs no new norm assumption. -/302theorem gammaInfinite_norm_eq {K n : ℕ} [NeZero K]303    (A : Matrix (Branch K n) (Branch K n) ℂ) : ‖gammaInfinite A‖ = freeNorm A := by304  have hpoly := productFree_regularPolynomial_norm_eq K n305    (fun p : Branch K n × Branch K n => (branchWord p.1)⁻¹ * branchWord p.2)306    (fun p => A p.1 p.2)307  simp only [regularPolynomial, Fintype.sum_prod_type] at hpoly308  simp only [gammaInfinite, freeNorm, gamma, norm_smul]309  rw [hpoly]310311end Nonadditivity.RegularRestriction