AFTD Auto-Formalizing Theoretical Domains

SM.chargesMapOfSpeciesMap

defimported Lean

Given a map of for a generic species, the corresponding map for charges.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SMCharges in
open BigOperators in
set_option backward.isDefEq.respectTransparency false in
@[simps!]
def SM.chargesMapOfSpeciesMap {n m : ℕ} (f : (SMSpecies n).Charges →ₗ[ℚ] (SMSpecies m).Charges) :
    (SMCharges n).Charges →ₗ[ℚ] (SMCharges m).Charges
Defined in
Physlib, `SM.chargesMapOfSpeciesMap`
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
none listed
Built on 15
Used by 2
  • SM.familyProjectionThe projection of the m-family charges onto the first n-family charges.
  • SM.familyUniversalThe embedding of the 1-family charges into the n-family charges in a universal manner.

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SMCharges in
open BigOperators in
set_option backward.isDefEq.respectTransparency false in
/-- Given a map of for a generic species, the corresponding map for charges. -/
@[simps!]
def SM.chargesMapOfSpeciesMap {n m : ℕ} (f : (SMSpecies n).Charges →ₗ[ℚ] (SMSpecies m).Charges) :
    (SMCharges n).Charges →ₗ[ℚ] (SMCharges m).Charges where
  toFun S := toSpeciesEquiv.symm (fun i => (LinearMap.comp f (toSpecies i)) S)
  map_add' S T := by
    rw [charges_eq_toSpecies_eq]
    intro i
    rw [map_add]
    rw [toSMSpecies_toSpecies_inv, toSMSpecies_toSpecies_inv, toSMSpecies_toSpecies_inv]
    rw [map_add]
  map_smul' a S := by
    rw [charges_eq_toSpecies_eq]
    intro i
    rw [map_smul]
    rw [toSMSpecies_toSpecies_inv, toSMSpecies_toSpecies_inv]
    rw [map_smul]
    rfl
See it in the graphDiscuss this resultChallenge it