Exact Lean source
Nonadditivity.HaarPathRelabel
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
Nonadditivity.HaarPathWeights.integral_listMonomial_relabelNonadditivity.HaarPathWeights.integral_signedProduct_eq_of_family_relabelNonadditivity.HaarPathWeights.listMonomial_eq_of_permNonadditivity.HaarPathWeights.listMonomial_relabelNonadditivity.HaarPathWeights.mul_rowPermutation_entryNonadditivity.HaarPathWeights.relabelEntriesNonadditivity.HaarPathWeights.relabelEntries.eq_1internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathWeights78/-! # Invariance of Haar path weights under row and column relabeling910Independent permutations of rows and columns preserve each Haar law. This11is the analytic invariance needed when matching the internal vertices of12chains with the same signed-color profile.13-/14noncomputable section15set_option backward.isDefEq.respectTransparency false16set_option maxHeartbeats 100000017namespace Nonadditivity.HaarPathWeights18open MeasureTheory HaarModel HaarMoments HaarFourthMoments19open scoped BigOperators Matrix Matrix.Norms.L2Operator20variable {N : ℕ}2122@[simp] theorem mul_rowPermutation_entry (e : Equiv.Perm (Fin (N+1)))23(i j : Fin (N+1)) (U : LocalUnitary N) :24((U * rowPermutation e.symm : LocalUnitary N) : Mat N) i j = (U : Mat N) i (e j) := by25change ((U : Mat N) * (e⁻¹).permMatrix ℂ) i j = _26simp only [Equiv.Perm.permMatrix, PEquiv.mul_toMatrix_toPEquiv]27rfl2829def relabelEntries (σ τ : Equiv.Perm (Fin (N+1))) (L : List (Entry N)) : List (Entry N) :=30L.map (fun e => (σ e.1,τ e.2))3132lemma listMonomial_relabel (σ τ : Equiv.Perm (Fin (N+1))) (L R : List (Entry N))33(U : LocalUnitary N) :34listMonomial (relabelEntries σ τ L) (relabelEntries σ τ R) U =35listMonomial L R (rowPermutation σ * U * rowPermutation τ.symm) := by36simp only [listMonomial,entryProduct,relabelEntries,List.map_map,37mul_rowPermutation_entry,rowPermutation_mul_entry]38rfl3940/-- No degree or dimension restriction is needed for row/column invariance. -/41theorem integral_listMonomial_relabel (σ τ : Equiv.Perm (Fin (N+1))) (L R : List (Entry N)) :42(∫ U : LocalUnitary N, listMonomial (relabelEntries σ τ L) (relabelEntries σ τ R) U ∂haar N) =43∫ U : LocalUnitary N, listMonomial L R U ∂haar N := by44simp_rw [listMonomial_relabel]45rw [integral_mul_left_eq_self (μ := haar N)46(fun U => listMonomial L R (U * rowPermutation τ.symm)) (rowPermutation σ)]47exact integral_mul_right_eq_self (μ := haar N) (listMonomial L R) (rowPermutation τ.symm)4849lemma listMonomial_eq_of_perm {L L' R R' : List (Entry N)} (hL : L.Perm L') (hR : R.Perm R')50(U : LocalUnitary N) : listMonomial L R U=listMonomial L' R' U := by51unfold listMonomial entryProduct52rw [(hL.map _).prod_eq, (hR.map _).prod_eq]5354/-- Actual Haar path expectations depend only on the two signed entry55multisets, up to an independent row and column permutation in each family. -/56theorem integral_signedProduct_eq_of_family_relabel (L R : List (SignedEntry N))57(σ τ : Fin 2 → Equiv.Perm (Fin (N+1)))58(h : ∀ a : Fin 2, ∀ b : Bool,59(selected (a,b) R).Perm (relabelEntries (σ a) (τ a) (selected (a,b) L))) :60(∫ U : LocalUnitary N × LocalUnitary N, signedProduct R U ∂(haar N).prod (haar N)) =61∫ U : LocalUnitary N × LocalUnitary N, signedProduct L U ∂(haar N).prod (haar N) := by62simp_rw [signedProduct_eq]63rw [integral_prod_mul,integral_prod_mul]64congr 165· simp_rw [listMonomial_eq_of_perm (h 0 true) (h 0 false)]66exact integral_listMonomial_relabel _ _ _ _67· simp_rw [listMonomial_eq_of_perm (h 1 true) (h 1 false)]68exact integral_listMonomial_relabel _ _ _ _6970end Nonadditivity.HaarPathWeights