Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.FiniteRegularMatrix

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

Direct imports

  • Mathlib.LinearAlgebra.Matrix.Permutation dependency
  • Mathlib.GroupTheory.GroupAction.Basic 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

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

15 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.LinearAlgebra.Matrix.Permutation7import Mathlib.GroupTheory.GroupAction.Basic89/-! The actual finite regular representation, including its exact normalized trace. -/10noncomputable section11set_option backward.isDefEq.respectTransparency false12namespace Nonadditivity.FiniteRegularMatrix13open scoped Matrix14variable (H : Type*) [Group H] [Fintype H] [DecidableEq H]1516/-- Left translation on the basis of the finite group algebra. -/17def regularHom : H →* Matrix H H ℂ :=18  (Matrix.permMatrixHom : Equiv.Perm H →* Matrix H H ℂ).comp (MulAction.toPermHom H H)1920theorem regularHom_conjTranspose (g : H) :21    (regularHom H g).conjTranspose = regularHom H g⁻¹ := by22  change ((((MulAction.toPermHom H H) g)⁻¹).permMatrix ℂ).conjTranspose =23    (((MulAction.toPermHom H H) g⁻¹)⁻¹).permMatrix ℂ24  rw [Matrix.conjTranspose_permMatrix,map_inv]2526def regularUnitaryHom : H →* unitary (Matrix H H ℂ) where27  toFun g := ⟨regularHom H g, by28    apply Unitary.mem_iff.mpr29    simp only [Matrix.star_eq_conjTranspose,regularHom_conjTranspose,←map_mul,30      inv_mul_cancel,mul_inv_cancel,map_one,and_self]⟩31  map_one' := Subtype.ext (map_one (regularHom H))32  map_mul' g h := Subtype.ext (map_mul (regularHom H) g h)3334/-- Alias with the concise representation name. -/35abbrev regularUnitary := regularUnitaryHom H3637@[simp] theorem coe_regularUnitaryHom (g : H) :38    (regularUnitaryHom H g : Matrix H H ℂ) = regularHom H g := rfl3940/-- A nonidentity group element fixes no basis vector in the regular action. -/41theorem regularHom_trace (g : H) :42    (regularHom H g).trace = (Fintype.card H : ℂ) * (if g=1 then 1 else 0) := by43  classical44  by_cases hg : g=145  · subst g46    simp47  · change ((((MulAction.toPermHom H H) g)⁻¹).permMatrix ℂ).trace = _48    rw [←map_inv (MulAction.toPermHom H H),Matrix.trace_permutation]49    have hfix : Function.fixedPoints ((MulAction.toPermHom H H) g⁻¹) = ∅ := by50      ext x51      simp only [Function.mem_fixedPoints,Set.mem_empty_iff_false,iff_false]52      intro hx53      change g⁻¹*x=x at hx54      have hi : g⁻¹=1 := mul_right_cancel (hx.trans (one_mul x).symm)55      exact hg (inv_eq_one.mp hi)56    rw [hfix]57    simp [hg]5859@[simp] theorem regularUnitaryHom_trace (g : H) :60    (regularUnitaryHom H g : Matrix H H ℂ).trace =61      (Fintype.card H : ℂ) * (if g=1 then 1 else 0) := regularHom_trace H g6263end Nonadditivity.FiniteRegularMatrix