Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarRefinedCoefficientBound

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

Catalog entries: Corrected marked-position and middle-run accounting

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

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

3 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarRefinedCoefficientFibre7import Nonadditivity.HaarProfileSingletonWeight8import Nonadditivity.HaarActualScanWords9import Nonadditivity.HaarDecodedCoefficientBound1011/-! # The actual refined-class coefficient bound1213The bound is proved for the literal finite refined class. All profile variables,14operator factors, duration compositions, and graph counts are instantiated from15the actual path; no factorization, fibre, or local norm hypothesis is assumed.16-/17noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option maxHeartbeats 150000020namespace Nonadditivity.HaarOperatorPathBridge21open scoped BigOperators22open HaarPathGraph HaarPathClasses HaarPathProfiles HaarProfileCoefficient23  HaarOperatorPolynomial NoncommutativeCS HaarPaletteDecoder HaarSkeletonSegmentation24  HaarProfileAssignmentBound HaarProfilePadding25variable {E : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]26variable {V : Type*} [Fintype V] [DecidableEq V] {m : ℕ}2728/-- The prescribed BC coefficient budget for the actual refined path class. -/29theorem coefficient_bound30    (A : Polynomial (FreeGroup (Fin 2)) E)31    (hA : ∀ g ∈ A.support, g.toWord.length ≤ 1)32    (p : ℕ) (hp : 1 ≤ p) (P : Path V 2 m) (hm : 0 < m) :33    ‖refinedCoefficientSum A p P‖ ≤34      (Fintype.card V : ℝ)^P.vertices.card *35        (2:ℝ)^(HaarPathMultiplicity.singletonEdges P.edgeList).card *36        (p:ℝ)^(9*P.defectTwice+11) * ‖regular A‖^p := by37  classical38  obtain ⟨cs,hcs⟩ := P.exists_traversal_chain_decomposition hm39  have hcover : ∀ e : P.unorientedChains, e ∈ (cs.map P.chainLabel).reverse := by40    intro e41    obtain ⟨c,hc,he⟩ := P.chainLabels_cover cs hcs e42    exact List.mem_reverse.mpr (List.mem_map.mpr ⟨c,hc,he⟩)43  obtain ⟨R,hw,hR,hn,hc,hexp⟩ := EndpointSkeleton.exists_closed_compiler44    (cs.map P.chainLabel).reverse hcover45  have hcsne : cs≠[] := by46    intro he47    have hh := congrArg List.length hcs48    simp only [he,List.map_nil,List.flatten_nil,List.length_nil,49      Path.traversalList,List.length_ofFn] at hh50    omega51  have hword : R.word≠[] := by52    rw [hw]53    intro he54    have hl := congrArg List.length he55    simp only [List.length_reverse,List.length_map,List.length_nil] at hl56    exact hcsne (List.length_eq_zero_iff.mp hl)57  have hblocks : 1 ≤ R.markedFlags.length := by58    by_contra h59    have he : R.blocks=[] := List.length_eq_zero_iff.mp (by rw [R.length_blocks]; omega)60    exact hword (by rw [←R.flatten_blocks,he]; rfl)61  let size : P.unorientedChains → ℕ := fun e => (P.representative e).val.length62  let profile : P.unorientedChains → Profile (Color 2) :=63    fun e => (P.coreChainProfile (P.representative e)).val64  let hsize : ∀ e, size e≤m := fun e => P.coreChain_length_le (P.representative e)65  let directions := blockDirections P (R.occurrenceBlocks cs.reverse)66  let target : P.ChainPalette → FreeGroup (Fin 2) :=67    fun σ => FreeGroup.mk (List.ofFn (P.paletteColoring σ).path.colors)68  have hdecode : ∀ (σ : P.ChainPalette) k i,69      decode directions k [i] [embedAssignment size profile hsize σ i]=70        orientedWord (forward directions k i) (σ i) :=71    fun σ k i => decode_embedAssignment directions size profile hsize σ k i72  have htarget : ∀ σ : P.ChainPalette,73      (scanWords R (decode directions) (embedAssignment size profile hsize σ)).reverse.prod=target σ := by74    intro σ75    exact (HaarActualScanWords.actualScanWords_spec P cs R hcs hR hw σ).176  have hne : ∀ (σ : P.ChainPalette) g,77      g∈(scanWords R (decode directions) (embedAssignment size profile hsize σ)).reverse → g≠1 := by78    intro σ79    exact (HaarActualScanWords.actualScanWords_spec P cs R hcs hR hw σ).2.180  have hred : ∀ σ : P.ChainPalette,81      FreeGroup.IsReduced82        ((scanWords R (decode directions) (embedAssignment size profile hsize σ)).reverse.flatMap FreeGroup.toWord) := by83    intro σ84    exact (HaarActualScanWords.actualScanWords_spec P cs R hcs hR hw σ).2.285  have hpal := HaarDecodedCoefficientBound.decoded_coefficient_sum_norm_le R hR hn hc hblocks86    A hA size profile hsize (forward directions) (decode directions) hdecode p hp target htarget hne hred87  rw [R.singletonWeight_chain_labels_reverse P cs hcs hn hw] at hpal88  have hpow : (p:ℝ)^(6*Fintype.card P.unorientedChains-1) ≤ (p:ℝ)^(9*P.defectTwice+11) :=89    pow_le_pow_right₀ (by exact_mod_cast hp) (EndpointSkeleton.coefficient_exponent_chain_le P)90  calc91    _ ≤ (Fintype.card V : ℝ)^P.vertices.card *92        ‖∑ σ : P.ChainPalette, (A^p) (target σ)‖ :=93      norm_refinedCoefficientSum_le_palette A p P hm94    _ ≤ (Fintype.card V : ℝ)^P.vertices.card *95        ((2:ℝ)^(HaarPathMultiplicity.singletonEdges P.edgeList).card *96          (p:ℝ)^(6*Fintype.card P.unorientedChains-1) * ‖regular A‖^p) :=97      mul_le_mul_of_nonneg_left hpal (by positivity)98    _ ≤ (Fintype.card V : ℝ)^P.vertices.card *99        ((2:ℝ)^(HaarPathMultiplicity.singletonEdges P.edgeList).card *100          (p:ℝ)^(9*P.defectTwice+11) * ‖regular A‖^p) := by101      apply mul_le_mul_of_nonneg_left _ (by positivity)102      apply mul_le_mul_of_nonneg_right _ (by positivity)103      exact mul_le_mul_of_nonneg_left hpow (by positivity)104    _ = _ := by ring105106end Nonadditivity.HaarOperatorPathBridge