AFTD Auto-Formalizing Theoretical Domains

KroneckerDelta.finset_sum_sum_smul_eq_zero

theoremverifiedformalizationimported Lean

KroneckerDelta.finset_sum_sum_smul_eq_zero

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open KroneckerDelta in
variable {α M : Type*} [DecidableEq α] in
open Finset in
variable [AddCommMonoid M] in
lemma KroneckerDelta.finset_sum_sum_smul_eq_zero {s s' : Finset α} {f : α → α → M}
    (hf : ∀ i ∈ s ∩ s', f i i = 0) : ∑ i ∈ s, ∑ j ∈ s', δ[i,j] • f i j = 0
Formalizes
Physlib, `KroneckerDelta.finset_sum_sum_smul_eq_zero`
Lean proof
By Gregory J. Loges, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2026 Gregory J. Loges. 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 2

Lean source view module on GitHub

set_option quotPrecheck falseopen KroneckerDelta@[inherit_doc]local notation "δ[" i "," j "]" => kroneckerDelta i jset_option autoImplicit true inset_option relaxedAutoImplicit true inopen KroneckerDelta invariable {α M : Type*} [DecidableEq α] inopen Finset invariable [AddCommMonoid M] inlemma KroneckerDelta.finset_sum_sum_smul_eq_zero {s s' : Finset α} {f : α → α → M}    (hf : ∀ i ∈ s ∩ s', f i i = 0) : ∑ i ∈ s, ∑ j ∈ s', δ[i,j] • f i j = 0 := by  simp only [finset_sum_smul, Finset.sum_ite_mem]  rw [← sum_coe_sort]  simp [hf]
See it in the graphDiscuss this resultChallenge it