The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Order.Ring.WithTop

99 declarations. Mathlib docs · Source

Structures involving * and 0 on WithTop and WithBot

The main results of this section are WithTop.instOrderedCommSemiring and WithBot.instOrderedCommSemiring.

theorem WithTop.instMonoidWithZero.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : WithTop α → ℕ → Sort u_2) (a : WithTop α) (n : ℕ)
  (h_1 : (a : α) → (n : ℕ) → motive (some a) n) (h_2 : Unit → motive none 0) (h_3 : (_n : ℕ) → motive none _n.succ)
  (a_1 : α) (n_1 : ℕ),
  a = some a_1 →
    n = n_1 →
      (match a, n with
        | some a, n => h_1 a n
        | none, 0 => h_2 ()
        | none, _n.succ => h_3 _n) ≍
        h_1 a_1 n_1

theorem WithBot.instMonoidWithZero.match_1.congr_eq_3 E1 #

∀ {α : Type u_1} (motive : WithBot α → ℕ → Sort u_2) (a : WithBot α) (n : ℕ)
  (h_1 : (a : α) → (n : ℕ) → motive (some a) n) (h_2 : Unit → motive none 0) (h_3 : (_n : ℕ) → motive none _n.succ)
  (_n : ℕ),
  a = none →
    n = _n.succ →
      (match a, n with
        | some a, n => h_1 a n
        | none, 0 => h_2 ()
        | none, _n.succ => h_3 _n) ≍
        h_3 _n

theorem WithBot.instMonoidWithZero.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : WithBot α → ℕ → Sort u_2) (a : WithBot α) (n : ℕ)
  (h_1 : (a : α) → (n : ℕ) → motive (some a) n) (h_2 : Unit → motive none 0) (h_3 : (_n : ℕ) → motive none _n.succ)
  (a_1 : α) (n_1 : ℕ),
  a = some a_1 →
    n = n_1 →
      (match a, n with
        | some a, n => h_1 a n
        | none, 0 => h_2 ()
        | none, _n.succ => h_3 _n) ≍
        h_1 a_1 n_1

theorem WithTop.instMulZeroClass.match_1.congr_eq_3 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (b : α),
  x = none →
    x_1 = some b →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_3 b

theorem WithTop.instMulZeroClass.match_1.congr_eq_2 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (a : α),
  x = some a →
    x_1 = none →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_2 a

theorem WithTop.instMonoidWithZero.match_1.congr_eq_3 E1 #

∀ {α : Type u_1} (motive : WithTop α → ℕ → Sort u_2) (a : WithTop α) (n : ℕ)
  (h_1 : (a : α) → (n : ℕ) → motive (some a) n) (h_2 : Unit → motive none 0) (h_3 : (_n : ℕ) → motive none _n.succ)
  (_n : ℕ),
  a = none →
    n = _n.succ →
      (match a, n with
        | some a, n => h_1 a n
        | none, 0 => h_2 ()
        | none, _n.succ => h_3 _n) ≍
        h_3 _n

theorem WithTop.instMulZeroClass.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (a b : α),
  x = some a →
    x_1 = some b →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_1 a b

theorem WithBot.instMulZeroClass.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (a b : α),
  x = some a →
    x_1 = some b →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_1 a b

theorem WithBot.instMulZeroClass.match_1.congr_eq_2 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (a : α),
  x = some a →
    x_1 = none →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_2 a

theorem WithTop.instMonoidWithZero.match_1.congr_eq_2 E1 #

∀ {α : Type u_1} (motive : WithTop α → ℕ → Sort u_2) (a : WithTop α) (n : ℕ)
  (h_1 : (a : α) → (n : ℕ) → motive (some a) n) (h_2 : Unit → motive none 0) (h_3 : (_n : ℕ) → motive none _n.succ),
  a = none →
    n = 0 →
      (match a, n with
        | some a, n => h_1 a n
        | none, 0 => h_2 ()
        | none, _n.succ => h_3 _n) ≍
        h_2 ()

