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.Interval.Basic

129 declarations. Mathlib docs · Source

Order intervals

This file defines (nonempty) closed intervals in an order (see Set.Icc). This is a prototype for interval arithmetic.

Main declarations

  • NonemptyInterval: Nonempty intervals. Pairs where the second element is greater than the first.
  • Interval: Intervals. Either ∅ or a nonempty interval.

def NonemptyInterval.ctorIdx E1 #

{α : Type u_6} → {inst : LE α} → NonemptyInterval α → ℕ

theorem NonemptyInterval.mk.congr_simp E1 #

∀ {α : Type u_6} [inst : LE α] (toProd toProd_1 : α × α) (e_toProd : toProd = toProd_1)
  (fst_le_snd : toProd.1 ≤ toProd.2),
  { toProd := toProd, fst_le_snd := fst_le_snd } = { toProd := toProd_1, fst_le_snd := ⋯ }

theorem NonemptyInterval.mk.inj E1 #

∀ {α : Type u_6} {inst : LE α} {toProd : α × α} {fst_le_snd : toProd.1 ≤ toProd.2} {toProd_1 : α × α}
  {fst_le_snd_1 : toProd_1.1 ≤ toProd_1.2},
  { toProd := toProd, fst_le_snd := fst_le_snd } = { toProd := toProd_1, fst_le_snd := fst_le_snd_1 } →
    toProd = toProd_1

theorem NonemptyInterval.mk.injEq E0 #

∀ {α : Type u_6} [inst : LE α] (toProd : α × α) (fst_le_snd : toProd.1 ≤ toProd.2) (toProd_1 : α × α)
  (fst_le_snd_1 : toProd_1.1 ≤ toProd_1.2),
  ({ toProd := toProd, fst_le_snd := fst_le_snd } = { toProd := toProd_1, fst_le_snd := fst_le_snd_1 }) =
    (toProd = toProd_1)

structure NonemptyInterval E3 #

(α : Type u_6) → [LE α] → Type u_6

The nonempty closed intervals in an order.

We define intervals by the pair of endpoints fst, snd. To convert intervals to the set of elements between these endpoints, use the coercion NonemptyInterval α → Set α.

theorem NonemptyInterval.ext E1 #

∀ {α : Type u_6} {inst : LE α} {x y : NonemptyInterval α}, x.toProd = y.toProd → x = y

theorem NonemptyInterval.ext_iff E0 #

∀ {α : Type u_6} {inst : LE α} {x y : NonemptyInterval α}, x = y ↔ x.toProd = y.toProd

ctor NonemptyInterval.mk E0 #

{α : Type u_6} → [inst : LE α] → (toProd : α × α) → toProd.1 ≤ toProd.2 → NonemptyInterval α

abbrev NonemptyInterval.toProd E1 #

{α : Type u_6} → [inst : LE α] → NonemptyInterval α → α × α

theorem NonemptyInterval.fst_le_snd E1 #

∀ {α : Type u_6} [inst : LE α] (self : NonemptyInterval α), self.toProd.1 ≤ self.toProd.2

The starting point of an interval is smaller than the endpoint.

theorem NonemptyInterval.toProd_injective E1 #

∀ {α : Type u_1} [inst : LE α], Function.Injective NonemptyInterval.toProd

instance NonemptyInterval.instCanLift E0 #

∀ {α : Type u_1} [inst : LE α], CanLift (α × α) (NonemptyInterval α) NonemptyInterval.toProd fun x ↦ x.1 ≤ x.2

Allow lifting a pair (a, b) with a ≤ b to NonemptyInterval in the lift tactic.

def NonemptyInterval.toDualProd E1 #

{α : Type u_1} → [inst : LE α] → NonemptyInterval α → αᵒᵈ × α

The injection that induces the order on intervals.

theorem NonemptyInterval.toDualProd_apply E0 #

∀ {α : Type u_1} [inst : LE α] (s : NonemptyInterval α), s.toDualProd = (OrderDual.toDual s.toProd.1, s.toProd.2)

theorem NonemptyInterval.toDualProd_injective E1 #

