AFTD Auto-Formalizing Theoretical Domains

TriLinearSymm.toCubic_add

theoremverifiedformalizationimported Lean

TriLinearSymm.toCubic_add

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open TriLinearSymm in
open BigOperators in
variable {V : Type} [AddCommMonoid V] [Module ℚ V] in
set_option backward.isDefEq.respectTransparency false in
lemma TriLinearSymm.toCubic_add {charges : Type} [AddCommMonoid charges] [Module ℚ charges]
    (τ : TriLinearSymm charges) (S T : charges) :
    τ.toCubic (S + T) = τ.toCubic S +
    τ.toCubic T + 3 * τ S S T + 3 * τ T T S
Formalizes
Physlib, `TriLinearSymm.toCubic_add`
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
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 11
Used by 4

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen TriLinearSymm inopen BigOperators invariable {V : Type} [AddCommMonoid V] [Module ℚ V] inset_option backward.isDefEq.respectTransparency false inlemma TriLinearSymm.toCubic_add {charges : Type} [AddCommMonoid charges] [Module ℚ charges]    (τ : TriLinearSymm charges) (S T : charges) :    τ.toCubic (S + T) = τ.toCubic S +    τ.toCubic T + 3 * τ S S T + 3 * τ T T S := by  simp only [HomogeneousCubic, toCubic_apply]  rw [τ.map_add₁, τ.map_add₂, τ.map_add₂, τ.map_add₃, τ.map_add₃, τ.map_add₃, τ.map_add₃]  rw [τ.swap₂ S T S, τ.swap₁ T S S, τ.swap₂ S T S, τ.swap₂ T S T, τ.swap₁ S T T, τ.swap₂ T S T]  grind
See it in the graphDiscuss this resultChallenge it