Documentation

Mathlib.Data.Rat.Cast.Order

Casts of rational numbers into linear ordered fields. #

@[simp]
theorem Rat.castHom_rat :
castHom โ„š = RingHom.id โ„š
theorem Rat.cast_pos_of_pos {q : โ„š} {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (hq : 0 < q) :
0 < โ†‘q

Coercion from โ„š as an order embedding.

Instances For
    @[simp]
    theorem Rat.castOrderEmbedding_apply {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (aโœ : โ„š) :
    castOrderEmbedding aโœ = โ†‘aโœ
    @[simp]
    theorem Rat.cast_le {p q : โ„š} {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] :
    โ†‘p โ‰ค โ†‘q โ†” p โ‰ค q
    @[simp]
    theorem Rat.cast_lt {p q : โ„š} {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] :
    โ†‘p < โ†‘q โ†” p < q
    @[simp]
    theorem Rat.cast_nonneg {q : โ„š} {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] :
    0 โ‰ค โ†‘q โ†” 0 โ‰ค q
    @[simp]
    theorem Rat.cast_nonpos {q : โ„š} {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] :
    โ†‘q โ‰ค 0 โ†” q โ‰ค 0
    @[simp]
    theorem Rat.cast_pos {q : โ„š} {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] :
    0 < โ†‘q โ†” 0 < q
    @[simp]
    theorem Rat.cast_lt_zero {q : โ„š} {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] :
    โ†‘q < 0 โ†” q < 0
    @[simp]
    theorem Rat.cast_le_natCast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„š} {n : โ„•} :
    โ†‘m โ‰ค โ†‘n โ†” m โ‰ค โ†‘n
    @[simp]
    theorem Rat.natCast_le_cast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„•} {n : โ„š} :
    โ†‘m โ‰ค โ†‘n โ†” โ†‘m โ‰ค n
    @[simp]
    theorem Rat.cast_le_intCast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„š} {n : โ„ค} :
    โ†‘m โ‰ค โ†‘n โ†” m โ‰ค โ†‘n
    @[simp]
    theorem Rat.intCast_le_cast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„ค} {n : โ„š} :
    โ†‘m โ‰ค โ†‘n โ†” โ†‘m โ‰ค n
    @[simp]
    theorem Rat.cast_lt_natCast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„š} {n : โ„•} :
    โ†‘m < โ†‘n โ†” m < โ†‘n
    @[simp]
    theorem Rat.natCast_lt_cast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„•} {n : โ„š} :
    โ†‘m < โ†‘n โ†” โ†‘m < n
    @[simp]
    theorem Rat.cast_lt_intCast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„š} {n : โ„ค} :
    โ†‘m < โ†‘n โ†” m < โ†‘n
    @[simp]
    theorem Rat.intCast_lt_cast {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„ค} {n : โ„š} :
    โ†‘m < โ†‘n โ†” โ†‘m < n
    @[simp]
    theorem Rat.cast_min {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    โ†‘(min p q) = min โ†‘p โ†‘q
    @[simp]
    theorem Rat.cast_max {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    โ†‘(max p q) = max โ†‘p โ†‘q
    @[simp]
    theorem Rat.cast_abs {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (q : โ„š) :
    โ†‘|q| = |โ†‘q|
    @[simp]
    theorem Rat.preimage_cast_Icc {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    Rat.cast โปยน' Set.Icc โ†‘p โ†‘q = Set.Icc p q
    @[simp]
    theorem Rat.preimage_cast_Ico {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    Rat.cast โปยน' Set.Ico โ†‘p โ†‘q = Set.Ico p q
    @[simp]
    theorem Rat.preimage_cast_Ioc {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    Rat.cast โปยน' Set.Ioc โ†‘p โ†‘q = Set.Ioc p q
    @[simp]
    theorem Rat.preimage_cast_Ioo {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    Rat.cast โปยน' Set.Ioo โ†‘p โ†‘q = Set.Ioo p q
    @[simp]
    theorem Rat.preimage_cast_Ici {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (q : โ„š) :
    Rat.cast โปยน' Set.Ici โ†‘q = Set.Ici q
    @[simp]
    theorem Rat.preimage_cast_Iic {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (q : โ„š) :
    Rat.cast โปยน' Set.Iic โ†‘q = Set.Iic q
    @[simp]
    theorem Rat.preimage_cast_Ioi {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (q : โ„š) :
    Rat.cast โปยน' Set.Ioi โ†‘q = Set.Ioi q
    @[simp]
    theorem Rat.preimage_cast_Iio {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (q : โ„š) :
    Rat.cast โปยน' Set.Iio โ†‘q = Set.Iio q
    @[simp]
    theorem Rat.preimage_cast_uIcc {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    Rat.cast โปยน' Set.uIcc โ†‘p โ†‘q = Set.uIcc p q
    @[simp]
    theorem Rat.preimage_cast_uIoc {K : Type u_5} [Field K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„š) :
    Rat.cast โปยน' Set.uIoc โ†‘p โ†‘q = Set.uIoc p q

    Coercion from โ„š as an order embedding.

    Instances For
      @[simp]
      theorem NNRat.cast_le {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p q : โ„šโ‰ฅ0} :
      โ†‘p โ‰ค โ†‘q โ†” p โ‰ค q
      @[simp]
      theorem NNRat.cast_lt {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p q : โ„šโ‰ฅ0} :
      โ†‘p < โ†‘q โ†” p < q
      @[simp]
      theorem NNRat.cast_pos {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {q : โ„šโ‰ฅ0} :
      0 < โ†‘q โ†” 0 < q
      theorem NNRat.cast_lt_zero {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {q : โ„šโ‰ฅ0} :
      โ†‘q < 0 โ†” q < 0
      @[simp]
      theorem NNRat.cast_lt_one {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p : โ„šโ‰ฅ0} :
      โ†‘p < 1 โ†” p < 1
      @[simp]
      theorem NNRat.one_lt_cast {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p : โ„šโ‰ฅ0} :
      1 < โ†‘p โ†” 1 < p
      @[simp]
      theorem NNRat.cast_le_ofNat {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p : โ„šโ‰ฅ0} {n : โ„•} [n.AtLeastTwo] :
      โ†‘p โ‰ค OfNat.ofNat n โ†” p โ‰ค OfNat.ofNat n
      @[simp]
      theorem NNRat.ofNat_le_cast {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p : โ„šโ‰ฅ0} {n : โ„•} [n.AtLeastTwo] :
      OfNat.ofNat n โ‰ค โ†‘p โ†” OfNat.ofNat n โ‰ค p
      @[simp]
      theorem NNRat.cast_lt_ofNat {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p : โ„šโ‰ฅ0} {n : โ„•} [n.AtLeastTwo] :
      โ†‘p < OfNat.ofNat n โ†” p < OfNat.ofNat n
      @[simp]
      theorem NNRat.ofNat_lt_cast {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {p : โ„šโ‰ฅ0} {n : โ„•} [n.AtLeastTwo] :
      OfNat.ofNat n < โ†‘p โ†” OfNat.ofNat n < p
      @[simp]
      theorem NNRat.cast_le_natCast {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„šโ‰ฅ0} {n : โ„•} :
      โ†‘m โ‰ค โ†‘n โ†” m โ‰ค โ†‘n
      @[simp]
      theorem NNRat.natCast_le_cast {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„•} {n : โ„šโ‰ฅ0} :
      โ†‘m โ‰ค โ†‘n โ†” โ†‘m โ‰ค n
      @[simp]
      theorem NNRat.cast_lt_natCast {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„šโ‰ฅ0} {n : โ„•} :
      โ†‘m < โ†‘n โ†” m < โ†‘n
      @[simp]
      theorem NNRat.natCast_lt_cast {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] {m : โ„•} {n : โ„šโ‰ฅ0} :
      โ†‘m < โ†‘n โ†” โ†‘m < n
      @[simp]
      theorem NNRat.cast_min {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„šโ‰ฅ0) :
      โ†‘(min p q) = min โ†‘p โ†‘q
      @[simp]
      theorem NNRat.cast_max {K : Type u_5} [Semifield K] [LinearOrder K] [IsStrictOrderedRing K] (p q : โ„šโ‰ฅ0) :
      โ†‘(max p q) = max โ†‘p โ†‘q