∀ {α : Type u_1} [inst : LE α], Function.Injective NonemptyInterval.toDualProd

instance NonemptyInterval.instIsEmpty E0 #

∀ {α : Type u_1} [inst : LE α] [IsEmpty α], IsEmpty (NonemptyInterval α)

instance NonemptyInterval.instSubsingleton E0 #

∀ {α : Type u_1} [inst : LE α] [Subsingleton α], Subsingleton (NonemptyInterval α)

instance NonemptyInterval.instDecidableEq E0 #

{α : Type u_1} → [inst : LE α] → [DecidableEq α] → DecidableEq (NonemptyInterval α)

instance NonemptyInterval.le E0 #

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

theorem NonemptyInterval.le_def E0 #

∀ {α : Type u_1} [inst : LE α] {s t : NonemptyInterval α}, s ≤ t ↔ t.toProd.1 ≤ s.toProd.1 ∧ s.toProd.2 ≤ t.toProd.2

instance NonemptyInterval.instDecidableLE E0 #

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

def NonemptyInterval.toDualProdHom E1 #

{α : Type u_1} → [inst : LE α] → NonemptyInterval α ↪o αᵒᵈ × α

toDualProd as an order embedding.

theorem NonemptyInterval.toDualProdHom_apply E0 #

∀ {α : Type u_1} [inst : LE α] (a : NonemptyInterval α), NonemptyInterval.toDualProdHom a = a.toDualProd

def NonemptyInterval.dual E1 #

{α : Type u_1} → [inst : LE α] → NonemptyInterval α ≃ NonemptyInterval αᵒᵈ

Turn an interval into an interval in the dual order.

theorem NonemptyInterval.fst_dual E0 #

∀ {α : Type u_1} [inst : LE α] (s : NonemptyInterval α),
  (NonemptyInterval.dual s).toProd.1 = OrderDual.toDual s.toProd.2

theorem NonemptyInterval.snd_dual E0 #

∀ {α : Type u_1} [inst : LE α] (s : NonemptyInterval α),
  (NonemptyInterval.dual s).toProd.2 = OrderDual.toDual s.toProd.1

instance NonemptyInterval.instPreorder E0 #

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

theorem NonemptyInterval.toDualProd_mono E1 #

∀ {α : Type u_1} [inst : Preorder α], Monotone NonemptyInterval.toDualProd

theorem NonemptyInterval.toDualProd_strictMono E1 #

∀ {α : Type u_1} [inst : Preorder α], StrictMono NonemptyInterval.toDualProd

instance NonemptyInterval.instCoeSet E0 #

{α : Type u_1} → [inst : Preorder α] → Coe (NonemptyInterval α) (Set α)

instance NonemptyInterval.instMembership E0 #

{α : Type u_1} → [inst : Preorder α] → Membership α (NonemptyInterval α)

theorem NonemptyInterval.mem_mk E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : α × α} {a : α} {hx : x.1 ≤ x.2},
  a ∈ { toProd := x, fst_le_snd := hx } ↔ x.1 ≤ a ∧ a ≤ x.2

theorem NonemptyInterval.mem_def E0 #

∀ {α : Type u_1} [inst : Preorder α] {s : NonemptyInterval α} {a : α}, a ∈ s ↔ s.toProd.1 ≤ a ∧ a ≤ s.toProd.2

theorem NonemptyInterval.coe_nonempty E0 #

∀ {α : Type u_1} [inst : Preorder α] (s : NonemptyInterval α), (Set.Icc s.toProd.1 s.toProd.2).Nonempty

def NonemptyInterval.pure E1 #

{α : Type u_1} → [inst : Preorder α] → α → NonemptyInterval α

{a} as an interval.

theorem NonemptyInterval.pure_fst E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), (NonemptyInterval.pure a).toProd.1 = a

theorem NonemptyInterval.pure_snd E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), (NonemptyInterval.pure a).toProd.2 = a

theorem NonemptyInterval.mem_pure_self E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), a ∈ NonemptyInterval.pure a

theorem NonemptyInterval.pure_injective E1 #

