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 / V04. Order and lattices

Mathlib.Order.WithBot

388 declarations. Mathlib docs · Source

WithBot, WithTop

Adding a bot or a top to an order.

Main declarations

  • With<Top/Bot> α: Equips Option α with the order on α plus none as the top/bottom element.

(WithBot α)ᵒᵈ ≃ WithTop αᵒᵈ, (WithTop α)ᵒᵈ ≃ WithBot αᵒᵈ

theorem Equiv.withBotSubtypeNe.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : { y // y ≠ ⊥ } → Sort u_2) (x : { y // y ≠ ⊥ })
  (h_1 : (x : WithBot α) → (h : x ≠ ⊥) → motive ⟨x, h⟩) (x_1 : WithBot α) (h : x_1 ≠ ⊥),
  x = ⟨x_1, h⟩ →
    (match x with
      | ⟨x, h⟩ => h_1 x h) ≍
      h_1 x_1 h

theorem WithBot.unbot.congr_simp E1 #

∀ {α : Type u_1} (x x_1 : WithBot α) (e_x : x = x_1) (a : x ≠ ⊥), x.unbot a = x_1.unbot ⋯

theorem WithBot.decidableLT.match_1.congr_eq_2 E1 #

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

theorem WithBot.semilatticeSup.match_1.congr_eq_2 E1 #

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

theorem WithTop.semilatticeInf.match_1.congr_eq_4 E1 #

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

theorem WithBot.decidableLE.match_1.congr_eq_2 E1 #

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

theorem WithTop.decidableLT.match_1.congr_eq_2 E1 #

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

theorem WithTop.decidableLE.match_1.congr_eq_3 E1 #

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

theorem WithTop.decidableLT.match_1.congr_eq_3 E1 #

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

theorem WithBot.unbotA.congr_simp E1 #

∀ {α : Type u_1} [inst : Nonempty α] (a a_1 : WithBot α), a = a_1 → a.unbotA = a_1.unbotA

theorem WithTop.decidableLT.match_1.congr_eq_1 E1 #

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

theorem WithTop.untop.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : (x : WithTop α) → x ≠ ⊤ → Sort u_2) (x : WithTop α) (x_1 : x ≠ ⊤)
  (h_1 : (x : α) → (x_2 : ↑x ≠ ⊤) → motive (some x) x_2) (x_2 : α) (x_3 : ↑x_2 ≠ ⊤),
  x = some x_2 →
    x_1 ≍ x_3 →
      (match x, x_1 with
        | some x, x_4 => h_1 x x_4) ≍
        h_1 x_2 x_3

theorem WithTop.decidableLE.match_1.congr_eq_1 E1 #

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

theorem WithBot.semilatticeSup.match_1.congr_eq_3 E1 #

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

theorem Equiv.withTopSubtypeNe.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : { y // y ≠ ⊤ } → Sort u_2) (x : { y // y ≠ ⊤ })
  (h_1 : (x : WithTop α) → (h : x ≠ ⊤) → motive ⟨x, h⟩) (x_1 : WithTop α) (h : x_1 ≠ ⊤),
  x = ⟨x_1, h⟩ →
    (match x with
      | ⟨x, h⟩ => h_1 x h) ≍
      h_1 x_1 h

theorem WithTop.semilatticeInf.match_1.congr_eq_1 E1 #

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

theorem WithBot.unbot.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : (x : WithBot α) → x ≠ ⊥ → Sort u_2) (x : WithBot α) (x_1 : x ≠ ⊥)
  (h_1 : (x : α) → (x_2 : ↑x ≠ ⊥) → motive (some x) x_2) (x_2 : α) (x_3 : ↑x_2 ≠ ⊥),
  x = some x_2 →
    x_1 ≍ x_3 →
      (match x, x_1 with
        | some x, x_4 => h_1 x x_4) ≍
        h_1 x_2 x_3

theorem WithBot.decidableLT.match_1.congr_eq_3 E1 #

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

theorem WithTop.semilatticeInf.match_1.congr_eq_3 E1 #

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

theorem WithBot.decidableLT.match_1.congr_eq_1 E1 #

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

theorem WithBot.decidableLE.match_1.congr_eq_1 E1 #

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

theorem WithBot.decidableLE.match_1.congr_eq_3 E1 #

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

theorem WithBot.semilatticeSup.match_1.congr_eq_4 E1 #

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

theorem WithBot.semilatticeSup.match_1.congr_eq_1 E1 #

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

theorem WithTop.semilatticeInf.match_1.congr_eq_2 E1 #

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

theorem WithTop.decidableLE.match_1.congr_eq_2 E1 #

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

instance WithTop.nontrivial E0 #

∀ {α : Type u_1} [Nonempty α], Nontrivial (WithTop α)

instance WithBot.nontrivial E0 #

∀ {α : Type u_1} [Nonempty α], Nontrivial (WithBot α)

instance WithBot.instUniqueOfIsEmpty E0 #

{α : Type u_1} → [IsEmpty α] → Unique (WithBot α)

instance WithTop.instUniqueOfIsEmpty E0 #

{α : Type u_1} → [IsEmpty α] → Unique (WithTop α)

theorem WithBot.coe_injective E0 #

∀ {α : Type u_1}, Function.Injective WithBot.some

theorem WithTop.coe_injective E0 #

∀ {α : Type u_1}, Function.Injective WithTop.some

theorem WithTop.coe_inj E0 #

∀ {α : Type u_1} {a b : α}, ↑a = ↑b ↔ a = b

theorem WithBot.coe_inj E0 #

∀ {α : Type u_1} {a b : α}, ↑a = ↑b ↔ a = b

theorem WithTop.forall E1 #

∀ {α : Type u_1} {p : WithTop α → Prop}, (∀ (x : WithTop α), p x) ↔ p ⊤ ∧ ∀ (x : α), p ↑x

theorem WithBot.forall E1 #

∀ {α : Type u_1} {p : WithBot α → Prop}, (∀ (x : WithBot α), p x) ↔ p ⊥ ∧ ∀ (x : α), p ↑x

theorem WithBot.exists E1 #

∀ {α : Type u_1} {p : WithBot α → Prop}, (∃ x, p x) ↔ p ⊥ ∨ ∃ x, p ↑x

theorem WithTop.exists E1 #

∀ {α : Type u_1} {p : WithTop α → Prop}, (∃ x, p x) ↔ p ⊤ ∨ ∃ x, p ↑x

theorem WithBot.none_eq_bot E1 #

∀ {α : Type u_1}, none = ⊥

theorem WithTop.none_eq_top E1 #

∀ {α : Type u_1}, none = ⊤

theorem WithBot.some_eq_coe E0 #

∀ {α : Type u_1} (a : α), some a = ↑a

theorem WithTop.some_eq_coe E0 #

∀ {α : Type u_1} (a : α), some a = ↑a

theorem WithTop.top_ne_coe E0 #

∀ {α : Type u_1} {a : α}, ⊤ ≠ ↑a

theorem WithBot.bot_ne_coe E0 #

∀ {α : Type u_1} {a : α}, ⊥ ≠ ↑a

theorem WithTop.coe_ne_top E0 #

∀ {α : Type u_1} {a : α}, ↑a ≠ ⊤

theorem WithBot.coe_ne_bot E0 #

∀ {α : Type u_1} {a : α}, ↑a ≠ ⊥

def WithBot.unbotD E1 #

{α : Type u_1} → α → WithBot α → α

Specialization of Option.getD to values in WithBot α that respects API boundaries.

def WithTop.untopD E1 #

{α : Type u_1} → α → WithTop α → α

Specialization of Option.getD to values in WithTop α that respects API boundaries.

theorem WithTop.untopD_top E0 #

∀ {α : Type u_5} (d : α), WithTop.untopD d ⊤ = d

theorem WithBot.unbotD_bot E0 #

∀ {α : Type u_5} (d : α), WithBot.unbotD d ⊥ = d

theorem WithBot.unbotD_coe E0 #

∀ {α : Type u_5} (d x : α), WithBot.unbotD d ↑x = x

theorem WithTop.untopD_coe E0 #

∀ {α : Type u_5} (d x : α), WithTop.untopD d ↑x = x

theorem WithTop.coe_eq_coe E0 #

∀ {α : Type u_1} {a b : α}, ↑a = ↑b ↔ a = b

theorem WithBot.coe_eq_coe E0 #

∀ {α : Type u_1} {a b : α}, ↑a = ↑b ↔ a = b

