Documentation

Mathlib.Order.ScottContinuity

Scott continuity #

A function f : α → β between preorders is upper Scott continuous (referring to Dana Scott) if it preserves IsLUB for every directed set. Lower Scott continuity for infima is defined analogously, via IsGLB. Scott continuity corresponds to continuity in Scott topological spaces (defined in Mathlib/Topology/Order/ScottTopology.lean).

The "upper" and "lower" part of the names do not appear in the literature, as it only considers what we call upper Scott continuity. We've adopted this convention, with the reasoning that the topology of UpperScottContinuous functions is a refinement of the upper topology, and likewise for LowerScottContinuous functions.

Implementation notes #

Given a set D of directed sets, we define say f is UpperScottContinuousOn D if it distributes over IsLUB for all elements of D. This allows us to consider Scott continuity on all directed sets in this file, and ω-Scott continuity on chains later in Mathlib/Order/OmegaCompletePartialOrder.lean.

References #

def UpperScottContinuousOn {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (D : Set (Set α)) (f : α → β) :

A function between preorders is said to be upper Scott continuous on a set D of directed sets if it preserves IsLUB on elements of D.

Equations
Instances For
    def LowerScottContinuousOn {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (D : Set (Set α)) (f : α → β) :

    A function between preorders is said to be lower Scott continuous on a set D of codirected sets if it preserves IsGLB on elements of D.

    Equations
    Instances For
      @[deprecated UpperScottContinuousOn (since := "2026-11-08")]
      def ScottContinuousOn {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (D : Set (Set α)) (f : α → β) :

      Alias of UpperScottContinuousOn.


      A function between preorders is said to be upper Scott continuous on a set D of directed sets if it preserves IsLUB on elements of D.

      Equations
      Instances For
        theorem UpperScottContinuousOn.mono {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D₁ D₂ : Set (Set α)} {f : α → β} (hD : D₁ ⊆ D₂) (hf : UpperScottContinuousOn D₂ f) :
        theorem LowerScottContinuousOn.mono {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D₁ D₂ : Set (Set α)} {f : α → β} (hD : D₁ ⊆ D₂) (hf : LowerScottContinuousOn D₂ f) :
        @[deprecated UpperScottContinuousOn.mono (since := "2026-11-08")]
        theorem ScottContinuousOn.mono {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D₁ D₂ : Set (Set α)} {f : α → β} (hD : D₁ ⊆ D₂) (hf : UpperScottContinuousOn D₂ f) :

        Alias of UpperScottContinuousOn.mono.

        theorem UpperScottContinuousOn.monotone {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} (D : Set (Set α)) (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (h : UpperScottContinuousOn D f) :
        theorem LowerScottContinuousOn.monotone {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} (D : Set (Set α)) (hD : ∀ (b a : α), b ≤ a → {a, b} ∈ D) (h : LowerScottContinuousOn D f) :
        @[deprecated UpperScottContinuousOn.monotone (since := "2026-11-08")]
        theorem ScottContinuousOn.monotone {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} (D : Set (Set α)) (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (h : UpperScottContinuousOn D f) :

        Alias of UpperScottContinuousOn.monotone.

        @[simp]
        theorem LowerScottContinuousOn.fun_id {α : Type u_1} [Preorder α] {D : Set (Set α)} :
        LowerScottContinuousOn D fun (x : α) => x

        Eta-expanded form of LowerScottContinuousOn.id

        @[simp]
        theorem UpperScottContinuousOn.fun_id {α : Type u_1} [Preorder α] {D : Set (Set α)} :
        UpperScottContinuousOn D fun (x : α) => x

        Eta-expanded form of UpperScottContinuousOn.id

        @[deprecated UpperScottContinuousOn.id (since := "2026-11-08")]

        Alias of UpperScottContinuousOn.id.

        @[simp]
        theorem UpperScottContinuousOn.const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set α)} (x : β) :
        @[simp]
        theorem LowerScottContinuousOn.const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set α)} (x : β) :
        @[simp]
        theorem LowerScottContinuousOn.fun_const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set α)} (x : β) :
        LowerScottContinuousOn D fun (x_1 : α) => x

        Eta-expanded form of LowerScottContinuousOn.const

        @[simp]
        theorem UpperScottContinuousOn.fun_const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set α)} (x : β) :
        UpperScottContinuousOn D fun (x_1 : α) => x

        Eta-expanded form of UpperScottContinuousOn.const

        @[deprecated UpperScottContinuousOn.const (since := "2026-11-08")]
        theorem ScottContinuousOn.const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set α)} (x : β) :

        Alias of UpperScottContinuousOn.const.

        theorem UpperScottContinuousOn.comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} {D' : Set (Set β)} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hD' : Set.MapsTo (fun (x : Set α) => f '' x) D D') (hg : UpperScottContinuousOn D' g) (hf : UpperScottContinuousOn D f) :
        theorem LowerScottContinuousOn.comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} {D' : Set (Set β)} (hD : ∀ (b a : α), b ≤ a → {a, b} ∈ D) (hD' : Set.MapsTo (fun (x : Set α) => f '' x) D D') (hg : LowerScottContinuousOn D' g) (hf : LowerScottContinuousOn D f) :
        theorem UpperScottContinuousOn.fun_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} {D' : Set (Set β)} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hD' : Set.MapsTo (fun (x : Set α) => f '' x) D D') (hg : UpperScottContinuousOn D' g) (hf : UpperScottContinuousOn D f) :
        UpperScottContinuousOn D fun (x : α) => g (f x)

        Eta-expanded form of UpperScottContinuousOn.comp

        theorem LowerScottContinuousOn.fun_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} {D' : Set (Set β)} (hD : ∀ (b a : α), b ≤ a → {a, b} ∈ D) (hD' : Set.MapsTo (fun (x : Set α) => f '' x) D D') (hg : LowerScottContinuousOn D' g) (hf : LowerScottContinuousOn D f) :
        LowerScottContinuousOn D fun (x : α) => g (f x)

        Eta-expanded form of LowerScottContinuousOn.comp

        @[deprecated UpperScottContinuousOn.comp (since := "2026-11-08")]
        theorem ScottContinuousOn.comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} {D' : Set (Set β)} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hD' : Set.MapsTo (fun (x : Set α) => f '' x) D D') (hg : UpperScottContinuousOn D' g) (hf : UpperScottContinuousOn D f) :

        Alias of UpperScottContinuousOn.comp.

        theorem UpperScottContinuousOn.image_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hg : UpperScottContinuousOn ((fun (x : Set α) => f '' x) '' D) g) (hf : UpperScottContinuousOn D f) :
        theorem LowerScottContinuousOn.image_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} (hD : ∀ (b a : α), b ≤ a → {a, b} ∈ D) (hg : LowerScottContinuousOn ((fun (x : Set α) => f '' x) '' D) g) (hf : LowerScottContinuousOn D f) :
        theorem UpperScottContinuousOn.fun_image_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hg : UpperScottContinuousOn ((fun (x : Set α) => f '' x) '' D) g) (hf : UpperScottContinuousOn D f) :
        UpperScottContinuousOn D fun (x : α) => g (f x)

        Eta-expanded form of UpperScottContinuousOn.image_comp

        theorem LowerScottContinuousOn.fun_image_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} (hD : ∀ (b a : α), b ≤ a → {a, b} ∈ D) (hg : LowerScottContinuousOn ((fun (x : Set α) => f '' x) '' D) g) (hf : LowerScottContinuousOn D f) :
        LowerScottContinuousOn D fun (x : α) => g (f x)

        Eta-expanded form of LowerScottContinuousOn.image_comp

        @[deprecated UpperScottContinuousOn.image_comp (since := "2026-11-08")]
        theorem ScottContinuousOn.image_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : β → γ} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hg : UpperScottContinuousOn ((fun (x : Set α) => f '' x) '' D) g) (hf : UpperScottContinuousOn D f) :

        Alias of UpperScottContinuousOn.image_comp.

        theorem UpperScottContinuousOn.prodMk {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : α → γ} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hf : UpperScottContinuousOn D f) (hg : UpperScottContinuousOn D g) :
        UpperScottContinuousOn D fun (x : α) => (f x, g x)
        theorem LowerScottContinuousOn.prodMk {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : α → γ} (hD : ∀ (a b : α), b ≤ a → {a, b} ∈ D) (hf : LowerScottContinuousOn D f) (hg : LowerScottContinuousOn D g) :
        LowerScottContinuousOn D fun (x : α) => (f x, g x)
        @[deprecated UpperScottContinuousOn.prodMk (since := "2026-11-08")]
        theorem ScottContinuousOn.prodMk {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {D : Set (Set α)} {f : α → β} {g : α → γ} (hD : ∀ (a b : α), a ≤ b → {a, b} ∈ D) (hf : UpperScottContinuousOn D f) (hg : UpperScottContinuousOn D g) :
        UpperScottContinuousOn D fun (x : α) => (f x, g x)

        Alias of UpperScottContinuousOn.prodMk.

        @[simp]
        theorem UpperScottContinuousOn.fst {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set (α × β))} :
        @[simp]
        theorem LowerScottContinuousOn.fst {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set (α × β))} :
        @[deprecated UpperScottContinuousOn.fst (since := "2026-11-08")]
        theorem ScottContinuousOn.fst {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set (α × β))} :

        Alias of UpperScottContinuousOn.fst.

        @[simp]
        theorem UpperScottContinuousOn.snd {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set (α × β))} :
        @[simp]
        theorem LowerScottContinuousOn.snd {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set (α × β))} :
        @[deprecated UpperScottContinuousOn.snd (since := "2026-11-08")]
        theorem ScottContinuousOn.snd {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {D : Set (Set (α × β))} :

        Alias of UpperScottContinuousOn.snd.

        def UpperScottContinuous {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (f : α → β) :

        A function between preorders is said to be upper Scott continuous if it preserves IsLUB on directed sets.

        It can be shown that a function is Scott continuous if and only if it is continuous w.r.t. the upper Scott topology.

        Equations
        Instances For
          def LowerScottContinuous {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (f : α → β) :

          A function between preorders is said to be Scott continuous for infima if it preserves IsGLB on codirected sets.

          It can be shown that a function is Scott continuous if and only if it is continuous w.r.t. the lower Scott topology.

          Equations
          Instances For
            @[deprecated UpperScottContinuous (since := "2026-11-08")]
            def ScottContinuous {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (f : α → β) :

            Alias of UpperScottContinuous.


            A function between preorders is said to be upper Scott continuous if it preserves IsLUB on directed sets.

            It can be shown that a function is Scott continuous if and only if it is continuous w.r.t. the upper Scott topology.

            Equations
            Instances For
              @[simp]
              @[simp]
              @[deprecated upperScottContinuousOn_univ (since := "2026-11-08")]
              theorem scottContinuousOn_univ {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} :

              Alias of upperScottContinuousOn_univ.

              theorem UpperScottContinuous.upperScottContinuousOn {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} {D : Set (Set α)} :
              theorem LowerScottContinuous.lowerScottContinuousOn {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} {D : Set (Set α)} :
              @[deprecated UpperScottContinuous.upperScottContinuousOn (since := "2026-11-08")]
              theorem ScottContinuous.scottContinuousOn {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} {D : Set (Set α)} :

              Alias of UpperScottContinuous.upperScottContinuousOn.

              theorem UpperScottContinuous.monotone {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} (h : UpperScottContinuous f) :
              theorem LowerScottContinuous.monotone {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} (h : LowerScottContinuous f) :
              @[deprecated UpperScottContinuous.monotone (since := "2026-11-08")]
              theorem ScottContinuous.monotone {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] {f : α → β} (h : UpperScottContinuous f) :

              Alias of UpperScottContinuous.monotone.

              @[simp]
              theorem LowerScottContinuous.fun_id {α : Type u_1} [Preorder α] :
              LowerScottContinuous fun (x : α) => x

              Eta-expanded form of LowerScottContinuous.id

              @[simp]
              theorem UpperScottContinuous.fun_id {α : Type u_1} [Preorder α] :
              UpperScottContinuous fun (x : α) => x

              Eta-expanded form of UpperScottContinuous.id

              @[deprecated UpperScottContinuous.id (since := "2026-11-08")]

              Alias of UpperScottContinuous.id.

              @[simp]
              theorem UpperScottContinuous.const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (x : β) :
              @[simp]
              theorem LowerScottContinuous.const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (x : β) :
              @[simp]
              theorem LowerScottContinuous.fun_const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (x : β) :
              LowerScottContinuous fun (x_1 : α) => x

              Eta-expanded form of LowerScottContinuous.const

              @[simp]
              theorem UpperScottContinuous.fun_const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (x : β) :
              UpperScottContinuous fun (x_1 : α) => x

              Eta-expanded form of UpperScottContinuous.const

              @[deprecated UpperScottContinuous.const (since := "2026-11-08")]
              theorem ScottContinuous.const {α : Type u_1} {β : Type u_2} [Preorder α] [Preorder β] (x : β) :

              Alias of UpperScottContinuous.const.

              theorem UpperScottContinuous.comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : β → γ} (hf : UpperScottContinuous f) (hg : UpperScottContinuous g) :
              theorem LowerScottContinuous.comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : β → γ} (hf : LowerScottContinuous f) (hg : LowerScottContinuous g) :
              theorem LowerScottContinuous.fun_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : β → γ} (hf : LowerScottContinuous f) (hg : LowerScottContinuous g) :
              LowerScottContinuous fun (x : α) => g (f x)

              Eta-expanded form of LowerScottContinuous.comp

              theorem UpperScottContinuous.fun_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : β → γ} (hf : UpperScottContinuous f) (hg : UpperScottContinuous g) :
              UpperScottContinuous fun (x : α) => g (f x)

              Eta-expanded form of UpperScottContinuous.comp

              @[deprecated UpperScottContinuous.comp (since := "2026-11-08")]
              theorem ScottContinuous.comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : β → γ} (hf : UpperScottContinuous f) (hg : UpperScottContinuous g) :

              Alias of UpperScottContinuous.comp.

              theorem UpperScottContinuous.prodMk {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : α → γ} (hf : UpperScottContinuous f) (hg : UpperScottContinuous g) :
              UpperScottContinuous fun (x : α) => (f x, g x)
              theorem LowerScottContinuous.prodMk {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : α → γ} (hf : LowerScottContinuous f) (hg : LowerScottContinuous g) :
              LowerScottContinuous fun (x : α) => (f x, g x)
              @[deprecated UpperScottContinuous.prodMk (since := "2026-11-08")]
              theorem ScottContinuous.prodMk {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Preorder α] [Preorder β] [Preorder γ] {f : α → β} {g : α → γ} (hf : UpperScottContinuous f) (hg : UpperScottContinuous g) :
              UpperScottContinuous fun (x : α) => (f x, g x)

              Alias of UpperScottContinuous.prodMk.

              @[deprecated UpperScottContinuous.fst (since := "2026-11-08")]

              Alias of UpperScottContinuous.fst.

              @[deprecated UpperScottContinuous.snd (since := "2026-11-08")]

              Alias of UpperScottContinuous.snd.

              theorem UpperScottContinuous.sup {β : Type u_2} [SemilatticeSup β] :
              UpperScottContinuous fun (b : β × β) => b.1 ⊔ b.2

              The join operation is Scott continuous for suprema.

              theorem LowerScottContinuous.inf {β : Type u_2} [SemilatticeInf β] :
              LowerScottContinuous fun (b : β × β) => b.1 ⊓ b.2

              The meet operation is Scott continuous for infima.

              @[deprecated UpperScottContinuous.sup (since := "2026-11-08")]
              theorem ScottContinuous.sup₂ {β : Type u_2} [SemilatticeSup β] :
              UpperScottContinuous fun (b : β × β) => b.1 ⊔ b.2

              Alias of UpperScottContinuous.sup.


              The join operation is Scott continuous for suprema.

              theorem UpperScottContinuousOn.sup {β : Type u_2} [SemilatticeSup β] {D : Set (Set (β × β))} :
              UpperScottContinuousOn D fun (x : β × β) => match x with | (a, b) => a ⊔ b
              @[deprecated UpperScottContinuousOn.sup (since := "2026-11-08")]
              theorem ScottContinuousOn.sup₂ {β : Type u_2} [SemilatticeSup β] {D : Set (Set (β × β))} :
              UpperScottContinuousOn D fun (x : β × β) => match x with | (a, b) => a ⊔ b

              Alias of UpperScottContinuousOn.sup.