Floor Function for Rational Numbers #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
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
@[simp, norm_cast]
@[simp, norm_cast]
@[simp, norm_cast]
@[simp, norm_cast]