theorem WithBot.unbotD_eq_iff E0 #

∀ {α : Type u_1} {d y : α} {x : WithBot α}, WithBot.unbotD d x = y ↔ x = ↑y ∨ x = ⊥ ∧ y = d

theorem WithTop.untopD_eq_iff E0 #

∀ {α : Type u_1} {d y : α} {x : WithTop α}, WithTop.untopD d x = y ↔ x = ↑y ∨ x = ⊤ ∧ y = d

theorem WithBot.unbotD_eq_self_iff E0 #

∀ {α : Type u_1} {d : α} {x : WithBot α}, WithBot.unbotD d x = d ↔ x = ↑d ∨ x = ⊥

theorem WithTop.untopD_eq_self_iff E0 #

∀ {α : Type u_1} {d : α} {x : WithTop α}, WithTop.untopD d x = d ↔ x = ↑d ∨ x = ⊤

theorem WithBot.unbotD_eq_unbotD_iff E0 #

∀ {α : Type u_1} {d : α} {x y : WithBot α},
  WithBot.unbotD d x = WithBot.unbotD d y ↔ x = y ∨ x = ↑d ∧ y = ⊥ ∨ x = ⊥ ∧ y = ↑d

theorem WithTop.untopD_eq_untopD_iff E0 #

∀ {α : Type u_1} {d : α} {x y : WithTop α},
  WithTop.untopD d x = WithTop.untopD d y ↔ x = y ∨ x = ↑d ∧ y = ⊤ ∨ x = ⊤ ∧ y = ↑d

def WithBot.map E1 #

{α : Type u_1} → {β : Type u_2} → (α → β) → WithBot α → WithBot β

Lift a map f : α → β to WithBot α → WithBot β. Implemented using Option.map.

def WithTop.map E1 #

{α : Type u_1} → {β : Type u_2} → (α → β) → WithTop α → WithTop β

Lift a map f : α → β to WithTop α → WithTop β. Implemented using Option.map.

theorem WithBot.map_bot E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β), WithBot.map f ⊥ = ⊥

theorem WithTop.map_top E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β), WithTop.map f ⊤ = ⊤

theorem WithBot.map_coe E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : α), WithBot.map f ↑a = ↑(f a)

theorem WithTop.map_coe E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : α), WithTop.map f ↑a = ↑(f a)

theorem WithTop.map_eq_top_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {a : WithTop α}, WithTop.map f a = ⊤ ↔ a = ⊤

theorem WithBot.map_eq_bot_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {a : WithBot α}, WithBot.map f a = ⊥ ↔ a = ⊥

theorem WithBot.map_eq_some_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {y : β} {v : WithBot α}, WithBot.map f v = ↑y ↔ ∃ x, v = ↑x ∧ f x = y

theorem WithTop.map_eq_some_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {y : β} {v : WithTop α}, WithTop.map f v = ↑y ↔ ∃ x, v = ↑x ∧ f x = y

theorem WithBot.some_eq_map_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {y : β} {v : WithBot α}, ↑y = WithBot.map f v ↔ ∃ x, v = ↑x ∧ f x = y

theorem WithTop.some_eq_map_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {y : β} {v : WithTop α}, ↑y = WithTop.map f v ↔ ∃ x, v = ↑x ∧ f x = y

theorem WithTop.map_id E0 #

∀ {α : Type u_1}, WithTop.map id = id

theorem WithBot.map_id E0 #

∀ {α : Type u_1}, WithBot.map id = id

theorem WithBot.map_map E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (h : β → γ) (g : α → β) (a : WithBot α),
  WithBot.map h (WithBot.map g a) = WithBot.map (h ∘ g) a

theorem WithTop.map_map E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (h : β → γ) (g : α → β) (a : WithTop α),
  WithTop.map h (WithTop.map g a) = WithTop.map (h ∘ g) a

theorem WithTop.comp_map E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (h : β → γ) (g : α → β) (x : WithTop α),
  WithTop.map (h ∘ g) x = WithTop.map h (WithTop.map g x)

theorem WithBot.comp_map E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (h : β → γ) (g : α → β) (x : WithBot α),
  WithBot.map (h ∘ g) x = WithBot.map h (WithBot.map g x)

theorem WithTop.map_comp_map E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β) (g : β → γ),
  WithTop.map g ∘ WithTop.map f = WithTop.map (g ∘ f)

theorem WithBot.map_comp_map E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β) (g : β → γ),
  WithBot.map g ∘ WithBot.map f = WithBot.map (g ∘ f)

theorem WithBot.map_comm E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f₁ : α → β} {f₂ : α → γ} {g₁ : β → δ} {g₂ : γ → δ},
  g₁ ∘ f₁ = g₂ ∘ f₂ → ∀ (a : α), WithBot.map g₁ (WithBot.map f₁ ↑a) = WithBot.map g₂ (WithBot.map f₂ ↑a)

theorem WithTop.map_comm E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f₁ : α → β} {f₂ : α → γ} {g₁ : β → δ} {g₂ : γ → δ},
  g₁ ∘ f₁ = g₂ ∘ f₂ → ∀ (a : α), WithTop.map g₁ (WithTop.map f₁ ↑a) = WithTop.map g₂ (WithTop.map f₂ ↑a)

theorem WithTop.map_injective E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → Function.Injective (WithTop.map f)

theorem WithBot.map_injective E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → Function.Injective (WithBot.map f)

def WithBot.map₂ E1 #

{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → (α → β → γ) → WithBot α → WithBot β → WithBot γ

The image of a binary function f : α → β → γ as a function WithBot α → WithBot β → WithBot γ.

Mathematically this should be thought of as the image of the corresponding function α × β → γ.

def WithTop.map₂ E1 #

{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → (α → β → γ) → WithTop α → WithTop β → WithTop γ

The image of a binary function f : α → β → γ as a function WithTop α → WithTop β → WithTop γ.

Mathematically this should be thought of as the image of the corresponding function α × β → γ.

theorem WithTop.map₂_coe_coe E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : β), WithTop.map₂ f ↑a ↑b = ↑(f a b)

theorem WithBot.map₂_coe_coe E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : β), WithBot.map₂ f ↑a ↑b = ↑(f a b)

theorem WithBot.map₂_bot_left E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (b : WithBot β), WithBot.map₂ f ⊥ b = ⊥

theorem WithTop.map₂_top_left E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (b : WithTop β), WithTop.map₂ f ⊤ b = ⊤

theorem WithTop.map₂_top_right E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithTop α), WithTop.map₂ f a ⊤ = ⊤

theorem WithBot.map₂_bot_right E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithBot α), WithBot.map₂ f a ⊥ = ⊥

theorem WithBot.map₂_coe_left E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : WithBot β),
  WithBot.map₂ f (↑a) b = WithBot.map (fun b ↦ f a b) b

theorem WithTop.map₂_coe_left E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : WithTop β),
  WithTop.map₂ f (↑a) b = WithTop.map (fun b ↦ f a b) b

theorem WithTop.map₂_coe_right E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithTop α) (b : β),
  WithTop.map₂ f a ↑b = WithTop.map (fun x ↦ f x b) a

theorem WithBot.map₂_coe_right E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithBot α) (b : β),
  WithBot.map₂ f a ↑b = WithBot.map (fun x ↦ f x b) a

theorem WithBot.map₂_eq_bot_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {a : WithBot α} {b : WithBot β},
  WithBot.map₂ f a b = ⊥ ↔ a = ⊥ ∨ b = ⊥

theorem WithTop.map₂_eq_top_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {a : WithTop α} {b : WithTop β},
  WithTop.map₂ f a b = ⊤ ↔ a = ⊤ ∨ b = ⊤

theorem WithBot.ne_bot_iff_exists E1 #

∀ {α : Type u_1} {x : WithBot α}, x ≠ ⊥ ↔ ∃ a, ↑a = x

theorem WithTop.ne_top_iff_exists E1 #

∀ {α : Type u_1} {x : WithTop α}, x ≠ ⊤ ↔ ∃ a, ↑a = x

theorem WithTop.forall_ne_top E1 #

∀ {α : Type u_1} {p : WithTop α → Prop}, (∀ (x : WithTop α), x ≠ ⊤ → p x) ↔ ∀ (x : α), p ↑x

theorem WithBot.forall_ne_bot E1 #

∀ {α : Type u_1} {p : WithBot α → Prop}, (∀ (x : WithBot α), x ≠ ⊥ → p x) ↔ ∀ (x : α), p ↑x

