Remark: land/lor can be defined without using (% n), but we are trying to minimize the number of Nat theorems needed to bootstrap Lean.
Equations
- Fin.instShiftRight = { shiftRight := Fin.shiftRight }
@[inline]
castAdd m i
embeds i : Fin n
in Fin (n+m)
. See also Fin.natAdd
and Fin.addNat
.
Equations
- Fin.castAdd m = Fin.castLE ⋯