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 }
Equations
- Fin.instOfNat = { ofNat := Fin.ofNat' n i }
@[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 ⋯