∀ {α : Type u_1} [inst : Preorder α], Function.Injective NonemptyInterval.pure

theorem NonemptyInterval.dual_pure E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α),
  NonemptyInterval.dual (NonemptyInterval.pure a) = NonemptyInterval.pure (OrderDual.toDual a)

instance NonemptyInterval.instInhabited E0 #

{α : Type u_1} → [inst : Preorder α] → [Inhabited α] → Inhabited (NonemptyInterval α)

instance NonemptyInterval.instNonempty E0 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Nonempty (NonemptyInterval α)

instance NonemptyInterval.instNontrivial E0 #

∀ {α : Type u_1} [inst : Preorder α] [Nontrivial α], Nontrivial (NonemptyInterval α)

def NonemptyInterval.map E1 #

{α : Type u_1} →
  {β : Type u_2} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) → NonemptyInterval α → NonemptyInterval β

Pushforward of nonempty intervals.

theorem NonemptyInterval.map_snd E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (a : NonemptyInterval α),
  (NonemptyInterval.map f a).toProd.2 = f a.1.2

theorem NonemptyInterval.map_fst E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (a : NonemptyInterval α),
  (NonemptyInterval.map f a).toProd.1 = f a.1.1

theorem NonemptyInterval.map_pure E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (a : α),
  NonemptyInterval.map f (NonemptyInterval.pure a) = NonemptyInterval.pure (f a)

theorem NonemptyInterval.map_map E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (g : β →o γ) (f : α →o β) (a : NonemptyInterval α),
  NonemptyInterval.map g (NonemptyInterval.map f a) = NonemptyInterval.map (g.comp f) a

theorem NonemptyInterval.dual_map E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (a : NonemptyInterval α),
  NonemptyInterval.dual (NonemptyInterval.map f a) = NonemptyInterval.map (OrderHom.dual f) (NonemptyInterval.dual a)

def NonemptyInterval.map₂ E1 #

{α : Type u_1} →
  {β : Type u_2} →
    {γ : Type u_3} →
      [inst : Preorder α] →
        [inst_1 : Preorder β] →
          [inst_2 : Preorder γ] →
            (f : α → β → γ) →
              (∀ (b : β), Monotone fun a ↦ f a b) →
                (∀ (a : α), Monotone (f a)) → NonemptyInterval α → NonemptyInterval β → NonemptyInterval γ

Binary pushforward of nonempty intervals.

theorem NonemptyInterval.map₂_snd E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α → β → γ) (h₀ : ∀ (b : β), Monotone fun a ↦ f a b) (h₁ : ∀ (a : α), Monotone (f a)) (a : NonemptyInterval α)
  (a_1 : NonemptyInterval β), (NonemptyInterval.map₂ f h₀ h₁ a a_1).toProd.2 = f a.toProd.2 a_1.toProd.2

theorem NonemptyInterval.map₂_fst E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α → β → γ) (h₀ : ∀ (b : β), Monotone fun a ↦ f a b) (h₁ : ∀ (a : α), Monotone (f a)) (a : NonemptyInterval α)
  (a_1 : NonemptyInterval β), (NonemptyInterval.map₂ f h₀ h₁ a a_1).toProd.1 = f a.toProd.1 a_1.toProd.1

theorem NonemptyInterval.map₂_pure E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α → β → γ) (h₀ : ∀ (b : β), Monotone fun a ↦ f a b) (h₁ : ∀ (a : α), Monotone (f a)) (a : α) (b : β),
  NonemptyInterval.map₂ f h₀ h₁ (NonemptyInterval.pure a) (NonemptyInterval.pure b) = NonemptyInterval.pure (f a b)

theorem NonemptyInterval.dual_map₂ E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (f : α → β → γ) (h₀ : ∀ (b : β), Monotone fun a ↦ f a b) (h₁ : ∀ (a : α), Monotone (f a)) (s : NonemptyInterval α)
  (t : NonemptyInterval β),
  NonemptyInterval.dual (NonemptyInterval.map₂ f h₀ h₁ s t) =
    NonemptyInterval.map₂ (fun a b ↦ OrderDual.toDual (f (OrderDual.ofDual a) (OrderDual.ofDual b))) ⋯ ⋯
      (NonemptyInterval.dual s) (NonemptyInterval.dual t)

