algebra.order.algebra
⟷
Mathlib.Algebra.Order.Algebra
The following section lists changes to this file in mathlib3 and mathlib4 that occured after the initial port. Most recent changes are shown first. Hovering over a commit will show all commits associated with the same mathlib3 commit.
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(last sync)
mathlib commit https://github.com/leanprover-community/mathlib/commit/65a1391a0106c9204fe45bc73a039f056558cb83
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Algebra.Algebra.Basic
-import Algebra.Order.Smul
+import Algebra.Order.Module.OrderedSMul
#align_import algebra.order.algebra from "leanprover-community/mathlib"@"f47581155c818e6361af4e4fda60d27d020c226b"
mathlib commit https://github.com/leanprover-community/mathlib/commit/65a1391a0106c9204fe45bc73a039f056558cb83
@@ -46,7 +46,7 @@ theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
rw [Algebra.algebraMap_eq_smul_one, Algebra.algebraMap_eq_smul_one, ← sub_nonneg, ← sub_smul]
trans (b - a) • (0 : A)
· simp
- · exact smul_le_smul_of_nonneg zero_le_one (sub_nonneg.mpr h)
+ · exact smul_le_smul_of_nonneg_left zero_le_one (sub_nonneg.mpr h)
#align algebra_map_monotone algebraMap_monotone
-/
mathlib commit https://github.com/leanprover-community/mathlib/commit/ce64cd319bb6b3e82f31c2d38e79080d377be451
@@ -3,8 +3,8 @@ Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
-import Mathbin.Algebra.Algebra.Basic
-import Mathbin.Algebra.Order.Smul
+import Algebra.Algebra.Basic
+import Algebra.Order.Smul
#align_import algebra.order.algebra from "leanprover-community/mathlib"@"f47581155c818e6361af4e4fda60d27d020c226b"
mathlib commit https://github.com/leanprover-community/mathlib/commit/8ea5598db6caeddde6cb734aa179cc2408dbd345
@@ -2,15 +2,12 @@
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-
-! This file was ported from Lean 3 source module algebra.order.algebra
-! leanprover-community/mathlib commit f47581155c818e6361af4e4fda60d27d020c226b
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
-/
import Mathbin.Algebra.Algebra.Basic
import Mathbin.Algebra.Order.Smul
+#align_import algebra.order.algebra from "leanprover-community/mathlib"@"f47581155c818e6361af4e4fda60d27d020c226b"
+
/-!
# Ordered algebras
mathlib commit https://github.com/leanprover-community/mathlib/commit/9fb8964792b4237dac6200193a0d533f1b3f7423
@@ -43,6 +43,7 @@ variable {R A : Type _} {a b : A} {r : R}
variable [OrderedCommRing R] [OrderedRing A] [Algebra R A] [OrderedSMul R A]
+#print algebraMap_monotone /-
theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
by
rw [Algebra.algebraMap_eq_smul_one, Algebra.algebraMap_eq_smul_one, ← sub_nonneg, ← sub_smul]
@@ -50,6 +51,7 @@ theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
· simp
· exact smul_le_smul_of_nonneg zero_le_one (sub_nonneg.mpr h)
#align algebra_map_monotone algebraMap_monotone
+-/
end OrderedAlgebra
mathlib commit https://github.com/leanprover-community/mathlib/commit/917c3c072e487b3cccdbfeff17e75b40e45f66cb
@@ -43,12 +43,6 @@ variable {R A : Type _} {a b : A} {r : R}
variable [OrderedCommRing R] [OrderedRing A] [Algebra R A] [OrderedSMul R A]
-/- warning: algebra_map_monotone -> algebraMap_monotone is a dubious translation:
-lean 3 declaration is
- forall {R : Type.{u1}} {A : Type.{u2}} [_inst_1 : OrderedCommRing.{u1} R] [_inst_2 : OrderedRing.{u2} A] [_inst_3 : Algebra.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2))] [_inst_4 : OrderedSMul.{u1, u2} R A (OrderedRing.toOrderedSemiring.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u1, u2} R A (Semiring.toMonoidWithZero.{u1} R (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (AddZeroClass.toHasZero.{u2} A (AddMonoid.toAddZeroClass.{u2} A (AddCommMonoid.toAddMonoid.{u2} A (OrderedAddCommMonoid.toAddCommMonoid.{u2} A (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)))))) (Module.toMulActionWithZero.{u1, u2} R A (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1))) (AddCommGroup.toAddCommMonoid.{u2} A (OrderedAddCommGroup.toAddCommGroup.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (Algebra.toModule.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3)))], Monotone.{u1, u2} R A (PartialOrder.toPreorder.{u1} R (OrderedAddCommGroup.toPartialOrder.{u1} R (OrderedRing.toOrderedAddCommGroup.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (PartialOrder.toPreorder.{u2} A (OrderedAddCommGroup.toPartialOrder.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (fun (_x : RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) => R -> A) (RingHom.hasCoeToFun.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (algebraMap.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3))
-but is expected to have type
- forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (Algebra.toModule.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2397 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
-Case conversion may be inaccurate. Consider using '#align algebra_map_monotone algebraMap_monotoneₓ'. -/
theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
by
rw [Algebra.algebraMap_eq_smul_one, Algebra.algebraMap_eq_smul_one, ← sub_nonneg, ← sub_smul]
mathlib commit https://github.com/leanprover-community/mathlib/commit/95a87616d63b3cb49d3fe678d416fbe9c4217bf4
@@ -47,7 +47,7 @@ variable [OrderedCommRing R] [OrderedRing A] [Algebra R A] [OrderedSMul R A]
lean 3 declaration is
forall {R : Type.{u1}} {A : Type.{u2}} [_inst_1 : OrderedCommRing.{u1} R] [_inst_2 : OrderedRing.{u2} A] [_inst_3 : Algebra.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2))] [_inst_4 : OrderedSMul.{u1, u2} R A (OrderedRing.toOrderedSemiring.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u1, u2} R A (Semiring.toMonoidWithZero.{u1} R (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (AddZeroClass.toHasZero.{u2} A (AddMonoid.toAddZeroClass.{u2} A (AddCommMonoid.toAddMonoid.{u2} A (OrderedAddCommMonoid.toAddCommMonoid.{u2} A (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)))))) (Module.toMulActionWithZero.{u1, u2} R A (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1))) (AddCommGroup.toAddCommMonoid.{u2} A (OrderedAddCommGroup.toAddCommGroup.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (Algebra.toModule.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3)))], Monotone.{u1, u2} R A (PartialOrder.toPreorder.{u1} R (OrderedAddCommGroup.toPartialOrder.{u1} R (OrderedRing.toOrderedAddCommGroup.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (PartialOrder.toPreorder.{u2} A (OrderedAddCommGroup.toPartialOrder.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (fun (_x : RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) => R -> A) (RingHom.hasCoeToFun.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (algebraMap.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3))
but is expected to have type
- forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (Algebra.toModule.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
+ forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (Algebra.toModule.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2397 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
Case conversion may be inaccurate. Consider using '#align algebra_map_monotone algebraMap_monotoneₓ'. -/
theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
by
mathlib commit https://github.com/leanprover-community/mathlib/commit/9b2b58d6b14b895b2f375108e765cb47de71aebd
@@ -47,7 +47,7 @@ variable [OrderedCommRing R] [OrderedRing A] [Algebra R A] [OrderedSMul R A]
lean 3 declaration is
forall {R : Type.{u1}} {A : Type.{u2}} [_inst_1 : OrderedCommRing.{u1} R] [_inst_2 : OrderedRing.{u2} A] [_inst_3 : Algebra.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2))] [_inst_4 : OrderedSMul.{u1, u2} R A (OrderedRing.toOrderedSemiring.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u1, u2} R A (Semiring.toMonoidWithZero.{u1} R (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (AddZeroClass.toHasZero.{u2} A (AddMonoid.toAddZeroClass.{u2} A (AddCommMonoid.toAddMonoid.{u2} A (OrderedAddCommMonoid.toAddCommMonoid.{u2} A (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)))))) (Module.toMulActionWithZero.{u1, u2} R A (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1))) (AddCommGroup.toAddCommMonoid.{u2} A (OrderedAddCommGroup.toAddCommGroup.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (Algebra.toModule.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3)))], Monotone.{u1, u2} R A (PartialOrder.toPreorder.{u1} R (OrderedAddCommGroup.toPartialOrder.{u1} R (OrderedRing.toOrderedAddCommGroup.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (PartialOrder.toPreorder.{u2} A (OrderedAddCommGroup.toPartialOrder.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (fun (_x : RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) => R -> A) (RingHom.hasCoeToFun.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (algebraMap.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3))
but is expected to have type
- forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (instModuleToSemiringToOrderedSemiringToOrderedCommSemiringToAddCommMonoidToOrderedCancelAddCommMonoidToOrderedAddCommGroup.{u2, u1} R A _inst_1 _inst_2 _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
+ forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (Algebra.toModule.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
Case conversion may be inaccurate. Consider using '#align algebra_map_monotone algebraMap_monotoneₓ'. -/
theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
by
mathlib commit https://github.com/leanprover-community/mathlib/commit/3180fab693e2cee3bff62675571264cb8778b212
@@ -47,7 +47,7 @@ variable [OrderedCommRing R] [OrderedRing A] [Algebra R A] [OrderedSMul R A]
lean 3 declaration is
forall {R : Type.{u1}} {A : Type.{u2}} [_inst_1 : OrderedCommRing.{u1} R] [_inst_2 : OrderedRing.{u2} A] [_inst_3 : Algebra.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2))] [_inst_4 : OrderedSMul.{u1, u2} R A (OrderedRing.toOrderedSemiring.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u1, u2} R A (Semiring.toMonoidWithZero.{u1} R (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (AddZeroClass.toHasZero.{u2} A (AddMonoid.toAddZeroClass.{u2} A (AddCommMonoid.toAddMonoid.{u2} A (OrderedAddCommMonoid.toAddCommMonoid.{u2} A (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)))))) (Module.toMulActionWithZero.{u1, u2} R A (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1))) (AddCommGroup.toAddCommMonoid.{u2} A (OrderedAddCommGroup.toAddCommGroup.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (Algebra.toModule.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3)))], Monotone.{u1, u2} R A (PartialOrder.toPreorder.{u1} R (OrderedAddCommGroup.toPartialOrder.{u1} R (OrderedRing.toOrderedAddCommGroup.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (PartialOrder.toPreorder.{u2} A (OrderedAddCommGroup.toPartialOrder.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (fun (_x : RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) => R -> A) (RingHom.hasCoeToFun.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (algebraMap.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3))
but is expected to have type
- forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (instModuleToSemiringToOrderedSemiringToOrderedCommSemiringToAddCommMonoidToOrderedCancelAddCommMonoidToOrderedAddCommGroup.{u2, u1} R A _inst_1 _inst_2 _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2372 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
+ forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (instModuleToSemiringToOrderedSemiringToOrderedCommSemiringToAddCommMonoidToOrderedCancelAddCommMonoidToOrderedAddCommGroup.{u2, u1} R A _inst_1 _inst_2 _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
Case conversion may be inaccurate. Consider using '#align algebra_map_monotone algebraMap_monotoneₓ'. -/
theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
by
mathlib commit https://github.com/leanprover-community/mathlib/commit/21e3562c5e12d846c7def5eff8cdbc520d7d4936
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
! This file was ported from Lean 3 source module algebra.order.algebra
-! leanprover-community/mathlib commit f5a600f8102c8bfdbd22781968a20a539304c1b4
+! leanprover-community/mathlib commit f47581155c818e6361af4e4fda60d27d020c226b
! Please do not edit these lines, except to modify the commit id
! if you have ported upstream changes.
-/
@@ -14,6 +14,9 @@ import Mathbin.Algebra.Order.Smul
/-!
# Ordered algebras
+> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
+> Any changes to this file require a corresponding PR to mathlib4.
+
An ordered algebra is an ordered semiring, which is an algebra over an ordered commutative semiring,
for which scalar multiplication is "compatible" with the two orders.
mathlib commit https://github.com/leanprover-community/mathlib/commit/38f16f960f5006c6c0c2bac7b0aba5273188f4e5
@@ -44,7 +44,7 @@ variable [OrderedCommRing R] [OrderedRing A] [Algebra R A] [OrderedSMul R A]
lean 3 declaration is
forall {R : Type.{u1}} {A : Type.{u2}} [_inst_1 : OrderedCommRing.{u1} R] [_inst_2 : OrderedRing.{u2} A] [_inst_3 : Algebra.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2))] [_inst_4 : OrderedSMul.{u1, u2} R A (OrderedRing.toOrderedSemiring.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u1, u2} R A (Semiring.toMonoidWithZero.{u1} R (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (AddZeroClass.toHasZero.{u2} A (AddMonoid.toAddZeroClass.{u2} A (AddCommMonoid.toAddMonoid.{u2} A (OrderedAddCommMonoid.toAddCommMonoid.{u2} A (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)))))) (Module.toMulActionWithZero.{u1, u2} R A (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1))) (AddCommGroup.toAddCommMonoid.{u2} A (OrderedAddCommGroup.toAddCommGroup.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (Algebra.toModule.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3)))], Monotone.{u1, u2} R A (PartialOrder.toPreorder.{u1} R (OrderedAddCommGroup.toPartialOrder.{u1} R (OrderedRing.toOrderedAddCommGroup.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (PartialOrder.toPreorder.{u2} A (OrderedAddCommGroup.toPartialOrder.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (fun (_x : RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) => R -> A) (RingHom.hasCoeToFun.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (algebraMap.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3))
but is expected to have type
- forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (instModuleToSemiringToOrderedSemiringToOrderedCommSemiringToAddCommMonoidToOrderedCancelAddCommMonoidToOrderedAddCommGroup.{u2, u1} R A _inst_1 _inst_2 _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2398 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
+ forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (instModuleToSemiringToOrderedSemiringToOrderedCommSemiringToAddCommMonoidToOrderedCancelAddCommMonoidToOrderedAddCommGroup.{u2, u1} R A _inst_1 _inst_2 _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2372 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
Case conversion may be inaccurate. Consider using '#align algebra_map_monotone algebraMap_monotoneₓ'. -/
theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
by
mathlib commit https://github.com/leanprover-community/mathlib/commit/195fcd60ff2bfe392543bceb0ec2adcdb472db4c
@@ -40,6 +40,12 @@ variable {R A : Type _} {a b : A} {r : R}
variable [OrderedCommRing R] [OrderedRing A] [Algebra R A] [OrderedSMul R A]
+/- warning: algebra_map_monotone -> algebraMap_monotone is a dubious translation:
+lean 3 declaration is
+ forall {R : Type.{u1}} {A : Type.{u2}} [_inst_1 : OrderedCommRing.{u1} R] [_inst_2 : OrderedRing.{u2} A] [_inst_3 : Algebra.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2))] [_inst_4 : OrderedSMul.{u1, u2} R A (OrderedRing.toOrderedSemiring.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u1, u2} R A (Semiring.toMonoidWithZero.{u1} R (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (AddZeroClass.toHasZero.{u2} A (AddMonoid.toAddZeroClass.{u2} A (AddCommMonoid.toAddMonoid.{u2} A (OrderedAddCommMonoid.toAddCommMonoid.{u2} A (OrderedSemiring.toOrderedAddCommMonoid.{u2} A (OrderedRing.toOrderedSemiring.{u2} A _inst_2)))))) (Module.toMulActionWithZero.{u1, u2} R A (Ring.toSemiring.{u1} R (OrderedRing.toRing.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1))) (AddCommGroup.toAddCommMonoid.{u2} A (OrderedAddCommGroup.toAddCommGroup.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (Algebra.toModule.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3)))], Monotone.{u1, u2} R A (PartialOrder.toPreorder.{u1} R (OrderedAddCommGroup.toPartialOrder.{u1} R (OrderedRing.toOrderedAddCommGroup.{u1} R (OrderedCommRing.toOrderedRing.{u1} R _inst_1)))) (PartialOrder.toPreorder.{u2} A (OrderedAddCommGroup.toPartialOrder.{u2} A (OrderedRing.toOrderedAddCommGroup.{u2} A _inst_2))) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (fun (_x : RingHom.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) => R -> A) (RingHom.hasCoeToFun.{u1, u2} R A (Semiring.toNonAssocSemiring.{u1} R (CommSemiring.toSemiring.{u1} R (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)))) (Semiring.toNonAssocSemiring.{u2} A (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)))) (algebraMap.{u1, u2} R A (OrderedCommSemiring.toCommSemiring.{u1} R (OrderedCommRing.toOrderedCommSemiring.{u1} R _inst_1)) (Ring.toSemiring.{u2} A (OrderedRing.toRing.{u2} A _inst_2)) _inst_3))
+but is expected to have type
+ forall {R : Type.{u2}} {A : Type.{u1}} [_inst_1 : OrderedCommRing.{u2} R] [_inst_2 : OrderedRing.{u1} A] [_inst_3 : Algebra.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))] [_inst_4 : OrderedSMul.{u2, u1} R A (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) (MulActionWithZero.toSMulWithZero.{u2, u1} R A (Semiring.toMonoidWithZero.{u2} R (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (AddMonoid.toZero.{u1} A (AddCommMonoid.toAddMonoid.{u1} A (OrderedAddCommMonoid.toAddCommMonoid.{u1} A (OrderedSemiring.toOrderedAddCommMonoid.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (Module.toMulActionWithZero.{u2, u1} R A (OrderedSemiring.toSemiring.{u2} R (OrderedCommSemiring.toOrderedSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))) (OrderedCancelAddCommMonoid.toAddCommMonoid.{u1} A (OrderedAddCommGroup.toOrderedCancelAddCommMonoid.{u1} A (OrderedRing.toOrderedAddCommGroup.{u1} A _inst_2))) (instModuleToSemiringToOrderedSemiringToOrderedCommSemiringToAddCommMonoidToOrderedCancelAddCommMonoidToOrderedAddCommGroup.{u2, u1} R A _inst_1 _inst_2 _inst_3)))], Monotone.{u2, u1} R A (PartialOrder.toPreorder.{u2} R (OrderedRing.toPartialOrder.{u2} R (OrderedCommRing.toOrderedRing.{u2} R _inst_1))) (PartialOrder.toPreorder.{u1} A (OrderedRing.toPartialOrder.{u1} A _inst_2)) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R (fun (_x : R) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2398 : R) => A) _x) (MulHomClass.toFunLike.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonUnitalNonAssocSemiring.toMul.{u2} R (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))))) (NonUnitalNonAssocSemiring.toMul.{u1} A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))) (NonUnitalRingHomClass.toMulHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u2} R (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1))))) (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} A (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) (RingHomClass.toNonUnitalRingHomClass.{max u2 u1, u2, u1} (RingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)))) R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))) (RingHom.instRingHomClassRingHom.{u2, u1} R A (Semiring.toNonAssocSemiring.{u2} R (CommSemiring.toSemiring.{u2} R (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)))) (Semiring.toNonAssocSemiring.{u1} A (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2))))))) (algebraMap.{u2, u1} R A (OrderedCommSemiring.toCommSemiring.{u2} R (OrderedCommRing.toOrderedCommSemiring.{u2} R _inst_1)) (OrderedSemiring.toSemiring.{u1} A (OrderedRing.toOrderedSemiring.{u1} A _inst_2)) _inst_3))
+Case conversion may be inaccurate. Consider using '#align algebra_map_monotone algebraMap_monotoneₓ'. -/
theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h =>
by
rw [Algebra.algebraMap_eq_smul_one, Algebra.algebraMap_eq_smul_one, ← sub_nonneg, ← sub_smul]
mathlib commit https://github.com/leanprover-community/mathlib/commit/bd9851ca476957ea4549eb19b40e7b5ade9428cc
Splits Algebra.Algebra.Defs
off Algebra.Algebra.Basic
. Most imports only need the Defs file, which has significantly smaller imports. The remaining Algebra.Algebra.Basic
is now a grab-bag of unrelated results, and should probably be split further or rehomed.
This is mostly motivated by the wasted effort during minimization upon encountering Algebra.Algebra.Basic.
Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
@@ -3,7 +3,7 @@ Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
-import Mathlib.Algebra.Algebra.Basic
+import Mathlib.Algebra.Algebra.Defs
import Mathlib.Algebra.Order.Module.OrderedSMul
#align_import algebra.order.algebra from "leanprover-community/mathlib"@"f5a600f8102c8bfdbd22781968a20a539304c1b4"
•
lemmas (#9179)
Remove the duplicates introduced in #8869 by sorting the lemmas in Algebra.Order.SMul
into three files:
Algebra.Order.Module.Defs
for the order isomorphism induced by scalar multiplication by a positivity elementAlgebra.Order.Module.Pointwise
for the order properties of scalar multiplication of sets. This file is new. I credit myself for https://github.com/leanprover-community/mathlib/pull/9078Algebra.Order.Module.OrderedSMul
: The material about OrderedSMul
per se. Inherits the copyright header from Algebra.Order.SMul
. This file should eventually be deleted.I move each #align
to the correct file. On top of that, I delete unused redundant OrderedSMul
instances (they were useful in Lean 3, but not anymore) and eq_of_smul_eq_smul_of_pos_of_le
/eq_of_smul_eq_smul_of_neg_of_le
since those lemmas are weird and unused.
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.Algebra.Algebra.Basic
-import Mathlib.Algebra.Order.SMul
+import Mathlib.Algebra.Order.Module.OrderedSMul
#align_import algebra.order.algebra from "leanprover-community/mathlib"@"f5a600f8102c8bfdbd22781968a20a539304c1b4"
@@ -45,7 +45,7 @@ theorem algebraMap_monotone : Monotone (algebraMap R A) := fun a b h => by
rw [Algebra.algebraMap_eq_smul_one, Algebra.algebraMap_eq_smul_one, ← sub_nonneg, ← sub_smul]
trans (b - a) • (0 : A)
· simp
- · exact smul_le_smul_of_nonneg zero_le_one (sub_nonneg.mpr h)
+ · exact smul_le_smul_of_nonneg_left zero_le_one (sub_nonneg.mpr h)
#align algebra_map_monotone algebraMap_monotone
end OrderedAlgebra
Type _
and Sort _
(#6499)
We remove all possible occurences of Type _
and Sort _
in favor of Type*
and Sort*
.
This has nice performance benefits.
@@ -32,7 +32,7 @@ ordered algebra
section OrderedAlgebra
-variable {R A : Type _} {a b : A} {r : R}
+variable {R A : Type*} {a b : A} {r : R}
@@ -2,15 +2,12 @@
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-
-! This file was ported from Lean 3 source module algebra.order.algebra
-! leanprover-community/mathlib commit f5a600f8102c8bfdbd22781968a20a539304c1b4
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
-/
import Mathlib.Algebra.Algebra.Basic
import Mathlib.Algebra.Order.SMul
+#align_import algebra.order.algebra from "leanprover-community/mathlib"@"f5a600f8102c8bfdbd22781968a20a539304c1b4"
+
/-!
# Ordered algebras
Now that leanprover/lean4#2210 has been merged, this PR:
set_option synthInstance.etaExperiment true
commands (and some etaExperiment%
term elaborators)set_option maxHeartbeats
commandsCo-authored-by: Scott Morrison <scott.morrison@anu.edu.au> Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Matthew Ballard <matt@mrb.email>
@@ -41,7 +41,6 @@ variable {R A : Type _} {a b : A} {r : R}
variable [OrderedCommRing R] [OrderedRing A] [Algebra R A]
-set_option synthInstance.etaExperiment true
variable [OrderedSMul R A]
This is to fix timeouts in https://github.com/leanprover-community/mathlib4/pull/3552.
See discussion at https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/!4.233552.20.28LinearAlgebra.2EMatrix.2EToLin.29.
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@@ -41,8 +41,7 @@ variable {R A : Type _} {a b : A} {r : R}
variable [OrderedCommRing R] [OrderedRing A] [Algebra R A]
--- Porting note: added the following line, fails to be inferred otherwise. Probably lean4#2074
-instance : Module R A := Algebra.toModule
+set_option synthInstance.etaExperiment true
variable [OrderedSMul R A]
The unported dependencies are