theorem WithTop.exists_ne_top E1 #

∀ {α : Type u_1} {p : WithTop α → Prop}, (∃ x, x ≠ ⊤ ∧ p x) ↔ ∃ x, p ↑x

theorem WithBot.exists_ne_bot E1 #

∀ {α : Type u_1} {p : WithBot α → Prop}, (∃ x, x ≠ ⊥ ∧ p x) ↔ ∃ x, p ↑x

def WithBot.unbot E1 #

{α : Type u_1} → (x : WithBot α) → x ≠ ⊥ → α

Deconstruct a x : WithBot α to the underlying value in α, given a proof that x ≠ ⊥.

def WithTop.untop E1 #

{α : Type u_1} → (x : WithTop α) → x ≠ ⊤ → α

Deconstruct a x : WithTop α to the underlying value in α, given a proof that x ≠ ⊤.

theorem WithBot.coe_unbot E0 #

∀ {α : Type u_1} (x : WithBot α) (hx : x ≠ ⊥), ↑(x.unbot hx) = x

theorem WithTop.coe_untop E0 #

∀ {α : Type u_1} (x : WithTop α) (hx : x ≠ ⊤), ↑(x.untop hx) = x

theorem WithTop.untop_coe E0 #

∀ {α : Type u_1} (x : α) (h : optParam (↑x ≠ ⊤) ⋯), (↑x).untop h = x

theorem WithBot.unbot_coe E0 #

∀ {α : Type u_1} (x : α) (h : optParam (↑x ≠ ⊥) ⋯), (↑x).unbot h = x

instance WithTop.canLift E0 #

∀ {α : Type u_1}, CanLift (WithTop α) α WithTop.some fun r ↦ r ≠ ⊤

instance WithBot.canLift E0 #

∀ {α : Type u_1}, CanLift (WithBot α) α WithBot.some fun r ↦ r ≠ ⊥

instance WithBot.instTop E0 #

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

instance WithTop.instBot E0 #

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

theorem WithTop.coe_bot E0 #

∀ {α : Type u_1} [inst : Bot α], ↑⊥ = ⊥

theorem WithBot.coe_top E0 #

∀ {α : Type u_1} [inst : Top α], ↑⊤ = ⊤

theorem WithBot.coe_eq_top E0 #

∀ {α : Type u_1} [inst : Top α] {a : α}, ↑a = ⊤ ↔ a = ⊤

theorem WithTop.coe_eq_bot E0 #

∀ {α : Type u_1} [inst : Bot α] {a : α}, ↑a = ⊥ ↔ a = ⊥

theorem WithBot.top_eq_coe E0 #

∀ {α : Type u_1} [inst : Top α] {a : α}, ⊤ = ↑a ↔ ⊤ = a

theorem WithTop.bot_eq_coe E0 #

∀ {α : Type u_1} [inst : Bot α] {a : α}, ⊥ = ↑a ↔ ⊥ = a

theorem WithTop.untop_eq_iff E0 #

∀ {α : Type u_1} {a : WithTop α} {b : α} (h : a ≠ ⊤), a.untop h = b ↔ a = ↑b

theorem WithBot.unbot_eq_iff E0 #

∀ {α : Type u_1} {a : WithBot α} {b : α} (h : a ≠ ⊥), a.unbot h = b ↔ a = ↑b

theorem WithTop.untop_inj E1 #

∀ {α : Type u_1} {a b : WithTop α} (ha : a ≠ ⊤) (hb : b ≠ ⊤), a.untop ha = b.untop hb ↔ a = b

theorem WithBot.unbot_inj E1 #

∀ {α : Type u_1} {a b : WithBot α} (ha : a ≠ ⊥) (hb : b ≠ ⊥), a.unbot ha = b.unbot hb ↔ a = b

def Equiv.withBotSubtypeNe E1 #

{α : Type u_1} → { y // y ≠ ⊥ } ≃ α

The equivalence between the non-bottom elements of WithBot α and α.

theorem Equiv.withBotSubtypeNe_symm_apply_coe E0 #

∀ {α : Type u_1} (x : α), ↑(Equiv.withBotSubtypeNe.symm x) = ↑x

theorem Equiv.withTopSubtypeNe_symm_apply_coe E0 #

∀ {α : Type u_1} (x : α), ↑(Equiv.withTopSubtypeNe.symm x) = ↑x

theorem Equiv.withBotSubtypeNe_apply E0 #

∀ {α : Type u_1} (x : { y // y ≠ ⊥ }),
  Equiv.withBotSubtypeNe x =
    match x with
    | ⟨x, h⟩ => x.unbot h

theorem Equiv.withTopSubtypeNe_apply E0 #

∀ {α : Type u_1} (x : { y // y ≠ ⊤ }),
  Equiv.withTopSubtypeNe x =
    match x with
    | ⟨x, h⟩ => x.untop h

def Equiv.withTopSubtypeNe E1 #

{α : Type u_1} → { y // y ≠ ⊤ } ≃ α

The equivalence between the non-top elements of WithTop α and α.

abbrev WithBot.unbotA E1 #

{α : Type u_1} → [Nonempty α] → WithBot α → α

Function that sends an element of WithBot α to α, with an arbitrary default value for ⊥.

abbrev WithTop.untopA E1 #

{α : Type u_1} → [Nonempty α] → WithTop α → α

Function that sends an element of WithTop α to α, with an arbitrary default value for ⊤.

theorem WithBot.unbotA_eq_unbot E1 #

∀ {α : Type u_1} [inst : Nonempty α] {a : WithBot α} (ha : a ≠ ⊥), a.unbotA = a.unbot ha

theorem WithTop.untopA_eq_untop E1 #

∀ {α : Type u_1} [inst : Nonempty α] {a : WithTop α} (ha : a ≠ ⊤), a.untopA = a.untop ha

def Equiv.withBotCongr E1 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → WithBot α ≃ WithBot β

A universe-polymorphic version of EquivFunctor.mapEquiv WithBot e.

theorem Equiv.withBotCongr_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (a : WithBot α), e.withBotCongr a = WithBot.map (⇑e) a

theorem Equiv.withTopCongr_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (a : WithTop α), e.withTopCongr a = WithTop.map (⇑e) a

def Equiv.withTopCongr E1 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → WithTop α ≃ WithTop β

A universe-polymorphic version of EquivFunctor.mapEquiv WithTop e.

theorem Equiv.withBotCongr_refl E0 #

∀ {α : Type u_1}, (Equiv.refl α).withBotCongr = Equiv.refl (WithBot α)

theorem Equiv.withTopCongr_refl E0 #

∀ {α : Type u_1}, (Equiv.refl α).withTopCongr = Equiv.refl (WithTop α)

theorem Equiv.withBotCongr_symm E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), e.symm.withBotCongr = e.withBotCongr.symm

theorem Equiv.withTopCongr_symm E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), e.symm.withTopCongr = e.withTopCongr.symm

theorem Equiv.withTopCongr_trans E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e₁ : α ≃ β) (e₂ : β ≃ γ),
  (e₁.trans e₂).withTopCongr = e₁.withTopCongr.trans e₂.withTopCongr

theorem Equiv.withBotCongr_trans E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e₁ : α ≃ β) (e₂ : β ≃ γ),
  (e₁.trans e₂).withBotCongr = e₁.withBotCongr.trans e₂.withBotCongr

inductive WithBot.LE E1 #

{α : Type u_1} → [LE α] → WithBot α → WithBot α → Prop

The order on WithBot.

ctor WithBot.LE.bot_le E0 #

∀ {α : Type u_1} [inst : LE α] (x : WithBot α), ⊥.LE x

ctor WithBot.LE.coe_le_coe E0 #

∀ {α : Type u_1} [inst : LE α] {a b : α}, a ≤ b → (↑a).LE ↑b

inductive WithTop.LE E1 #

{α : Type u_1} → [LE α] → WithTop α → WithTop α → Prop

The order on WithTop.

ctor WithTop.LE.le_top E0 #

∀ {α : Type u_1} [inst : LE α] (x : WithTop α), x.LE ⊤

ctor WithTop.LE.coe_le_coe E0 #

∀ {α : Type u_1} [inst : LE α] {a b : α}, a ≤ b → (↑a).LE ↑b

instance WithBot.instLE E0 #

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

The order on WithBot α, defined by ⊥ ≤ y and a ≤ b → ↑a ≤ ↑b.

Equivalently, x ≤ y can be defined as ∀ a : α, x = ↑a → ∃ b : α, y = ↑b ∧ a ≤ b, see le_iff_forall. The definition as an inductive predicate is preferred since it cannot be accidentally unfolded too far.

instance WithTop.instLE E0 #

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

The order on WithTop α, defined by x ≤ ⊤ and a ≤ b → ↑a ≤ ↑b.

Equivalently, x ≤ y can be defined as ∀ b : α, y = ↑b → ∃ a : α, x = ↑a ∧ a ≤ b, see le_iff_forall. The definition as an inductive predicate is preferred since it cannot be accidentally unfolded too far.

theorem WithBot.le_def E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithBot α}, x ≤ y ↔ x = ⊥ ∨ ∃ a b, a ≤ b ∧ x = ↑a ∧ y = ↑b

theorem WithTop.le_def E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithTop α}, x ≤ y ↔ y = ⊤ ∨ ∃ a b, a ≤ b ∧ x = ↑a ∧ y = ↑b