instance NonemptyInterval.instOrderTop E0 #

{α : Type u_1} → [inst : Preorder α] → [BoundedOrder α] → OrderTop (NonemptyInterval α)

theorem NonemptyInterval.dual_top E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : BoundedOrder α], NonemptyInterval.dual ⊤ = ⊤

instance NonemptyInterval.instPartialOrder E0 #

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

instance NonemptyInterval.instDecidableLE_1 E0 #

{α : Type u_1} → [inst : PartialOrder α] → [DecidableLE α] → DecidableLE (NonemptyInterval α)

def NonemptyInterval.coeHom E1 #

{α : Type u_1} → [inst : PartialOrder α] → NonemptyInterval α ↪o Set α

Consider a nonempty interval [a, b] as the set [a, b].

instance NonemptyInterval.setLike E0 #

{α : Type u_1} → [inst : PartialOrder α] → SetLike (NonemptyInterval α) α

theorem NonemptyInterval.coe_subset_coe E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {s t : NonemptyInterval α}, ↑s ⊆ ↑t ↔ s ≤ t

theorem NonemptyInterval.coe_ssubset_coe E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {s t : NonemptyInterval α}, ↑s ⊂ ↑t ↔ s < t

theorem NonemptyInterval.coe_coeHom E0 #

∀ {α : Type u_1} [inst : PartialOrder α], ⇑NonemptyInterval.coeHom = SetLike.coe

theorem NonemptyInterval.coe_def E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (s : NonemptyInterval α), ↑s = Set.Icc s.toProd.1 s.toProd.2

theorem NonemptyInterval.coe_pure E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (a : α), ↑(NonemptyInterval.pure a) = {a}

theorem NonemptyInterval.mem_pure E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b ∈ NonemptyInterval.pure a ↔ b = a

theorem NonemptyInterval.coe_top E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : BoundedOrder α], ↑⊤ = Set.univ

theorem NonemptyInterval.coe_dual E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (s : NonemptyInterval α), ↑(NonemptyInterval.dual s) = ⇑OrderDual.ofDual ⁻¹' ↑s

theorem NonemptyInterval.subset_coe_map E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : PartialOrder β] (f : α →o β) (s : NonemptyInterval α),
  ⇑f '' ↑s ⊆ ↑(NonemptyInterval.map f s)

instance NonemptyInterval.instMax E0 #

{α : Type u_1} → [inst : Lattice α] → Max (NonemptyInterval α)

instance NonemptyInterval.instSemilatticeSup E0 #

{α : Type u_1} → [inst : Lattice α] → SemilatticeSup (NonemptyInterval α)

theorem NonemptyInterval.fst_sup E0 #

∀ {α : Type u_1} [inst : Lattice α] (s t : NonemptyInterval α), (s ⊔ t).toProd.1 = s.toProd.1 ⊓ t.toProd.1

theorem NonemptyInterval.snd_sup E0 #

∀ {α : Type u_1} [inst : Lattice α] (s t : NonemptyInterval α), (s ⊔ t).toProd.2 = s.toProd.2 ⊔ t.toProd.2

def Interval E3 #

(α : Type u_6) → [LE α] → Type u_6

The closed intervals in an order.

We represent intervals either as ⊥ or a nonempty interval given by its endpoints fst, snd. To convert intervals to the set of elements between these endpoints, use the coercion Interval α → Set α.

instance instInhabitedInterval E0 #

(α : Type u_1) → [inst : LE α] → Inhabited (Interval α)

instance instOrderBotInterval E0 #

(α : Type u_1) → [inst : LE α] → OrderBot (Interval α)

instance instLEInterval E0 #

(α : Type u_1) → [inst : LE α] → LE (Interval α)

def Interval.coe E1 #

{α : Type u_1} → [inst : LE α] → NonemptyInterval α → Interval α

Canonical coercion from nonempty intervals to intervals

instance Interval.instCoeNonemptyInterval E0 #

