Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarNonbacktrackingSupport

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

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.HaarNonbacktrackingLastReturn7import Nonadditivity.FreeGroupCut89/-! # Non-returning paths stay in one component of the free Cayley tree -/1011noncomputable section12set_option backward.isDefEq.respectTransparency false1314namespace Nonadditivity.HaarNonbacktracking1516open scoped BigOperators1718variable {α R : Type*} [DecidableEq α] [Ring R]1920/-- A nearest-neighbor polynomial, with the constant coordinate removed at21every step, cannot move a supported word across the identity. -/22theorem killedPolynomial_eq_zero_of_last_ne23    (A : MonoidAlgebra R (FreeGroup α))24    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)25    (u : FreeGroup α) (hu : u ≠ 1) (B : R) (n : ℕ) (g : FreeGroup α)26    (hg : g = 1 ∨ g.toWord.getLast? ≠ u.toWord.getLast?) :27    killedPolynomial A (MonoidAlgebra.single u B) n g = 0 := by28  induction n generalizing g with29  | zero =>30      have hgu : u ≠ g := by31        intro heq32        subst g33        rcases hg with hg | hg34        · exact hu hg35        · exact hg rfl36      simp [killedPolynomial, hgu]37  | succ n ih =>38      by_cases hg1 : g = 139      · subst g40        change (A * killedPolynomial A (MonoidAlgebra.single u B) n) 1 -41          (MonoidAlgebra.single 1 ((A * killedPolynomial A (MonoidAlgebra.single u B) n) 1)) 1 = 042        simp43      · have hglast := hg.resolve_left hg144        change (A * killedPolynomial A (MonoidAlgebra.single u B) n) g -45          (MonoidAlgebra.single 146            ((A * killedPolynomial A (MonoidAlgebra.single u B) n) 1)) g = 047        rw [MonoidAlgebra.single_apply, if_neg (Ne.symm hg1), sub_zero,48          MonoidAlgebra.mul_apply_left]49        apply Finset.sum_eq_zero50        intro a ha51        have hzero : killedPolynomial A (MonoidAlgebra.single u B) n (a⁻¹ * g) = 0 := by52          apply ih53          by_cases hpre : a⁻¹ * g = 154          · exact Or.inl hpre55          · right56            intro heq57            apply hglast58            have hstep := FreeGroupCut.getLast?_mul_of_length_le_one a (a⁻¹ * g)59              (hA a ha) hpre (by simpa using hg1)60            simpa using hstep.trans heq61        dsimp only62        rw [hzero, mul_zero]6364/-- A reduced concatenation has no non-returning contribution from the far65side of its separating identity vertex. -/66theorem killedPolynomial_eq_zero_of_reduced_append67    (A : MonoidAlgebra R (FreeGroup α))68    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)69    (g h : FreeGroup α) (hh : h ≠ 1)70    (hred : FreeGroup.IsReduced (g.toWord ++ h.toWord)) (B : R) (n : ℕ) :71    killedPolynomial A (MonoidAlgebra.single h⁻¹ B) n g = 0 := by72  apply killedPolynomial_eq_zero_of_last_ne A hA h⁻¹ (inv_ne_one.mpr hh) B n g73  exact Or.inr (FreeGroupCut.getLast?_ne_inv_of_reduced_append g h hh hred)7475/-- The exact coefficient factorization for a reduced concatenation, with76the Cayley-tree separation fully proved from the linear support condition. -/77theorem coefficient_factorization_of_reduced_append78    (A : MonoidAlgebra R (FreeGroup α))79    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)80    (n : ℕ) (g h : FreeGroup α) (hh : h ≠ 1)81    (hred : FreeGroup.IsReduced (g.toWord ++ h.toWord)) :82    (A ^ n) (g * h) = ∑ k ∈ Finset.range n,83      killedPolynomial A 1 k g * (A ^ (n - k)) h := by84  exact coefficient_factorization_at_cut A n g h85    (killedPolynomial_eq_zero_of_reduced_append A hA g h hh hred 1 n)8687end Nonadditivity.HaarNonbacktracking