The areas / V04. Order and lattices
Mathlib.Order.Directed
92 declarations. Mathlib docs · Source
Directed indexed families and sets
This file defines directed indexed families and directed sets. An indexed family/set is directed iff each pair of elements has a shared upper bound.
Main declarations
Directed r f: Predicate stating that the indexed familyfisr-directed.DirectedOn r s: Predicate stating that the setsisr-directed.IsDirected α r: Prop-valued mixin stating thatαisr-directed. Follows the style of the unbundled relation classes such asStd.Total.
TODO
Define connected orders (the transitive symmetric closure of ≤ is everything) and show that
(co)directed orders are connected.
References
- [Gierz et al, A Compendium of Continuous Lattices][GierzEtAl1980]
def Directed E1 #
{α : Type u_1} → {ι : Sort u_3} → (α → α → Prop) → (ι → α) → Prop
A family of elements of α is directed (with respect to a relation ≼ on α)
if there is a member of the family ≼-above any pair in the family.
def DirectedOn E1 #
{α : Type u_1} → (α → α → Prop) → Set α → Prop
A subset of α is directed if there is an element of the set ≼-above any
pair of elements in the set.
theorem directedOn_iff_directed E1 #
∀ {α : Type u_1} {r : α → α → Prop} {s : Set α}, DirectedOn r s ↔ Directed r Subtype.val
theorem DirectedOn.directed_val E0 #
∀ {α : Type u_1} {r : α → α → Prop} {s : Set α}, DirectedOn r s → Directed r Subtype.val
Alias of the forward direction of directedOn_iff_directed.
theorem directedOn_range E1 #
∀ {α : Type u_1} {ι : Sort u_3} {r : α → α → Prop} {f : ι → α}, DirectedOn r (Set.range f) ↔ Directed r f
theorem Directed.directedOn_range E1 #
∀ {α : Type u_1} {ι : Sort u_3} {r : α → α → Prop} {f : ι → α}, Directed r f → DirectedOn r (Set.range f)
Alias of the reverse direction of directedOn_range.
theorem directedOn_image E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : Set β} {f : β → α},
DirectedOn r (f '' s) ↔ DirectedOn (f ⁻¹'o r) s
theorem Monotone.directedOn_le_image E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → ∀ (s : Set α), DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (f '' s)
theorem Monotone.directedOn_ge_image E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → ∀ (s : Set α), DirectedOn (fun x1 x2 ↦ x2 ≤ x1) (f '' s)
theorem Antitone.directedOn_ge_image E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Antitone f → ∀ (s : Set α), DirectedOn (fun x1 x2 ↦ x2 ≤ x1) (f '' s)
theorem Antitone.directedOn_le_image E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Antitone f → ∀ (s : Set α), DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (f '' s)
theorem Monotone.directedOn_le_range E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (Set.range f)
theorem Monotone.directedOn_ge_range E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → DirectedOn (fun x1 x2 ↦ x2 ≤ x1) (Set.range f)
theorem Antitone.directedOn_ge_range E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Antitone f → DirectedOn (fun x1 x2 ↦ x2 ≤ x1) (Set.range f)
theorem Antitone.directedOn_le_range E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Antitone f → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (Set.range f)
theorem DirectedOn.mono' E1 #
∀ {α : Type u_1} {r r' : α → α → Prop} {s : Set α},
DirectedOn r s → (∀ ⦃a : α⦄, a ∈ s → ∀ ⦃b : α⦄, b ∈ s → r a b → r' a b) → DirectedOn r' s
theorem DirectedOn.mono E1 #
∀ {α : Type u_1} {r r' : α → α → Prop} {s : Set α}, DirectedOn r s → (∀ ⦃a b : α⦄, r a b → r' a b) → DirectedOn r' s
theorem directed_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {ι : Sort u_5} {f : ι → β} {g : β → α},
Directed r (g ∘ f) ↔ Directed (g ⁻¹'o r) f
theorem directed_comp_iff_of_surjective E1 #
∀ {α : Type u_1} {ι : Sort u_3} {κ : Sort u_4} {r : α → α → Prop} {f : ι → κ},
Function.Surjective f → ∀ {g : κ → α}, Directed r (g ∘ f) ↔ Directed r g
theorem Directed.comp_of_surjective E1 #
∀ {α : Type u_1} {ι : Sort u_3} {κ : Sort u_4} {r : α → α → Prop} {f : ι → κ},
Function.Surjective f → ∀ {g : κ → α}, Directed r g → Directed r (g ∘ f)
Alias of the reverse direction of directed_comp_iff_of_surjective.
theorem Directed.mono E1 #
∀ {α : Type u_1} {r s : α → α → Prop} {ι : Sort u_5} {f : ι → α},
(∀ (a b : α), r a b → s a b) → Directed r f → Directed s f
theorem Directed.mono_comp E1 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) {ι : Sort u_5} {rb : β → β → Prop} {g : α → β} {f : ι → α},
(∀ ⦃x y : α⦄, r x y → rb (g x) (g y)) → Directed r f → Directed rb (g ∘ f)
theorem DirectedOn.mono_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {rb : β → β → Prop} {g : α → β} {s : Set α},
(∀ ⦃x y : α⦄, r x y → rb (g x) (g y)) → DirectedOn r s → DirectedOn rb (g '' s)
theorem directedOn_onFun_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {f : β → α} {s : Set β},
DirectedOn (Function.onFun r f) s ↔ DirectedOn r (f '' s)
theorem directedOn_of_sup_mem E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] {S : Set α},
(∀ ⦃i j : α⦄, i ∈ S → j ∈ S → i ⊔ j ∈ S) → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) S
A set stable by supremum is ≤-directed.
theorem Directed.extend_bot E1 #
∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_3} [inst : Preorder α] [inst_1 : OrderBot α] {e : ι → β} {f : ι → α},
Directed (fun x1 x2 ↦ x1 ≤ x2) f → Function.Injective e → Directed (fun x1 x2 ↦ x1 ≤ x2) (Function.extend e f ⊥)
theorem directedOn_of_inf_mem E1 #
∀ {α : Type u_1} [inst : SemilatticeInf α] {S : Set α},
(∀ ⦃i j : α⦄, i ∈ S → j ∈ S → i ⊓ j ∈ S) → DirectedOn (fun x1 x2 ↦ x1 ≥ x2) S
A set stable by infimum is ≥-directed.
theorem Std.Total.directed E1 #
∀ {α : Type u_1} {ι : Sort u_3} {r : α → α → Prop} [Std.Total r] (f : ι → α), Directed r f
theorem Std.Total.directedOn E1 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Total r] (s : Set α), DirectedOn r s
theorem DirectedOn.of_linearOrder E0 #
∀ {α : Type u_1} [inst : LinearOrder α] (s : Set α), DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s
class IsDirected E1 #
(α : Sort u_5) → (α → α → Prop) → Prop
IsDirected α r states that for any elements a, b there exists an element c such that
r a c and r b c.
ctor IsDirected.mk E0 #
∀ {α : Sort u_5} {r : α → α → Prop}, (∀ (a b : α), ∃ c, r a c ∧ r b c) → IsDirected α r
theorem IsDirected.directed E1 #
∀ {α : Sort u_5} {r : α → α → Prop} [self : IsDirected α r] (a b : α), ∃ c, r a c ∧ r b c
For every pair of elements a and b there is a c such that r a c and r b c
abbrev IsDirectedOrder E1 #
(α : Type u_5) → [LE α] → Prop
A class for an IsDirected relation ≤.
abbrev IsCodirectedOrder E1 #
(α : Type u_5) → [LE α] → Prop
A class for an IsDirected relation ≥.
theorem directed_of E1 #
∀ {α : Type u_1} (r : α → α → Prop) [IsDirected α r] (a b : α), ∃ c, r a c ∧ r b c
theorem directed_of₃ E1 #
∀ {α : Type u_1} (r : α → α → Prop) [IsDirected α r] [IsTrans α r] (a b c : α), ∃ d, r a d ∧ r b d ∧ r c d
theorem isDirected_onFun E1 #
∀ {α : Type u_1} {ι : Sort u_3} {r : α → α → Prop} {f : ι → α}, IsDirected ι (Function.onFun r f) ↔ Directed r f
theorem directed_id E1 #
∀ {α : Type u_1} {r : α → α → Prop} [IsDirected α r], Directed r id
theorem directed_id_iff E0 #
∀ {α : Type u_1} {r : α → α → Prop}, Directed r id ↔ IsDirected α r
theorem directedOn_univ E1 #
∀ {α : Type u_1} {r : α → α → Prop} [IsDirected α r], DirectedOn r Set.univ
theorem directedOn_univ_iff E0 #
∀ {α : Type u_1} {r : α → α → Prop}, DirectedOn r Set.univ ↔ IsDirected α r
instance Std.Total.to_isDirected E0 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Total r], IsDirected α r
theorem isDirected_mono E1 #
∀ {α : Type u_1} {r : α → α → Prop} (s : α → α → Prop) [IsDirected α r], (∀ ⦃a b : α⦄, r a b → s a b) → IsDirected α s
theorem exists_le_le E1 #
∀ {α : Type u_1} [inst : LE α] [IsCodirectedOrder α] (a b : α), ∃ c ≤ a, c ≤ b
theorem exists_ge_ge E1 #
∀ {α : Type u_1} [inst : LE α] [IsDirectedOrder α] (a b : α), ∃ c, a ≤ c ∧ b ≤ c
instance OrderDual.isDirected_le E0 #
∀ {α : Type u_1} [inst : LE α] [IsCodirectedOrder α], IsDirectedOrder αᵒᵈ
instance OrderDual.isDirected_ge E0 #
∀ {α : Type u_1} [inst : LE α] [IsDirectedOrder α], IsCodirectedOrder αᵒᵈ
theorem directed_of_isDirected_le E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [IsDirectedOrder α] {f : α → β} {r : β → β → Prop},
(∀ ⦃i j : α⦄, i ≤ j → r (f i) (f j)) → Directed r f
A monotone function on an upwards-directed type is directed.
theorem directed_of_isDirected_ge E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LE α] [IsCodirectedOrder α] {f : α → β} {r : β → β → Prop},
(∀ ⦃j i : α⦄, j ≤ i → r (f i) (f j)) → Directed r f
An antitone function on a downwards-directed type is directed.
theorem Monotone.directed_ge E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [IsCodirectedOrder α] [inst_2 : Preorder β] {f : α → β},
Monotone f → Directed (fun x1 x2 ↦ x2 ≤ x1) f
theorem Monotone.directed_le E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [IsDirectedOrder α] [inst_2 : Preorder β] {f : α → β},
Monotone f → Directed (fun x1 x2 ↦ x1 ≤ x2) f
theorem Antitone.directed_ge E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [IsDirectedOrder α] [inst_2 : Preorder β] {f : α → β},
Antitone f → Directed (fun x1 x2 ↦ x2 ≤ x1) f
theorem Antitone.directed_le E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [IsCodirectedOrder α] [inst_2 : Preorder β] {f : α → β},
Antitone f → Directed (fun x1 x2 ↦ x1 ≤ x2) f
theorem directedOn_iff_isCodirectedOrder E1 #
∀ {α : Type u_1} [inst : LE α] {s : Set α}, DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s ↔ IsCodirectedOrder ↑s
theorem directedOn_iff_isDirectedOrder E1 #
∀ {α : Type u_1} [inst : LE α] {s : Set α}, DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s ↔ IsDirectedOrder ↑s
theorem DirectedOn.of_isDirectedOrder E1 #
∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsDirectedOrder ↑s → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s
Alias of the reverse direction of directedOn_iff_isDirectedOrder.
theorem DirectedOn.isCodirectedOrder E1 #
∀ {α : Type u_1} [inst : LE α] {s : Set α}, DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → IsCodirectedOrder ↑s
Alias of the forward direction of directedOn_iff_isCodirectedOrder.
theorem DirectedOn.of_isCodirectedOrder E1 #
∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsCodirectedOrder ↑s → DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s
Alias of the reverse direction of directedOn_iff_isCodirectedOrder.
theorem DirectedOn.isDirectedOrder E1 #
∀ {α : Type u_1} [inst : LE α] {s : Set α}, DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → IsDirectedOrder ↑s
Alias of the forward direction of directedOn_iff_isDirectedOrder.
theorem DirectedOn.empty E1 #
∀ {α : Type u_1} {r : α → α → Prop}, DirectedOn r ∅
theorem Set.Subsingleton.directedOn E1 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Refl r] {s : Set α}, s.Subsingleton → DirectedOn r s
theorem DirectedOn.insert E1 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Refl r] (a : α) {s : Set α},
DirectedOn r s → (∀ b ∈ s, ∃ c ∈ s, r a c ∧ r b c) → DirectedOn r (insert a s)
theorem directedOn_singleton E1 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Refl r] (a : α), DirectedOn r {a}
theorem directedOn_pair E1 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Refl r] {a b : α}, r a b → DirectedOn r {a, b}
theorem directedOn_pair' E1 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Refl r] {a b : α}, r a b → DirectedOn r {b, a}
theorem IsMax.isTop E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} [IsDirectedOrder α], IsMax a → IsTop a
theorem IsMin.isBot E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} [IsCodirectedOrder α], IsMin a → IsBot a
theorem DirectedOn.is_top_of_is_max E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α},
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → ∀ {m : α}, m ∈ s → (∀ a ∈ s, m ≤ a → a ≤ m) → ∀ a ∈ s, a ≤ m
theorem DirectedOn.is_bot_of_is_min E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α},
DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → ∀ {m : α}, m ∈ s → (∀ a ∈ s, a ≤ m → m ≤ a) → ∀ a ∈ s, m ≤ a
theorem isTop_or_exists_gt E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsDirectedOrder α] (a : α), IsTop a ∨ ∃ b, a < b
theorem isBot_or_exists_lt E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsCodirectedOrder α] (a : α), IsBot a ∨ ∃ b, b < a
theorem isTop_iff_isMax E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} [IsDirectedOrder α], IsTop a ↔ IsMax a
theorem isBot_iff_isMin E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} [IsCodirectedOrder α], IsBot a ↔ IsMin a
theorem Monotone.forall_le_of_antitone E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [IsDirectedOrder α] [inst_2 : Preorder β] {f g : α → β},
Monotone f → Antitone g → f ≤ g → ∀ (m n : α), f m ≤ g n
If f is monotone, g is antitone, and f ≤ g, then for all a, b we have f a ≤ g b.
theorem exists_lt_of_directed_le E1 #
∀ (β : Type u_2) [inst : PartialOrder β] [Nontrivial β] [IsDirectedOrder β], ∃ a b, b < a
theorem exists_lt_of_directed_ge E1 #
∀ (β : Type u_2) [inst : PartialOrder β] [Nontrivial β] [IsCodirectedOrder β], ∃ a b, a < b
theorem IsMin.not_isMax E1 #
∀ {β : Type u_2} [inst : PartialOrder β] [Nontrivial β] [IsCodirectedOrder β] {b : β}, IsMin b → ¬IsMax b
theorem IsMax.not_isMin E1 #
∀ {β : Type u_2} [inst : PartialOrder β] [Nontrivial β] [IsDirectedOrder β] {b : β}, IsMax b → ¬IsMin b
theorem IsMax.not_isMin' E1 #
∀ {β : Type u_2} [inst : PartialOrder β] [Nontrivial β] [IsCodirectedOrder β] {b : β}, IsMax b → ¬IsMin b
theorem IsMin.not_isMax' E1 #
∀ {β : Type u_2} [inst : PartialOrder β] [Nontrivial β] [IsDirectedOrder β] {b : β}, IsMin b → ¬IsMax b
theorem constant_of_monotone_antitone E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : Preorder α] {f : α → β} [IsDirectedOrder α],
Monotone f → Antitone f → ∀ (a b : α), f a = f b
If f is monotone and antitone on a directed order, then f is constant.
theorem constant_of_monotoneOn_antitoneOn E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder β] [inst_1 : Preorder α] {f : α → β} {s : Set α},
MonotoneOn f s → AntitoneOn f s → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → ∀ ⦃a : α⦄, a ∈ s → ∀ ⦃b : α⦄, b ∈ s → f a = f b
If f is monotone and antitone on a directed set s, then f is constant on s.
instance SemilatticeInf.instIsCodirectedOrder E0 #
∀ {α : Type u_1} [inst : SemilatticeInf α], IsCodirectedOrder α
instance SemilatticeSup.instIsDirectedOrder E0 #
∀ {α : Type u_1} [inst : SemilatticeSup α], IsDirectedOrder α
instance OrderTop.instIsDirectedOrder E0 #
∀ {α : Type u_1} [inst : LE α] [OrderTop α], IsDirectedOrder α
instance OrderBot.instIsCodirectedOrder E0 #
∀ {α : Type u_1} [inst : LE α] [OrderBot α], IsCodirectedOrder α
theorem DirectedOn.proj E1 #
∀ {ι : Type u_5} {α : ι → Type u_6} {r : (i : ι) → α i → α i → Prop} {d : Set ((i : ι) → α i)},
DirectedOn (fun x y ↦ ∀ (i : ι), r i (x i) (y i)) d → ∀ (i : ι), DirectedOn (r i) ((fun a ↦ a i) '' d)
theorem DirectedOn.pi E1 #
∀ {ι : Type u_5} {α : ι → Type u_6} {r : (i : ι) → α i → α i → Prop} {d : (i : ι) → Set (α i)},
(∀ (i : ι), DirectedOn (r i) (d i)) → DirectedOn (fun x y ↦ ∀ (i : ι), r i (x i) (y i)) (Set.univ.pi d)
theorem DirectedOn.fst E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {r₂ : β → β → Prop} {d : Set (α × β)},
DirectedOn (fun p q ↦ r p.1 q.1 ∧ r₂ p.2 q.2) d → DirectedOn (fun x1 x2 ↦ r x1 x2) (Prod.fst '' d)
theorem DirectedOn.snd E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {r₂ : β → β → Prop} {d : Set (α × β)},
DirectedOn (fun p q ↦ r p.1 q.1 ∧ r₂ p.2 q.2) d → DirectedOn (fun x1 x2 ↦ r₂ x1 x2) (Prod.snd '' d)
theorem DirectedOn.prod E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {r₂ : β → β → Prop} {d₁ : Set α} {d₂ : Set β},
DirectedOn (fun x1 x2 ↦ r x1 x2) d₁ →
DirectedOn (fun x1 x2 ↦ r₂ x1 x2) d₂ → DirectedOn (fun p q ↦ r p.1 q.1 ∧ r₂ p.2 q.2) (d₁ ×ˢ d₂)