Exact Lean source
Nonadditivity.HaarWeingartenGram
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
9 project constants, including generated, internal and private declarations.
9 declarations
Nonadditivity.HaarInvariantTensor.gram.eq_1internal/detail/privateNonadditivity.HaarInvariantTensor.gram_apply_cardNonadditivity.HaarInvariantTensor.gram_apply_card._simp_1_1internal/detail/privateNonadditivity.HaarInvariantTensor.gram_apply_nonnegNonadditivity.HaarInvariantTensor.gram_apply_selfNonadditivity.HaarInvariantTensor.gram_apply_sumNonadditivity.HaarInvariantTensor.gram_apply_sum._simp_1_2internal/detail/privateNonadditivity.HaarInvariantTensor.gram_card_le_of_neNonadditivity.HaarInvariantTensor.norm_gram_apply_le_of_ne
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarInvariantTensor78/-! # Exact combinatorics of the permutation Gram matrix910These are finite counting identities for the actual invariant tensors.11-/1213noncomputable section14set_option backward.isDefEq.respectTransparency false15set_option maxHeartbeats 10000001617namespace Nonadditivity.HaarInvariantTensor1819open scoped BigOperators Matrix Matrix.Norms.L2Operator ComplexOrder2021theorem gram_apply_sum (N p : ℕ) (σ τ : Perm p) :22gram N p σ τ = ∑ y : Tuple N p, if y ∘ σ = y ∘ τ then 1 else 0 := by23classical24simp only [gram, Matrix.mul_apply, Matrix.conjTranspose_apply, contractions,25Fintype.sum_prod_type]26rw [Finset.sum_comm]27simp [eq_comm]2829/-- A Gram coefficient counts the tuples constant on the relative permutation. -/30theorem gram_apply_card (N p : ℕ) (σ τ : Perm p) :31gram N p σ τ = (Fintype.card {y : Tuple N p // y ∘ σ = y ∘ τ} : ℂ) := by32classical33rw [gram_apply_sum]34simp [Fintype.card_subtype, ← Finset.sum_boole]3536theorem gram_apply_self (N p : ℕ) (σ : Perm p) :37gram N p σ σ = (N+1:ℂ)^p := by38rw [gram_apply_sum]39simp [Tuple]4041theorem gram_apply_nonneg (N p : ℕ) (σ τ : Perm p) : 0 ≤ gram N p σ τ := by42rw [gram_apply_card]43exact_mod_cast (Nat.zero_le _)4445/-- A nonidentity relative permutation identifies at least one pair of coordinates. -/46theorem gram_card_le_of_ne (N p : ℕ) (σ τ : Perm p) (hστ : σ ≠ τ) :47Fintype.card {y : Tuple N p // y ∘ σ = y ∘ τ} ≤ (N+1)^(p-1) := by48classical49have hf : (σ : Fin p → Fin p) ≠ τ := fun h => hστ (Equiv.ext (congrFun h))50obtain ⟨r, hr⟩ := Function.ne_iff.mp hf51let a := σ r52let b := τ r53have hab : b ≠ a := Ne.symm hr54let restrict : {y : Tuple N p // y ∘ σ = y ∘ τ} → ({s : Fin p // s ≠ a} → Fin (N+1)) :=55fun y s => y.1 s56have hinj : Function.Injective restrict := by57intro y z hyz58apply Subtype.ext59funext s60by_cases hs : s=a61· subst s62have hy : y.1 a = y.1 b := congrFun y.2 r63have hz : z.1 a = z.1 b := congrFun z.2 r64exact hy.trans ((congrFun hyz ⟨b,hab⟩).trans hz.symm)65· exact congrFun hyz ⟨s,hs⟩66have hcard : Fintype.card {s : Fin p // s ≠ a} = p-1 := by67simp [Fintype.card_subtype_compl]68simpa [Fintype.card_fun, hcard] using Fintype.card_le_of_injective restrict hinj6970theorem norm_gram_apply_le_of_ne (N p : ℕ) (σ τ : Perm p) (hστ : σ ≠ τ) :71‖gram N p σ τ‖ ≤ (N+1:ℝ)^(p-1) := by72rw [gram_apply_card]73norm_num only [Complex.norm_natCast]74exact_mod_cast gram_card_le_of_ne N p σ τ hστ7576end Nonadditivity.HaarInvariantTensor