KroneckerDelta.kroneckerDelta
defimported Lean
The Kronecker delta function, ite (i = j) 1 0.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {α M : Type*} [DecidableEq α] in def KroneckerDelta.kroneckerDelta (i j : α) : ℕ
- Defined in
- Physlib, `KroneckerDelta.kroneckerDelta`
- 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.KroneckerDelta.kroneckerDelta← KroneckerDelta.kroneckerDelta (Physlib/Mathematics/KroneckerDelta/Basic.lean:51): verbatim
- Verified
- 09 Oct 2026
- Axioms
- none listed
- Used by 18
- KroneckerDelta.sum_sum_smul_eq_zeroKroneckerDelta.sum_sum_smul_eq_zero
- KroneckerDelta.sum_mulKroneckerDelta.sum_mul
- leviCivitaSymbol_swap_compThe Levi-Civita symbol is antisymmetric under transposition of two index values: postcomposing with the swap of two distinct values…
- KroneckerDelta.generalizedKroneckerDeltaGeneralized Kronecker delta:
δ^{μ₁...μₙ}_{ν₁...νₙ} = det (δ[μᵢ, νⱼ]). This is defined for any finite typeαwith decidable equality. - leviCivitaSymbol_idThe Levi-Civita symbol of the identity, i.e.
ε_{0 1 ⋯ (d-1)}, is1. - KroneckerDelta.symmKroneckerDelta.symm
- KroneckerDelta.generalizedKroneckerDelta_swapSwapping two of the upper indices of the generalized Kronecker delta negates it. This is one row transposition of the underlying…
- KroneckerDelta.generalizedKroneckerDelta_comp_permSimultaneously reindexing the upper and lower slots of a generalized Kronecker delta by the same permutation leaves it unchanged.
- leviCivitaSymbol_eq_zero_of_eqThe Levi-Civita symbol vanishes on a repeated index: if two distinct index positions
i ≠ jcarry the same value, the symbol is zero. - KroneckerDelta.kroneckerDelta_finSumFinEquivThe Kronecker delta is invariant under the component-index equivalence
finSumFinEquiv. - PauliMatrix.trace_pauliMatrix_mul_pauliMatrixPauli matrices are orthogonal with respect to the trace pairing:
tr(σ_μ σ_ν) = 2 δ_μν. - PauliMatrix.pauliMatrix_anticommutatorPauli matrices satisfy
{σᵢ, σⱼ} = 2 δᵢⱼ I. - KroneckerDelta.sum_smulKroneckerDelta.sum_smul
- leviCivitaSymbol_eq_detThe Levi-Civita symbol as the determinant of the matrix of Kronecker deltas
δ[g i, j]. - KroneckerDelta.finset_sum_sum_smul_eq_zeroKroneckerDelta.finset_sum_sum_smul_eq_zero
- generalizedKroneckerDelta_mulThe product of two Levi-Civita-type symbols is a generalized Kronecker delta:
δ^{μ}_{·} · δ^{ν}_{·} = δ^{μ}_{ν}, where each single… - leviCivitaSymbol_permThe Levi-Civita symbol of a permutation
σis the sign ofσ. - KroneckerDelta.finset_sum_smulKroneckerDelta.finset_sum_smul
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {α M : Type*} [DecidableEq α] in /-- The Kronecker delta function, `ite (i = j) 1 0`. -/ def KroneckerDelta.kroneckerDelta (i j : α) : ℕ := if i = j then 1 else 0