Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.FreeGroupCut

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

Direct imports

  • Mathlib.GroupTheory.FreeGroup.Reduce dependency
  • Mathlib.Data.List.Chain dependency

Imported by project modules

2 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

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

2 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.GroupTheory.FreeGroup.Reduce7import Mathlib.Data.List.Chain89/-! # The identity is a cut vertex in a free Cayley graph -/1011namespace Nonadditivity.FreeGroupCut1213variable {α : Type*} [DecidableEq α]1415/-- A single left step cannot change the final letter without passing through16the identity. This is the elementary tree-separation fact used in last-return17factorizations. -/18theorem getLast?_mul_of_length_le_one (a u : FreeGroup α)19    (ha : a.toWord.length ≤ 1) (hu : u ≠ 1) (hau : a * u ≠ 1) :20    (a * u).toWord.getLast? = u.toWord.getLast? := by21  cases he : a.toWord with22  | nil =>23      have : a = 1 := FreeGroup.toWord_eq_nil_iff.mp he24      simp [this]25  | cons s v =>26      have hv : v = [] := by simpa [he] using ha27      subst v28      cases huword : u.toWord with29      | nil => exact (hu (FreeGroup.toWord_eq_nil_iff.mp huword)).elim30      | cons t v =>31          have hred : FreeGroup.reduce (t :: v) = t :: v := by32            simpa [huword] using FreeGroup.reduce_toWord u33          rw [FreeGroup.toWord_mul, he, huword, List.singleton_append, FreeGroup.reduce.cons,34            hred]35          dsimp only36          split_ifs with hcancel37          · cases v with38            | nil =>39                exfalso40                apply hau41                apply FreeGroup.toWord_eq_nil_iff.mp42                rw [FreeGroup.toWord_mul, he, huword, List.singleton_append,43                  FreeGroup.reduce.cons, hred]44                simp [hcancel]45            | cons v vs => simp46          · simp4748/-- The two sides of a reduced concatenation lie in distinct components of49the Cayley graph with the identity removed. -/50theorem getLast?_ne_inv_of_reduced_append (g h : FreeGroup α)51    (hh : h ≠ 1) (hred : FreeGroup.IsReduced (g.toWord ++ h.toWord)) :52    g.toWord.getLast? ≠ h⁻¹.toWord.getLast? := by53  cases hword : h.toWord with54  | nil => exact (hh (FreeGroup.toWord_eq_nil_iff.mp hword)).elim55  | cons s w =>56      have hlast : h⁻¹.toWord.getLast? = some (s.1, !s.2) := by57        simp [FreeGroup.toWord_inv, hword, FreeGroup.invRev]58      intro heq59      have hb := (List.isChain_append.mp hred).2.2 (s.1, !s.2)60        (by rw [heq, hlast]; rfl) s (by simp [hword]) rfl61      cases s.2 <;> simp at hb6263end Nonadditivity.FreeGroupCut