Exact Lean source
Nonadditivity.HaarPathInvolution
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.HaarPathProfilesMathlib.Algebra.BigOperators.Group.Finset.Basicdependency
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
Nonadditivity.HaarPathInvolution.biUnion_pairsNonadditivity.HaarPathInvolution.pair_eq_of_memNonadditivity.HaarPathInvolution.pair_eq_of_mem._simp_1_1internal/detail/privateNonadditivity.HaarPathInvolution.pair_eq_of_mem._simp_1_2internal/detail/privateNonadditivity.HaarPathInvolution.pairsNonadditivity.HaarPathInvolution.pairs_pairwiseDisjointNonadditivity.HaarPathInvolution.twice_card_pairs
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} := by21simp only [Finset.mem_insert,Finset.mem_singleton] at h22rcases h with rfl | rfl23· rfl24· rw [hf]25exact 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 := by30intro s hs t ht hst31obtain ⟨a,_,rfl⟩ := Finset.mem_image.mp hs32obtain ⟨b,_,rfl⟩ := Finset.mem_image.mp ht33apply Finset.disjoint_left.mpr34intro c hc hc'35apply hst36exact (pair_eq_of_mem hf hc).symm.trans (pair_eq_of_mem hf hc')3738theorem biUnion_pairs (f : α → α) : (pairs f).biUnion id = Finset.univ := by39apply Finset.eq_univ_of_forall40intro a41apply Finset.mem_biUnion.mpr42exact ⟨{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 α := by48have h := Finset.card_biUnion (pairs_pairwiseDisjoint hf)49rw [biUnion_pairs,Finset.card_univ] at h50have hc (s : Finset α) (hs : s ∈ pairs f) : s.card=2 := by51obtain ⟨a,_,rfl⟩ := Finset.mem_image.mp hs52simp [Ne.symm (hfree a)]53simp only [id_eq] at h54rw [Finset.sum_congr rfl hc] at h55simpa [mul_comm] using h.symm5657end Nonadditivity.HaarPathInvolution