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
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
.
Intervals #
A floor ring as a floor semiring #
There exists at most one FloorRing
structure on a given linear ordered ring.