Lemmas on Int.floor, Int.ceil and Int.fract #
This file contains basic results on the integer-valued floor and ceiling functions, as well as the fractional part operator.
TODO #
LinearOrderedRing can be relaxed to OrderedRing in many lemmas.
Tags #
rounding, floor, ceil
Extension for the positivity tactic: Int.floor is nonnegative if its input is.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extension for the positivity tactic: Nat.ceil is positive if its input is.
Instances For
Extension for the positivity tactic: Int.ceil is positive/nonnegative if its input is.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Floor rings #
Floor #
Alias of Int.floor_add_intCast.
Alias of Int.floor_intCast_add.
Alias of Int.floor_add_natCast.
Alias of Int.floor_natCast_add.
Alias of Int.floor_sub_intCast.
Alias of Int.floor_sub_natCast.
Fractional part #
Alias of Int.fract_add_intCast.
Alias of Int.fract_add_natCast.
Alias of Int.fract_intCast_add.
Alias of Int.fract_natCast_add.
Alias of Int.fract_sub_intCast.
Alias of Int.fract_sub_natCast.
The fractional part of a is positive if and only if a ≠ ⌊a⌋.
Alias of Int.fract_mul_natCast.
Ceil #
Alias of Int.ceil_add_intCast.
Alias of Int.ceil_add_natCast.
Alias of Int.ceil_sub_intCast.
Alias of Int.ceil_sub_natCast.
Alias of Int.ceil_eq_floor_add_one_iff_notMem.
Intervals #
a variant of Nat.ceil_lt_add_one with its condition 0 ≤ a generalized to -1 < a
A floor ring as a floor semiring #
There exists at most one FloorRing structure on a given linear ordered ring.