Commit 2026-10-10 12:26 993089ff
View on Github →feat(Algebra/Order/Floor): weaken assumptions on theorems about FloorRing (#37964)
This PR weakens as much assumptions as possible on theorems about FloorSemiring and FloorRing. Mainly, IsOrderedRing and IsStrictOrderedRing are weakened to just IsOrderedAddMonoid or removed completely from the assumptions on the theorems.
Most theorems can be generalized as is or only requires a minor modification of replacing lemmas about casting naturals/integers preserving order (the likes of Nat.cast_le, Int.cast_lt, etc.) with the corresponding version for FloorRing. Some other lemmas require modification in the proofs, but these changes shorten the proofs. The new proof of the theorem Int.mul_cast_floor_div_cancel_of_pos requires an extra import.
The assumption IsOrderedAddMonoid is required on lemmas that involve comparison + addition, and IsOrderedRing is required only on lemmas that involve comparison + multiplication of two non-integer elements.