theorem WithBot.instMulZeroClass.match_1.congr_eq_4 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none),
  x = none →
    x_1 = none →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_4 ()

theorem WithBot.instMonoidWithZero.match_1.congr_eq_2 E1 #

∀ {α : Type u_1} (motive : WithBot α → ℕ → Sort u_2) (a : WithBot α) (n : ℕ)
  (h_1 : (a : α) → (n : ℕ) → motive (some a) n) (h_2 : Unit → motive none 0) (h_3 : (_n : ℕ) → motive none _n.succ),
  a = none →
    n = 0 →
      (match a, n with
        | some a, n => h_1 a n
        | none, 0 => h_2 ()
        | none, _n.succ => h_3 _n) ≍
        h_2 ()

theorem WithTop.instMulZeroClass.match_1.congr_eq_4 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none),
  x = none →
    x_1 = none →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_4 ()

theorem WithBot.instMulZeroClass.match_1.congr_eq_3 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α)
  (h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
  (h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (b : α),
  x = none →
    x_1 = some b →
      (match x, x_1 with
        | some a, some b => h_1 a b
        | some a, none => h_2 a
        | none, some b => h_3 b
        | none, none => h_4 ()) ≍
        h_3 b

instance WithBot.instMulZeroClass E0 #

{α : Type u_1} → [DecidableEq α] → [MulZeroClass α] → MulZeroClass (WithBot α)

instance WithTop.instMulZeroClass E0 #

{α : Type u_1} → [DecidableEq α] → [MulZeroClass α] → MulZeroClass (WithTop α)

theorem WithTop.coe_mul E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a b : α), ↑(a * b) = ↑a * ↑b

theorem WithBot.coe_mul E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a b : α), ↑(a * b) = ↑a * ↑b

theorem WithBot.mul_bot' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a : WithBot α), a * ⊥ = if a = 0 then 0 else ⊥

theorem WithTop.mul_top' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a : WithTop α), a * ⊤ = if a = 0 then 0 else ⊤

theorem WithTop.mul_top E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a : WithTop α}, a ≠ 0 → a * ⊤ = ⊤

theorem WithBot.mul_bot E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a : WithBot α}, a ≠ 0 → a * ⊥ = ⊥

theorem WithTop.top_mul' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (b : WithTop α), ⊤ * b = if b = 0 then 0 else ⊤

theorem WithBot.bot_mul' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (b : WithBot α), ⊥ * b = if b = 0 then 0 else ⊥

theorem WithTop.top_mul E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {b : WithTop α}, b ≠ 0 → ⊤ * b = ⊤

theorem WithBot.bot_mul E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {b : WithBot α}, b ≠ 0 → ⊥ * b = ⊥

theorem WithBot.bot_mul_bot E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α], ⊥ * ⊥ = ⊥

theorem WithTop.top_mul_top E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α], ⊤ * ⊤ = ⊤

theorem WithTop.mul_def E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a b : WithTop α),
  a * b = if a = 0 ∨ b = 0 then 0 else WithTop.map₂ (fun x1 x2 ↦ x1 * x2) a b

theorem WithBot.mul_def E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a b : WithBot α),
  a * b = if a = 0 ∨ b = 0 then 0 else WithBot.map₂ (fun x1 x2 ↦ x1 * x2) a b

theorem WithBot.mul_eq_bot_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a b : WithBot α},
  a * b = ⊥ ↔ a ≠ 0 ∧ b = ⊥ ∨ a = ⊥ ∧ b ≠ 0

theorem WithTop.mul_eq_top_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a b : WithTop α},
  a * b = ⊤ ↔ a ≠ 0 ∧ b = ⊤ ∨ a = ⊤ ∧ b ≠ 0

theorem WithBot.mul_coe_eq_bind E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {b : α},
  b ≠ 0 → ∀ (a : WithBot α), a * ↑b = Option.bind a fun a ↦ some (a * b)

