mathlib documentation

data.​rat.​floor

data.​rat.​floor

Floor Function for Rational Numbers

Summary

We define the floor function and the floor_ring instance on ℚ.

Tags

rat, rationals, ℚ, floor

def rat.​floor  :
ℚ → ℤ

floor q is the largest integer z such that z ≤ q

Equations
theorem rat.​le_floor {z : ℤ} {r : ℚ} :

theorem rat.​floor_def {q : ℚ} :