Locales.LawsonLocale.SharpElementsCoincideWithSpectralPoints
--- title: Equivalence of sharp elements with spectral points author: Ayberk Tosun date-started: 2024-05-22 date-completed: 2024-05-28 dates-updated: [2024-06-03] --- This module contains the proof of equivalence between the sharp elements of a Scott domain and the โspectral pointsโ of its Scott locale. This equivalence was conjectured by Martรญn Escardรณ and proved by Ayberk Tosun on 2024-03-15. The formalization of the proof was completed on 2024-05-28.{-# OPTIONS --safe --without-K --lossy-unification #-} open import MLTT.List hiding ([_]) open import MLTT.Spartan open import UF.FunExt open import UF.PropTrunc open import UF.Size open import UF.Subsingletons open import UF.UA-FunExt open import UF.Univalence module Locales.LawsonLocale.SharpElementsCoincideWithSpectralPoints (๐ค : Universe) (ua : Univalence) (pt : propositional-truncations-exist) (sr : Set-Replacement pt) where private fe : Fun-Ext fe {๐ค} {๐ฅ} = univalence-gives-funext' ๐ค ๐ฅ (ua ๐ค) (ua (๐ค โ ๐ฅ)) pe : Prop-Ext pe {๐ค} = univalence-gives-propext (ua ๐ค) open import DomainTheory.BasesAndContinuity.Bases pt fe ๐ค open import DomainTheory.BasesAndContinuity.Continuity pt fe ๐ค open import DomainTheory.BasesAndContinuity.ScottDomain pt fe ๐ค open import DomainTheory.Basics.Dcpo pt fe ๐ค renaming (โจ_โฉ to โจ_โฉโ) open import DomainTheory.Basics.WayBelow pt fe ๐ค open import DomainTheory.Topology.ScottTopology pt fe ๐ค open import DomainTheory.Topology.ScottTopologyProperties pt fe ๐ค open import Locales.Compactness.Definition pt fe hiding (is-compact) open import Locales.ContinuousMap.FrameHomomorphism-Definition pt fe open import Locales.ContinuousMap.FrameHomomorphism-Properties pt fe open import Locales.Frame pt fe open import Locales.InitialFrame pt fe hiding (_โ_) open import Locales.LawsonLocale.CompactElementsOfPoint ๐ค fe pe pt sr open import Locales.Point.SpectralPoint-Definition pt fe open import Locales.ScottLocale.Properties pt fe ๐ค open import Locales.ScottLocale.ScottLocalesOfScottDomains pt fe sr ๐ค open import Locales.SmallBasis pt fe sr open import Locales.Spectrality.SpectralMap pt fe open import Locales.TerminalLocale.Properties pt fe sr open import NotionsOfDecidability.Decidable open import Slice.Family open import UF.Equiv open import UF.Logic open import UF.Subsingletons-FunExt open import UF.SubtypeClassifier renaming (โฅ to โฅโ) open AllCombinators pt fe open DefinitionOfScottDomain open Locale open PropositionalTruncation pt hiding (_โจ_)\section{Preliminaries} We define a version of the predicate `is-compact` that is packaged up with the proof that it is a proposition.is-compactโ : (๐ : DCPO {๐ค โบ} {๐ค}) โ โจ ๐ โฉโ โ ฮฉ (๐ค โบ) is-compactโ ๐ x = is-compact ๐ x , being-compact-is-prop ๐ xSimilarly, we define a version of the predicate `is-decidable` that is packaged up with the proof that it is a proposition.is-decidableโ : ฮฉ ๐ค โ ฮฉ ๐ค is-decidableโ P = is-decidable (P holds) , decidability-of-prop-is-prop fe (holds-is-prop P)\section{Introduction} We work in a module parameterized by - a large and locally small Scott domain `๐`, - assumed to satisfy the `decidability-condition` which says that upper boundedness of its compact elements is a decidable property.module Sharp-Element-Spectral-Point-Equivalence (๐ : DCPO {๐ค โบ} {๐ค}) (hl : has-least (underlying-order ๐)) (sd : is-scott-domain ๐ holds) (dc : decidability-condition ๐) where open Construction ๐ ua hl sd dc open DefinitionOfBoundedCompleteness hiding (_โ_)The following is a bit of preparation for the proofs. We open up relevant modules and define abbreviations for constructions that we use for the sake of readability and self-containment.๐ทโ : has-unspecified-small-compact-basis ๐ ๐ทโ = prโ sdWe denote by `Scottโฆ ๐โฆ` the Scott locale of domain `๐`.open SpectralScottLocaleConstructionโ ๐ ua hl sd dc pe renaming (ฯโฆ ๐โฆ to Scottโฆ ๐โฆ)For the frame of opens of the Scott locale `Scottโฆ ๐โฆ`, we reserve the notation `ฯโฆ ๐โฆ`. This notation differs from other uses in TypeTopology, but it should be the standard one and the notation elsewhere should be updated to use this one.ฯโฆ ๐โฆ : Frame (๐ค โบ) ๐ค ๐ค ฯโฆ ๐โฆ = ๐ช Scottโฆ ๐โฆ open SpectralScottLocaleConstruction ๐ hl hscb dc bc pe hiding (scb; ฯแดฐ) open ScottLocaleProperties ๐ hl hscb pe renaming (โค-is-compact to Scottโฆ ๐โฆ-is-compact) open is-small-compact-basis scb open structurally-algebraic ฯแดฐ : spectralแดฐ Scottโฆ ๐โฆ ฯแดฐ = scott-locale-spectralแดฐThe family `basis` given below is the basis of the Scott locale of domain `๐`.basis : Fam ๐ค โจ ๐ช Scottโฆ ๐โฆ โฉ basis = basisโ Scottโฆ ๐โฆ ฯแดฐ Bฯ : ๐ค ฬ Bฯ = index basis ฮฒฯ : Bฯ โ โจ ๐ช Scottโฆ ๐โฆ โฉ ฮฒฯ = basis [_] ฮบฯ : (i : Bฯ) โ is-compact-open Scottโฆ ๐โฆ (ฮฒฯ i) holds ฮบฯ = basisโ-consists-of-compact-opens Scottโฆ ๐โฆ ฯแดฐWe define a version of the order of `๐` that is packaged up with the proof that it is a proposition (called `prop-valuedness` in the domain theory development)._โ_ : โจ ๐ โฉโ โ โจ ๐ โฉโ โ ฮฉ ๐ค x โ y = (x โโจ ๐ โฉ y) , prop-valuedness ๐ x y\section{Definition of sharpness} We now define what it means for an element to be _sharp_, following the work of de Jong [1].is-sharp : โจ ๐ โฉโ โ ฮฉ (๐ค โบ) is-sharp x = โฑฏ c ๊ โจ ๐ โฉโ , is-compactโ ๐ c โ is-decidableโ (c โ x)This definition of the notion of sharpness is a predicate with large truth values as it quantifies over the compact opens. Because we are working with an algebraic dcpo, however, we can define a small version which we denote `is-sharpโป`.is-sharpโป : โจ ๐ โฉโ โ ฮฉ ๐ค is-sharpโป x = โฑฏ i ๊ index B๐ , is-decidableโ ((B๐ [ i ]) โ x)These two are equivalent.sharp-implies-sharpโป : (โฑฏ x ๊ โจ ๐ โฉโ , is-sharp x โ is-sharpโป x) holds sharp-implies-sharpโป x ๐ค i = ๐ค (B๐ [ i ]) (basis-is-compact i) sharpโป-implies-sharp : (โฑฏ x ๊ โจ ๐ โฉโ , is-sharpโป x โ is-sharp x) holds sharpโป-implies-sharp x ๐ค c ฯ = โฅโฅ-rec (holds-is-prop (is-decidableโ (c โ x))) โ ฮผ where ฮผ : โ i ๊ index B๐ , B๐ [ i ] ๏ผ c ฮผ = small-compact-basis-contains-all-compact-elements ๐ (B๐ [_]) scb c ฯ โ : ฮฃ i ๊ index B๐ , B๐ [ i ] ๏ผ c โ is-decidableโ (c โ x) holds โ (i , p) = transport (ฮป - โ is-decidableโ (- โ x) holds) p (๐ค i) sharp-is-equivalent-to-sharpโป : (โฑฏ x ๊ โจ ๐ โฉโ , is-sharp x โ is-sharpโป x) holds sharp-is-equivalent-to-sharpโป x = sharp-implies-sharpโป x , sharpโป-implies-sharp xWe now define the type `โฏ๐` of sharp elements of the Scott domain `๐`.โฏ๐ : ๐ค โบ ฬ โฏ๐ = ฮฃ x ๊ โจ ๐ โฉโ , is-sharp x holdsWe usually pattern match on the inhabitants of `โฏ๐` to refer to the first component. But if the need arises, we denote the underlying element of a sharp element `๐` by `โฆ ๐ โฆ`.โฆ _โฆ : โฏ๐ โ โจ ๐ โฉโ โฆ _โฆ (x , _) = x abstract to-sharp-๏ผ : (๐ ๐ : โฏ๐) โ prโ ๐ ๏ผ prโ ๐ โ ๐ ๏ผ ๐ to-sharp-๏ผ ๐ ๐ = to-subtype-๏ผ (holds-is-prop โ is-sharp) open Preliminaries open Locale open DefnOfScottTopology ๐ ๐ค\section{Characterization of sharp elements} In this section, we give a characterization of sharp elements which we use when constructing the equivalence (in the next section). We define the following predicate expressing that an element `x` has decidable membership in compact Scott opens.open Properties ๐ admits-decidable-membership-in-compact-scott-opens : โจ ๐ โฉโ โ ฮฉ (๐ค โบ) admits-decidable-membership-in-compact-scott-opens x = โฑฏ ๐ฆ ๊ โจ ๐ช Scottโฆ ๐โฆ โฉ , is-compact-open Scottโฆ ๐โฆ ๐ฆ โ is-decidableโ (x โโ ๐ฆ)Every sharp element admits decidable membership in compact Scott opens.sharp-implies-admits-decidable-membership-in-compact-scott-opens : (x : โจ ๐ โฉโ) โ (is-sharp x โ admits-decidable-membership-in-compact-scott-opens x) holds sharp-implies-admits-decidable-membership-in-compact-scott-opens x ๐๐ฝ ๐ฆ ๐ = โฅโฅ-rec (holds-is-prop (is-decidableโ (x โโ ๐ฆ))) (uncurry โก) โข where โข : is-basic Scottโฆ ๐โฆ ๐ฆ (spectralแดฐ-implies-directed-basisแดฐ Scottโฆ ๐โฆ ฯแดฐ) holds โข = compact-opens-are-basic Scottโฆ ๐โฆ (spectralแดฐ-implies-directed-basisแดฐ Scottโฆ ๐โฆ ฯแดฐ) ๐ฆ ๐ lemma : (xs : List (index B๐)) โ is-decidableโ (x โโ ฮฒฯ xs) holds lemma [] = inr ๐-elim lemma (i โท is) = โจ-preserves-decidability pt (x โโ โหข[ ฮฒโ i ]) (x โโ ๐ธ is) โ IH where โ : is-decidableโ (x โโ โหข[ ฮฒโ i ]) holds โ = ๐๐ฝ (ฮฒ i) (basis-is-compact i) IH : is-decidableโ (x โโ ๐ธ is) holds IH = lemma is โก : (xs : List (index B๐)) โ ฮฒฯ xs ๏ผ ๐ฆ โ is-decidableโ (x โโ ๐ฆ) holds โก xs p = transport (ฮป - โ is-decidableโ (x โโ -) holds) p (lemma xs)The converse also holds meaning elements that admit decidable membership in compact Scott opens are _exactly_ the sharp elements.admits-decidable-membership-in-compact-scott-opens-implies-is-sharp : (x : โจ ๐ โฉโ) โ admits-decidable-membership-in-compact-scott-opens x holds โ is-sharp x holds admits-decidable-membership-in-compact-scott-opens-implies-is-sharp x ฯ c ๐ = ฯ โหข[ (c , ๐) ] (principal-filter-is-compactโ c ๐) characterization-of-sharp-elements : (x : โจ ๐ โฉโ) โ (admits-decidable-membership-in-compact-scott-opens x โ is-sharp x) holds characterization-of-sharp-elements x = โ , โก where โ = admits-decidable-membership-in-compact-scott-opens-implies-is-sharp x โก = sharp-implies-admits-decidable-membership-in-compact-scott-opens x\section{The equivalence} We now start constructing an equivalence between the type `Spectral-Point Scottโฆ ๐โฆ` and the type `โฏ๐`. This equivalence consists of the maps: 1. `๐ ๐[_] : โฏ๐ โ Spectral-Point Scottโฆ ๐โฆ`, and 2. `sharp : Spectral-Point Scottโฆ ๐โฆ โ โฏ๐`. We now construct these maps in this order. \subsection{Definition of the map `๐ ๐`} We follow our usual convention of distinguishing the preliminary version of the construction of interest using the subscript `โ`, which we then package up with the proof that it satisfies some property.ptโ[_] : โจ ๐ โฉโ โ โจ ๐ช Scottโฆ ๐โฆ โฉ โ ฮฉ ๐ค ptโ[_] x U = x โโ U open FrameHomomorphismProperties (๐ช Scottโฆ ๐โฆ) (๐-๐ฝ๐ฃ๐ pe) open FrameHomomorphisms pt[_] : โฏ๐ โ Point Scottโฆ ๐โฆ pt[_] ๐@(x , ๐ค) = ptโ[ x ] , โ where โก : preserves-joins (๐ช Scottโฆ ๐โฆ) (๐-๐ฝ๐ฃ๐ pe) ptโ[ x ] holds โก S = โ[ ๐-๐ฝ๐ฃ๐ pe ]-upper โ ptโ[ x ] y โฃ y ฮต S โ , โ[ ๐-๐ฝ๐ฃ๐ pe ]-least โ ptโ[ x ] y โฃ y ฮต S โ โ : is-a-frame-homomorphism (๐ช Scottโฆ ๐โฆ) (๐-๐ฝ๐ฃ๐ pe) ptโ[ x ] holds โ = refl , (ฮป _ _ โ refl) , โก open BottomLemma ๐ ๐ hlGiven any sharp element `๐`, the point `pt ๐` is a spectral map.pt-is-spectral : (๐ : โฏ๐) โ is-spectral-map Scottโฆ ๐โฆ (๐Loc pe) pt[ ๐ ] holds pt-is-spectral ๐@(x , ๐๐ฝ) ๐ฆ@(K , ฯ) ๐ = decidable-implies-compact pe (x โโ ๐ฆ) โ where โ : is-decidableโ (x โโ (K , ฯ)) holds โ = sharp-implies-admits-decidable-membership-in-compact-scott-opens x ๐๐ฝ ๐ฆ ๐ open Notion-Of-Spectral-Point peWe package `pt[_]` up with this proof of spectrality and denote it `๐ ๐[_]`.๐ ๐[_] : โฏ๐ โ Spectral-Point Scottโฆ ๐โฆ ๐ ๐[_] ๐ = to-spectral-point Scottโฆ ๐โฆ โฑ where โฑ : Spectral-Map (๐Loc pe) Scottโฆ ๐โฆ โฑ = pt[ ๐ ] , pt-is-spectral ๐\subsection{Definition of the map `sharp`} We now define the map `sharp` going in the opposite direction.sharpโ : Point Scottโฆ ๐โฆ โ โจ ๐ โฉโ sharpโ โฑ = โ ๐ (๐ฆ-in-point-is-directed โฑ)The following lemma says if `sharp(โฑ) โ ๐` then `U โ โฑ`, for every point `โฑ` and every Scott open `๐`.open PropertiesAlgebraic ๐ ๐ hiding (is-compactโ) sharp-in-scott-open-implies-in-point : (๐ : โจ ๐ช Scottโฆ ๐โฆ โฉ) โ (โฑ@(F , _) : Point Scottโฆ ๐โฆ) โ (sharpโ โฑ โโ ๐ โ F ๐) holds sharp-in-scott-open-implies-in-point ๐ โฑ@(F , ๐ฝ) = โ where open ๐ชโแดฟ (to-๐ชโแดฟ ๐) โ : (sharpโ โฑ โโ ๐ โ F ๐) holds โ p = โฅโฅ-rec (holds-is-prop (F ๐)) โก ฮณ where โก : ฮฃ (i , _) ๊ index (๐ฆ-in-point โฑ) , ((B๐ [ i ]) โโ ๐) holds โ F ๐ holds โก ((a , b) , c) = frame-morphisms-are-monotonic F ๐ฝ (โหข[ ฮฒโ a ] , ๐) q b where q : (โหข[ ฮฒโ a ] โค[ poset-of (๐ช Scottโฆ ๐โฆ) ] ๐) holds q x = pred-is-upwards-closed (B๐ [ a ]) (B๐ [ x ]) c ฮณ : โฅ ฮฃ (i , _) ๊ index (๐ฆ-in-point โฑ) , ((B๐ [ i ]) โโ ๐) holds โฅ ฮณ = pred-is-inaccessible-by-dir-joins (๐ฆ-in-pointโ โฑ) pAs an immediate special case of this lemma, we obtain the following.below-sharp-implies-in-point : (โฑ@(F , _) : Point Scottโฆ ๐โฆ) โ (c : โจ ๐ โฉโ) โ (๐ : is-compact ๐ c) โ c โโจ ๐ โฉ sharpโ โฑ โ F โหข[ c , ๐ ] holds below-sharp-implies-in-point โฑ@(F , ๐ฝ) c ๐ = sharp-in-scott-open-implies-in-point โหข[ ๐ ] โฑ where ๐ = (c , ๐)The converse of this special case also holds. In fact, the converse holds for _all_ compact Scott opens.in-point-implies-contains-sharpโ : (ks : List (index B๐)) โ (โฑ@(F , _) : Point Scottโฆ ๐โฆ) โ (F (๐ธ ks) โ sharpโ โฑ โโ ๐ธ ks) holds in-point-implies-contains-sharpโ [] โฑ@(F , _) p = ๐-elim โ where ฯ : F ๐[ ๐ช Scottโฆ ๐โฆ ] holds ฯ = transport (ฮป - โ (F -) holds) (๐ธ-equal-to-๐ธโ []) p โ ก : ๐[ ๐-๐ฝ๐ฃ๐ pe ] holds โ ก = transport _holds (frame-homomorphisms-preserve-bottom โฑ) ฯ โ : โฅโ holds โ = transport (ฮป - โ - holds) (๐-is-โฅ pe โปยน) โ ก in-point-implies-contains-sharpโ (k โท ks) โฑ@(F , _) p = โฅโฅ-rec (holds-is-prop ((sharpโ โฑ โโ ๐ธ (k โท ks)))) โก (transport _holds โ p) where โ : F (๐ธ (k โท ks)) ๏ผ F โแต[ k ] โจ F (๐ธ ks) โ = F (๐ธ (k โท ks)) ๏ผโจ โ โฉ F (๐ธโ (k โท ks)) ๏ผโจ โ ก โฉ F โแต[ k ] โจ[ ๐-๐ฝ๐ฃ๐ pe ] F (๐ธโ ks) ๏ผโจ โ ข โฉ F โแต[ k ] โจ[ ๐-๐ฝ๐ฃ๐ pe ] F (๐ธ ks) ๏ผโจ โ ฃ โฉ F โแต[ k ] โจ F (๐ธ ks) โ where โ = ap F (๐ธ-equal-to-๐ธโ (k โท ks)) โ ก = frame-homomorphisms-preserve-binary-joins โฑ _ _ โ ข = ap (ฮป - โ F โแต[ k ] โจ[ ๐-๐ฝ๐ฃ๐ pe ] F -) (๐ธ-equal-to-๐ธโ ks โปยน) โ ฃ = binary-join-is-disjunction pe (F โแต[ k ]) (F (๐ธ ks)) โก : F โแต[ k ] holds + F (๐ธ ks) holds โ (sharpโ โฑ โโ ๐ธ (k โท ks)) holds โก (inl p) = โฃ inl (โ-is-upperbound ๐ (๐ฆ-in-point-is-directed โฑ) (k , p)) โฃ โก (inr q) = โฃ inr (in-point-implies-contains-sharpโ ks โฑ q) โฃWe can reformulate this more concisely to say the same thing for any compact Scott open `K` since a Scott open is compact iff it is a finite join of principal filters on compact opens.in-point-implies-contains-sharp : (โฑ@(F , _) : Point Scottโฆ ๐โฆ) โ (K : โจ ฯโฆ ๐โฆ โฉ) โ (๐ : is-compact-open Scottโฆ ๐โฆ K holds) โ (F K โ sharpโ โฑ โโ K) holds in-point-implies-contains-sharp โฑ@(F , ฯ) K ๐ ฯ = โฅโฅ-rec (holds-is-prop (sharpโ โฑ โโ K)) โ ฮณ where โฌโ : directed-basisแดฐ (๐ช Scottโฆ ๐โฆ) โฌโ = spectralแดฐ-implies-directed-basisแดฐ Scottโฆ ๐โฆ ฯแดฐ ฮณ : is-basic Scottโฆ ๐โฆ K (spectralแดฐ-implies-directed-basisแดฐ Scottโฆ ๐โฆ ฯแดฐ) holds ฮณ = compact-opens-are-basic Scottโฆ ๐โฆ โฌโ K ๐ โ : ฮฃ i ๊ Bฯ , ฮฒฯ i ๏ผ K โ (sharpโ โฑ โโ K) holds โ (i , p) = transport (ฮป - โ (sharpโ โฑ โโ -) holds) p โก where ฮผ : F (๐ธ i) holds ฮผ = transport (ฮป - โ F - holds) (p โปยน) ฯ โก : (sharpโ (F , ฯ) โโ ฮฒฯ i) holds โก = in-point-implies-contains-sharpโ i โฑ ฮผWe now prove that the map `sharpโ` always gives sharp elements.sharpโ-gives-sharp-elements : (F : Point Scottโฆ ๐โฆ) โ is-spectral-map Scottโฆ ๐โฆ (๐Loc pe) F holds โ is-sharp (sharpโ F) holds sharpโ-gives-sharp-elements โฑ@(F , _) ฯ c ๐ = cases caseโ caseโ ฮณ where ฯ : is-compact-open (๐Loc pe) (F โหข[ c , ๐ ]) holds ฯ = ฯ โหข[ c , ๐ ] (principal-filter-is-compactโ c ๐ ) ฮณ : is-decidableโ (F โหข[ c , ๐ ]) holds ฮณ = compact-implies-boolean pe (F โหข[ c , ๐ ]) ฯ ฮบ : is-compact-open Scottโฆ ๐โฆ โหข[ c , ๐ ] holds ฮบ = principal-filter-is-compactโ c ๐ caseโ : F โหข[ c , ๐ ] holds โ is-decidableโ (c โ sharpโ โฑ) holds caseโ = inl โ in-point-implies-contains-sharp โฑ โหข[ (c , ๐) ] ฮบ caseโ : ยฌ (F โหข[ c , ๐ ] holds) โ is-decidableโ (c โ sharpโ โฑ) holds caseโ ฯ = inr (ฯ โ below-sharp-implies-in-point โฑ c ๐)We denote by `sharp` the version of `sharpโ` that is packaged up with the proof that it always gives sharp elements.sharp : Spectral-Point Scottโฆ ๐โฆ โ โฏ๐ sharp โฑ = sharpโ Fยท , sharpโ-gives-sharp-elements Fยท ฯ where open Spectral-Point Scottโฆ ๐โฆ โฑ renaming (point-fn to F; point to Fยท; point-preserves-compactness to ฯ)\subsection{A useful lemma} We now prove a lemma which we use when showing that these two maps form an equivalence. Given a sharp element `๐`, the element `sharp (pt ๐)` is exactly the join of the compact approximants of `๐`.sharp-equal-to-join-of-covering-family : (๐ : โฏ๐) โ โ ๐ (โแดฎโ-is-directed โฆ ๐ โฆ) ๏ผ sharpโ pt[ ๐ ] sharp-equal-to-join-of-covering-family (x , ๐ค) = antisymmetry ๐ (โ ๐ (โแดฎโ-is-directed x)) (โ ๐ฆ-in-pointโ pt[ (x , ๐ค) ]) โ โก where ฮณ : ((i , _) : โแดฎโ x) โ (sharpโ pt[ x , ๐ค ] โโ โหข[ ฮฒโ i ]) holds ฮณ (i , q) = in-point-implies-contains-sharp pt[ x , ๐ค ] โหข[ ฮฒโ i ] (principal-filter-is-compact i) (โแดฎโ-to-โแดฎ q) ฮด : is-upperbound (underlying-order ๐) (โ ๐ (โแดฎโ-is-directed x)) (๐ฆ-in-point pt[ x , ๐ค ] [_]) ฮด (i , q) = โ-is-upperbound ๐ (โแดฎโ-is-directed x) (i , โแดฎ-to-โแดฎโ q) โ : (โ ๐ (โแดฎโ-is-directed x)) โโจ ๐ โฉ (โ ๐ฆ-in-pointโ pt[ (x , ๐ค) ]) โ = โ-is-lowerbound-of-upperbounds ๐ (โแดฎโ-is-directed x) (โ ๐ฆ-in-pointโ pt[ x , ๐ค ]) ฮณ โก : ((โ ๐ฆ-in-pointโ pt[ (x , ๐ค) ]) โโจ ๐ โฉ โ ๐ (โแดฎโ-is-directed x)) โก = sup-is-lowerbound-of-upperbounds (underlying-order ๐) (โ-is-sup (๐ฆ-in-pointโ pt[ (x , ๐ค) ])) (โ ๐ (โแดฎโ-is-directed x)) ฮด\subsection{The equivalence proof} The fact that `sharp` is a retraction of `๐ ๐[_]` follows easily from the lemma `sharp-equal-to-join-of-covering-family` above.sharp-cancels-pt : (๐ : โฏ๐) โ sharp ๐ ๐[ ๐ ] ๏ผ ๐ sharp-cancels-pt ๐ = to-sharp-๏ผ (sharp ๐ ๐[ ๐ ]) ๐ โ where โ : โฆ sharp ๐ ๐[ ๐ ] โฆ ๏ผ โฆ ๐ โฆ โ = โฆ sharp ๐ ๐[ ๐ ] โฆ ๏ผโจ โ โฉ โ ๐ (โแดฎโ-is-directed โฆ ๐ โฆ) ๏ผโจ โ ก โฉ โฆ ๐ โฆ โ where โ = sharp-equal-to-join-of-covering-family ๐ โปยน โ ก = โแดฎโ-โ-๏ผ โฆ ๐ โฆThe map `๐ ๐[_]` is a retraction of the map `sharp`.pt-cancels-sharp : (โฑ : Spectral-Point Scottโฆ ๐โฆ) โ ๐ ๐[ sharp โฑ ] ๏ผ โฑ pt-cancels-sharp โฑ = to-spectral-point-๏ผ Scottโฆ ๐โฆ ๐ ๐[ sharp โฑ ] โฑ (dfunext fe โ ) where open Spectral-Point Scottโฆ ๐โฆ โฑ renaming (point-fn to F; point to โฑโ) โ : (๐ : โจ ๐ช Scottโฆ ๐โฆ โฉ) โ (sharpโ โฑโ โโ ๐) ๏ผ F ๐ โ ๐@(U , s) = transport (ฮป - โ (sharpโ โฑโ โโ -) ๏ผ F -) (q โปยน) โก where S : Fam ๐ค โจ ๐ช Scottโฆ ๐โฆ โฉ S = covering-familyโ Scottโฆ ๐โฆ ฯแดฐ ๐ q : ๐ ๏ผ โ[ ๐ช Scottโฆ ๐โฆ ] S q = basisโ-covers-do-cover-eq Scottโฆ ๐โฆ ฯแดฐ ๐ โกโ : cofinal-in (๐-๐ฝ๐ฃ๐ pe) โ sharpโ โฑโ โโ ๐ โฃ ๐ ฮต S โ โ F ๐ โฃ ๐ ฮต S โ holds โกโ k = โฃ k , sharp-in-scott-open-implies-in-point (S [ k ]) โฑโ โฃ โกโ : cofinal-in (๐-๐ฝ๐ฃ๐ pe) โ F ๐ โฃ ๐ ฮต S โ โ sharpโ โฑโ โโ ๐ โฃ ๐ ฮต S โ holds โกโ (ks , p) = โฃ (ks , p) , in-point-implies-contains-sharpโ ks โฑโ โฃ โก : sharpโ โฑโ โโ (โ[ ๐ช Scottโฆ ๐โฆ ] S) ๏ผ F (โ[ ๐ช Scottโฆ ๐โฆ ] S) โก = sharpโ โฑโ โโ (โ[ ๐ช Scottโฆ ๐โฆ ] S) ๏ผโจreflโฉ ptโ[ sharpโ โฑโ ] (โ[ ๐ช Scottโฆ ๐โฆ ] S) ๏ผโจ โ โฉ โ[ ๐-๐ฝ๐ฃ๐ pe ] โ ptโ[ sharpโ โฑโ ] ๐ โฃ ๐ ฮต S โ ๏ผโจreflโฉ โ[ ๐-๐ฝ๐ฃ๐ pe ] โ sharpโ โฑโ โโ ๐ โฃ ๐ ฮต S โ ๏ผโจ โ ก โฉ โ[ ๐-๐ฝ๐ฃ๐ pe ] โ F ๐ โฃ ๐ ฮต S โ ๏ผโจ โ ข โฉ F (โ[ ๐ช Scottโฆ ๐โฆ ] S) โ where โ = frame-homomorphisms-preserve-all-joinsโฒ (๐ช Scottโฆ ๐โฆ) (๐-๐ฝ๐ฃ๐ pe) pt[ sharp โฑ ] S โ ก = bicofinal-implies-same-join (๐-๐ฝ๐ฃ๐ pe) โ sharpโ โฑโ โโ ๐ โฃ ๐ ฮต S โ โ F ๐ โฃ ๐ ฮต S โ โกโ โกโ โ ข = frame-homomorphisms-preserve-all-joinsโฒ (๐ช Scottโฆ ๐โฆ) (๐-๐ฝ๐ฃ๐ pe) โฑโ S โปยนFinally, we conclude this development by giving the equivalence between the sharp elements and the spectral points.โฏ๐-equivalent-to-spectral-points-of-Scottโฆ ๐โฆ : โฏ๐ โ Spectral-Point Scottโฆ ๐โฆ โฏ๐-equivalent-to-spectral-points-of-Scottโฆ ๐โฆ = ๐ ๐[_] , qinvs-are-equivs ๐ ๐[_] โ where โ : qinv ๐ ๐[_] โ = sharp , sharp-cancels-pt , pt-cancels-sharp\section{Acknowledgements} I am grateful to Tom de Jong for his comments on a write-up of the proof formalized in this module. \section{References} - [1]: Tom de Jong. *Apartness, sharp elements, and the Scott topology of domains*. Mathematical Structures in Computer Science, vol. 33, no. 7, pp 573-604, August 2023. doi:10.1017/S0960129523000282 https://doi.org/10.1017/S0960129523000282