algebra.order.algebraMathlib.Algebra.Order.Algebra

This file has been ported!

Changes since the initial port

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.

Changes in mathlib3

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(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)

Changes in mathlib3port

mathlib3
mathlib3port
Diff
@@ -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"
 
Diff
@@ -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
 -/
 
Diff
@@ -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"
 
Diff
@@ -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
 
Diff
@@ -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
 
Diff
@@ -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]
Diff
@@ -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
Diff
@@ -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
Diff
@@ -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
Diff
@@ -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.
 
Diff
@@ -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
Diff
@@ -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]

Changes in mathlib4

mathlib3
mathlib4
chore: split Algebra.Algebra.Basic (#12486)

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>

Diff
@@ -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"
refactor: Deduplicate monotonicity of 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 element
  • Algebra.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/9078
  • Algebra.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.

Diff
@@ -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
chore: banish Type _ and Sort _ (#6499)

We remove all possible occurences of Type _ and Sort _ in favor of Type* and Sort*.

This has nice performance benefits.

Diff
@@ -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}
 
 
 
chore: script to replace headers with #align_import statements (#5979)

Open in Gitpod

Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Scott Morrison <scott.morrison@gmail.com>

Diff
@@ -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
 
chore: reenable eta, bump to nightly 2023-05-16 (#3414)

Now that leanprover/lean4#2210 has been merged, this PR:

  • removes all the set_option synthInstance.etaExperiment true commands (and some etaExperiment% term elaborators)
  • removes many but not quite all set_option maxHeartbeats commands
  • makes various other changes required to cope with leanprover/lean4#2210.

Co-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>

Diff
@@ -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]
 
chore: use etaExperiment rather than hacking with instances (#3668)

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>

Diff
@@ -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]
 
feat port: Algebra.Order.Algebra (#2535)

Dependencies 8 + 348

349 files ported (97.8%)
146427 lines ported (97.9%)
Show graph

The unported dependencies are