Very basic algebraic operations on pi types #
This file provides very basic algebraic operations on functions.
The function supported at i, with value x there, and 1 elsewhere.
Equations
- Pi.mulSingle i x = Function.update 1 i x
Instances For
The function supported at i, with value x there, and 0 elsewhere.
Equations
- Pi.single i x = Function.update 0 i x
Instances For
Abbreviation for mulSingle_eq_of_ne h.symm, for ease of use by simp.
Abbreviation for single_eq_of_ne h.symm, for ease of use by simp.
A congruence lemma for Pi.mulSingle, specialized for the non-dependent case. Without this,
simp can't rewrite in the first and third argument (i and j) because of dependence.
See also https://github.com/leanprover/lean4/issues/12478.
A congruence lemma for Pi.single, specialized for the non-dependent case. Without this,
simp can't rewrite in the first and third argument (i and j) because of dependence.
See also https://github.com/leanprover/lean4/issues/12478.
On non-dependent functions, Pi.mulSingle can be expressed as an ite
On non-dependent functions, Pi.mulSingle is symmetric in the two indices.
On non-dependent functions, Pi.single is symmetric in the two indices.