Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarOperatorPathBridge

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

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

27 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarVacuumFunctional7import Nonadditivity.HaarOnePairAssembly8import Nonadditivity.HaarPathExpansion9import Nonadditivity.HaarPathVertexFibre10import Nonadditivity.HaarPathCoefficientWords1112/-! # Actual operator coefficients and the closed-path expansion1314This connects the canonical `Fin 2` Haar sample and the curried operator15polynomial to the product-Haar closed-path model.16-/17noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option maxHeartbeats 120000020namespace Nonadditivity.HaarOperatorPathBridge21open MeasureTheory HaarModel HaarFourthMoments HaarWordExpansion HaarOperatorCurry22open HaarIteratedMoments HaarOnePairAssembly HaarPathExpansion HaarPathWeights23open HaarPathGraph HaarPathProfiles HaarVacuumFunctional24open scoped BigOperators Matrix Matrix.Norms.L2Operator2526theorem operatorCurry_support {G H ι : Type} [Group G] [Group H]27    [DecidableEq G] [DecidableEq H] [Fintype ι] [DecidableEq ι]28    (f : MatrixPolynomial (G × H) ι) {g : G} (hg : g ∈ (operatorCurry f).support) :29    ∃ h : H, (g,h) ∈ f.support := by30  classical31  by_contra hn32  have hz : MonoidAlgebra.curryRingEquiv f g = 0 := by33    apply Finsupp.ext34    intro h35    change f (g,h)=036    exact Finsupp.notMem_support_iff.mp (fun hh => hn ⟨h,hh⟩)37  apply Finsupp.mem_support_iff.mp hg38  rw [operatorCurry_apply,hz,map_zero]3940theorem operatorCurry_linear {H ι : Type} [Group H] [DecidableEq H]41    [Fintype ι] [DecidableEq ι]42    (f : MatrixPolynomial (FreeGroup (Fin 2) × H) ι)43    (hf : ∀ w ∈ f.support, FreeGroup.norm w.1 ≤ 1) :44    ∀ g ∈ (operatorCurry f).support, g.toWord.length ≤ 1 := by45  intro g hg46  obtain ⟨h,hh⟩ := operatorCurry_support f hg47  exact hf (g,h) hh4849theorem integral_pair_eq_prod {N : ℕ} (F : LocalUnitary N × LocalUnitary N → ℂ) :50    (∫ U : Pair N, F (U 0,U 1) ∂pairMeasure N) =51      ∫ U : LocalUnitary N × LocalUnitary N, F U ∂(haar N).prod (haar N) := by52  exact (measurePreserving_finTwoArrow (haar N)).integral_comp' F5354theorem pairGenerator_eq {N : ℕ} (U : Pair N) : pairGenerator (U 0,U 1) = U := by55  funext a56  fin_cases a <;> simp [pairGenerator]5758theorem integral_normalized_word {N t : ℕ} (c : Fin t → Color 2)59    (hc : ∀ i j : Fin t, i.val+1=j.val → c j ≠ flipColor (c i)) :60    (∫ U : Pair N, normalizedTrace (pairMatrix N U (FreeGroup.mk (List.ofFn c)))61      ∂pairMeasure N) =62      (1 / (N+1 : ℂ)) * ∑ x : ClosedAssignment (Fin (N+1)) t,63        ∫ U : LocalUnitary N × LocalUnitary N,64          pathProduct (assignmentPath c hc x) U ∂(haar N).prod (haar N) := by65  have he : (fun U : Pair N => normalizedTrace (pairMatrix N U (FreeGroup.mk (List.ofFn c)))) =66      (fun U : Pair N =>67        (((FreeGroup.lift (pairGenerator (U 0,U 1)) (FreeGroup.mk (List.ofFn c)) :68          LocalUnitary N) : Mat N).trace) / (N+1:ℂ)) := by69    funext U70    rw [pairGenerator_eq]71    simp only [normalizedTrace,Fintype.card_fin,Nat.cast_add,Nat.cast_one]72    rfl73  rw [he,integral_pair_eq_prod (fun U =>74    (((FreeGroup.lift (pairGenerator U) (FreeGroup.mk (List.ofFn c)) :75      LocalUnitary N) : Mat N).trace) / (N+1:ℂ)),integral_div,76    integral_word_trace_eq_sum_pathProduct c hc]77  ring7879/-- The finite alphabet of actual reduced color words of fixed length. -/80def ReducedColors (t : ℕ) :=81  {c : Fin t → Color 2 // ∀ i j : Fin t, i.val+1=j.val → c j ≠ flipColor (c i)}8283instance (t : ℕ) : Fintype (ReducedColors t) := by84  classical85  unfold ReducedColors86  infer_instance8788def reducedWord {t : ℕ} (c : ReducedColors t) : FreeGroup (Fin 2) :=89  FreeGroup.mk (List.ofFn c.val)9091theorem reducedWord_toWord {t : ℕ} (c : ReducedColors t) :92    (reducedWord c).toWord = List.ofFn c.val := by93  let P : Path Unit 2 t := ⟨fun _ => (),c.val,rfl,c.property⟩94  exact FreeGroup.toWord_mk.trans P.colorList_reduced.reduce_eq9596theorem reducedWord_norm {t : ℕ} (c : ReducedColors t) :97    FreeGroup.norm (reducedWord c) = t := by98  change (reducedWord c).toWord.length=t99  rw [reducedWord_toWord,List.length_ofFn]100101theorem reducedWord_injective {t : ℕ} : Function.Injective (@reducedWord t) := by102  intro c c' he103  apply Subtype.ext104  apply List.ofFn_injective105  simpa only [reducedWord_toWord] using congrArg FreeGroup.toWord he106107def colorsOfWord (g : FreeGroup (Fin 2)) : ReducedColors (FreeGroup.norm g) :=108  ⟨fun i => g.toWord[i.val],by109    intro i j hij hbad110    have hred := List.isChain_iff_getElem.mp111      (show FreeGroup.IsReduced g.toWord from FreeGroup.isReduced_toWord)112    have hij' : i.val+1<g.toWord.length := by simpa [←hij] using j.isLt113    have hh := hred i.val hij'114    have hbad' : g.toWord[i.val+1] = flipColor (g.toWord[i.val]) := by115      simpa only [hij] using hbad116    rw [hbad'] at hh117    have hx := hh rfl118    change (g.toWord[i.val]).2 = !(g.toWord[i.val]).2 at hx119    cases hb : (g.toWord[i.val]).2 <;>120      simp only [hb,Bool.not_false,Bool.not_true] at hx <;> contradiction⟩121122@[simp] theorem colorsOfWord_word (g : FreeGroup (Fin 2)) :123    reducedWord (colorsOfWord g) = g := by124  change FreeGroup.mk (List.ofFn (fun i : Fin g.toWord.length => g.toWord[i.val])) = g125  rw [List.ofFn_getElem,FreeGroup.mk_toWord]126127/-- Closed assignments and reduced color words parametrize every literal path. -/128def pathEquiv {V : Type*} (t : ℕ) :129    ReducedColors t × ClosedAssignment V t ≃ Path V 2 t where130  toFun z := assignmentPath z.1.val z.1.property z.2131  invFun P := (⟨P.colors,P.reduced⟩,⟨P.vertex,P.closed⟩)132  left_inv z := rfl133  right_inv P := Path.ext_data rfl rfl134135end Nonadditivity.HaarOperatorPathBridge