AFTD Auto-Formalizing Theoretical Domains

SM.toSpecies_sum_invariant

theoremverifiedformalizationimported Lean

The sum over every charge in any species to some power m is invariant under the group action.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SM in
open Nat in
open Finset in
open SMCharges in
open BigOperators in
variable {n : ℕ} in
lemma SM.toSpecies_sum_invariant (m : ℕ) (f : PermGroup n) (S : (SMCharges n).Charges) (j : Fin 5) :
    ∑ i, ((fun a => a ^ m) ∘ toSpecies j (repCharges f S)) i =
    ∑ i, ((fun a => a ^ m) ∘ toSpecies j S) i
Formalizes
Physlib, `SM.toSpecies_sum_invariant`
Lean proof
By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
10 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 15
Used by 6

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen SM inopen Nat inopen Finset inopen SMCharges inopen BigOperators invariable {n : ℕ} in/-- The sum over every charge in any species to some power `m` is invariant under the group action. -/lemma SM.toSpecies_sum_invariant (m : ℕ) (f : PermGroup n) (S : (SMCharges n).Charges) (j : Fin 5) :    ∑ i, ((fun a => a ^ m) ∘ toSpecies j (repCharges f S)) i =    ∑ i, ((fun a => a ^ m) ∘ toSpecies j S) i := by  rw [repCharges_toSpecies]  exact Equiv.sum_comp (f⁻¹ j) ((fun a => a ^ m) ∘ toSpecies j S)
See it in the graphDiscuss this resultChallenge it