inductive WithBot.LT E1 #

{α : Type u_1} → [LT α] → WithBot α → WithBot α → Prop

The order on WithBot.

ctor WithBot.LT.bot_lt E0 #

∀ {α : Type u_1} [inst : LT α] (b : α), ⊥.LT ↑b

ctor WithBot.LT.coe_lt_coe E0 #

∀ {α : Type u_1} [inst : LT α] {a b : α}, a < b → (↑a).LT ↑b

inductive WithTop.LT E1 #

{α : Type u_1} → [LT α] → WithTop α → WithTop α → Prop

The order on WithTop.

ctor WithTop.LT.lt_top E0 #

∀ {α : Type u_1} [inst : LT α] (a : α), (↑a).LT ⊤

ctor WithTop.LT.coe_lt_coe E0 #

∀ {α : Type u_1} [inst : LT α] {a b : α}, a < b → (↑a).LT ↑b

instance WithBot.instLT E0 #

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

The order on WithBot α, defined by ⊥ < ↑a and a < b → ↑a < ↑b.

Equivalently, x < y can be defined as ∃ b : α, y = ↑b ∧ ∀ a : α, x = ↑a → a < b, see lt_iff_exists. The definition as an inductive predicate is preferred since it cannot be accidentally unfolded too far.

instance WithTop.instLT E0 #

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

The order on WithTop α, defined by ↑a < ⊤ and a < b → ↑a < ↑b.

Equivalently, x < y can be defined as ∃ a : α, x = ↑a ∧ ∀ b : α, y = ↑b → a < b, see le_if_forall. The definition as an inductive predicate is preferred since it cannot be accidentally unfolded too far.

theorem WithBot.lt_def E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithBot α}, x < y ↔ (x = ⊥ ∧ ∃ b, y = ↑b) ∨ ∃ a b, a < b ∧ x = ↑a ∧ y = ↑b

theorem WithTop.lt_def E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithTop α}, x < y ↔ (∃ a, x = ↑a) ∧ y = ⊤ ∨ ∃ a b, a < b ∧ x = ↑a ∧ y = ↑b

theorem WithTop.le_iff_forall E1 #

∀ {α : Type u_1} [inst : LE α] {x y : WithTop α}, y ≤ x ↔ ∀ (a : α), x = ↑a → ∃ b, y = ↑b ∧ b ≤ a

theorem WithBot.le_iff_forall E1 #

∀ {α : Type u_1} [inst : LE α] {x y : WithBot α}, x ≤ y ↔ ∀ (a : α), x = ↑a → ∃ b, y = ↑b ∧ a ≤ b

theorem WithBot.coe_le_coe E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α], ↑a ≤ ↑b ↔ a ≤ b

theorem WithTop.coe_le_coe E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α], ↑b ≤ ↑a ↔ b ≤ a

theorem WithBot.not_coe_le_bot E1 #

∀ {α : Type u_1} [inst : LE α] (a : α), ¬↑a ≤ ⊥

theorem WithTop.not_top_le_coe E0 #

∀ {α : Type u_1} [inst : LE α] (a : α), ¬⊤ ≤ ↑a

instance WithBot.instOrderBot E0 #

{α : Type u_1} → [inst : LE α] → OrderBot (WithBot α)

instance WithTop.instOrderTop E0 #

{α : Type u_1} → [inst : LE α] → OrderTop (WithTop α)

instance WithBot.instOrderTop E0 #

{α : Type u_1} → [inst : LE α] → [OrderTop α] → OrderTop (WithBot α)

instance WithTop.instOrderBot E0 #

{α : Type u_1} → [inst : LE α] → [OrderBot α] → OrderBot (WithTop α)

instance WithBot.instBoundedOrder E0 #

{α : Type u_1} → [inst : LE α] → [OrderTop α] → BoundedOrder (WithBot α)

instance WithTop.instBoundedOrder E0 #

{α : Type u_1} → [inst : LE α] → [OrderBot α] → BoundedOrder (WithTop α)

theorem WithBot.le_bot_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithBot α}, x ≤ ⊥ ↔ x = ⊥

There is a general version le_bot_iff, but this lemma does not require a PartialOrder.

theorem WithTop.top_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithTop α}, ⊤ ≤ x ↔ x = ⊤

There is a general version top_le_iff, but this lemma does not require a PartialOrder.

theorem WithBot.coe_le E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α] {o : Option α}, b ∈ o → (↑a ≤ o ↔ a ≤ b)

theorem WithTop.le_coe E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α] {o : Option α}, b ∈ o → (o ≤ ↑a ↔ b ≤ a)

theorem WithBot.coe_le_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithBot α}, ↑a ≤ x ↔ ∃ b, x = ↑b ∧ a ≤ b

theorem WithTop.le_coe_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithTop α}, x ≤ ↑a ↔ ∃ b, x = ↑b ∧ b ≤ a

theorem WithBot.le_coe_iff E0 #

∀ {α : Type u_1} {b : α} [inst : LE α] {x : WithBot α}, x ≤ ↑b ↔ ∀ (a : α), x = ↑a → a ≤ b

theorem WithTop.coe_le_iff E0 #

∀ {α : Type u_1} {b : α} [inst : LE α] {x : WithTop α}, ↑b ≤ x ↔ ∀ (a : α), x = ↑a → b ≤ a

theorem WithTop.isMin_coe_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α], IsMin ↑a ↔ IsMin a

theorem WithBot.isMax_coe_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α], IsMax ↑a ↔ IsMax a

theorem IsMax.withBot E1 #

∀ {α : Type u_1} {a : α} [inst : LE α], IsMax a → IsMax ↑a

theorem IsMin.withTop E1 #

∀ {α : Type u_1} {a : α} [inst : LE α], IsMin a → IsMin ↑a

theorem WithTop.not_isMin_bot E0 #

∀ {α : Type u_1} [inst : LE α] [Nonempty α], ¬IsMin ⊤

theorem WithBot.not_isMax_top E0 #

∀ {α : Type u_1} [inst : LE α] [Nonempty α], ¬IsMax ⊥

theorem WithTop.isMin_iff E0 #

∀ {α : Type u_1} [inst : LE α] [Nonempty α] {x : WithTop α}, IsMin x ↔ ∃ y, x = ↑y ∧ IsMin y

theorem WithBot.isMax_iff E0 #

∀ {α : Type u_1} [inst : LE α] [Nonempty α] {x : WithBot α}, IsMax x ↔ ∃ y, x = ↑y ∧ IsMax y

theorem WithBot.le_unbot_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithBot α} (hx : x ≠ ⊥), a ≤ x.unbot hx ↔ ↑a ≤ x

theorem WithTop.untop_le_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithTop α} (hx : x ≠ ⊤), x.untop hx ≤ a ↔ x ≤ ↑a

theorem WithTop.le_untop_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithTop α} (hx : x ≠ ⊤), a ≤ x.untop hx ↔ ↑a ≤ x

theorem WithBot.unbot_le_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithBot α} (hx : x ≠ ⊥), x.unbot hx ≤ a ↔ x ≤ ↑a

theorem WithTop.untop_le_untop_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithTop α} (hy : y ≠ ⊤) (hx : x ≠ ⊤), y.untop hy ≤ x.untop hx ↔ y ≤ x

theorem WithBot.unbot_le_unbot_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithBot α} (hx : x ≠ ⊥) (hy : y ≠ ⊥), x.unbot hx ≤ y.unbot hy ↔ x ≤ y

