Mathlib.Data.Rat.Cast.Order
69 declarations. Mathlib docs · Source
theorem Rat.castHom_rat E0 #
Rat.castHom ℚ = RingHom.id ℚ
theorem Rat.cast_pos_of_pos E1 #
∀ {q : ℚ} {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], 0 < q → 0 < ↑q
theorem Rat.cast_strictMono E1 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], StrictMono Rat.cast
theorem Rat.cast_mono E1 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], Monotone Rat.cast
def Rat.castOrderEmbedding E1 #
{K : Type u_2} → [inst : Field K] → [inst_1 : LinearOrder K] → [IsStrictOrderedRing K] → ℚ ↪o K
Coercion from ℚ as an order embedding.
theorem Rat.castOrderEmbedding_apply E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K] (a : ℚ),
Rat.castOrderEmbedding a = ↑a
theorem Rat.cast_le E0 #
∀ {p q : ℚ} {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], ↑p ≤ ↑q ↔ p ≤ q
theorem Rat.cast_lt E0 #
∀ {p q : ℚ} {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], ↑p < ↑q ↔ p < q
theorem Rat.cast_nonneg E0 #
∀ {q : ℚ} {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], 0 ≤ ↑q ↔ 0 ≤ q
theorem Rat.cast_nonpos E0 #
∀ {q : ℚ} {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], ↑q ≤ 0 ↔ q ≤ 0
theorem Rat.cast_pos E0 #
∀ {q : ℚ} {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], 0 < ↑q ↔ 0 < q
theorem Rat.cast_lt_zero E0 #
∀ {q : ℚ} {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], ↑q < 0 ↔ q < 0
theorem Rat.cast_le_natCast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℚ} {n : ℕ}, ↑m ≤ ↑n ↔ m ≤ ↑n
theorem Rat.natCast_le_cast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℕ} {n : ℚ}, ↑m ≤ ↑n ↔ ↑m ≤ n
theorem Rat.cast_le_intCast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℚ} {n : ℤ}, ↑m ≤ ↑n ↔ m ≤ ↑n
theorem Rat.intCast_le_cast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℤ} {n : ℚ}, ↑m ≤ ↑n ↔ ↑m ≤ n
theorem Rat.cast_lt_natCast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℚ} {n : ℕ}, ↑m < ↑n ↔ m < ↑n
theorem Rat.natCast_lt_cast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℕ} {n : ℚ}, ↑m < ↑n ↔ ↑m < n
theorem Rat.cast_lt_intCast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℚ} {n : ℤ}, ↑m < ↑n ↔ m < ↑n
theorem Rat.intCast_lt_cast E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℤ} {n : ℚ}, ↑m < ↑n ↔ ↑m < n
theorem Rat.cast_min E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ), ↑(min p q) = min ↑p ↑q
theorem Rat.cast_max E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ), ↑(max p q) = max ↑p ↑q
theorem Rat.cast_abs E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (q : ℚ), ↑|q| = |↑q|
theorem Rat.preimage_cast_Icc E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ),
Rat.cast ⁻¹' Set.Icc ↑p ↑q = Set.Icc p q
theorem Rat.preimage_cast_Ico E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ),
Rat.cast ⁻¹' Set.Ico ↑p ↑q = Set.Ico p q
theorem Rat.preimage_cast_Ioc E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ),
Rat.cast ⁻¹' Set.Ioc ↑p ↑q = Set.Ioc p q
theorem Rat.preimage_cast_Ioo E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ),
Rat.cast ⁻¹' Set.Ioo ↑p ↑q = Set.Ioo p q
theorem Rat.preimage_cast_Ici E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (q : ℚ),
Rat.cast ⁻¹' Set.Ici ↑q = Set.Ici q
theorem Rat.preimage_cast_Iic E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (q : ℚ),
Rat.cast ⁻¹' Set.Iic ↑q = Set.Iic q
theorem Rat.preimage_cast_Ioi E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (q : ℚ),
Rat.cast ⁻¹' Set.Ioi ↑q = Set.Ioi q
theorem Rat.preimage_cast_Iio E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (q : ℚ),
Rat.cast ⁻¹' Set.Iio ↑q = Set.Iio q
theorem Rat.preimage_cast_uIcc E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ),
Rat.cast ⁻¹' Set.uIcc ↑p ↑q = Set.uIcc p q
theorem Rat.preimage_cast_uIoc E0 #
∀ {K : Type u_2} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ),
Rat.cast ⁻¹' Set.uIoc ↑p ↑q = Set.uIoc p q
theorem NNRat.cast_strictMono E1 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], StrictMono NNRat.cast
theorem NNRat.cast_mono E1 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K], Monotone NNRat.cast
def NNRat.castOrderEmbedding E1 #
{K : Type u_2} → [inst : Semifield K] → [inst_1 : LinearOrder K] → [IsStrictOrderedRing K] → ℚ≥0 ↪o K
Coercion from ℚ as an order embedding.
theorem NNRat.castOrderEmbedding_apply E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K] (a : ℚ≥0),
NNRat.castOrderEmbedding a = ↑a
theorem NNRat.cast_le E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p q : ℚ≥0}, ↑p ≤ ↑q ↔ p ≤ q
theorem NNRat.cast_lt E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p q : ℚ≥0}, ↑p < ↑q ↔ p < q
theorem NNRat.cast_nonpos E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {q : ℚ≥0}, ↑q ≤ 0 ↔ q ≤ 0
theorem NNRat.cast_pos E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {q : ℚ≥0}, 0 < ↑q ↔ 0 < q
theorem NNRat.cast_lt_zero E1 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {q : ℚ≥0}, ↑q < 0 ↔ q < 0
theorem NNRat.not_cast_lt_zero E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {q : ℚ≥0}, ¬↑q < 0
theorem NNRat.cast_le_one E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0}, ↑p ≤ 1 ↔ p ≤ 1
theorem NNRat.one_le_cast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0}, 1 ≤ ↑p ↔ 1 ≤ p
theorem NNRat.cast_lt_one E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0}, ↑p < 1 ↔ p < 1
theorem NNRat.one_lt_cast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0}, 1 < ↑p ↔ 1 < p
theorem NNRat.cast_le_ofNat E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0} {n : ℕ}
[inst_3 : n.AtLeastTwo], ↑p ≤ OfNat.ofNat n ↔ p ≤ OfNat.ofNat n
theorem NNRat.ofNat_le_cast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0} {n : ℕ}
[inst_3 : n.AtLeastTwo], OfNat.ofNat n ≤ ↑p ↔ OfNat.ofNat n ≤ p
theorem NNRat.cast_lt_ofNat E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0} {n : ℕ}
[inst_3 : n.AtLeastTwo], ↑p < OfNat.ofNat n ↔ p < OfNat.ofNat n
theorem NNRat.ofNat_lt_cast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {p : ℚ≥0} {n : ℕ}
[inst_3 : n.AtLeastTwo], OfNat.ofNat n < ↑p ↔ OfNat.ofNat n < p
theorem NNRat.cast_le_natCast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℚ≥0} {n : ℕ},
↑m ≤ ↑n ↔ m ≤ ↑n
theorem NNRat.natCast_le_cast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℕ} {n : ℚ≥0},
↑m ≤ ↑n ↔ ↑m ≤ n
theorem NNRat.cast_lt_natCast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℚ≥0} {n : ℕ},
↑m < ↑n ↔ m < ↑n
theorem NNRat.natCast_lt_cast E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] {m : ℕ} {n : ℚ≥0},
↑m < ↑n ↔ ↑m < n
theorem NNRat.cast_min E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
↑(min p q) = min ↑p ↑q
theorem NNRat.cast_max E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
↑(max p q) = max ↑p ↑q
theorem NNRat.preimage_cast_Icc E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
NNRat.cast ⁻¹' Set.Icc ↑p ↑q = Set.Icc p q
theorem NNRat.preimage_cast_Ico E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
NNRat.cast ⁻¹' Set.Ico ↑p ↑q = Set.Ico p q
theorem NNRat.preimage_cast_Ioc E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
NNRat.cast ⁻¹' Set.Ioc ↑p ↑q = Set.Ioc p q
theorem NNRat.preimage_cast_Ioo E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
NNRat.cast ⁻¹' Set.Ioo ↑p ↑q = Set.Ioo p q
theorem NNRat.preimage_cast_Ici E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p : ℚ≥0),
NNRat.cast ⁻¹' Set.Ici ↑p = Set.Ici p
theorem NNRat.preimage_cast_Iic E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p : ℚ≥0),
NNRat.cast ⁻¹' Set.Iic ↑p = Set.Iic p
theorem NNRat.preimage_cast_Ioi E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p : ℚ≥0),
NNRat.cast ⁻¹' Set.Ioi ↑p = Set.Ioi p
theorem NNRat.preimage_cast_Iio E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p : ℚ≥0),
NNRat.cast ⁻¹' Set.Iio ↑p = Set.Iio p
theorem NNRat.preimage_cast_uIcc E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
NNRat.cast ⁻¹' Set.uIcc ↑p ↑q = Set.uIcc p q
theorem NNRat.preimage_cast_uIoc E0 #
∀ {K : Type u_2} [inst : Semifield K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] (p q : ℚ≥0),
NNRat.cast ⁻¹' Set.uIoc ↑p ↑q = Set.uIoc p q
def Mathlib.Meta.Positivity.evalRatCast E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for Rat.cast.
def Mathlib.Meta.Positivity.evalNNRatCast E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for NNRat.cast.