Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarOperatorPathSum

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

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

17 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarOperatorPathBridge7import Nonadditivity.HaarPathSupport89/-! # Exact grouped operator sum over all literal Haar paths -/10noncomputable section11set_option backward.isDefEq.respectTransparency false12set_option maxHeartbeats 120000013set_option synthInstance.maxHeartbeats 20000014namespace Nonadditivity.HaarOperatorPathBridge15open MeasureTheory HaarModel HaarWordExpansion HaarOperatorCurry16open HaarIteratedMoments HaarOnePairAssembly HaarPathExpansion HaarPathWeights17open HaarPathGraph HaarPathProfiles HaarVacuumFunctional RegularCoefficientEnergy18open scoped BigOperators Matrix Matrix.Norms.L2Operator1920theorem exists_reducedWord {t : ℕ} (g : FreeGroup (Fin 2))21    (hg : FreeGroup.norm g=t) : ∃ c : ReducedColors t, reducedWord c=g := by22  subst t23  exact ⟨colorsOfWord g,colorsOfWord_word g⟩2425def pathWeight {N t : ℕ} (P : Path (Fin (N+1)) 2 t) : ℂ :=26  ∫ U : LocalUnitary N × LocalUnitary N, pathProduct P U ∂(haar N).prod (haar N)2728def pathOperatorSum {E : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E]29    [CompleteSpace E] (N : ℕ)30    (A : HaarOperatorPolynomial.Polynomial (FreeGroup (Fin 2)) E) (p t : ℕ) :31    E →L[ℂ] E :=32  ∑ P : Path (Fin (N+1)) 2 t,33    pathWeight P • (A^p) (FreeGroup.mk (List.ofFn P.colors))3435theorem pathWeight_eq_zero_of_not_even {N t : ℕ}36    (P : Path (Fin (N+1)) 2 t) (ht : ¬Even t) : pathWeight P=0 := by37  by_contra hn38  exact ht (even_length_of_integral_ne_zero P hn)3940theorem pathOperatorSum_eq_zero_of_not_even {E : Type} [NormedAddCommGroup E]41    [InnerProductSpace ℂ E] [CompleteSpace E] (N : ℕ)42    (A : HaarOperatorPolynomial.Polynomial (FreeGroup (Fin 2)) E) (p t : ℕ)43    (ht : ¬Even t) : pathOperatorSum N A p t=0 := by44  apply Finset.sum_eq_zero45  intro P hP46  rw [pathWeight_eq_zero_of_not_even P ht,zero_smul]4748variable {H ι : Type} [Group H] [DecidableEq H] [Fintype ι] [DecidableEq ι]4950theorem operatorLengthContribution_eq_colorSum (N p t : ℕ) (ht : 0<t)51    (f : MatrixPolynomial (FreeGroup (Fin 2) × H) ι) :52    operatorLengthContribution (pairMeasure N) (pairMatrix N) f p t =53      ∑ c : ReducedColors t,54        (∫ U : Pair N, normalizedTrace (pairMatrix N U (reducedWord c)) ∂pairMeasure N) •55          operatorCurry (f^p) (reducedWord c) := by56  classical57  let W : Finset (FreeGroup (Fin 2)) := Finset.univ.image (@reducedWord t)58  have hmem (g : FreeGroup (Fin 2)) : g ∈ W ↔ FreeGroup.norm g=t := by59    constructor60    · intro hg61      obtain ⟨c,hc,rfl⟩ := Finset.mem_image.mp hg62      exact reducedWord_norm c63    · intro hg64      obtain ⟨c,rfl⟩ := exists_reducedWord g hg65      exact Finset.mem_image.mpr ⟨c,Finset.mem_univ _,rfl⟩66  have he := Finset.sum_image (s := (Finset.univ : Finset (ReducedColors t)))67    (g := @reducedWord t)68    (f := fun g => (∫ U : Pair N, normalizedTrace (pairMatrix N U g) ∂pairMeasure N) •69      operatorCurry (f^p) g)70    (fun _ _ _ _ h => reducedWord_injective h)71  rw [←he]72  unfold operatorLengthContribution73  apply Finset.sum_subset74  · intro g hg75    exact (hmem g).mpr (Finset.mem_filter.mp hg).276  · intro g hg hn77    have hgt := (hmem g).mp hg78    have hne : g ≠ 1 := by79      intro heq80      simp only [heq,FreeGroup.norm_one] at hgt81      omega82    have hn' : g ∉ (MonoidAlgebra.curryRingEquiv (f^p)).support := by83      intro hs84      exact hn (Finset.mem_filter.mpr ⟨Finset.mem_erase.mpr ⟨hne,hs⟩,hgt⟩)85    have hz := Finsupp.notMem_support_iff.mp hn'86    rw [operatorCurry_apply,hz,map_zero,smul_zero]8788/-- The exact normalized grouped trace contribution; all paths are literal,89and operator coefficients are kept together before taking norms. -/90theorem operatorLengthContribution_eq_pathSum (N p t : ℕ) (ht : 0<t)91    (f : MatrixPolynomial (FreeGroup (Fin 2) × H) ι) :92    operatorLengthContribution (pairMeasure N) (pairMatrix N) f p t =93      (1/(N+1:ℂ)) • pathOperatorSum N (operatorCurry f) p t := by94  rw [operatorLengthContribution_eq_colorSum N p t ht f]95  have hw (c : ReducedColors t) := integral_normalized_word (N := N) c.val c.property96  change ∀ c : ReducedColors t,97    (∫ U : Pair N, normalizedTrace (pairMatrix N U (reducedWord c)) ∂pairMeasure N) = _ at hw98  simp_rw [hw, mul_smul, Finset.sum_smul,99    ←Finset.smul_sum]100  congr 1101  unfold pathOperatorSum102  rw [←(pathEquiv (V := Fin (N+1)) t).sum_comp]103  simp only [Fintype.sum_prod_type,pathEquiv,assignmentPath,pathWeight,map_pow]104  rfl105106theorem norm_operatorLengthContribution_eq (N p t : ℕ) (ht : 0<t)107    (f : MatrixPolynomial (FreeGroup (Fin 2) × H) ι) :108    ‖operatorLengthContribution (pairMeasure N) (pairMatrix N) f p t‖ =109      ‖pathOperatorSum N (operatorCurry f) p t‖ / (N+1:ℝ) := by110  rw [operatorLengthContribution_eq_pathSum N p t ht f,norm_smul,norm_div,norm_one]111  have hnorm : ‖(N:ℂ)+1‖ = (N:ℝ)+1 := by112    exact_mod_cast Complex.norm_natCast (N+1)113  rw [hnorm]114  ring115116theorem mixedLengthContribution_le_of_pathSum [Nonempty ι]117    (N p t : ℕ) (ht : 0<t)118    (f : MatrixPolynomial (FreeGroup (Fin 2) × H) ι) {B : ℝ}119    (hb : ‖pathOperatorSum N (operatorCurry f) p t‖ ≤ (N+1:ℝ)*B) :120    ‖HaarMixedWordExpansion.mixedLengthContribution (pairMeasure N) (pairMatrix N) f p t‖ ≤ B := by121  apply (norm_mixedLengthContribution_le (pairMeasure N) (pairMatrix N) f p t).trans122  rw [norm_operatorLengthContribution_eq N p t ht f]123  exact (div_le_iff₀ (by positivity : (0:ℝ)<N+1)).mpr (by simpa only [mul_comm] using hb)124125end Nonadditivity.HaarOperatorPathBridge