@[extern lean_nat_shiftr]
Equations
- x✝.shiftRight 0 = x✝
- x✝.shiftRight m.succ = x✝.shiftRight m / 2
Instances For
Equations
- Nat.instShiftLeft = { shiftLeft := Nat.shiftLeft }
Equations
- Nat.instShiftRight = { shiftRight := Nat.shiftRight }
testBit #
We define an operation for testing individual bits in the binary representation of a number.