Module docstring
{"# Floor and ceil
We define the natural- and integer-valued floor and ceil functions on linearly ordered rings.
We also provide positivity extensions to handle floor and ceil.
Main definitions
FloorSemiring: An ordered semiring with natural-valued floor and ceil.Nat.floor a: Greatest naturalnsuch thatn ≤ a. Equal to0ifa < 0.Nat.ceil a: Least naturalnsuch thata ≤ n.FloorRing: A linearly ordered ring with integer-valued floor and ceil.Int.floor a: Greatest integerzsuch thatz ≤ a.Int.ceil a: Least integerzsuch thata ≤ z.Int.fract a: Fractional part ofa, defined asa - floor a.
Notations
⌊a⌋₊isNat.floor a.⌈a⌉₊isNat.ceil a.⌊a⌋isInt.floor a.⌈a⌉isInt.ceil a.
The index ₊ in the notations for Nat.floor and Nat.ceil is used in analogy to the notation
for nnnorm.
TODO
LinearOrderedRing/LinearOrderedSemiring can be relaxed to OrderedRing/OrderedSemiring in
many lemmas.
Tags
rounding, floor, ceil ","### Floor semiring ","### Floor rings ","#### Floor ","#### Ceil ","#### A floor ring as a floor semiring "}