theorem WithTop.mul_coe_eq_bind E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {b : α},
  b ≠ 0 → ∀ (a : WithTop α), a * ↑b = Option.bind a fun a ↦ some (a * b)

theorem WithTop.coe_mul_eq_bind E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a : α},
  a ≠ 0 → ∀ (b : WithTop α), ↑a * b = Option.bind b fun b ↦ some (a * b)

theorem WithBot.coe_mul_eq_bind E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a : α},
  a ≠ 0 → ∀ (b : WithBot α), ↑a * b = Option.bind b fun b ↦ some (a * b)

theorem WithTop.untopD_zero_mul E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a b : WithTop α),
  WithTop.untopD 0 (a * b) = WithTop.untopD 0 a * WithTop.untopD 0 b

theorem WithBot.unbotD_zero_mul E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] (a b : WithBot α),
  WithBot.unbotD 0 (a * b) = WithBot.unbotD 0 a * WithBot.unbotD 0 b

theorem WithTop.mul_ne_top E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a b : WithTop α}, a ≠ ⊤ → b ≠ ⊤ → a * b ≠ ⊤

theorem WithBot.mul_ne_bot E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a b : WithBot α}, a ≠ ⊥ → b ≠ ⊥ → a * b ≠ ⊥

theorem WithBot.bot_lt_mul E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : LT α] {a b : WithBot α},
  ⊥ < a → ⊥ < b → ⊥ < a * b

theorem WithTop.mul_lt_top E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : LT α] {a b : WithTop α},
  a < ⊤ → b < ⊤ → a * b < ⊤

instance WithBot.instNoZeroDivisors E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [NoZeroDivisors α], NoZeroDivisors (WithBot α)

instance WithTop.instNoZeroDivisors E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [NoZeroDivisors α], NoZeroDivisors (WithTop α)

theorem WithTop.mul_right_strictMono E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a : WithTop α} [inst_2 : Preorder α]
  [PosMulStrictMono α], 0 < a → a ≠ ⊤ → StrictMono fun x ↦ a * x

theorem WithTop.mul_left_strictMono E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] {a : WithTop α} [inst_2 : Preorder α]
  [MulPosStrictMono α], 0 < a → a ≠ ⊤ → StrictMono fun x ↦ x * a

instance WithTop.instMulZeroOneClass E0 #

{α : Type u_1} → [DecidableEq α] → [MulZeroOneClass α] → [Nontrivial α] → MulZeroOneClass (WithTop α)

Nontrivial α is needed here as otherwise we have 1 * ⊤ = ⊤ but also 0 * ⊤ = 0.

instance WithBot.instMulZeroOneClass E0 #

{α : Type u_1} → [DecidableEq α] → [MulZeroOneClass α] → [Nontrivial α] → MulZeroOneClass (WithBot α)

Nontrivial α is needed here as otherwise we have 1 * ⊥ = ⊥ but also = 0 * ⊥ = 0.

def MonoidWithZeroHom.withTopMap E1 #

{R : Type u_2} →
  {S : Type u_3} →
    [inst : MulZeroOneClass R] →
      [inst_1 : DecidableEq R] →
        [inst_2 : Nontrivial R] →
          [inst_3 : MulZeroOneClass S] →
            [inst_4 : DecidableEq S] →
              [inst_5 : Nontrivial S] → (f : R →*₀ S) → Function.Injective ⇑f → WithTop R →*₀ WithTop S

A version of WithTop.map for MonoidWithZeroHoms.

def MonoidWithZeroHom.withBotMap E1 #

{R : Type u_2} →
  {S : Type u_3} →
    [inst : MulZeroOneClass R] →
      [inst_1 : DecidableEq R] →
        [inst_2 : Nontrivial R] →
          [inst_3 : MulZeroOneClass S] →
            [inst_4 : DecidableEq S] →
              [inst_5 : Nontrivial S] → (f : R →*₀ S) → Function.Injective ⇑f → WithBot R →*₀ WithBot S

A version of WithBot.map for MonoidWithZeroHoms.

