Reference · Non-negative rationals
rainbow.math.rational.nnrat.commutative
Native commutativity of nonnegative-rational addition and multiplication, up to cross-multiplication equivalence. These make the exact-rational base a commutative structure and are the first general (non-worked-instance) rational algebra laws, assembled from the native nat commutativity lemmas. They let later signed and operations-research proofs reorder sums and products.
nnrat/add-commutative
nnrat/add-commutative : (a b : ℚ≥0) → a + b = b + a
+ = nnrat/add= = nnrat/equivalent: equality of rational valuesℚ≥0 = nnrat/NonnegativeRational
nnrat/multiply-commutative
nnrat/multiply-commutative : (a b : ℚ≥0) → a · b = b · a
= = nnrat/equivalent: equality of rational values· = nnrat/multiplyℚ≥0 = nnrat/NonnegativeRational
signed/add-commutative
signed/add-commutative : (a b : ℚ) → a + b = b + a
+ = signed/add= = signed/equivalent: equality of rational valuesℚ = signed/SignedRational