{α : Type u_1} → [inst : LE α] → Coe (NonemptyInterval α) (Interval α)

instance Interval.canLift E0 #

∀ {α : Type u_1} [inst : LE α], CanLift (Interval α) (NonemptyInterval α) Interval.coe fun r ↦ r ≠ ⊥

def Interval.recBotCoe E1 #

{α : Type u_1} →
  [inst : LE α] → {C : Interval α → Sort u_6} → C ⊥ → ((a : NonemptyInterval α) → C ↑a) → (n : Interval α) → C n

Recursor for Interval using the preferred forms ⊥ and ↑a.

theorem Interval.coe_injective E0 #

∀ {α : Type u_1} [inst : LE α], Function.Injective Interval.coe

theorem Interval.coe_inj E0 #

∀ {α : Type u_1} [inst : LE α] {s t : NonemptyInterval α}, ↑s = ↑t ↔ s = t

theorem Interval.forall E1 #

∀ {α : Type u_1} [inst : LE α] {p : Interval α → Prop},
  (∀ (s : Interval α), p s) ↔ p ⊥ ∧ ∀ (s : NonemptyInterval α), p ↑s

theorem Interval.exists E1 #

∀ {α : Type u_1} [inst : LE α] {p : Interval α → Prop}, (∃ s, p s) ↔ p ⊥ ∨ ∃ s, p ↑s

instance Interval.instUniqueOfIsEmpty E0 #

{α : Type u_1} → [inst : LE α] → [IsEmpty α] → Unique (Interval α)

def Interval.dual E1 #

{α : Type u_1} → [inst : LE α] → Interval α ≃ Interval αᵒᵈ

Turn an interval into an interval in the dual order.

instance Interval.instPreorder E0 #

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

def Interval.pure E1 #

{α : Type u_1} → [inst : Preorder α] → α → Interval α

{a} as an interval.

theorem Interval.pure_injective E1 #

∀ {α : Type u_1} [inst : Preorder α], Function.Injective Interval.pure

theorem Interval.dual_pure E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), Interval.dual (Interval.pure a) = Interval.pure (OrderDual.toDual a)

theorem Interval.dual_bot E0 #

∀ {α : Type u_1} [inst : Preorder α], Interval.dual ⊥ = ⊥

theorem Interval.pure_ne_bot E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Interval.pure a ≠ ⊥

theorem Interval.bot_ne_pure E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, ⊥ ≠ Interval.pure a

instance Interval.instNontrivialOfNonempty E0 #

∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], Nontrivial (Interval α)

def Interval.map E1 #

{α : Type u_1} → {β : Type u_2} → [inst : Preorder α] → [inst_1 : Preorder β] → (α →o β) → Interval α → Interval β

Pushforward of intervals.

theorem Interval.map_pure E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (a : α),
  Interval.map f (Interval.pure a) = Interval.pure (f a)

theorem Interval.map_map E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  (g : β →o γ) (f : α →o β) (s : Interval α), Interval.map g (Interval.map f s) = Interval.map (g.comp f) s

theorem Interval.dual_map E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (f : α →o β) (s : Interval α),
  Interval.dual (Interval.map f s) = Interval.map (OrderHom.dual f) (Interval.dual s)

theorem Interval.coe_le_coe E0 #

∀ {α : Type u_1} [inst : Preorder α] {s t : NonemptyInterval α}, ↑s ≤ ↑t ↔ s ≤ t

instance Interval.boundedOrder E0 #

{α : Type u_1} → [inst : Preorder α] → [BoundedOrder α] → BoundedOrder (Interval α)

theorem Interval.dual_top E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : BoundedOrder α], Interval.dual ⊤ = ⊤

instance Interval.partialOrder E0 #

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

def Interval.coeHom E1 #

{α : Type u_1} → [inst : PartialOrder α] → Interval α ↪o Set α

Consider an interval [a, b] as the set [a, b].

instance Interval.setLike E0 #

{α : Type u_1} → [inst : PartialOrder α] → SetLike (Interval α) α