theorem MonoidWithZeroHom.withTopMap_apply E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : MulZeroOneClass R] [inst_1 : DecidableEq R] [inst_2 : Nontrivial R]
  [inst_3 : MulZeroOneClass S] [inst_4 : DecidableEq S] [inst_5 : Nontrivial S] (f : R →*₀ S)
  (hf : Function.Injective ⇑f), ⇑(f.withTopMap hf) = WithTop.map ⇑f

theorem MonoidWithZeroHom.withBotMap_apply E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : MulZeroOneClass R] [inst_1 : DecidableEq R] [inst_2 : Nontrivial R]
  [inst_3 : MulZeroOneClass S] [inst_4 : DecidableEq S] [inst_5 : Nontrivial S] (f : R →*₀ S)
  (hf : Function.Injective ⇑f), ⇑(f.withBotMap hf) = WithBot.map ⇑f

instance WithTop.instSemigroupWithZero E0 #

{α : Type u_1} → [DecidableEq α] → [inst : SemigroupWithZero α] → [NoZeroDivisors α] → SemigroupWithZero (WithTop α)

instance WithBot.instSemigroupWithZero E0 #

{α : Type u_1} → [DecidableEq α] → [inst : SemigroupWithZero α] → [NoZeroDivisors α] → SemigroupWithZero (WithBot α)

instance WithTop.instMonoidWithZero E0 #

{α : Type u_1} →
  [DecidableEq α] → [inst : MonoidWithZero α] → [NoZeroDivisors α] → [Nontrivial α] → MonoidWithZero (WithTop α)

instance WithBot.instMonoidWithZero E0 #

{α : Type u_1} →
  [DecidableEq α] → [inst : MonoidWithZero α] → [NoZeroDivisors α] → [Nontrivial α] → MonoidWithZero (WithBot α)

theorem WithTop.coe_pow E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  (a : α) (n : ℕ), ↑(a ^ n) = ↑a ^ n

theorem WithBot.coe_pow E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  (a : α) (n : ℕ), ↑(a ^ n) = ↑a ^ n

theorem WithBot.bot_pow E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {n : ℕ}, n ≠ 0 → ⊥ ^ n = ⊥

theorem WithTop.top_pow E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {n : ℕ}, n ≠ 0 → ⊤ ^ n = ⊤

theorem WithBot.pow_eq_bot_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithBot α} {n : ℕ}, x ^ n = ⊥ ↔ x = ⊥ ∧ n ≠ 0

theorem WithTop.pow_eq_top_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithTop α} {n : ℕ}, x ^ n = ⊤ ↔ x = ⊤ ∧ n ≠ 0

theorem WithBot.pow_ne_bot_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithBot α} {n : ℕ}, x ^ n ≠ ⊥ ↔ x ≠ ⊥ ∨ n = 0

theorem WithTop.pow_ne_top_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithTop α} {n : ℕ}, x ^ n ≠ ⊤ ↔ x ≠ ⊤ ∨ n = 0

theorem WithTop.pow_lt_top_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithTop α} {n : ℕ} [inst_4 : Preorder α], x ^ n < ⊤ ↔ x < ⊤ ∨ n = 0

theorem WithBot.bot_lt_pow_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithBot α} {n : ℕ} [inst_4 : Preorder α], ⊥ < x ^ n ↔ ⊥ < x ∨ n = 0

theorem WithBot.pow_ne_bot E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithBot α} {n : ℕ}, x ≠ ⊥ → x ^ n ≠ ⊥

theorem WithTop.pow_ne_top E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithTop α} {n : ℕ}, x ≠ ⊤ → x ^ n ≠ ⊤

theorem WithTop.pow_lt_top E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithTop α} {n : ℕ} [inst_4 : Preorder α], x < ⊤ → x ^ n < ⊤

theorem WithBot.bot_lt_pow E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MonoidWithZero α] [inst_2 : NoZeroDivisors α] [inst_3 : Nontrivial α]
  {x : WithBot α} {n : ℕ} [inst_4 : Preorder α], ⊥ < x → ⊥ < x ^ n

