Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.UniversalFactorizationOperators

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

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

33 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.NoncommutativeCS78/-! # Coefficient amplification in an arbitrary Hilbert representation910Rectangular scalar matrices act on finite Hilbert direct sums. An arbitrary11unitary representation acts coordinatewise and commutes with every such12coefficient matrix. Products and adjoints are proved on the actual operators.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false1718namespace Nonadditivity.UniversalFactorization1920open scoped BigOperators InnerProductSpace Matrix2122abbrev Space (ι E : Type*) [Fintype ι] [NormedAddCommGroup E] :=23  NoncommutativeCS.DirectSum ι E2425variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]26variable {ι κ μ : Type*} [Fintype ι] [Fintype κ] [Fintype μ]2728def rectLift (A : Matrix ι κ ℂ) : Space κ E →L[ℂ] Space ι E :=29  NoncommutativeCS.column (fun i => NoncommutativeCS.row30    (fun j => A i j • ContinuousLinearMap.id ℂ E))3132@[simp] theorem rectLift_apply (A : Matrix ι κ ℂ) (x : Space κ E) (i : ι) :33    rectLift A x i = ∑ j, A i j • x j := by34  simp [rectLift]3536@[simp] theorem rectLift_zero : rectLift (E := E) (0 : Matrix ι κ ℂ) = 0 := by37  ext x i38  simp3940@[simp] theorem rectLift_add (A B : Matrix ι κ ℂ) :41    rectLift (E := E) (A + B) = rectLift A + rectLift B := by42  ext x i43  simp [add_smul, Finset.sum_add_distrib]4445@[simp] theorem rectLift_smul (r : ℝ) (A : Matrix ι κ ℂ) :46    rectLift (E := E) (r • A) = r • rectLift A := by47  ext x i48  simp only [rectLift_apply, ContinuousLinearMap.smul_apply, PiLp.smul_apply,49    Matrix.smul_apply]50  rw [Finset.smul_sum]51  exact Finset.sum_congr rfl (fun j _ => smul_assoc r (A i j) (x j))5253@[simp] theorem rectLift_one [DecidableEq ι] :54    rectLift (E := E) (1 : Matrix ι ι ℂ) = 1 := by55  ext x i56  simp [Matrix.one_apply, ite_smul]5758@[simp] theorem rectLift_mul (A : Matrix ι κ ℂ) (B : Matrix κ μ ℂ) :59    rectLift (E := E) (A * B) = (rectLift A).comp (rectLift B) := by60  ext x i61  simp only [rectLift_apply, ContinuousLinearMap.comp_apply, Matrix.mul_apply,62    Finset.sum_smul, Finset.smul_sum, mul_smul]63  rw [Finset.sum_comm]6465@[simp] theorem rectLift_adjoint (A : Matrix ι κ ℂ) :66    rectLift (E := E) A.conjTranspose = (rectLift A).adjoint := by67  apply ContinuousLinearMap.ext68  intro x69  apply ext_inner_right ℂ70  intro y71  rw [ContinuousLinearMap.adjoint_inner_left]72  simp only [PiLp.inner_apply, rectLift_apply, Matrix.conjTranspose_apply,73    sum_inner, inner_sum, inner_smul_left, inner_smul_right, starRingEnd_apply, star_star]74  rw [Finset.sum_comm]7576@[simp] theorem rectLift_sum {α : Type*} (s : Finset α) (A : α → Matrix ι κ ℂ) :77    rectLift (E := E) (∑ a ∈ s, A a) = ∑ a ∈ s, rectLift (A a) := by78  classical79  induction s using Finset.induction_on with80  | empty => simp81  | insert a s ha ih => simp [ha, ih]8283@[simp] theorem rectLift_algebraMap [DecidableEq ι] (r : ℝ) :84    rectLift (E := E) (algebraMap ℝ (Matrix ι ι ℂ) r) =85      algebraMap ℝ (Space ι E →L[ℂ] Space ι E) r := by86  simp only [Algebra.algebraMap_eq_smul_one, rectLift_smul, rectLift_one]8788variable {G : Type*} [Group G]8990/-- Coordinatewise action of the given arbitrary unitary representation. -/91def shift (π : G →* unitary (E →L[ℂ] E)) (g : G) : Space ι E →L[ℂ] Space ι E :=92  NoncommutativeCS.amplify (π g : E →L[ℂ] E)9394@[simp] theorem shift_apply (π : G →* unitary (E →L[ℂ] E)) (g : G)95    (x : Space ι E) (i : ι) : shift π g x i = (π g : E →L[ℂ] E) (x i) := rfl9697@[simp] theorem shift_mul (π : G →* unitary (E →L[ℂ] E)) (g h : G) :98    (shift (ι := ι) π g).comp (shift π h) = shift π (g * h) := by99  ext x i100  simp [map_mul]101102@[simp] theorem shift_one (π : G →* unitary (E →L[ℂ] E)) :103    shift (ι := ι) π 1 = 1 := by104  ext x i105  simp106107@[simp] theorem shift_adjoint (π : G →* unitary (E →L[ℂ] E)) (g : G) :108    (shift (ι := ι) π g).adjoint = shift π g⁻¹ := by109  have hi : (π g⁻¹ : E →L[ℂ] E) = (π g : E →L[ℂ] E).adjoint := by110    rw [map_inv, ← Unitary.star_eq_inv, Unitary.coe_star,111      ContinuousLinearMap.star_eq_adjoint]112  apply ContinuousLinearMap.ext113  intro x114  apply ext_inner_right ℂ115  intro y116  rw [ContinuousLinearMap.adjoint_inner_left]117  simp only [PiLp.inner_apply, shift_apply, hi, ContinuousLinearMap.adjoint_inner_left]118119theorem rectLift_shift (π : G →* unitary (E →L[ℂ] E)) (A : Matrix ι κ ℂ) (g : G) :120    (rectLift A).comp (shift π g) = (shift π g).comp (rectLift A) := by121  ext x i122  simp123124/-- A scalar matrix coefficient times the arbitrary unitary representation. -/125def term (π : G →* unitary (E →L[ℂ] E)) (A : Matrix ι κ ℂ) (g : G) :126    Space κ E →L[ℂ] Space ι E := (rectLift A).comp (shift π g)127128@[simp] theorem term_add (π : G →* unitary (E →L[ℂ] E))129    (A B : Matrix ι κ ℂ) (g : G) :130    term π (A + B) g = term π A g + term π B g := by131  simp [term, ContinuousLinearMap.add_comp]132133@[simp] theorem term_smul (π : G →* unitary (E →L[ℂ] E))134    (r : ℝ) (A : Matrix ι κ ℂ) (g : G) :135    term π (r • A) g = r • term π A g := by136  simp [term, ContinuousLinearMap.smul_comp]137138@[simp] theorem term_zero (π : G →* unitary (E →L[ℂ] E)) (g : G) :139    term π (0 : Matrix ι κ ℂ) g = 0 := by simp [term]140141@[simp] theorem term_one [DecidableEq ι] (π : G →* unitary (E →L[ℂ] E)) (g : G) :142    term π (1 : Matrix ι ι ℂ) g = shift π g := by143  ext x i144  simp [term]145146@[simp] theorem term_identity (π : G →* unitary (E →L[ℂ] E)) (A : Matrix ι κ ℂ) :147    term π A 1 = rectLift A := by148  ext x i149  simp [term]150151theorem term_mul (π : G →* unitary (E →L[ℂ] E))152    (A : Matrix ι κ ℂ) (B : Matrix κ μ ℂ) (g h : G) :153    (term π A g).comp (term π B h) = term π (A * B) (g * h) := by154  simp only [term, rectLift_mul, ContinuousLinearMap.comp_assoc]155  rw [← ContinuousLinearMap.comp_assoc (shift π g), ← rectLift_shift,156    ContinuousLinearMap.comp_assoc, shift_mul]157158theorem term_adjoint (π : G →* unitary (E →L[ℂ] E)) (A : Matrix ι κ ℂ) (g : G) :159    (term π A g).adjoint = term π A.conjTranspose g⁻¹ := by160  simp only [term, ContinuousLinearMap.adjoint_comp, shift_adjoint, ← rectLift_adjoint]161  exact (rectLift_shift π _ _).symm162163end Nonadditivity.UniversalFactorization