theorem Interval.coe_subset_coe E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {s t : Interval α}, ↑s ⊆ ↑t ↔ s ≤ t

theorem Interval.coe_sSubset_coe E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {s t : Interval α}, ↑s ⊂ ↑t ↔ s < t

theorem Interval.coe_pure E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (a : α), ↑(Interval.pure a) = {a}

theorem Interval.coe_coe E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (s : NonemptyInterval α), ↑↑s = ↑s

theorem Interval.coe_bot E0 #

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

theorem Interval.coe_top E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : BoundedOrder α], ↑⊤ = Set.univ

theorem Interval.coe_dual E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (s : Interval α), ↑(Interval.dual s) = ⇑OrderDual.ofDual ⁻¹' ↑s

theorem Interval.subset_coe_map E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : PartialOrder β] (f : α →o β) (s : Interval α),
  ⇑f '' ↑s ⊆ ↑(Interval.map f s)

theorem Interval.mem_pure E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b ∈ Interval.pure a ↔ b = a

theorem Interval.mem_pure_self E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (a : α), a ∈ Interval.pure a

instance Interval.semilatticeSup E0 #

{α : Type u_1} → [inst : Lattice α] → SemilatticeSup (Interval α)

instance Interval.lattice E0 #

{α : Type u_1} → [inst : Lattice α] → [DecidableLE α] → Lattice (Interval α)

theorem Interval.inf_coe E0 #

∀ {α : Type u_1} [inst : Lattice α] [inst_1 : DecidableLE α] (s t : NonemptyInterval α),
  ↑s ⊓ ↑t =
    if h : s.toProd.1 ≤ t.toProd.2 ∧ t.toProd.1 ≤ s.toProd.2 then
      ↑{ fst := s.toProd.1 ⊔ t.toProd.1, snd := s.toProd.2 ⊓ t.toProd.2, fst_le_snd := ⋯ }
    else ⊥

theorem Interval.coe_inf E0 #

∀ {α : Type u_1} [inst : Lattice α] [inst_1 : DecidableLE α] (s t : Interval α), ↑(s ⊓ t) = ↑s ∩ ↑t

theorem Interval.disjoint_coe E0 #

∀ {α : Type u_1} [inst : Lattice α] (s t : Interval α), Disjoint ↑s ↑t ↔ Disjoint s t

theorem NonemptyInterval.coe_pure_interval E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), ↑(NonemptyInterval.pure a) = Interval.pure a

theorem NonemptyInterval.coe_eq_pure E0 #

∀ {α : Type u_1} [inst : Preorder α] {s : NonemptyInterval α} {a : α},
  ↑s = Interval.pure a ↔ s = NonemptyInterval.pure a

theorem NonemptyInterval.coe_top_interval E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : BoundedOrder α], ↑⊤ = ⊤

theorem NonemptyInterval.mem_coe_interval E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {s : NonemptyInterval α} {x : α}, x ∈ ↑s ↔ x ∈ s

theorem NonemptyInterval.coe_sup_interval E0 #

∀ {α : Type u_1} [inst : Lattice α] (s t : NonemptyInterval α), ↑(s ⊔ t) = ↑s ⊔ ↑t

instance Interval.completeLattice E0 #

{α : Type u_1} → [inst : CompleteLattice α] → [DecidableLE α] → CompleteLattice (Interval α)

theorem Interval.coe_sInf E0 #

∀ {α : Type u_1} [inst : CompleteLattice α] [inst_1 : DecidableLE α] (S : Set (Interval α)), ↑(sInf S) = ⋂ s ∈ S, ↑s

theorem Interval.coe_iInf E0 #

∀ {α : Type u_1} {ι : Sort u_4} [inst : CompleteLattice α] [inst_1 : DecidableLE α] (f : ι → Interval α),
  ↑(⨅ i, f i) = ⋂ i, ↑(f i)

theorem Interval.coe_iInf₂ E0 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_5} [inst : CompleteLattice α] [inst_1 : DecidableLE α]
  (f : (i : ι) → κ i → Interval α), ↑(⨅ i, ⨅ j, f i j) = ⋂ i, ⋂ j, ↑(f i j)