Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathRunCounterexample

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

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

Direct imports

Imported by project modules

1 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

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

9 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathRuns7import Nonadditivity.HaarPathChainCount89/-! # A concrete obstruction to the uncorrected BC middle-block count1011The two-generator reduced word `aaabABAA` is balanced in each generator.12Taking every graph vertex equal produces the nonzero Haar entry monomial13`|U_a(x,x)|^6 |U_b(x,x)|^2`. It has two loop edges, but seven blocks after14isolating first and last visits. The corrected factor count is in HaarPathRuns.15-/16noncomputable section17namespace Nonadditivity.HaarPathRunCounterexample18open HaarPathGraph HaarPathProfiles HaarPathRuns1920/-- The literal reduced closed path at one graph vertex. -/21def path : Path Unit 2 8 where22  vertex := fun _ => ()23  colors := ![(0,true),(0,true),(0,true),(1,true),(0,false),(1,false),(0,false),(0,false)]24  closed := rfl25  reduced := by decide2627def labels (i : Fin 8) : Fin 2 := (path.colors i).12829/-- All four signed-generator occurrence counts match the balanced Haar pattern. -/30theorem balanced_counts :31    (List.ofFn path.colors).count (0,true)=3 ∧32    (List.ofFn path.colors).count (0,false)=3 ∧33    (List.ofFn path.colors).count (1,true)=1 ∧34    (List.ofFn path.colors).count (1,false)=1 := by decide3536theorem marker_flags : endpointFlags labels =37    [true,false,false,true,false,true,false,true] := by decide3839theorem core_budget : path.coreEdgeBudget=2 := by decide4041/-- The claimed `r≤3*e_hat` fails for an actual reduced two-generator path.42The replacement exponent theorem remains valid for this example. -/43theorem violates_uncorrected_run_bound :44    3*path.unorientedChains.card < blockCount (endpointFlags labels) := by45  have hc := path.card_unorientedChains_le_budget46  rw [core_budget] at hc47  rw [marker_flags]48  have hr := two_edge_run_counterexample.149  omega5051end Nonadditivity.HaarPathRunCounterexample