theorem WithBot.unbot_mono E1 #

∀ {α : Type u_1} [inst : LE α] {x y : WithBot α} (hx : x ≠ ⊥) (hy : y ≠ ⊥), x ≤ y → x.unbot hx ≤ y.unbot hy

Alias of the reverse direction of WithBot.unbot_le_unbot_iff.

theorem WithTop.untop_mono E1 #

∀ {α : Type u_1} [inst : LE α] {x y : WithTop α} (hx : x ≠ ⊤) (hy : y ≠ ⊤), y ≤ x → y.untop hy ≤ x.untop hx

Alias of the reverse direction of WithTop.untop_le_untop_iff.

theorem WithBot.le_unbotD_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α] {x : WithBot α}, x ≠ ⊥ → (b ≤ WithBot.unbotD a x ↔ ↑b ≤ x)

theorem WithTop.untopD_le_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α] {x : WithTop α}, x ≠ ⊤ → (WithTop.untopD a x ≤ b ↔ x ≤ ↑b)

theorem WithBot.unbotD_le_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α] {x : WithBot α}, (x = ⊥ → a ≤ b) → (WithBot.unbotD a x ≤ b ↔ x ≤ ↑b)

theorem WithTop.le_untopD_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LE α] {x : WithTop α}, (x = ⊤ → b ≤ a) → (b ≤ WithTop.untopD a x ↔ ↑b ≤ x)

theorem WithBot.unbotD_mono E1 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x y : WithBot α}, x ≠ ⊥ → x ≤ y → WithBot.unbotD a x ≤ WithBot.unbotD a y

theorem WithTop.untopD_mono E1 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x y : WithTop α}, x ≠ ⊤ → y ≤ x → WithTop.untopD a y ≤ WithTop.untopD a x

theorem WithBot.le_unbotA_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithBot α} [inst_1 : Nonempty α], x ≠ ⊥ → (a ≤ x.unbotA ↔ ↑a ≤ x)

theorem WithTop.untopA_le_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithTop α} [inst_1 : Nonempty α], x ≠ ⊤ → (x.untopA ≤ a ↔ x ≤ ↑a)

theorem WithTop.le_untopA_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithTop α} [inst_1 : Nonempty α], x ≠ ⊤ → (a ≤ x.untopA ↔ ↑a ≤ x)

theorem WithBot.unbotA_le_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LE α] {x : WithBot α} [inst_1 : Nonempty α], x ≠ ⊥ → (x.unbotA ≤ a ↔ x ≤ ↑a)

theorem WithBot.unbotA_mono E1 #

∀ {α : Type u_1} [inst : LE α] {x y : WithBot α} [inst_1 : Nonempty α], x ≠ ⊥ → x ≤ y → x.unbotA ≤ y.unbotA

theorem WithTop.untopA_mono E1 #

∀ {α : Type u_1} [inst : LE α] {x y : WithTop α} [inst_1 : Nonempty α], x ≠ ⊤ → y ≤ x → y.untopA ≤ x.untopA

theorem WithBot.map_le_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] {x y : WithBot α} (f : α → β),
  (∀ {a b : α}, f a ≤ f b ↔ a ≤ b) → (WithBot.map f x ≤ WithBot.map f y ↔ x ≤ y)

theorem WithTop.map_le_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [inst_1 : LE β] {x y : WithTop α} (f : α → β),
  (∀ {a b : α}, f b ≤ f a ↔ b ≤ a) → (WithTop.map f y ≤ WithTop.map f x ↔ y ≤ x)

theorem WithTop.lt_iff_exists E1 #

∀ {α : Type u_1} [inst : LT α] {x y : WithTop α}, y < x ↔ ∃ b, y = ↑b ∧ ∀ (a : α), x = ↑a → b < a

theorem WithBot.lt_iff_exists E1 #

∀ {α : Type u_1} [inst : LT α] {x y : WithBot α}, x < y ↔ ∃ b, y = ↑b ∧ ∀ (a : α), x = ↑a → a < b

theorem WithTop.coe_lt_coe E0 #

∀ {α : Type u_1} {a b : α} [inst : LT α], ↑b < ↑a ↔ b < a

theorem WithBot.coe_lt_coe E0 #

∀ {α : Type u_1} {a b : α} [inst : LT α], ↑a < ↑b ↔ a < b

theorem WithTop.coe_lt_top E0 #

∀ {α : Type u_1} [inst : LT α] (a : α), ↑a < ⊤

theorem WithBot.bot_lt_coe E0 #

∀ {α : Type u_1} [inst : LT α] (a : α), ⊥ < ↑a

theorem WithTop.not_top_lt E0 #

∀ {α : Type u_1} [inst : LT α] (a : WithTop α), ¬⊤ < a

theorem WithBot.not_lt_bot E0 #

∀ {α : Type u_1} [inst : LT α] (a : WithBot α), ¬a < ⊥

theorem WithBot.lt_iff_exists_coe E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithBot α}, x < y ↔ ∃ b, y = ↑b ∧ x < ↑b

theorem WithTop.lt_iff_exists_coe E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithTop α}, y < x ↔ ∃ b, y = ↑b ∧ ↑b < x

theorem WithBot.lt_coe_iff E0 #

∀ {α : Type u_1} {b : α} [inst : LT α] {x : WithBot α}, x < ↑b ↔ ∀ (a : α), x = ↑a → a < b

theorem WithTop.coe_lt_iff E0 #

∀ {α : Type u_1} {b : α} [inst : LT α] {x : WithTop α}, ↑b < x ↔ ∀ (a : α), x = ↑a → b < a

theorem WithBot.bot_lt_iff_ne_bot E1 #

∀ {α : Type u_1} [inst : LT α] {x : WithBot α}, ⊥ < x ↔ x ≠ ⊥

A version of bot_lt_iff_ne_bot for WithBot that only requires LT α, not PartialOrder α.

theorem WithTop.lt_top_iff_ne_top E1 #

∀ {α : Type u_1} [inst : LT α] {x : WithTop α}, x < ⊤ ↔ x ≠ ⊤

A version of lt_top_iff_ne_top for WithTop that only requires LT α, not PartialOrder α.

theorem WithBot.lt_unbot_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LT α] {x : WithBot α} (hx : x ≠ ⊥), a < x.unbot hx ↔ ↑a < x

theorem WithTop.untop_lt_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LT α] {x : WithTop α} (hx : x ≠ ⊤), x.untop hx < a ↔ x < ↑a

theorem WithBot.unbot_lt_iff E0 #

∀ {α : Type u_1} {b : α} [inst : LT α] {x : WithBot α} (hx : x ≠ ⊥), x.unbot hx < b ↔ x < ↑b

theorem WithTop.lt_untop_iff E0 #

∀ {α : Type u_1} {b : α} [inst : LT α] {x : WithTop α} (hx : x ≠ ⊤), b < x.untop hx ↔ ↑b < x

theorem WithTop.untop_lt_untop_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithTop α} (hy : y ≠ ⊤) (hx : x ≠ ⊤), y.untop hy < x.untop hx ↔ y < x

theorem WithBot.unbot_lt_unbot_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithBot α} (hx : x ≠ ⊥) (hy : y ≠ ⊥), x.unbot hx < y.unbot hy ↔ x < y

theorem WithBot.lt_unbotD_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LT α] {x : WithBot α}, x ≠ ⊥ → (b < WithBot.unbotD a x ↔ ↑b < x)

theorem WithTop.untopD_lt_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LT α] {x : WithTop α}, x ≠ ⊤ → (WithTop.untopD a x < b ↔ x < ↑b)

theorem WithTop.lt_untopD_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LT α] {x : WithTop α}, (x = ⊤ → b < a) → (b < WithTop.untopD a x ↔ ↑b < x)

theorem WithBot.unbotD_lt_iff E0 #

∀ {α : Type u_1} {a b : α} [inst : LT α] {x : WithBot α}, (x = ⊥ → a < b) → (WithBot.unbotD a x < b ↔ x < ↑b)

theorem WithBot.lt_unbotA_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LT α] {x : WithBot α} [inst_1 : Nonempty α], x ≠ ⊥ → (a < x.unbotA ↔ ↑a < x)

theorem WithTop.untopA_lt_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LT α] {x : WithTop α} [inst_1 : Nonempty α], x ≠ ⊤ → (x.untopA < a ↔ x < ↑a)

