Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarNonbacktrackingFirstStep

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

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.HaarNonbacktrackingSupport78/-! # The first step of a non-returning free-group path -/910noncomputable section11set_option backward.isDefEq.respectTransparency false1213namespace Nonadditivity.HaarNonbacktracking1415open scoped BigOperators1617section Ring18variable {G R : Type*} [Group G] [DecidableEq G] [Ring R]1920omit [DecidableEq G] in21@[simp] theorem killedPolynomial_zero (A : MonoidAlgebra R G) (n : ℕ) :22    killedPolynomial A 0 n = 0 := by23  induction n with24  | zero => rfl25  | succ n ih => simp [killedPolynomial, ih]2627omit [DecidableEq G] in28theorem killedPolynomial_add (A T U : MonoidAlgebra R G) (n : ℕ) :29    killedPolynomial A (T + U) n = killedPolynomial A T n + killedPolynomial A U n := by30  induction n with31  | zero => rfl32  | succ n ih =>33      change removeConstant (A * killedPolynomial A (T + U) n) = _34      rw [ih, mul_add, removeConstant_add]35      rfl3637omit [DecidableEq G] in38theorem killedPolynomial_sum {I : Type*} (A : MonoidAlgebra R G) (s : Finset I)39    (T : I → MonoidAlgebra R G) (n : ℕ) :40    killedPolynomial A (∑ i ∈ s, T i) n = ∑ i ∈ s, killedPolynomial A (T i) n := by41  classical42  induction s using Finset.induction_on with43  | empty => simp44  | insert i s hi ih => simp [hi, killedPolynomial_add, ih]4546/-- Expand a killed polynomial in its literal initial coefficients. -/47theorem killedPolynomial_sum_source (A T : MonoidAlgebra R G) (n : ℕ) :48    killedPolynomial A T n = ∑ u ∈ T.support,49      killedPolynomial A (MonoidAlgebra.single u (T u)) n := by50  calc51    _ = killedPolynomial A (∑ u ∈ T.support, MonoidAlgebra.single u (T u)) n := by52      congr 153      exact T.sum_single.symm54    _ = _ := killedPolynomial_sum _ _ _ _5556omit [DecidableEq G] in57/-- Move the first killed step into the initial condition. -/58theorem killedPolynomial_shift (A T : MonoidAlgebra R G) (n : ℕ) :59    killedPolynomial A T (n + 1) = killedPolynomial A (removeConstant (A * T)) n := by60  induction n with61  | zero => rfl62  | succ n ih =>63      change removeConstant (A * killedPolynomial A T (n + 1)) =64        removeConstant (A * killedPolynomial A (removeConstant (A * T)) n)65      rw [ih]6667theorem removeConstant_apply (A : MonoidAlgebra R G) (g : G) :68    removeConstant A g = A g - if 1 = g then A 1 else 0 := by69  change A g - (MonoidAlgebra.single 1 (A 1)) g = _70  rw [MonoidAlgebra.single_apply]7172theorem removeConstant_support (A : MonoidAlgebra R G) :73    (removeConstant A).support = A.support.erase 1 := by74  ext g75  by_cases hg : g = 176  · subst g77    simp [Finsupp.mem_support_iff, removeConstant_apply]78  · simp [Finsupp.mem_support_iff, removeConstant_apply, hg, Ne.symm hg]7980end Ring8182variable {α R : Type*} [DecidableEq α] [Ring R]8384/-- At a specified terminal letter, only the matching initial generator can85contribute to a path that never returns to the identity. -/86theorem killedPolynomial_first_step87    (A : MonoidAlgebra R (FreeGroup α))88    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)89    (s : FreeCreation.Letter α) (g : FreeGroup α)90    (hg : g.toWord.getLast? = some s) (n : ℕ) :91    killedPolynomial A 1 (n + 1) g =92      killedPolynomial A93        (MonoidAlgebra.single (FreeCreation.letter s) (A (FreeCreation.letter s))) n g := by94  have hs1 : FreeCreation.letter s ≠ 1 := by95    intro hs96    have := congrArg FreeGroup.toWord hs97    simp at this98  rw [killedPolynomial_shift, mul_one, killedPolynomial_sum_source]99  change coefficientAddHom g (∑ u ∈ (removeConstant A).support,100    killedPolynomial A (MonoidAlgebra.single u (removeConstant A u)) n) = _101  rw [map_sum]102  simp only [coefficientAddHom_apply]103  have hscoef : A (FreeCreation.letter s) = removeConstant A (FreeCreation.letter s) := by104    simp [removeConstant_apply, Ne.symm hs1]105  rw [hscoef]106  apply Finset.sum_eq_single (FreeCreation.letter s)107  · intro u hu hus108    rw [removeConstant_support, Finset.mem_erase] at hu109    apply killedPolynomial_eq_zero_of_last_ne A hA u hu.1 _ n g110    right111    intro heq112    have hulast : u.toWord.getLast? = some s := heq.symm.trans hg113    have huword : u.toWord = [s] := by114      have hlen := hA u hu.2115      cases hword : u.toWord with116      | nil => simp [hword] at hulast117      | cons t w =>118          have hw : w = [] := by simpa [hword] using hlen119          subst w120          have ht : t = s := by simpa [hword] using hulast121          simp [ht]122    apply hus123    apply FreeGroup.toWord_injective124    simpa using huword125  · intro hs126    have hnot : FreeCreation.letter s ∉ A.support := by127      simpa [removeConstant_support, hs1] using hs128    have hz : A (FreeCreation.letter s) = 0 := Finsupp.notMem_support_iff.mp hnot129    rw [← hscoef, hz]130    simp131132end Nonadditivity.HaarNonbacktracking