Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathInvolution

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

Direct imports

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

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

7 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathProfiles7import Mathlib.Algebra.BigOperators.Group.Finset.Basic89/-! # Exact pairing count for orientation reversal -/10noncomputable section11namespace Nonadditivity.HaarPathInvolution12open scoped BigOperators13variable {α : Type*} [Fintype α] [DecidableEq α]1415/-- The literal unordered pairs generated by an involution. -/16def pairs (f : α → α) : Finset (Finset α) := Finset.univ.image fun a => {a,f a}1718omit [Fintype α] in19lemma pair_eq_of_mem {f : α → α} (hf : Function.Involutive f) {a b : α}20    (h : a ∈ ({b,f b} : Finset α)) : ({a,f a} : Finset α) = {b,f b} := by21  simp only [Finset.mem_insert,Finset.mem_singleton] at h22  rcases h with rfl | rfl23  · rfl24  · rw [hf]25    exact Finset.pair_comm _ _2627/-- Distinct reversal orbits are disjoint. -/28theorem pairs_pairwiseDisjoint {f : α → α} (hf : Function.Involutive f) :29    ((pairs f : Finset (Finset α)) : Set (Finset α)).PairwiseDisjoint id := by30  intro s hs t ht hst31  obtain ⟨a,_,rfl⟩ := Finset.mem_image.mp hs32  obtain ⟨b,_,rfl⟩ := Finset.mem_image.mp ht33  apply Finset.disjoint_left.mpr34  intro c hc hc'35  apply hst36  exact (pair_eq_of_mem hf hc).symm.trans (pair_eq_of_mem hf hc')3738theorem biUnion_pairs (f : α → α) : (pairs f).biUnion id = Finset.univ := by39  apply Finset.eq_univ_of_forall40  intro a41  apply Finset.mem_biUnion.mpr42  exact ⟨{a,f a},Finset.mem_image.mpr ⟨a,Finset.mem_univ _,rfl⟩,by simp⟩4344/-- A fixed-point-free reversal pairs every object with exactly one distinct45opposite orientation; the number of pairs is exactly half the cardinality. -/46theorem twice_card_pairs {f : α → α} (hf : Function.Involutive f)47    (hfree : ∀ a, f a ≠ a) : 2*(pairs f).card = Fintype.card α := by48  have h := Finset.card_biUnion (pairs_pairwiseDisjoint hf)49  rw [biUnion_pairs,Finset.card_univ] at h50  have hc (s : Finset α) (hs : s ∈ pairs f) : s.card=2 := by51    obtain ⟨a,_,rfl⟩ := Finset.mem_image.mp hs52    simp [Ne.symm (hfree a)]53  simp only [id_eq] at h54  rw [Finset.sum_congr rfl hc] at h55  simpa [mul_comm] using h.symm5657end Nonadditivity.HaarPathInvolution