theorem WithTop.lt_untopA_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LT α] {x : WithTop α} [inst_1 : Nonempty α], x ≠ ⊤ → (a < x.untopA ↔ ↑a < x)

theorem WithBot.unbotA_lt_iff E0 #

∀ {α : Type u_1} {a : α} [inst : LT α] {x : WithBot α} [inst_1 : Nonempty α], x ≠ ⊥ → (x.unbotA < a ↔ x < ↑a)

instance WithBot.instPreorder E0 #

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

instance WithTop.instPreorder E0 #

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

theorem WithTop.coe_strictMono E0 #

∀ {α : Type u_1} [inst : Preorder α], StrictMono fun a ↦ ↑a

theorem WithBot.coe_strictMono E0 #

∀ {α : Type u_1} [inst : Preorder α], StrictMono fun a ↦ ↑a

theorem WithTop.coe_mono E0 #

∀ {α : Type u_1} [inst : Preorder α], Monotone fun a ↦ ↑a

theorem WithBot.coe_mono E0 #

∀ {α : Type u_1} [inst : Preorder α], Monotone fun a ↦ ↑a

theorem WithBot.monotone_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : WithBot α → β},
  Monotone f ↔ (Monotone fun a ↦ f ↑a) ∧ ∀ (x : α), f ⊥ ≤ f ↑x

theorem WithTop.monotone_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : WithTop α → β},
  Monotone f ↔ (Monotone fun a ↦ f ↑a) ∧ ∀ (x : α), f ↑x ≤ f ⊤

theorem WithBot.monotone_map_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  Monotone (WithBot.map f) ↔ Monotone f

theorem WithTop.monotone_map_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  Monotone (WithTop.map f) ↔ Monotone f

theorem Monotone.withTop_map E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  Monotone f → Monotone (WithTop.map f)

Alias of the reverse direction of WithTop.monotone_map_iff.

theorem Monotone.withBot_map E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  Monotone f → Monotone (WithBot.map f)

Alias of the reverse direction of WithBot.monotone_map_iff.

theorem WithBot.strictMono_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : WithBot α → β},
  StrictMono f ↔ (StrictMono fun a ↦ f ↑a) ∧ ∀ (x : α), f ⊥ < f ↑x

theorem WithTop.strictMono_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : WithTop α → β},
  StrictMono f ↔ (StrictMono fun a ↦ f ↑a) ∧ ∀ (x : α), f ↑x < f ⊤

theorem WithBot.strictAnti_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : WithBot α → β},
  StrictAnti f ↔ (StrictAnti fun a ↦ f ↑a) ∧ ∀ (x : α), f ↑x < f ⊥

theorem WithTop.strictAnti_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : WithTop α → β},
  StrictAnti f ↔ (StrictAnti fun a ↦ f ↑a) ∧ ∀ (x : α), f ⊤ < f ↑x

theorem WithTop.strictMono_map_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  StrictMono (WithTop.map f) ↔ StrictMono f

theorem WithBot.strictMono_map_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  StrictMono (WithBot.map f) ↔ StrictMono f

theorem StrictMono.withBot_map E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  StrictMono f → StrictMono (WithBot.map f)

Alias of the reverse direction of WithBot.strictMono_map_iff.

theorem StrictMono.withTop_map E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
  StrictMono f → StrictMono (WithTop.map f)

Alias of the reverse direction of WithTop.strictMono_map_iff.

theorem WithTop.coe_untopD_le E0 #

∀ {α : Type u_1} [inst : Preorder α] (x : WithTop α) (b : α), ↑(WithTop.untopD b x) ≤ x

theorem WithBot.le_coe_unbotD E1 #

∀ {α : Type u_1} [inst : Preorder α] (x : WithBot α) (b : α), x ≤ ↑(WithBot.unbotD b x)

theorem WithBot.lt_coe_bot E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : WithBot α} [inst_1 : OrderBot α], x < ↑⊥ ↔ x = ⊥

theorem WithTop.coe_top_lt E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : WithTop α} [inst_1 : OrderTop α], ↑⊤ < x ↔ x = ⊤

theorem WithBot.coe_bot_le E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : WithBot α} [inst_1 : OrderBot α], ↑⊥ ≤ x ↔ x ≠ ⊥

theorem WithTop.le_coe_top E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : WithTop α} [inst_1 : OrderTop α], x ≤ ↑⊤ ↔ x ≠ ⊤

theorem WithTop.forall_le_coe_iff_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {x y : WithTop α} [NoTopOrder α], (∀ (a : α), x ≤ ↑a → y ≤ ↑a) ↔ y ≤ x

theorem WithBot.forall_coe_le_iff_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {x y : WithBot α} [NoBotOrder α], (∀ (a : α), ↑a ≤ x → ↑a ≤ y) ↔ x ≤ y

theorem WithTop.forall_coe_le_iff_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {x y : WithTop α} [NoTopOrder α], (∀ (a : α), ↑a ≤ y → ↑a ≤ x) ↔ y ≤ x

theorem WithBot.forall_le_coe_iff_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {x y : WithBot α} [NoBotOrder α], (∀ (a : α), y ≤ ↑a → x ≤ ↑a) ↔ x ≤ y

theorem WithBot.forall_coe_lt E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithBot α → Prop},
  (∀ (x : WithBot α), ↑a < x → p x) ↔ ∀ (b : α), a < b → p ↑b

theorem WithTop.forall_lt_coe E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithTop α → Prop}, (∀ x < ↑a, p x) ↔ ∀ b < a, p ↑b

theorem WithTop.exists_lt_coe E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithTop α → Prop}, (∃ x < ↑a, p x) ↔ ∃ b < a, p ↑b

theorem WithBot.exists_coe_lt E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithBot α → Prop}, (∃ x, ↑a < x ∧ p x) ↔ ∃ b, a < b ∧ p ↑b

theorem WithTop.forall_le_coe E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithTop α → Prop}, (∀ x ≤ ↑a, p x) ↔ ∀ b ≤ a, p ↑b

theorem WithBot.forall_coe_le E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithBot α → Prop},
  (∀ (x : WithBot α), ↑a ≤ x → p x) ↔ ∀ (b : α), a ≤ b → p ↑b

theorem WithTop.exists_le_coe E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithTop α → Prop}, (∃ x ≤ ↑a, p x) ↔ ∃ b ≤ a, p ↑b

theorem WithBot.exists_coe_le E0 #

∀ {α : Type u_1} {a : α} [inst : Preorder α] {p : WithBot α → Prop}, (∃ x, ↑a ≤ x ∧ p x) ↔ ∃ b, a ≤ b ∧ p ↑b

instance WithTop.instPartialOrder E0 #

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

instance WithBot.instPartialOrder E0 #

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

theorem WithTop.untopD_le E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {y : WithTop α} {a b : α}, y ≤ ↑b → WithTop.untopD a y ≤ b

theorem WithBot.le_unbotD E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {y : WithBot α} {a b : α}, ↑b ≤ y → b ≤ WithBot.unbotD a y

theorem WithBot.le_unbotA E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {y : WithBot α} {b : α} [inst_1 : Nonempty α], ↑b ≤ y → b ≤ y.unbotA

theorem WithTop.untopA_le E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {y : WithTop α} {b : α} [inst_1 : Nonempty α], y ≤ ↑b → y.untopA ≤ b

instance WithBot.semilatticeSup E0 #

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

instance WithTop.semilatticeInf E0 #

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

instance WithBot.semilatticeInf E0 #

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

instance WithTop.semilatticeSup E0 #

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

theorem WithBot.coe_sup E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] (a b : α), ↑(a ⊔ b) = ↑a ⊔ ↑b

theorem WithTop.coe_inf E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] (a b : α), ↑(a ⊓ b) = ↑a ⊓ ↑b

theorem WithBot.coe_inf E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] (a b : α), ↑(a ⊓ b) = ↑a ⊓ ↑b

theorem WithTop.coe_sup E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] (a b : α), ↑(a ⊔ b) = ↑a ⊔ ↑b

instance WithTop.lattice E0 #

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

instance WithBot.lattice E0 #

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

instance WithTop.distribLattice E0 #

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

instance WithBot.distribLattice E0 #

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

instance WithBot.decidableEq E0 #

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

instance WithTop.decidableEq E0 #

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

instance WithBot.decidableLE E0 #

{α : Type u_1} → [inst : LE α] → [DecidableLE α] → DecidableLE (WithBot α)

instance WithTop.decidableLE E0 #

