AFTD Auto-Formalizing Theoretical Domains

SMACCs.accQuad_ext

theoremverifiedformalizationimported Lean

Extensionality lemma for accQuad.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SMACCs in
open Nat in
open BigOperators in
open SMCharges in
variable {n : ℕ} in
set_option backward.isDefEq.respectTransparency false in
lemma SMACCs.accQuad_ext {S T : (SMCharges n).Charges}
    (h : ∀ j, ∑ i, ((fun a => a^2) ∘ toSpecies j S) i =
    ∑ i, ((fun a => a^2) ∘ toSpecies j T) i) :
    accQuad S = accQuad T
Formalizes
Physlib, `SMACCs.accQuad_ext`
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 23
Used by 1

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen SMACCs inopen Nat inopen BigOperators inopen SMCharges invariable {n : ℕ} inset_option backward.isDefEq.respectTransparency false in/-- Extensionality lemma for `accQuad`. -/lemma SMACCs.accQuad_ext {S T : (SMCharges n).Charges}    (h : ∀ j, ∑ i, ((fun a => a^2) ∘ toSpecies j S) i =    ∑ i, ((fun a => a^2) ∘ toSpecies j T) i) :    accQuad S = accQuad T := by  simp only [HomogeneousQuadratic, accQuad, BiLinearSymm.toHomogeneousQuad_apply]  simp only [quadBiLin, BiLinearSymm.mk₂_toFun_apply]  repeat rw [Finset.sum_add_distrib]  repeat rw [← Finset.mul_sum]  ring_nf  simp_all
See it in the graphDiscuss this resultChallenge it