The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Order.Field.Rat
2 declarations. Mathlib docs · Source
The rational numbers form a linear ordered field
This file used to contain the linear ordered field instance on the rational numbers.
TODO: rename this file to Mathlib/Algebra/Order/GroupWithZero/NNRat.lean
See note [foundational algebra order theory].
Tags
rat, rationals, field, ℚ, numerator, denominator, num, denom
instance NNRat.instLinearOrderedCommGroupWithZero E0 #
LinearOrderedCommGroupWithZero ℚ≥0
theorem NNRat.cast_sub E0 #
∀ {K : Type u_1} [inst : DivisionRing K] [CharZero K] {p q : ℚ≥0}, p ≤ q → ↑(q - p) = ↑q - ↑p