instance WithBot.instCommMonoidWithZero E0 #

{α : Type u_1} →
  [DecidableEq α] → [inst : CommMonoidWithZero α] → [NoZeroDivisors α] → [Nontrivial α] → CommMonoidWithZero (WithBot α)

instance WithTop.instCommMonoidWithZero E0 #

{α : Type u_1} →
  [DecidableEq α] → [inst : CommMonoidWithZero α] → [NoZeroDivisors α] → [Nontrivial α] → CommMonoidWithZero (WithTop α)

instance WithBot.instNonUnitalNonAssocSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : NonUnitalNonAssocSemiring α] → [Subsingleton (AddUnits α)] → NonUnitalNonAssocSemiring (WithBot α)

instance WithTop.instNonUnitalNonAssocSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : NonUnitalNonAssocSemiring α] → [Subsingleton (AddUnits α)] → NonUnitalNonAssocSemiring (WithTop α)

instance WithTop.instNonAssocSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : NonAssocSemiring α] → [Subsingleton (AddUnits α)] → [Nontrivial α] → NonAssocSemiring (WithTop α)

instance WithBot.instNonAssocSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : NonAssocSemiring α] → [Subsingleton (AddUnits α)] → [Nontrivial α] → NonAssocSemiring (WithBot α)

instance WithTop.instNonUnitalSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : NonUnitalSemiring α] → [Subsingleton (AddUnits α)] → [NoZeroDivisors α] → NonUnitalSemiring (WithTop α)

instance WithBot.instNonUnitalSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : NonUnitalSemiring α] → [Subsingleton (AddUnits α)] → [NoZeroDivisors α] → NonUnitalSemiring (WithBot α)

instance WithBot.instSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : Semiring α] → [Subsingleton (AddUnits α)] → [NoZeroDivisors α] → [Nontrivial α] → Semiring (WithBot α)

instance WithTop.instSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : Semiring α] → [Subsingleton (AddUnits α)] → [NoZeroDivisors α] → [Nontrivial α] → Semiring (WithTop α)

instance WithBot.instCommSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : CommSemiring α] →
      [Subsingleton (AddUnits α)] → [NoZeroDivisors α] → [Nontrivial α] → CommSemiring (WithBot α)

instance WithTop.instCommSemiring E0 #

{α : Type u_1} →
  [DecidableEq α] →
    [inst : CommSemiring α] →
      [Subsingleton (AddUnits α)] → [NoZeroDivisors α] → [Nontrivial α] → CommSemiring (WithTop α)

instance WithTop.instIsOrderedRing E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommSemiring α] [inst_2 : PartialOrder α]
  [inst_3 : CanonicallyOrderedAdd α] [inst_4 : NoZeroDivisors α] [inst_5 : Nontrivial α], IsOrderedRing (WithTop α)

def RingHom.withTopMap E1 #

{R : Type u_2} →
  {S : Type u_3} →
    [inst : NonAssocSemiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : CanonicallyOrderedAdd R] →
          [inst_3 : DecidableEq R] →
            [inst_4 : Nontrivial R] →
              [inst_5 : NonAssocSemiring S] →
                [inst_6 : PartialOrder S] →
                  [inst_7 : CanonicallyOrderedAdd S] →
                    [inst_8 : DecidableEq S] →
                      [inst_9 : Nontrivial S] → (f : R →+* S) → Function.Injective ⇑f → WithTop R →+* WithTop S

A version of WithTop.map for RingHoms.

theorem RingHom.withTopMap_apply E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : PartialOrder R] [inst_2 : CanonicallyOrderedAdd R]
  [inst_3 : DecidableEq R] [inst_4 : Nontrivial R] [inst_5 : NonAssocSemiring S] [inst_6 : PartialOrder S]
  [inst_7 : CanonicallyOrderedAdd S] [inst_8 : DecidableEq S] [inst_9 : Nontrivial S] (f : R →+* S)
  (hf : Function.Injective ⇑f), ⇑(f.withTopMap hf) = (↑((↑f).withTopMap hf)).toFun

