Extended floor and ceil #
This file defines the extended floor and ceil functions ENat.floor, ENat.ceil : ℝ≥0∞ → ℕ∞.
Main declarations #
ENat.floor r: Greatest extended naturalnsuch thatn ≤ r.ENat.ceil r: Least extended naturalnsuch thatr ≤ n.
Notation #
⌊r⌋ₑisENat.floor r.⌈r⌉ₑisENat.ceil r.
The index ₑ is used in analogy to the notation for enorm.
TODO #
The day Mathlib acquires ENNRat, it would be good to generalise this file to an EFloorSemiring
typeclass.
Tags #
efloor, eceil
⌊r⌋ₑ is the greatest extended natural n such that n ≤ r.
Equations
- One or more equations did not get rendered due to their size.
Instances For
⌈r⌉ₑ is the least extended natural n such that r ≤ n
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
Extension for the positivity tactic: ENat.ceil is positive if its input is.
Equations
- One or more equations did not get rendered due to their size.