AFTD Auto-Formalizing Theoretical Domains

KroneckerDelta.generalizedKroneckerDelta_swap

theoremverifiedformalizationimported Lean

Swapping two of the upper indices of the generalized Kronecker delta negates it. This is one row transposition of the underlying determinant.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open KroneckerDelta in
variable {α M : Type*} [DecidableEq α] in
open Matrix in
lemma KroneckerDelta.generalizedKroneckerDelta_swap {α ι : Type} [DecidableEq α] [DecidableEq ι] [Fintype ι]
    (μ ν : ι → α) {i j : ι} (hij : i ≠ j) :
    generalizedKroneckerDelta (μ ∘ Equiv.swap i j) ν = - generalizedKroneckerDelta μ ν
Formalizes
Physlib, `KroneckerDelta.generalizedKroneckerDelta_swap`
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
Used by 1
  • leviCivitaSymbol_comp_swapThe Levi-Civita symbol is antisymmetric under transposition of two of its indices: precomposing with the swap of two distinct index…

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen KroneckerDelta invariable {α M : Type*} [DecidableEq α] inopen Matrix in/-- Swapping two of the upper indices of the generalized Kronecker delta negates it. This is one row transposition of the underlying determinant. -/lemma KroneckerDelta.generalizedKroneckerDelta_swap {α ι : Type} [DecidableEq α] [DecidableEq ι] [Fintype ι]    (μ ν : ι → α) {i j : ι} (hij : i ≠ j) :    generalizedKroneckerDelta (μ ∘ Equiv.swap i j) ν = - generalizedKroneckerDelta μ ν := by  show (Matrix.submatrix (Matrix.of fun a b => ((kroneckerDelta (μ a) (ν b) : ℕ) : ℤ))      (Equiv.swap i j) id).det    = -(Matrix.of fun a b => ((kroneckerDelta (μ a) (ν b) : ℕ) : ℤ)).det  rw [Matrix.det_permute, Equiv.Perm.sign_swap hij]  simp
See it in the graphDiscuss this resultChallenge it