def RingHom.withBotMap E1 #

{R : Type u_2} →
  {S : Type u_3} →
    [inst : NonAssocSemiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : CanonicallyOrderedAdd R] →
          [inst_3 : DecidableEq R] →
            [inst_4 : Nontrivial R] →
              [inst_5 : NonAssocSemiring S] →
                [inst_6 : PartialOrder S] →
                  [inst_7 : CanonicallyOrderedAdd S] →
                    [inst_8 : DecidableEq S] →
                      [inst_9 : Nontrivial S] → (f : R →+* S) → Function.Injective ⇑f → WithBot R →+* WithBot S

A version of WithTop.map for RingHoms.

theorem RingHom.withBotMap_apply E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : PartialOrder R] [inst_2 : CanonicallyOrderedAdd R]
  [inst_3 : DecidableEq R] [inst_4 : Nontrivial R] [inst_5 : NonAssocSemiring S] [inst_6 : PartialOrder S]
  [inst_7 : CanonicallyOrderedAdd S] [inst_8 : DecidableEq S] [inst_9 : Nontrivial S] (f : R →+* S)
  (hf : Function.Injective ⇑f), ⇑(f.withBotMap hf) = (↑((↑f).withBotMap hf)).toFun

theorem WithTop.mul_lt_mul E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommSemiring α] [inst_2 : PartialOrder α] [OrderBot α]
  [inst_4 : CanonicallyOrderedAdd α] [PosMulStrictMono α] {a₁ a₂ b₁ b₂ : WithTop α},
  a₁ < a₂ → b₁ < b₂ → a₁ * b₁ < a₂ * b₂

theorem WithTop.pow_right_strictMono E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommSemiring α] [inst_2 : PartialOrder α] [OrderBot α]
  [inst_4 : CanonicallyOrderedAdd α] [PosMulStrictMono α] [inst_6 : NoZeroDivisors α] [inst_7 : Nontrivial α] {n : ℕ},
  n ≠ 0 → StrictMono fun a ↦ a ^ n

theorem WithTop.pow_lt_pow_left E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommSemiring α] [inst_2 : PartialOrder α] [OrderBot α]
  [inst_4 : CanonicallyOrderedAdd α] [PosMulStrictMono α] [inst_6 : NoZeroDivisors α] [inst_7 : Nontrivial α]
  {a b : WithTop α}, a < b → ∀ {n : ℕ}, n ≠ 0 → a ^ n < b ^ n

instance WithBot.instPosMulMono E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [PosMulMono α],
  PosMulMono (WithBot α)

instance WithBot.instMulPosMono E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [MulPosMono α],
  MulPosMono (WithBot α)

instance WithBot.instPosMulStrictMono E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [PosMulStrictMono α],
  PosMulStrictMono (WithBot α)

instance WithBot.instMulPosStrictMono E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [MulPosStrictMono α],
  MulPosStrictMono (WithBot α)

instance WithBot.instPosMulReflectLT E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [PosMulReflectLT α],
  PosMulReflectLT (WithBot α)

instance WithBot.instMulPosReflectLT E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [MulPosReflectLT α],
  MulPosReflectLT (WithBot α)

instance WithBot.instPosMulReflectLE E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [PosMulReflectLE α],
  PosMulReflectLE (WithBot α)

instance WithBot.instMulPosReflectLE E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : MulZeroClass α] [inst_2 : Preorder α] [MulPosReflectLE α],
  MulPosReflectLE (WithBot α)

instance WithBot.instIsOrderedRing E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommSemiring α] [inst_2 : PartialOrder α] [IsOrderedRing α]
  [inst_4 : CanonicallyOrderedAdd α] [inst_5 : NoZeroDivisors α] [inst_6 : Nontrivial α], IsOrderedRing (WithBot α)