{α : Type u_1} → [inst : LE α] → [DecidableLE α] → DecidableLE (WithTop α)

instance WithTop.decidableLT E0 #

{α : Type u_1} → [inst : LT α] → [DecidableLT α] → DecidableLT (WithTop α)

instance WithBot.decidableLT E0 #

{α : Type u_1} → [inst : LT α] → [DecidableLT α] → DecidableLT (WithBot α)

instance WithBot.total_le E0 #

∀ {α : Type u_1} [inst : LE α] [Std.Total fun x1 x2 ↦ x1 ≤ x2], Std.Total fun x1 x2 ↦ x1 ≤ x2

instance WithTop.total_le E0 #

∀ {α : Type u_1} [inst : LE α] [Std.Total fun x1 x2 ↦ x1 ≤ x2], Std.Total fun x1 x2 ↦ x1 ≤ x2

instance WithBot.linearOrder E0 #

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

instance WithTop.linearOrder E0 #

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

instance WithTop.instWellFoundedGT E0 #

∀ {α : Type u_1} [inst : LT α] [WellFoundedGT α], WellFoundedGT (WithTop α)

instance WithBot.instWellFoundedLT E0 #

∀ {α : Type u_1} [inst : LT α] [WellFoundedLT α], WellFoundedLT (WithBot α)

instance WithTop.instWellFoundedLT E0 #

∀ {α : Type u_1} [inst : LT α] [WellFoundedLT α], WellFoundedLT (WithTop α)

instance WithBot.instWellFoundedGT E0 #

∀ {α : Type u_1} [inst : LT α] [WellFoundedGT α], WellFoundedGT (WithBot α)

theorem WithTop.denselyOrdered_iff E0 #

∀ {α : Type u_1} [inst : LT α] [NoMaxOrder α], DenselyOrdered (WithTop α) ↔ DenselyOrdered α

theorem WithBot.denselyOrdered_iff E0 #

∀ {α : Type u_1} [inst : LT α] [NoMinOrder α], DenselyOrdered (WithBot α) ↔ DenselyOrdered α

instance WithTop.denselyOrdered E0 #

∀ {α : Type u_1} [inst : LT α] [DenselyOrdered α] [NoMaxOrder α], DenselyOrdered (WithTop α)

instance WithBot.denselyOrdered E0 #

∀ {α : Type u_1} [inst : LT α] [DenselyOrdered α] [NoMinOrder α], DenselyOrdered (WithBot α)

instance WithBot.trichotomous.lt E0 #

∀ {α : Type u_1} [inst : Preorder α] [Std.Trichotomous fun x1 x2 ↦ x1 < x2], Std.Trichotomous fun x1 x2 ↦ x1 < x2

instance WithTop.trichotomous.lt E0 #

∀ {α : Type u_1} [inst : Preorder α] [Std.Trichotomous fun x1 x2 ↦ x1 < x2], Std.Trichotomous fun x1 x2 ↦ x1 < x2

instance WithBot.IsWellOrder.lt E0 #

∀ {α : Type u_1} [inst : Preorder α] [IsWellOrder α fun x1 x2 ↦ x1 < x2], IsWellOrder (WithBot α) fun x1 x2 ↦ x1 < x2

instance WithTop.IsWellOrder.lt E0 #

∀ {α : Type u_1} [inst : Preorder α] [IsWellOrder α fun x1 x2 ↦ x1 < x2], IsWellOrder (WithTop α) fun x1 x2 ↦ x1 < x2

instance WithBot.trichotomous.gt E0 #

∀ {α : Type u_1} [inst : Preorder α] [Std.Trichotomous fun x1 x2 ↦ x1 > x2], Std.Trichotomous fun x1 x2 ↦ x1 > x2

instance WithTop.trichotomous.gt E0 #

∀ {α : Type u_1} [inst : Preorder α] [Std.Trichotomous fun x1 x2 ↦ x1 > x2], Std.Trichotomous fun x1 x2 ↦ x1 > x2

instance WithBot.IsWellOrder.gt E0 #

∀ {α : Type u_1} [inst : Preorder α] [IsWellOrder α fun x1 x2 ↦ x1 > x2], IsWellOrder (WithBot α) fun x1 x2 ↦ x1 > x2

instance WithTop.IsWellOrder.gt E0 #

∀ {α : Type u_1} [inst : Preorder α] [IsWellOrder α fun x1 x2 ↦ x1 > x2], IsWellOrder (WithTop α) fun x1 x2 ↦ x1 > x2

theorem WithTop.coe_max E0 #

∀ {α : Type u_1} [inst : LinearOrder α] (a b : α), ↑(max a b) = max ↑a ↑b

theorem WithBot.coe_min E0 #

∀ {α : Type u_1} [inst : LinearOrder α] (a b : α), ↑(min a b) = min ↑a ↑b

theorem WithBot.coe_max E0 #

∀ {α : Type u_1} [inst : LinearOrder α] (a b : α), ↑(max a b) = max ↑a ↑b

theorem WithTop.coe_min E0 #

∀ {α : Type u_1} [inst : LinearOrder α] (a b : α), ↑(min a b) = min ↑a ↑b

theorem WithBot.le_of_forall_lt_iff_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x y : WithBot α} [DenselyOrdered α] [NoMinOrder α],
  (∀ (z : α), x < ↑z → y ≤ ↑z) ↔ y ≤ x

theorem WithTop.ge_of_forall_gt_iff_ge E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x y : WithTop α} [DenselyOrdered α] [NoMaxOrder α],
  (∀ (z : α), ↑z < x → ↑z ≤ y) ↔ x ≤ y

theorem WithBot.ge_of_forall_gt_iff_ge E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x y : WithBot α} [DenselyOrdered α] [NoMinOrder α],
  (∀ (z : α), ↑z < x → ↑z ≤ y) ↔ x ≤ y

theorem WithTop.le_of_forall_lt_iff_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x y : WithTop α} [DenselyOrdered α] [NoMaxOrder α],
  (∀ (z : α), x < ↑z → y ≤ ↑z) ↔ y ≤ x

theorem WithBot.lt_iff_exists_coe_btwn E1 #

∀ {α : Type u_1} [inst : Preorder α] [DenselyOrdered α] [NoMinOrder α] {a b : WithBot α}, a < b ↔ ∃ x, a < ↑x ∧ ↑x < b

theorem WithTop.lt_iff_exists_coe_btwn' E1 #

∀ {α : Type u_1} [inst : Preorder α] [DenselyOrdered α] [NoMaxOrder α] {a b : WithTop α}, b < a ↔ ∃ x, ↑x < a ∧ b < ↑x

theorem WithTop.lt_iff_exists_coe_btwn E1 #

∀ {α : Type u_1} [inst : Preorder α] [DenselyOrdered α] [NoMaxOrder α] {a b : WithTop α}, b < a ↔ ∃ x, b < ↑x ∧ ↑x < a

theorem WithBot.lt_iff_exists_coe_btwn' E1 #

∀ {α : Type u_1} [inst : Preorder α] [DenselyOrdered α] [NoMinOrder α] {a b : WithBot α}, a < b ↔ ∃ x, ↑x < b ∧ a < ↑x

instance WithBot.noTopOrder E0 #

∀ {α : Type u_1} [inst : LE α] [NoTopOrder α] [Nonempty α], NoTopOrder (WithBot α)

instance WithTop.noBotOrder E0 #

∀ {α : Type u_1} [inst : LE α] [NoBotOrder α] [Nonempty α], NoBotOrder (WithTop α)

instance WithBot.noMaxOrder E0 #

∀ {α : Type u_1} [inst : LT α] [NoMaxOrder α] [Nonempty α], NoMaxOrder (WithBot α)

instance WithTop.noMinOrder E0 #

∀ {α : Type u_1} [inst : LT α] [NoMinOrder α] [Nonempty α], NoMinOrder (WithTop α)

def WithBot.toDual E1 #

{α : Type u_1} → WithBot α ≃ WithTop αᵒᵈ

WithBot.toDual is the equivalence sending ⊥ to ⊤ and any a : α to toDual a : αᵒᵈ. See WithBot.toDualTopEquiv for the related order-iso.

def WithTop.toDual E1 #

{α : Type u_1} → WithTop α ≃ WithBot αᵒᵈ

WithTop.toDual is the equivalence sending ⊤ to ⊥ and any a : α to toDual a : αᵒᵈ. See WithTop.toDualBotEquiv for the related order-iso.

