Floor Function for Rational Numbers #
Summary #
We define the floor
function and the floor_ring
instance on ℚ
. Some technical lemmas relating
floor
to integer division and modulo arithmetic are derived as well as some simple inequalities.
Tags #
rat, rationals, ℚ, floor
@[protected, instance]
Equations
- rat.floor_ring = floor_ring.of_floor ℚ rat.floor rat.floor_ring._proof_1