Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathSupport

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

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

14 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathBalance7import Nonadditivity.HaarPathLocalPhase89/-! # Vanishing of Haar path weights with too many vertices -/10noncomputable section11attribute [local instance 2000] instBEqOfDecidableEq12set_option backward.isDefEq.respectTransparency false13set_option maxHeartbeats 120000014namespace Nonadditivity.HaarPathWeights15open MeasureTheory HaarModel HaarFourthMoments HaarPathLocalPhase16open scoped BigOperators Matrix Matrix.Norms.L2Operator1718variable {N m : ℕ} (P : HaarPathGraph.Path (Fin (N+1)) 2 m)1920lemma rowCount_positive_pathEntries (a : Fin 2) (v : Fin (N+1)) :21    rowCount (selected (a,true) (pathEntries P)) v=P.outgoingCount (a,true) v := by22  rw [pathEntries, selected_rowCount_ofFn, HaarPathGraph.Path.outgoingCount]23  congr 124  ext i25  cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>26    intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he2728lemma rowCount_negative_pathEntries (a : Fin 2) (v : Fin (N+1)) :29    rowCount (selected (a,false) (pathEntries P)) v=P.incomingCount (a,false) v := by30  rw [pathEntries, selected_rowCount_ofFn, HaarPathGraph.Path.incomingCount]31  congr 132  ext i33  cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>34    intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he3536lemma columnCount_positive_pathEntries (a : Fin 2) (v : Fin (N+1)) :37    columnCount (selected (a,true) (pathEntries P)) v=P.incomingCount (a,true) v := by38  rw [pathEntries, selected_columnCount_ofFn, HaarPathGraph.Path.incomingCount]39  congr 140  ext i41  cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>42    intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he4344lemma columnCount_negative_pathEntries (a : Fin 2) (v : Fin (N+1)) :45    columnCount (selected (a,false) (pathEntries P)) v=P.outgoingCount (a,false) v := by46  rw [pathEntries, selected_columnCount_ofFn, HaarPathGraph.Path.outgoingCount]47  congr 148  ext i49  cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>50    intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he5152/-- Nonvanishing of the actual product Haar integral implies the precise53vertex-by-color balance used in the reduced-path combinatorics. -/54theorem locallyBalanced_of_integral_ne_zero55    (h : (∫ U : LocalUnitary N × LocalUnitary N, pathProduct P U ∂(haar N).prod (haar N)) ≠ 0) :56    P.LocallyBalanced := by57  have hf : ∀ a : Fin 2,58      (∫ U : LocalUnitary N,59        listMonomial (selected (a,true) (pathEntries P)) (selected (a,false) (pathEntries P)) U60          ∂haar N) ≠ 0 := by61    simp_rw [pathProduct_eq,signedProduct_eq] at h62    rw [integral_prod_mul] at h63    intro a64    fin_cases a65    · exact (mul_ne_zero_iff.mp h).166    · exact (mul_ne_zero_iff.mp h).267  intro c v68  obtain ⟨a,b⟩ := c69  have hc := counts_eq_of_integral_ne_zero _ _ (hf a) v70  rw [rowCount_positive_pathEntries, rowCount_negative_pathEntries,71    columnCount_positive_pathEntries,columnCount_negative_pathEntries] at hc72  cases b73  · exact hc.2.symm74  · exact hc.17576/-- The same nonzero integral enforces even path length, independently of the77graph-theoretic argument. -/78theorem even_length_of_integral_ne_zero79    (h : (∫ U : LocalUnitary N × LocalUnitary N, pathProduct P U ∂(haar N).prod (haar N)) ≠ 0) :80    Even m := by81  have hb : ∀ a : Fin 2,82      (selected (a,true) (pathEntries P)).length=(selected (a,false) (pathEntries P)).length := by83    intro a84    by_contra ha85    apply h86    simp_rw [pathProduct_eq]87    exact integral_signedProduct_eq_zero_of_unbalanced _ a ha88  have hs := selected_lengths (pathEntries P)89  rw [pathEntries_length] at hs90  have h0 := hb 091  have h1 := hb 192  refine ⟨(selected (0,true) (pathEntries P)).length+(selected (1,true) (pathEntries P)).length,?_⟩93  omega9495/-- The support restriction in BC Corollary 5.5, proved for the actual Haar96expectation and without a matrix-size hypothesis. -/97theorem integral_pathProduct_eq_zero_of_vertices_gt98    (hv : m/2 < P.vertices.card) :99    (∫ U : LocalUnitary N × LocalUnitary N, pathProduct P U ∂(haar N).prod (haar N))=0 := by100  by_contra hn101  have h := P.vertices_le_half_of_balanced (locallyBalanced_of_integral_ne_zero P hn)102    (even_length_of_integral_ne_zero P hn)103  omega104105end Nonadditivity.HaarPathWeights