def WithBot.ofDual E1 #

{α : Type u_1} → WithBot αᵒᵈ ≃ WithTop α

WithBot.ofDual is the equivalence sending ⊥ to ⊤ and any a : αᵒᵈ to ofDual a : α. See WithBot.ofDualTopEquiv for the related order-iso.

def WithTop.ofDual E1 #

{α : Type u_1} → WithTop αᵒᵈ ≃ WithBot α

WithTop.ofDual is the equivalence sending ⊤ to ⊥ and any a : αᵒᵈ to ofDual a : α. See WithTop.toDualBotEquiv for the related order-iso.

theorem WithTop.toDual_symm E0 #

∀ {α : Type u_1}, WithTop.toDual.symm = WithBot.ofDual

theorem WithBot.toDual_symm E0 #

∀ {α : Type u_1}, WithBot.toDual.symm = WithTop.ofDual

theorem WithTop.ofDual_symm E0 #

∀ {α : Type u_1}, WithTop.ofDual.symm = WithBot.toDual

theorem WithBot.ofDual_symm E0 #

∀ {α : Type u_1}, WithBot.ofDual.symm = WithTop.toDual

theorem WithTop.toDual_top E0 #

∀ {α : Type u_1}, WithTop.toDual ⊤ = ⊥

theorem WithBot.toDual_bot E0 #

∀ {α : Type u_1}, WithBot.toDual ⊥ = ⊤

theorem WithBot.ofDual_bot E0 #

∀ {α : Type u_1}, WithBot.ofDual ⊥ = ⊤

theorem WithTop.ofDual_top E0 #

∀ {α : Type u_1}, WithTop.ofDual ⊤ = ⊥

theorem WithBot.toDual_apply_coe E0 #

∀ {α : Type u_1} (a : α), WithBot.toDual ↑a = ↑(OrderDual.toDual a)

theorem WithTop.toDual_apply_coe E0 #

∀ {α : Type u_1} (a : α), WithTop.toDual ↑a = ↑(OrderDual.toDual a)

theorem WithBot.ofDual_apply_coe E0 #

∀ {α : Type u_1} (a : αᵒᵈ), WithBot.ofDual ↑a = ↑(OrderDual.ofDual a)

theorem WithTop.ofDual_apply_coe E0 #

∀ {α : Type u_1} (a : αᵒᵈ), WithTop.ofDual ↑a = ↑(OrderDual.ofDual a)

theorem WithTop.map_toDual E0 #

∀ {α : Type u_1} {β : Type u_2} (f : αᵒᵈ → βᵒᵈ) (a : WithTop α),
  WithTop.map f (WithTop.toDual a) = WithTop.map (⇑OrderDual.toDual ∘ f) a

theorem WithBot.map_toDual E0 #

∀ {α : Type u_1} {β : Type u_2} (f : αᵒᵈ → βᵒᵈ) (a : WithBot α),
  WithBot.map f (WithBot.toDual a) = WithBot.map (⇑OrderDual.toDual ∘ f) a

theorem WithTop.map_ofDual E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : WithTop αᵒᵈ),
  WithTop.map f (WithTop.ofDual a) = WithTop.map (⇑OrderDual.ofDual ∘ f) a

theorem WithBot.map_ofDual E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : WithBot αᵒᵈ),
  WithBot.map f (WithBot.ofDual a) = WithBot.map (⇑OrderDual.ofDual ∘ f) a

theorem WithBot.toDual_map E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : WithBot α),
  WithBot.toDual (WithBot.map f a) = WithTop.map (⇑OrderDual.toDual ∘ f ∘ ⇑OrderDual.ofDual) (WithBot.toDual a)

theorem WithTop.toDual_map E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : WithTop α),
  WithTop.toDual (WithTop.map f a) = WithBot.map (⇑OrderDual.toDual ∘ f ∘ ⇑OrderDual.ofDual) (WithTop.toDual a)

theorem WithBot.ofDual_map E1 #

∀ {α : Type u_1} {β : Type u_2} (f : αᵒᵈ → βᵒᵈ) (a : WithBot αᵒᵈ),
  WithBot.ofDual (WithBot.map f a) = WithTop.map (⇑OrderDual.ofDual ∘ f ∘ ⇑OrderDual.toDual) (WithBot.ofDual a)

theorem WithTop.ofDual_map E1 #

∀ {α : Type u_1} {β : Type u_2} (f : αᵒᵈ → βᵒᵈ) (a : WithTop αᵒᵈ),
  WithTop.ofDual (WithTop.map f a) = WithBot.map (⇑OrderDual.ofDual ∘ f ∘ ⇑OrderDual.toDual) (WithTop.ofDual a)

theorem WithTop.le_toDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithTop α} {y : WithBot αᵒᵈ}, y ≤ WithTop.toDual x ↔ x ≤ WithBot.ofDual y

theorem WithBot.toDual_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithBot α} {y : WithTop αᵒᵈ}, WithBot.toDual x ≤ y ↔ WithTop.ofDual y ≤ x

theorem WithBot.le_toDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithTop αᵒᵈ} {y : WithBot α}, x ≤ WithBot.toDual y ↔ y ≤ WithTop.ofDual x

theorem WithTop.toDual_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithBot αᵒᵈ} {y : WithTop α}, WithTop.toDual y ≤ x ↔ WithBot.ofDual x ≤ y

theorem WithTop.toDual_le_toDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithTop α}, WithTop.toDual y ≤ WithTop.toDual x ↔ x ≤ y

theorem WithBot.toDual_le_toDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithBot α}, WithBot.toDual x ≤ WithBot.toDual y ↔ y ≤ x

theorem WithBot.ofDual_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithBot αᵒᵈ} {y : WithTop α}, WithBot.ofDual x ≤ y ↔ WithTop.toDual y ≤ x

theorem WithTop.le_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithTop αᵒᵈ} {y : WithBot α}, y ≤ WithTop.ofDual x ↔ x ≤ WithBot.toDual y

theorem WithBot.le_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithTop α} {y : WithBot αᵒᵈ}, x ≤ WithBot.ofDual y ↔ y ≤ WithTop.toDual x

theorem WithTop.ofDual_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithBot α} {y : WithTop αᵒᵈ}, WithTop.ofDual y ≤ x ↔ WithBot.toDual x ≤ y

theorem WithTop.ofDual_le_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithTop αᵒᵈ}, WithTop.ofDual y ≤ WithTop.ofDual x ↔ x ≤ y

theorem WithBot.ofDual_le_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithBot αᵒᵈ}, WithBot.ofDual x ≤ WithBot.ofDual y ↔ y ≤ x

theorem WithTop.lt_toDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithTop α} {y : WithBot αᵒᵈ}, y < WithTop.toDual x ↔ x < WithBot.ofDual y

theorem WithBot.toDual_lt_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithBot α} {y : WithTop αᵒᵈ}, WithBot.toDual x < y ↔ WithTop.ofDual y < x

theorem WithTop.toDual_lt_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithBot αᵒᵈ} {y : WithTop α}, WithTop.toDual y < x ↔ WithBot.ofDual x < y

theorem WithBot.lt_toDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithTop αᵒᵈ} {y : WithBot α}, x < WithBot.toDual y ↔ y < WithTop.ofDual x

theorem WithBot.toDual_lt_toDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithBot α}, WithBot.toDual x < WithBot.toDual y ↔ y < x

theorem WithTop.toDual_lt_toDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithTop α}, WithTop.toDual y < WithTop.toDual x ↔ x < y

theorem WithBot.ofDual_lt_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithBot αᵒᵈ} {y : WithTop α}, WithBot.ofDual x < y ↔ WithTop.toDual y < x

theorem WithTop.lt_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithTop αᵒᵈ} {y : WithBot α}, y < WithTop.ofDual x ↔ x < WithBot.toDual y

theorem WithBot.lt_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithTop α} {y : WithBot αᵒᵈ}, x < WithBot.ofDual y ↔ y < WithTop.toDual x

theorem WithTop.ofDual_lt_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithBot α} {y : WithTop αᵒᵈ}, WithTop.ofDual y < x ↔ WithBot.toDual x < y

theorem WithTop.ofDual_lt_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithTop αᵒᵈ}, WithTop.ofDual y < WithTop.ofDual x ↔ x < y

theorem WithBot.ofDual_lt_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithBot αᵒᵈ}, WithBot.ofDual x < WithBot.ofDual y ↔ y < x