AFTD Auto-Formalizing Theoretical Domains

SM.SMNoGrav.One.linearParameters.bijection

defimported Lean

The bijection between the type of linear parameters and (SMNoGrav 1).LinSols.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SMCharges in
open SMACCs in
open BigOperators in
set_option backward.isDefEq.respectTransparency false in
def SM.SMNoGrav.One.linearParameters.bijection : linearParameters ≃ (SMNoGrav 1).LinSols
Defined in
Physlib, `SM.SMNoGrav.One.linearParameters.bijection`
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 48
Used by 3

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SMCharges in
open SMACCs in
open BigOperators in
set_option backward.isDefEq.respectTransparency false in
/-- The bijection between the type of linear parameters and `(SMNoGrav 1).LinSols`. -/
def SM.SMNoGrav.One.linearParameters.bijection : linearParameters ≃ (SMNoGrav 1).LinSols where
  toFun S := S.asLinear
  invFun S := ⟨SMCharges.Q S.val (0 : Fin 1), (SMCharges.U S.val (0 : Fin 1) -
      SMCharges.D S.val (0 : Fin 1))/2,
      SMCharges.E S.val (0 : Fin 1)⟩
  left_inv S := by
    apply linearParameters.ext
    · rfl
    · simp only [Fin.isValue]
      repeat erw [asLinear_val]
      simp only [Fin.isValue, toSpecies_apply]
      repeat erw [speciesVal]
      simp only [asCharges, neg_add_rev]
      ring
    · rfl
  right_inv S := by
    simp only [Fin.isValue, toSpecies_apply_eq]
    apply ACCSystemLinear.LinSols.ext
    rw [charges_eq_toSpecies_eq]
    intro i
    rw [asLinear_val]
    funext j
    have hj : j = (0 : Fin 1) := by
      match j with
      | ⟨0, _⟩ => rfl
    subst hj
    rw [toSpecies_apply_asCharges]
    have h1 := SU3Sol S
    simp only [accSU3, toSpecies_apply_eq, Fin.isValue, sum_SMSpecies_numberCharges_one,
      LinearMap.coe_mk, AddHom.coe_mk] at h1
    have h2 := SU2Sol S
    simp only [accSU2,
      Fin.isValue, toSpecies_apply_eq, sum_SMSpecies_numberCharges_one,
      LinearMap.coe_mk, AddHom.coe_mk] at h2
    match i with
    | 0 => rfl
    | 1 =>
      simp only [asCharges, Fin.isValue, toSpecies_apply_eq]
      field_simp
      linear_combination (norm := ring_nf) -(1 * h1)
      simp only [Fin.isValue, Fin.zero_eta, toSpeciesEquiv_apply, Nat.reduceMul]
      ring
    | 2 =>
      simp only [asCharges, Fin.isValue, neg_add_rev, toSpecies_apply_eq]
      field_simp
      linear_combination (norm := ring_nf) -(1 * h1)
      simp only [Fin.isValue, Fin.zero_eta, toSpeciesEquiv_apply, Nat.reduceMul]
      ring
    | 3 =>
      simp only [asCharges, Fin.isValue, neg_mul, toSpecies_apply_eq]
      field_simp
      linear_combination (norm := ring_nf) -(1 * h2)
      simp only [Fin.isValue, Fin.zero_eta, toSpeciesEquiv_apply, Nat.reduceMul]
      ring
    | 4 => rfl
See it in the graphDiscuss this resultChallenge it