The areas / V13. General topology
Mathlib.Topology.Order.ScottTopology
73 declarations. Mathlib docs · Source
Scott topology
This file introduces the Scott topology on a preorder.
Main definitions
Topology.scottHausdorff: the Scott-Hausdorff topology is the topology whose closed sets areDirSupClosed, i.e. closed under directed suprema.Topology.scott- the Scott topology is defined as the join of the topology of upper sets and the Scott-Hausdorff topology (the topological space where a setuis open if, when the least upper bound of a directed setdlies inuthen there is a tail ofdwhich is a subset ofu).
Main statements
Topology.IsScott.isUpperSet_of_isOpen: Scott open sets are upper.Topology.IsScott.isLowerSet_of_isClosed: Scott closed sets are lower.Topology.IsScott.monotone_of_continuous: Functions continuous w.r.t. the Scott topology are monotone.Topology.IsScott.scottContinuousOn_iff_continuous- a function is Scott continuous (preserves least upper bounds of directed sets) if and only if it is continuous w.r.t. the Scott topology.Topology.IsScott.instT0Space- the Scott topology on a partial order is T₀.
Implementation notes
A type synonym WithScott is introduced and for a preorder α, WithScott α is made an instance
of TopologicalSpace by the scott topology.
We define a mixin class IsScott for the class of types which are both a preorder and a
topology and where the topology is the scott topology. It is shown that WithScott α is an
instance of IsScott.
A class Scott is defined in Topology/OmegaCompletePartialOrder and made an instance of a
topological space by defining the open sets to be those which have characteristic functions which
are monotone and preserve limits of countable chains (OmegaCompletePartialOrder.Continuous').
A Scott continuous function between OmegaCompletePartialOrders is always
OmegaCompletePartialOrder.Continuous' (OmegaCompletePartialOrder.ScottContinuous.continuous').
The converse is true in some special cases, but not in general
([Domain Theory, 2.2.4][abramsky_gabbay_maibaum_1994]).
References
- [Abramsky and Jung, Domain Theory][abramsky_gabbay_maibaum_1994]
- [Gierz et al, A Compendium of Continuous Lattices][GierzEtAl1980]
- [Karner, Continuous monoids and semirings][Karner2004]
Tags
Scott topology, preorder, d-topology
Scott-Hausdorff topology
Scott topology
theorem TopologicalSpace.mk.congr_simp E1 #
∀ {X : Type u} (IsOpen IsOpen_1 : Set X → Prop) (e_IsOpen : IsOpen = IsOpen_1) (isOpen_univ : IsOpen Set.univ)
(isOpen_inter : ∀ (s t : Set X), IsOpen s → IsOpen t → IsOpen (s ∩ t))
(isOpen_sUnion : ∀ (s : Set (Set X)), (∀ t ∈ s, IsOpen t) → IsOpen (⋃₀ s)),
{ IsOpen := IsOpen, isOpen_univ := isOpen_univ, isOpen_inter := isOpen_inter, isOpen_sUnion := isOpen_sUnion } =
{ IsOpen := IsOpen_1, isOpen_univ := ⋯, isOpen_inter := ⋯, isOpen_sUnion := ⋯ }
def Topology.scottHausdorff E3 #
(α : Type u_3) → Set (Set α) → [Preorder α] → TopologicalSpace α
The Scott-Hausdorff topology, sometimes called the d-topology.
A set u is open in the Scott-Hausdorff topology iff when the least upper bound of a directed set
d lies in u then there is a tail of d which is a subset of u.
For mild conditions on D, this is equivalent to saying that open sets are DirSupInaccOn D,
and closed sets are DirSupClosedOn D.
class Topology.IsScottHausdorff E1 #
(α : Type u_3) → Set (Set α) → [Preorder α] → [TopologicalSpace α] → Prop
Predicate for an ordered topological space to be equipped with its Scott-Hausdorff topology.
See scottHausdorff.
A set u is open in the Scott-Hausdorff topology iff when the least upper bound of a directed set
d lies in u then there is a tail of d which is a subset of u.
For mild conditions on D, this is equivalent to saying that open sets are DirSupInaccOn D,
and closed sets are DirSupClosedOn D.
ctor Topology.IsScottHausdorff.mk E0 #
∀ {α : Type u_3} {D : Set (Set α)} [inst : Preorder α] [inst_1 : TopologicalSpace α],
inst_1 = Topology.scottHausdorff α D → Topology.IsScottHausdorff α D
theorem Topology.IsScottHausdorff.topology_eq_scottHausdorff E1 #
∀ {α : Type u_3} {D : Set (Set α)} {inst : Preorder α} {inst_1 : TopologicalSpace α}
[self : Topology.IsScottHausdorff α D], inst_1 = Topology.scottHausdorff α D
instance Topology.instIsScottHausdorff E0 #
∀ (α : Type u_3) (D : Set (Set α)) [inst : Preorder α], Topology.IsScottHausdorff α D
theorem Topology.IsScottHausdorff.topology_eq E0 #
∀ (α : Type u_1) (D : Set (Set α)) [t : TopologicalSpace α] [inst : Preorder α] [Topology.IsScottHausdorff α D],
t = Topology.scottHausdorff α D
theorem Topology.IsScottHausdorff.isOpen_iff E0 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D],
IsOpen s ↔
∀ ⦃d : Set α⦄,
d ∈ D →
d.Nonempty → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) d → ∀ ⦃a : α⦄, IsLUB d a → a ∈ s → ∃ b ∈ d, Set.Ici b ∩ d ⊆ s
theorem Topology.IsScottHausdorff.dirSupInaccOn_of_isOpen E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], IsOpen s → DirSupInaccOn D s
theorem Topology.IsScottHausdorff.dirSupClosedOn_of_isClosed E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], IsClosed s → DirSupClosedOn D s
theorem Topology.IsScottHausdorff.dirSupInaccOn_interior E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], DirSupInaccOn D (interior s)
theorem Topology.IsScottHausdorff.dirSupClosedOn_closure E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], DirSupClosedOn D (closure s)
theorem Topology.IsScottHausdorff.mem_closure_of_isLUB E0 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D] {d : Set α},
d ∈ D → d ⊆ s → d.Nonempty → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) d → ∀ {x : α}, IsLUB d x → x ∈ closure s
theorem Topology.IsScottHausdorff.isOpen_iff_dirSupInaccOn E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], IsLowerSet D → (IsOpen s ↔ DirSupInaccOn D s)
theorem Topology.IsScottHausdorff.isClosed_iff_dirSupClosedOn E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], IsLowerSet D → (IsClosed s ↔ DirSupClosedOn D s)
theorem Topology.IsScottHausdorff.isOpen_of_isLowerSet E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], IsLowerSet D → IsLowerSet s → IsOpen s
theorem Topology.IsScottHausdorff.isClosed_of_isUpperSet E1 #
∀ {α : Type u_1} {s : Set α} {D : Set (Set α)} [t : TopologicalSpace α] [inst : Preorder α]
[Topology.IsScottHausdorff α D], IsLowerSet D → IsUpperSet s → IsClosed s
theorem Topology.IsScottHausdorff.isOpen_iff_dirSupInacc E1 #
∀ {α : Type u_1} {s : Set α} [t : TopologicalSpace α] [inst : Preorder α] [Topology.IsScottHausdorff α Set.univ],
IsOpen s ↔ DirSupInacc s
theorem Topology.IsScottHausdorff.isClosed_iff_dirSupClosed E1 #
∀ {α : Type u_1} {s : Set α} [t : TopologicalSpace α] [inst : Preorder α] [Topology.IsScottHausdorff α Set.univ],
IsClosed s ↔ DirSupClosed s
theorem Topology.IsScottHausdorff.dirSupInacc_interior E1 #
∀ {α : Type u_1} {s : Set α} [t : TopologicalSpace α] [inst : Preorder α] [Topology.IsScottHausdorff α Set.univ],
DirSupInacc (interior s)
theorem Topology.IsScottHausdorff.dirSupClosed_closure E1 #
∀ {α : Type u_1} {s : Set α} [t : TopologicalSpace α] [inst : Preorder α] [Topology.IsScottHausdorff α Set.univ],
DirSupClosed (closure s)
theorem Topology.IsScottHausdorff.closure_subset_setOfPred_isLUB E2 #
∀ {α : Type u_1} [t : TopologicalSpace α] [inst : Preorder α] [Topology.IsScottHausdorff α Set.univ] (s : Set α),
closure s ⊆ {x | ∃ d ⊆ s, d.Nonempty ∧ IsLUB d x}
This theorem can fail in partial orders if the assumption that d is directed is added.
theorem Topology.IsScottHausdorff.exists_isLUB_of_mem_closure E2 #
∀ {α : Type u_1} [t : TopologicalSpace α] [inst : Preorder α] [Topology.IsScottHausdorff α Set.univ] {s : Set α}
{x : α}, x ∈ closure s → ∃ d ⊆ s, d.Nonempty ∧ IsLUB d x
This theorem can fail in partial orders if the assumption that d is directed is added.
theorem Topology.IsScottHausdorff.closure_eq_setOfPred_isLUB E1 #
∀ {α : Type u_1} [t : TopologicalSpace α] [inst : LinearOrder α] [Topology.IsScottHausdorff α Set.univ] (s : Set α),
closure s = {x | ∃ d ⊆ s, d.Nonempty ∧ IsLUB d x}
theorem Topology.IsScottHausdorff.mem_closure_iff_isLUB E0 #
∀ {α : Type u_1} [t : TopologicalSpace α] [inst : LinearOrder α] [Topology.IsScottHausdorff α Set.univ] {s : Set α}
{x : α}, x ∈ closure s ↔ ∃ d ⊆ s, d.Nonempty ∧ IsLUB d x
theorem Topology.IsScottHausdorff.continuous_of_leftOrdContinuous E1 #
∀ {α : Type u_1} {β : Type u_2} [t : TopologicalSpace α] [inst : LinearOrder α] [Topology.IsScottHausdorff α Set.univ]
[inst_2 : Preorder β] [inst_3 : TopologicalSpace β] [Topology.IsScottHausdorff β Set.univ] {f : α → β},
LeftOrdContinuous f → Continuous f
See continuous_of_leftOrdContinuous' for a version that instead requires the codomain to be
linearly ordered.
theorem LeftOrdContinuous.continuous E1 #
∀ {α : Type u_1} {β : Type u_2} [t : TopologicalSpace α] [inst : LinearOrder α] [Topology.IsScottHausdorff α Set.univ]
[inst_2 : Preorder β] [inst_3 : TopologicalSpace β] [Topology.IsScottHausdorff β Set.univ] {f : α → β},
LeftOrdContinuous f → Continuous f
See LeftOrdContinuous.continuous' for a version that instead requires the codomain to be
linearly ordered.
theorem Topology.IsScottHausdorff.continuous_of_leftOrdContinuous' E1 #
∀ {α : Type u_1} {β : Type u_2} [t : TopologicalSpace α] [inst : LinearOrder α] [Topology.IsScottHausdorff α Set.univ]
[inst_2 : Preorder β] [inst_3 : TopologicalSpace β] [Topology.IsScottHausdorff β Set.univ] {f : β → α},
LeftOrdContinuous f → Continuous f
See continuous_of_leftOrdContinuous for a version that instead requires the domain to be
linearly ordered.
theorem LeftOrdContinuous.continuous' E1 #
∀ {α : Type u_1} {β : Type u_2} [t : TopologicalSpace α] [inst : LinearOrder α] [Topology.IsScottHausdorff α Set.univ]
[inst_2 : Preorder β] [inst_3 : TopologicalSpace β] [Topology.IsScottHausdorff β Set.univ] {f : β → α},
LeftOrdContinuous f → Continuous f
See LeftOrdContinuous.continuous for a version that instead requires the domain to be
linearly ordered.
def Topology.scott E3 #
(α : Type u_3) → Set (Set α) → [Preorder α] → TopologicalSpace α
The Scott topology.
It is defined as the join of the topology of upper sets and the Scott-Hausdorff topology.
theorem Topology.upperSet_le_scott E1 #
∀ {α : Type u_1} [inst : Preorder α], Topology.upperSet α ≤ Topology.scott α Set.univ
theorem Topology.scottHausdorff_le_scott E1 #
∀ {α : Type u_1} [inst : Preorder α], Topology.scottHausdorff α Set.univ ≤ Topology.scott α Set.univ
class Topology.IsScott E1 #
(α : Type u_1) → Set (Set α) → [Preorder α] → [TopologicalSpace α] → Prop
Predicate for an ordered topological space to be equipped with its Scott topology.
The Scott topology is defined as the join of the topology of upper sets and the Scott Hausdorff topology.
ctor Topology.IsScott.mk E0 #
∀ {α : Type u_1} {D : Set (Set α)} [inst : Preorder α] [inst_1 : TopologicalSpace α],
inst_1 = Topology.scott α D → Topology.IsScott α D
theorem Topology.IsScott.topology_eq_scott E1 #
∀ {α : Type u_1} {D : Set (Set α)} {inst : Preorder α} {inst_1 : TopologicalSpace α} [self : Topology.IsScott α D],
inst_1 = Topology.scott α D
theorem Topology.IsScott.topology_eq E0 #
∀ (α : Type u_1) (D : Set (Set α)) [inst : Preorder α] [inst_1 : TopologicalSpace α] [Topology.IsScott α D],
inst_1 = Topology.scott α D
theorem Topology.IsScott.isOpen_iff_isUpperSet_and_scottHausdorff_open E1 #
∀ {α : Type u_1} {D : Set (Set α)} [inst : Preorder α] [inst_1 : TopologicalSpace α] {s : Set α} [Topology.IsScott α D],
IsOpen s ↔ IsUpperSet s ∧ IsOpen s
theorem Topology.IsScott.isOpen_iff_isUpperSet_and_dirSupInaccOn E1 #
∀ {α : Type u_1} {D : Set (Set α)} [inst : Preorder α] [inst_1 : TopologicalSpace α] {s : Set α} [Topology.IsScott α D],
IsOpen s ↔ IsUpperSet s ∧ DirSupInaccOn D s
theorem Topology.IsScott.isClosed_iff_isLowerSet_and_dirSupClosed E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] {s : Set α} [Topology.IsScott α Set.univ],
IsClosed s ↔ IsLowerSet s ∧ DirSupClosed s
theorem Topology.IsScott.isUpperSet_of_isOpen E3 #
∀ {α : Type u_1} {D : Set (Set α)} [inst : Preorder α] [inst_1 : TopologicalSpace α] {s : Set α} [Topology.IsScott α D],
IsOpen s → IsUpperSet s
theorem Topology.IsScott.isLowerSet_of_isClosed E3 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] {s : Set α} [Topology.IsScott α Set.univ],
IsClosed s → IsLowerSet s
theorem Topology.IsScott.dirSupClosed_of_isClosed E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] {s : Set α} [Topology.IsScott α Set.univ],
IsClosed s → DirSupClosed s
theorem Topology.IsScott.lowerClosure_subset_closure E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] {s : Set α} [Topology.IsScott α Set.univ],
↑(lowerClosure s) ⊆ closure s
instance Topology.IsScott.instClosedIicTopologyOfUnivSet E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] [Topology.IsScott α Set.univ], ClosedIicTopology α
theorem Topology.IsScott.closure_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] {a : α} [Topology.IsScott α Set.univ],
closure {a} = Set.Iic a
The closure of a singleton {a} in the Scott topology is the right-closed left-infinite interval
(-∞,a].
theorem Topology.IsScott.monotone_of_continuous E3 #
∀ {α : Type u_1} {β : Type u_2} {D : Set (Set α)} [inst : Preorder α] [inst_1 : TopologicalSpace α]
[inst_2 : Preorder β] [inst_3 : TopologicalSpace β] [Topology.IsScott β Set.univ] {f : α → β} [Topology.IsScott α D],
Continuous f → Monotone f
theorem Topology.IsScott.scottContinuousOn_iff_continuous E3 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : TopologicalSpace α] [inst_2 : Preorder β]
[inst_3 : TopologicalSpace β] [Topology.IsScott β Set.univ] {f : α → β} {D : Set (Set α)} [Topology.IsScott α D],
(∀ (a b : α), a ≤ b → {a, b} ∈ D) → (ScottContinuousOn D f ↔ Continuous f)
instance Topology.IsScott.instT0Space E3 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : TopologicalSpace α] [Topology.IsScott α Set.univ], T0Space α
The Scott topology on a partial order is T₀.
theorem Topology.IsScott.isOpen_iff_Iic_compl_or_univ E1 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] [inst_1 : TopologicalSpace α] [Topology.IsScott α Set.univ] (U : Set α),
IsOpen U ↔ U = Set.univ ∨ ∃ a, (Set.Iic a)ᶜ = U
theorem Topology.IsScott.scott_eq_upper_of_completeLinearOrder E1 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α], Topology.scott α Set.univ = Topology.upper α
instance Topology.IsScott.instUnivSetOfIsUpper E0 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] [inst_1 : TopologicalSpace α] [Topology.IsUpper α],
Topology.IsScott α Set.univ
The upper topology on a complete linear order is the Scott topology
instance Topology.IsScott.instPropUnivSet E0 #
Topology.IsScott Prop Set.univ
theorem Topology.IsScott.isOpen_iff_scottContinuous_mem E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : TopologicalSpace α] [Topology.IsScott α Set.univ],
IsOpen s ↔ ScottContinuous fun x ↦ x ∈ s
def Topology.WithScott E1 #
Type u_3 → Type u_3
Type synonym for a preorder equipped with the Scott topology
def Topology.WithScott.toScott E1 #
{α : Type u_1} → α ≃ Topology.WithScott α
toScott is the identity function to the WithScott of a type.
def Topology.WithScott.ofScott E1 #
{α : Type u_1} → Topology.WithScott α ≃ α
ofScott is the identity function from the WithScott of a type.
theorem Topology.WithScott.toScott_symm_eq E0 #
∀ {α : Type u_1}, Topology.WithScott.toScott.symm = Topology.WithScott.ofScott
theorem Topology.WithScott.ofScott_symm_eq E0 #
∀ {α : Type u_1}, Topology.WithScott.ofScott.symm = Topology.WithScott.toScott
theorem Topology.WithScott.toScott_ofScott E0 #
∀ {α : Type u_1} (a : Topology.WithScott α), Topology.WithScott.toScott (Topology.WithScott.ofScott a) = a
theorem Topology.WithScott.ofScott_toScott E0 #
∀ {α : Type u_1} (a : α), Topology.WithScott.ofScott (Topology.WithScott.toScott a) = a
theorem Topology.WithScott.toScott_inj E1 #
∀ {α : Type u_1} {a b : α}, Topology.WithScott.toScott a = Topology.WithScott.toScott b ↔ a = b
theorem Topology.WithScott.ofScott_inj E1 #
∀ {α : Type u_1} {a b : Topology.WithScott α}, Topology.WithScott.ofScott a = Topology.WithScott.ofScott b ↔ a = b
def Topology.WithScott.rec E1 #
{α : Type u_1} →
{β : Topology.WithScott α → Sort u_3} →
((a : α) → β (Topology.WithScott.toScott a)) → (a : Topology.WithScott α) → β a
A recursor for WithScott. Use as induction x.
instance Topology.WithScott.instNonempty E0 #
∀ {α : Type u_1} [Nonempty α], Nonempty (Topology.WithScott α)
instance Topology.WithScott.instInhabited E0 #
{α : Type u_1} → [Inhabited α] → Inhabited (Topology.WithScott α)
instance Topology.WithScott.instPreorder E0 #
{α : Type u_1} → [Preorder α] → Preorder (Topology.WithScott α)
instance Topology.WithScott.instTopologicalSpace E0 #
{α : Type u_1} → [Preorder α] → TopologicalSpace (Topology.WithScott α)
instance Topology.WithScott.instIsScottUnivSet E0 #
∀ {α : Type u_1} [inst : Preorder α], Topology.IsScott (Topology.WithScott α) Set.univ
theorem Topology.WithScott.isOpen_iff_isUpperSet_and_scottHausdorff_open' E1 #
∀ {α : Type u_1} [inst : Preorder α] {u : Set α},
IsOpen (⇑Topology.WithScott.ofScott ⁻¹' u) ↔ IsUpperSet u ∧ TopologicalSpace.IsOpen u
theorem Topology.scottHausdorff_le_lower E1 #
∀ {α : Type u_1} [inst : Preorder α], Topology.scottHausdorff α Set.univ ≤ Topology.lower α
def Topology.IsScott.withScottHomeomorph E1 #
{α : Type u_1} →
[inst : Preorder α] → [inst_1 : TopologicalSpace α] → [Topology.IsScott α Set.univ] → Topology.WithScott α ≃ₜ α
If α is equipped with the Scott topology, then it is homeomorphic to WithScott α.
theorem Topology.IsScott.scottHausdorff_le E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] [Topology.IsScott α Set.univ],
Topology.scottHausdorff α Set.univ ≤ inst_1
theorem Topology.IsLower.scottHausdorff_le E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : TopologicalSpace α] [Topology.IsLower α],
Topology.scottHausdorff α Set.univ ≤ inst_1