FailureOfTotalSeparatedness
Martin Escardo, 10-12th June 2026. This is a companion to Ordinals.BrouwerCodesInterpretations. Recall that Brouwer ordinal codes are countably branching trees, inductively defined by the constructors Z : B, S : B β B, L : (β β B) β B. The standard interpretation β¦_β§β, given in Ordinals.BrouwerCodesInterpretations, interprets Z as the ordinal zero, S as successor of ordinals, and L as supremum of ordinals (least upper bound). See also Ordinals.FailureOfTrichotomy. The alternative sup-of-extension interpretation β¦_β§β, given in the same file, interprets Z as one (rather than zero), S again as successor, but L as the supremum of the extension ββ β Ordinal of a family β β Ordinal, given by the algebraic injectivity of the type of ordinals as constructed in the file Ordinals.Injectivity. This non-standard interpretation gives compact (aka searchable) ordinals. A question we had for some time was whether the resulting ordinals are also totally separated. Here we answer this in the negative. More precisely, from the assumption that the resulting ordinals are totally separated, we conclude that ¬¬ WLPO holds. More generally, and this is what we start with in this file, we show that a supremum of totally separated ordinals doesn't need to be totally separated itself, even if the ordinals are further assumed to be compact and the index set is assumed to be compact and totally separated. To prove this, we show that the supremum of the extension of the constantly 2 sequence of ordinals is a Sierpinski-like type.{-# OPTIONS --safe --without-K --lossy-unification #-} open import UF.Univalence open import UF.PropTrunc open import UF.Size module Ordinals.FailureOfTotalSeparatedness (ua : Univalence) (pt : propositional-truncations-exist) (sr : Set-Replacement pt) where open import UF.FunExt open import UF.Subsingletons open import UF.UA-FunExt private fe : FunExt fe = Univalence-gives-FunExt ua fe' : Fun-Ext fe' {π€} {π₯} = fe π€ π₯ pe : Prop-Ext pe = Univalence-gives-Prop-Ext ua open PropositionalTruncation pt open import CoNaturals.Type open import MLTT.Spartan open import MLTT.Two-Properties open import Naturals.Order open import Notation.CanonicalMap open import Notation.Order open import Ordinals.Equivalence open import Ordinals.Injectivity open import Ordinals.Maps open import Ordinals.Notions open import Ordinals.OrdinalOfOrdinals ua open import Ordinals.OrdinalOfOrdinalsSuprema ua open import Ordinals.Two open import Ordinals.Type open import Ordinals.Underlying open import UF.Base open import UF.DiscreteAndSeparated open import UF.Embeddings open import UF.Equiv open import UF.ImageAndSurjection pt open import UF.Sets open import UF.Sets-Properties open import UF.Subsingletons-FunExt open import UF.Subsingletons-Properties open import UF.SubtypeClassifier open import UF.SubtypeClassifier-Properties open suprema pt sr private extension : (β β Ordinal π€β) β (ββ β Ordinal π€β) extension Ξ± = Ξ± β (embedding-β-to-ββ fe') where open ordinals-injectivity feTo achieve the above goal, we work with the constantly 2 sequence of ordinals, abbreviated Ξ± here.Ξ± : β β Ordinal π€β Ξ± _ = πβ Ξ±Μ : ββ β Ordinal π€β Ξ±Μ = extension Ξ±For u : ββ, an element of β¨ Ξ±Μ u β© is a function ΞΎ : is-finite u β π, that is, a partial element of π with domain of definition is-finite u. We let Ο range over the type is-finite u._ : (u : ββ) β β¨ Ξ±Μ u β© οΌ (is-finite u β π) _ = Ξ» u β refl πΌ : Ordinal π€β πΌ = sup Ξ±Μ πΌ-is-set : is-set β¨ πΌ β© πΌ-is-set = underlying-type-is-set fe πΌThe following are all the properties of the supremum that we need for our purposes, all labelled by ΞΈ.ΞΈ : {u : ββ} β β¨ Ξ±Μ u β© β β¨ πΌ β© ΞΈ {u} = [ Ξ±Μ u , πΌ ]β¨ sup-is-upper-bound Ξ±Μ u β© ΞΈ-is-simulation : {u : ββ} β is-simulation (Ξ±Μ u) πΌ ΞΈ ΞΈ-is-simulation {u} = [ Ξ±Μ u , πΌ ]β¨ sup-is-upper-bound Ξ±Μ u β©-is-simulation ΞΈ-is-order-preserving : {u : ββ} β is-order-preserving (Ξ±Μ u) πΌ ΞΈ ΞΈ-is-order-preserving {u} = simulations-are-order-preserving (Ξ±Μ u) πΌ ΞΈ ΞΈ-is-simulation ΞΈ-is-initial-segment : {u : ββ} β is-initial-segment (Ξ±Μ u) πΌ ΞΈ ΞΈ-is-initial-segment {u} ΞΎ z = simulations-are-initial-segments (Ξ±Μ u) πΌ ΞΈ ΞΈ-is-simulation ΞΎ z ΞΈ-is-jointly-surjective : (y : β¨ πΌ β©) β β u κ ββ , fiber (ΞΈ {u}) y ΞΈ-is-jointly-surjective = sup-is-upper-bound-jointly-surjective Ξ±Μ ΞΈ-downset : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β πΌ β ΞΈ ΞΎ οΌ Ξ±Μ u β ΞΎ ΞΈ-downset {u} = initial-segment-of-sup-at-component Ξ±Μ uWe work with the following alternative formulation of semidecidability. TODO. In the future, establish this equivalence formally, and probably move all code for the alternative definition to the file NotionsOfDecidability.SemiDecidable. But notice that we don't need to establish this equivalence to get our desired conclusions discussed above.is-semidecidable : (X : π€ Μ ) β π€ Μ is-semidecidable X = β u κ ββ , (X β is-finite u) being-semidecidable-is-prop : (X : π€ Μ ) β is-prop (is-semidecidable X) being-semidecidable-is-prop X = β-is-prop π-is-semidecidable : is-semidecidable π π-is-semidecidable = β£ β , qinveq π-elim ((Ξ» (n , e) β β-is-not-finite n (e β»ΒΉ)) , (Ξ» z β π-elim z) , (Ξ» (n , e) β π-elim (β-is-not-finite n (e β»ΒΉ)))) β£ π-is-semidecidable : is-semidecidable (π {π€}) π-is-semidecidable = β£ Zero , qinveq (Ξ» _ β 0 , refl) (unique-to-π , (Ξ» _ β refl) , (Ξ» Ο β β-to-ββ-is-embedding fe' Zero (to-fiber β-to-ββ 0) Ο)) β£ π : π€β Μ π = Ξ£ p κ Ξ© π€β , is-semidecidable (p holds) β₯β β€β : π β₯β = β₯ , π-is-semidecidable β€β = β€ , π-is-semidecidableWe can think of π as a Sierpinski type. We define the domain of definition of an element of π as follows.Ξ΄ : π β Ξ© π€β Ξ΄ = prβWe order the Sierpinski type as follows._βΊβ_ : π β π β π€β Μ t βΊβ t' = (Ξ΄ t holds β π {π€β}) Γ (Ξ΄ t' holds)NB. For simplicity, we are deliberately making the order live in the universe π€β, rather than π€β, because its carrier already lives in π€β. A conclusion of our development, recorded below, is that both π and its order have a copy in π€β under our assumptions above. The Sierpinski type π is a set, its equality is characterized by logical equivalence of domains of definition, and βΊβ is a well-order, all of which are immediate.π-is-set : is-set π π-is-set = Ξ£-is-set (Ξ©-is-set fe' pe) (Ξ» p β props-are-sets (being-semidecidable-is-prop (p holds))) to-π-οΌ : {t t' : π} β (Ξ΄ t holds β Ξ΄ t' holds) β t οΌ t' to-π-οΌ (f , g) = to-subtype-οΌ (Ξ» p β being-semidecidable-is-prop (p holds)) (Ξ©-extensionality pe fe' f g) βΊβ-prop-valued : is-prop-valued _βΊβ_ βΊβ-prop-valued t t' = Γ-is-prop (Ξ -is-prop fe' (Ξ» _ β π-is-prop)) (holds-is-prop (Ξ΄ t')) βΊβ-transitive : is-transitive _βΊβ_ βΊβ-transitive t t' t'' (Ξ½ , _) (_ , h') = Ξ½ , h' βΊβ-extensional : is-extensional _βΊβ_ βΊβ-extensional t t' f g = to-π-οΌ (I , II) where I : Ξ΄ t holds β Ξ΄ t' holds I s = prβ (f β₯β (π-elim , s)) II : Ξ΄ t' holds β Ξ΄ t holds II s' = prβ (g β₯β (π-elim , s'))TODO. Find a sensible name for the above projection prβ. We must have a definition somewhere. If not, define it at an appropriate file.βΊβ-well-founded : is-well-founded _βΊβ_ βΊβ-well-founded t = acc (Ξ» _ (Ξ½ , _) β acc (Ξ» _ (_ , h) β π-elim (Ξ½ h))) π’ : Ordinal π€β π’ = π , _βΊβ_ , βΊβ-prop-valued , βΊβ-well-founded , βΊβ-extensional , βΊβ-transitiveEventually we will show that πΌ ββ π’. Notice that the former lives in the first universe π€β and the latter in next universe π€β, which is one way of interpreting the choice of capitalization.π π : {u : ββ} β β¨ Ξ±Μ u β© π Ο = β π Ο = βThe following specialized transports are to make the type checking performance feasible. We struggled to make the draft versions of this file to type check, where we used the general transport construction, with Agda spinning "for ever". We use similar tricks in a number of places below, for the same reason.βΊ-transportβ : {x x' y : β¨ πΌ β©} β x οΌ x' β x βΊβ¨ πΌ β© y β x' βΊβ¨ πΌ β© y βΊ-transportβ refl l = l βΊ-transportα΅£ : {x y y' : β¨ πΌ β©} β y οΌ y' β x βΊβ¨ πΌ β© y β x βΊβ¨ πΌ β© y' βΊ-transportα΅£ refl l = l βΊβ-transportβ : {t t' r : π} β t οΌ t' β t βΊβ r β t' βΊβ r βΊβ-transportβ refl l = l βΊβ-transportα΅£ : {t r r' : π} β r οΌ r' β t βΊβ r β t βΊβ r' βΊβ-transportα΅£ refl l = lWe have that, for any u : ββ and ΞΎ : β¨ Ξ±Μ u β©, the type fiber ΞΎ β := (Ξ£ Ο : is-finite , ΞΎ Ο οΌ β) is a proposition. We need to show that it is semidecidable.π : {u : ββ} β β¨ Ξ±Μ u β© β π€β Μ π ΞΎ = fiber ΞΎ β π-is-prop : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β is-prop (π ΞΎ) π-is-prop {u} ΞΎ = Ξ£-is-prop (being-finite-is-prop fe' u) (Ξ» Ο β π-is-set)To show that the proposition π ΞΎ is semidecidable, we construct a conatural number semidecider ΞΎ : ββ that is finite if and only if π ΞΎ holds.Ο : {n : β} {u : ββ} β ΞΉ u n οΌ β β is-finite u Ο {n} {u} = bounded-is-finite fe' n u finiteness-is-prop : {u : ββ} β is-prop (is-finite u) finiteness-is-prop {u} = being-finite-is-prop fe' u raw-semidecider : {u : ββ} β β¨ Ξ±Μ u β© β (β β π) raw-semidecider {u} ΞΎ m = π-equality-cases (Ξ» (e : ΞΉ u m οΌ β) β complement (ΞΎ (Ο e))) (Ξ» (_ : ΞΉ u m οΌ β) β β) raw-semidecider-is-decreasing : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β is-decreasing (raw-semidecider ΞΎ) raw-semidecider-is-decreasing {u} ΞΎ m = β€β-criterion I where I : raw-semidecider ΞΎ (succ m) οΌ β β raw-semidecider ΞΎ m οΌ β I eβ = h (ΞΉ u m) refl where h : (c : π) β ΞΉ u m οΌ c β raw-semidecider ΞΎ m οΌ β h β e = π-equality-casesβ e h β e = raw-semidecider ΞΎ m οΌβ¨ π-equality-casesβ e β© complement (ΞΎ (Ο e)) οΌβ¨ ap (Ξ» - β complement (ΞΎ -)) (finiteness-is-prop (Ο e) (Ο (stays-zero u e))) β© complement (ΞΎ (Ο (stays-zero u e))) οΌβ¨ (π-equality-casesβ (stays-zero u e))β»ΒΉ β© raw-semidecider ΞΎ (succ m) οΌβ¨ eβ β© β βNB. If we write the above chain of equations in the usual TypeTopology style, e.g. using roman numbers for the equality proofs defined in a `where` clause (as in some examples below), we get a number of unsolved constraints.semidecider : {u : ββ} β β¨ Ξ±Μ u β© β ββ semidecider ΞΎ = raw-semidecider ΞΎ , raw-semidecider-is-decreasing ΞΎ finite-semidecider-gives-π : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β is-finite (semidecider ΞΎ) β π ΞΎ finite-semidecider-gives-π {u} ΞΎ (n , p) = h (ΞΉ u n) refl where I : raw-semidecider ΞΎ n οΌ β I = raw-semidecider ΞΎ n οΌβ¨ (ap (Ξ» - β ΞΉ - n) p)β»ΒΉ β© ΞΉ (ΞΉ n) n οΌβ¨ β-to-ββ-diagonalβ n β© β β h : (c : π) β ΞΉ u n οΌ c β π ΞΎ h β e = π-elim (zero-is-not-one (β οΌβ¨ I β»ΒΉ β© raw-semidecider ΞΎ n οΌβ¨ π-equality-casesβ e β© β β)) h β e = Ο , complementβ q where Ο : is-finite u Ο = Ο e q : complement (ΞΎ Ο) οΌ β q = complement (ΞΎ Ο) οΌβ¨ (π-equality-casesβ e)β»ΒΉ β© raw-semidecider ΞΎ n οΌβ¨ I β© β β π-gives-finite-semidecider : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β π ΞΎ β is-finite (semidecider ΞΎ) π-gives-finite-semidecider {u} ΞΎ ((n , p) , geq) = n , ((IV n I III)β»ΒΉ) where I : (m : β) β m < n β raw-semidecider ΞΎ m οΌ β I m l = π-equality-casesβ Iβ where Iβ : ΞΉ u m οΌ β Iβ = ΞΉ u m οΌβ¨ (ap (Ξ» w β ΞΉ w m) p)β»ΒΉ β© ΞΉ (ΞΉ n) m οΌβ¨ <-gives-β m n l β© β β II : ΞΉ u n οΌ β II = ΞΉ u n οΌβ¨ (ap (Ξ» w β ΞΉ w n) p)β»ΒΉ β© ΞΉ (ΞΉ n) n οΌβ¨ β-to-ββ-diagonalβ n β© β β III : raw-semidecider ΞΎ n οΌ β III = raw-semidecider ΞΎ n οΌβ¨ π-equality-casesβ II β© complement (ΞΎ (Ο II)) οΌβ¨ ap (Ξ» - β complement (ΞΎ -)) (finiteness-is-prop (Ο II) (n , p)) β© complement (ΞΎ (n , p)) οΌβ¨ ap complement geq β© β β IV : (n : β) β ((m : β) β m < n β raw-semidecider ΞΎ m οΌ β) β raw-semidecider ΞΎ n οΌ β β semidecider ΞΎ οΌ ΞΉ n IV 0 lt a = is-Zero-equal-Zero fe' a IV (succ n') lt a = Succ-criterion fe' (lt n' (<-succ n')) a π-β-finite-semidecider : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β π ΞΎ β is-finite (semidecider ΞΎ) π-β-finite-semidecider ΞΎ = logically-equivalent-props-are-equivalent (π-is-prop ΞΎ) finiteness-is-prop (π-gives-finite-semidecider ΞΎ) (finite-semidecider-gives-π ΞΎ) π-is-semidecidable : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β is-semidecidable (π ΞΎ) π-is-semidecidable ΞΎ = β£ semidecider ΞΎ , π-β-finite-semidecider ΞΎ β£ π½ : {u : ββ} β β¨ Ξ±Μ u β© β π π½ ΞΎ = (π ΞΎ , π-is-prop ΞΎ) , π-is-semidecidable ΞΎWe now show that π½ is order preserving.disjoint-fibers : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β fiber ΞΎ β β fiber ΞΎ β β π disjoint-fibers ΞΎ (Οβ , eβ) (Οβ , eβ) = one-is-not-zero I where I : β οΌ β I = β οΌβ¨ eβ β»ΒΉ β© ΞΎ Οβ οΌβ¨ ap ΞΎ (finiteness-is-prop Οβ Οβ) β© ΞΎ Οβ οΌβ¨ eβ β© β β π½-is-order-preserving : {u : ββ} β is-order-preserving (Ξ±Μ u) π’ π½ π½-is-order-preserving ΞΎβ ΞΎβ (Ο , l) = (Ξ» s β π-elim (disjoint-fibers ΞΎβ (Ο , βΊβ-left l) s)) , (Ο , βΊβ-right l)If the lower sets of ΞΎ and ΞΎ' in the ordinals Ξ±Μ u and Ξ±Μ u' are equal, then so are π½ ΞΎ and π½ ΞΎ'.β-to-π½-οΌ : {u u' : ββ} (ΞΎ : β¨ Ξ±Μ u β©) (ΞΎ' : β¨ Ξ±Μ u' β©) β Ξ±Μ u β ΞΎ οΌ Ξ±Μ u' β ΞΎ' β π½ ΞΎ οΌ π½ ΞΎ' β-to-π½-οΌ {u} {u'} ΞΎ ΞΎ' e = to-π-οΌ (IV , V) where I : (Ξ£ ΞΆ κ β¨ Ξ±Μ u β© , ΞΆ βΊβ¨ Ξ±Μ u β© ΞΎ) οΌ (Ξ£ ΞΆ' κ β¨ Ξ±Μ u' β© , ΞΆ' βΊβ¨ Ξ±Μ u' β© ΞΎ') I = ap β¨_β© e II : {w : ββ} (Ο : β¨ Ξ±Μ w β©) β π Ο β Ξ£ ΞΆ κ β¨ Ξ±Μ w β© , ΞΆ βΊβ¨ Ξ±Μ w β© Ο II Ο (Ο , eβ) = π , Ο , βΊβ-left-right refl eβ III : {w w' : ββ} (ΞΎ : β¨ Ξ±Μ w β©) (ΞΎ' : β¨ Ξ±Μ w' β©) β ((Ξ£ ΞΆ κ β¨ Ξ±Μ w β© , ΞΆ βΊβ¨ Ξ±Μ w β© ΞΎ) β (Ξ£ ΞΆ' κ β¨ Ξ±Μ w' β© , ΞΆ' βΊβ¨ Ξ±Μ w' β© ΞΎ')) β π ΞΎ β π ΞΎ' III {w} {w'} ΞΎ ΞΎ' h s = IIIβ (h (II ΞΎ s)) where IIIβ : (Ξ£ ΞΆ' κ β¨ Ξ±Μ w' β© , ΞΆ' βΊβ¨ Ξ±Μ w' β© ΞΎ') β π ΞΎ' IIIβ (ΞΆ' , Ο , l) = Ο , βΊβ-right l IV : π ΞΎ β π ΞΎ' IV = III ΞΎ ΞΎ' (Idtofun I) V : π ΞΎ' β π ΞΎ V = III ΞΎ' ΞΎ (Idtofun (I β»ΒΉ)) ΞΈ-to-π½-οΌ : {u u' : ββ} {ΞΎ : β¨ Ξ±Μ u β©} {ΞΎ' : β¨ Ξ±Μ u' β©} β ΞΈ ΞΎ οΌ ΞΈ ΞΎ' β π½ ΞΎ οΌ π½ ΞΎ' ΞΈ-to-π½-οΌ {u} {u'} {ΞΎ} {ΞΎ'} e = β-to-π½-οΌ ΞΎ ΞΎ' I where I : Ξ±Μ u β ΞΎ οΌ Ξ±Μ u' β ΞΎ' I = Ξ±Μ u β ΞΎ οΌβ¨ (ΞΈ-downset ΞΎ)β»ΒΉ β© πΌ β ΞΈ ΞΎ οΌβ¨ ap (πΌ β_) e β© πΌ β ΞΈ ΞΎ' οΌβ¨ ΞΈ-downset ΞΎ' β© Ξ±Μ u' β ΞΎ' βWe now define a map Ο : β¨ πΌ β© β π by first defining a type-valued version T of it, after showing that it is singleton-valued. Although T-point gives data, it is defined by propositional-truncation induction, and, for that purpose, we first need to show that T is proposition valued. Getting the construction of Ο using something such as T was the biggest headache of this file, luckily with a simple-looking solution.T : β¨ πΌ β© β π€β Μ T y = Ξ£ t κ π , ((u : ββ) (ΞΎ : β¨ Ξ±Μ u β©) β ΞΈ ΞΎ οΌ y β π½ ΞΎ οΌ t) T-is-prop-valued : (y : β¨ πΌ β©) β is-prop (T y) T-is-prop-valued y (t , h) (t' , h') = to-subtype-οΌ (Ξ» - β Ξ β-is-prop fe' (Ξ» u ΞΎ e β π-is-set)) (β₯β₯-rec π-is-set (Ξ» (u , ΞΎ , e) β t οΌβ¨ (h u ΞΎ e)β»ΒΉ β© π½ ΞΎ οΌβ¨ h' u ΞΎ e β© t' β) (ΞΈ-is-jointly-surjective y)) T-point : (y : β¨ πΌ β©) β T y T-point y = β₯β₯-rec (T-is-prop-valued y) I (ΞΈ-is-jointly-surjective y) where I : (Ξ£ u κ ββ , Ξ£ ΞΎ κ β¨ Ξ±Μ u β© , ΞΈ ΞΎ οΌ y) β T y I (u , ΞΎ , e) = π½ ΞΎ , (Ξ» u' ΞΎ' e' β ΞΈ-to-π½-οΌ (Iβ ΞΎ' e')) where Iβ : {u' : ββ} (ΞΎ' : β¨ Ξ±Μ u' β©) β ΞΈ ΞΎ' οΌ y β ΞΈ ΞΎ' οΌ ΞΈ ΞΎ Iβ ΞΎ' e' = ΞΈ ΞΎ' οΌβ¨ e' β© y οΌβ¨ e β»ΒΉ β© ΞΈ ΞΎ β Ο : β¨ πΌ β© β π Ο y = prβ (T-point y)We have that Ο β ΞΈ βΌ π½. For future use, it is convenient to formulate this in the following equivalent form, and in any case this is what the definition of T gives directly.by-construction-of-Ο : {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) (y : β¨ πΌ β©) β ΞΈ ΞΎ οΌ y β Ο y οΌ π½ ΞΎ by-construction-of-Ο {u} ΞΎ y e = (prβ (T-point y) u ΞΎ e)β»ΒΉ Ο-fiber-transport : {y : β¨ πΌ β©} {t t' : π} β t οΌ t' β (Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y) Γ (Ο yβ οΌ t)) β (Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y) Γ (Ο yβ οΌ t')) Ο-fiber-transport refl Ο = Ο Ο-β₯-no-preds : (u : ββ) (ΞΎ : β¨ Ξ±Μ u β©) (y z : β¨ πΌ β©) β ΞΈ ΞΎ οΌ y β Ο y οΌ β₯β β Β¬ (z βΊβ¨ πΌ β© y) Ο-β₯-no-preds u ΞΎ y z e c l = II (ΞΈ-is-initial-segment ΞΎ z l') where l' : z βΊβ¨ πΌ β© ΞΈ ΞΎ l' = βΊ-transportα΅£ (e β»ΒΉ) l I : π½ ΞΎ οΌ β₯β I = π½ ΞΎ οΌβ¨ (by-construction-of-Ο ΞΎ y e)β»ΒΉ β© Ο y οΌβ¨ c β© β₯β β II : (Ξ£ ΞΎβ κ β¨ Ξ±Μ u β© , (ΞΎβ βΊβ¨ Ξ±Μ u β© ΞΎ) Γ (ΞΈ ΞΎβ οΌ z)) β π {π€β} II (ΞΎβ , m , p) = transport (Ξ» - β Ξ΄ - holds) I (prβ (π½-is-order-preserving ΞΎβ ΞΎ m)) Ο-lc-at-β₯ : (y y' : β¨ πΌ β©) β Ο y οΌ β₯β β Ο y' οΌ β₯β β y οΌ y' Ο-lc-at-β₯ y y' c c' = β₯β₯-recβ πΌ-is-set I (ΞΈ-is-jointly-surjective y) (ΞΈ-is-jointly-surjective y') where I : (Ξ£ u κ ββ , Ξ£ ΞΎ κ β¨ Ξ±Μ u β© , ΞΈ ΞΎ οΌ y) β (Ξ£ u' κ ββ , Ξ£ ΞΎ' κ β¨ Ξ±Μ u' β© , ΞΈ ΞΎ' οΌ y') β y οΌ y' I (u , ΞΎ , e) (u' , ΞΎ' , e') = Extensionality πΌ y y' f g where f : (z : β¨ πΌ β©) β z βΊβ¨ πΌ β© y β z βΊβ¨ πΌ β© y' f z l = π-elim (Ο-β₯-no-preds u ΞΎ y z e c l) g : (z : β¨ πΌ β©) β z βΊβ¨ πΌ β© y' β z βΊβ¨ πΌ β© y g z l = π-elim (Ο-β₯-no-preds u' ΞΎ' y' z e' c' l)We now show that the map Ο is a simulation. For the initial-segment property, the crucial point is that the only βΊβ-predecessor of anything is β₯β, whose Ο-preimages are unique by the previous lemma, so that the required Ξ£-type is a proposition.Ο-lemmaβ : (y y' : β¨ πΌ β©) β {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) {u' : ββ} (ΞΎ' : β¨ Ξ±Μ u' β©) β ΞΈ ΞΎ οΌ y β ΞΈ ΞΎ' οΌ y' β y βΊβ¨ πΌ β© y' β Ο y βΊβ Ο y' Ο-lemmaβ y y' ΞΎ {u'} ΞΎ' e e' l = III (ΞΈ-is-initial-segment ΞΎ' (ΞΈ ΞΎ) II) where I : ΞΈ ΞΎ βΊβ¨ πΌ β© y' I = βΊ-transportβ (e β»ΒΉ) l II : ΞΈ ΞΎ βΊβ¨ πΌ β© ΞΈ ΞΎ' II = βΊ-transportα΅£ (e' β»ΒΉ) I III : (Ξ£ ΞΎβ κ β¨ Ξ±Μ u' β© , (ΞΎβ βΊβ¨ Ξ±Μ u' β© ΞΎ') Γ (ΞΈ ΞΎβ οΌ ΞΈ ΞΎ)) β Ο y βΊβ Ο y' III (ΞΎβ , m , p) = IIIβ where IIIβ : π½ ΞΎβ βΊβ π½ ΞΎ' IIIβ = π½-is-order-preserving ΞΎβ ΞΎ' m IIIβ : π½ ΞΎ' οΌ Ο y' IIIβ = (by-construction-of-Ο ΞΎ' y' e') β»ΒΉ IIIβ : ΞΈ ΞΎβ οΌ y IIIβ = ΞΈ ΞΎβ οΌβ¨ p β© ΞΈ ΞΎ οΌβ¨ e β© y β IIIβ : π½ ΞΎβ οΌ Ο y IIIβ = (by-construction-of-Ο ΞΎβ y IIIβ) β»ΒΉ IIIβ : π½ ΞΎβ βΊβ Ο y' IIIβ = βΊβ-transportα΅£ {π½ ΞΎβ} {π½ ΞΎ'} {Ο y'} IIIβ IIIβ IIIβ : Ο y βΊβ Ο y' IIIβ = βΊβ-transportβ {π½ ΞΎβ} {Ο y} {Ο y'} IIIβ IIIβ Ο-is-order-preserving : is-order-preserving πΌ π’ Ο Ο-is-order-preserving y y' l = β₯β₯-rec (βΊβ-prop-valued (Ο y) (Ο y')) (Ξ» (u , ΞΎ , e) β β₯β₯-rec (βΊβ-prop-valued (Ο y) (Ο y')) (Ξ» (u' , ΞΎ' , e') β Ο-lemmaβ y y' ΞΎ ΞΎ' e e' l) (ΞΈ-is-jointly-surjective y')) (ΞΈ-is-jointly-surjective y) Ο-lemmaβ : (y : β¨ πΌ β©) {u : ββ} (ΞΎ : β¨ Ξ±Μ u β©) β ΞΈ ΞΎ οΌ y β π ΞΎ β Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y) Γ (Ο yβ οΌ β₯β) Ο-lemmaβ y ΞΎ e (Ο , e') = ΞΈ π , II , III where I : ΞΈ π βΊβ¨ πΌ β© ΞΈ ΞΎ I = ΞΈ-is-order-preserving π ΞΎ (Ο , βΊβ-left-right refl e') II : ΞΈ π βΊβ¨ πΌ β© y II = βΊ-transportα΅£ e I III : Ο (ΞΈ π) οΌ β₯β III = Ο (ΞΈ π) οΌβ¨ by-construction-of-Ο π (ΞΈ π) refl β© π½ π οΌβ¨ to-π-οΌ ((disjoint-fibers π (Ο , refl)) , π-elim) β© β₯β β Ο-is-initial-segment : is-initial-segment πΌ π’ Ο Ο-is-initial-segment y t (Ξ½ , h) = V where I : β₯β οΌ t I = to-π-οΌ (π-elim , (Ξ» s β π-elim (Ξ½ s))) II : is-prop (Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y) Γ (Ο yβ οΌ β₯β)) II (yβ , m , c) (yβ' , m' , c') = to-subtype-οΌ (Ξ» yβ β Γ-is-prop (Prop-valuedness πΌ yβ y) π-is-set) (Ο-lc-at-β₯ yβ yβ' c c') III : (Ξ£ u κ ββ , Ξ£ ΞΎ κ β¨ Ξ±Μ u β© , ΞΈ ΞΎ οΌ y) β Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y) Γ (Ο yβ οΌ β₯β) III (u , ΞΎ , e) = Ο-lemmaβ y ΞΎ e s where s : π ΞΎ s = transport (Ξ» - β Ξ΄ - holds) (by-construction-of-Ο ΞΎ y e) h IV : Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y) Γ (Ο yβ οΌ β₯β) IV = β₯β₯-rec II III (ΞΈ-is-jointly-surjective y) V : Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y) Γ (Ο yβ οΌ t) V = Ο-fiber-transport I IVWhich gives the desired conclusion.Ο-is-simulation : is-simulation πΌ π’ Ο Ο-is-simulation = Ο-is-initial-segment , Ο-is-order-preservingWe continue with more lemmas about Ο.Ο-is-surjection : is-surjection Ο Ο-is-surjection (p , Ο) = IV where I : (Ξ£ u κ ββ , (p holds β is-finite u)) β fiber Ο (p , Ο) I (u , π) = ΞΈ π , III where II : π½ π οΌ (p , Ο) II = to-π-οΌ (IIβ , IIβ) where IIβ : π π β p holds IIβ (Ο , _) = β π ββ»ΒΉ Ο IIβ : p holds β π π IIβ s = β π β s , refl III : Ο (ΞΈ π) οΌ (p , Ο) III = Ο (ΞΈ π) οΌβ¨ by-construction-of-Ο π (ΞΈ π) refl β© π½ π οΌβ¨ II β© (p , Ο) β IV : β₯ fiber Ο (p , Ο) β₯ IV = β₯β₯-functor I ΟA surjective simulation is an order equivalence, and so we get the promised description of the supremum.Ο-lc : left-cancellable Ο Ο-lc = simulations-are-lc πΌ π’ Ο Ο-is-simulation Ο-is-embedding : is-embedding Ο Ο-is-embedding = lc-maps-into-sets-are-embeddings Ο Ο-lc π-is-set Ο-is-equiv : is-equiv Ο Ο-is-equiv = surjective-embeddings-are-equivs Ο Ο-is-embedding Ο-is-surjection Ο-is-order-reflecting : is-order-reflecting πΌ π’ Ο Ο-is-order-reflecting y y' l = I (Ο-is-initial-segment y' (Ο y) l) where I : (Ξ£ yβ κ β¨ πΌ β© , (yβ βΊβ¨ πΌ β© y') Γ (Ο yβ οΌ Ο y)) β y βΊβ¨ πΌ β© y' I (yβ , m , c) = βΊ-transportβ (Ο-lc c) m Οβ»ΒΉ : π β β¨ πΌ β© Οβ»ΒΉ = inverse Ο Ο-is-equiv Οβ»ΒΉ-is-order-preserving : is-order-preserving π’ πΌ Οβ»ΒΉ Οβ»ΒΉ-is-order-preserving = order-reflecting-gives-inverse-order-preserving πΌ π’ Ο Ο-is-equiv Ο-is-order-reflectingTherefore, as promised, the sup of Ξ±Μ is π’:πΌ-is-π’ : πΌ ββ π’ πΌ-is-π’ = Ο , Ο-is-order-preserving , Ο-is-equiv , Οβ»ΒΉ-is-order-preserving β¨πΌβ©-is-π : β¨ πΌ β© β π β¨πΌβ©-is-π = ββ-gives-β πΌ π’ πΌ-is-π’As a corollary, we conclude that, although π lives in π€β by construction, it has a copy in π€β, as mentioned above.π-is-small : is-small π π-is-small = β¨ πΌ β© , β¨πΌβ©-is-πThe underlying type of the ordinal πΌ, or equivalently the type π, fails to be totally separated in general in the following sense: its total separatedness implies the constructive taboo ¬¬ WLPO, which is a principle that fails in both Johnstone's Topological Topos and Hylands Effective Topos, for instance.open import TypeTopology.TotallySeparated open import Taboos.WLPO open import Taboos.BasicDiscontinuity fe' being-finite-is-semidecidable : (u : ββ) β is-semidecidable (is-finite u) being-finite-is-semidecidable u = β£ u , β-refl (is-finite u) β£ is-fin : ββ β π is-fin u = (is-finite u , being-finite-is-prop fe' u) , being-finite-is-semidecidable u naturals-are-fin : (n : β) β is-fin (ΞΉ n) οΌ β€β naturals-are-fin n = to-π-οΌ ((Ξ» _ β β) , (Ξ» _ β n , refl)) β-is-not-fin : is-fin β οΌ β₯β β-is-not-fin = to-π-οΌ (is-infinite-β , π-elim) β₯β-is-not-β€β : β₯β β β€β β₯β-is-not-β€β e = transport (Ξ» - β Ξ΄ - holds) (e β»ΒΉ) β π-separation-gives-WLPO : (p : π β π) β p β₯β β p β€β β WLPO π-separation-gives-WLPO p Ξ½ = h (p β₯β) (p β€β) refl refl where q : ββ β π q u = p (is-fin u) qβ : (n : β) β q (ΞΉ n) οΌ p β€β qβ n = ap p (naturals-are-fin n) qβ : q β οΌ p β₯β qβ = ap p β-is-not-fin h : (b c : π) β p β₯β οΌ b β p β€β οΌ c β WLPO h β β e e' = π-elim (Ξ½ (p β₯β οΌβ¨ e β© β οΌβ¨ e' β»ΒΉ β© p β€β β)) h β β e e' = basic-discontinuity-taboo (Ξ» u β complement (q u)) (Iβ , Iβ) where Iβ : (n : β) β complement (q (ΞΉ n)) οΌ β Iβ n = complement (q (ΞΉ n)) οΌβ¨ ap complement (qβ n) β© complement (p β€β) οΌβ¨ ap complement e' β© β β Iβ : complement (q β) οΌ β Iβ = complement (q β) οΌβ¨ ap complement qβ β© complement (p β₯β) οΌβ¨ ap complement e β© β β h β β e e' = basic-discontinuity-taboo q (Iβ , Iβ) where Iβ : (n : β) β q (ΞΉ n) οΌ β Iβ n = q (ΞΉ n) οΌβ¨ qβ n β© p β€β οΌβ¨ e' β© β β Iβ : q β οΌ β Iβ = q β οΌβ¨ qβ β© p β₯β οΌβ¨ e β© β β h β β e e' = π-elim (Ξ½ (p β₯β οΌβ¨ e β© β οΌβ¨ e' β»ΒΉ β© p β€β β)) π-totally-separated-gives-¬¬WLPO : is-totally-separated π β ¬¬ WLPO π-totally-separated-gives-¬¬WLPO ts nwlpo = β₯β-is-not-β€β (ts I) where I : (p : π β π) β p β₯β οΌ p β€β I p = h (p β₯β) (p β€β) refl refl where h : (b c : π) β p β₯β οΌ b β p β€β οΌ c β p β₯β οΌ p β€β h β β e e' = p β₯β οΌβ¨ e β© β οΌβ¨ e' β»ΒΉ β© p β€β β h β β e e' = π-elim (nwlpo (π-separation-gives-WLPO p Ξ½)) where Ξ½ : p β₯β β p β€β Ξ½ d = zero-is-not-one (β οΌβ¨ e β»ΒΉ β© p β₯β οΌβ¨ d β© p β€β οΌβ¨ e' β© β β) h β β e e' = π-elim (nwlpo (π-separation-gives-WLPO p Ξ½)) where Ξ½ : p β₯β β p β€β Ξ½ d = one-is-not-zero (β οΌβ¨ e β»ΒΉ β© p β₯β οΌβ¨ d β© p β€β οΌβ¨ e' β© β β) h β β e e' = p β₯β οΌβ¨ e β© β οΌβ¨ e' β»ΒΉ β© p β€β β πΌ-totally-separated-gives-¬¬WLPO : is-totally-separated β¨ πΌ β© β ¬¬ WLPO πΌ-totally-separated-gives-¬¬WLPO ts = π-totally-separated-gives-¬¬WLPO (equiv-to-totally-separated β¨πΌβ©-is-π ts)Putting the above together, we get the desired counter-example discussed in the introduction to this file.open import TypeTopology.CompactTypes open import TypeTopology.GenericConvergentSequenceCompactness fe' open import TypeTopology.MicroTychonoff counterexample-to-total-separatedess : Ξ£ I κ (π€β Μ ) , Ξ£ Ξ± κ (I β Ordinal π€β) , ((is-compactβ I) Γ (is-totally-separated I) Γ ((i : I) β is-compactβ β¨ Ξ± i β©) Γ ((i : I) β is-totally-separated β¨ Ξ± i β©) Γ (is-totally-separated β¨ sup Ξ± β© β ¬¬ WLPO)) counterexample-to-total-separatedess = ββ , Ξ±Μ , ββ-compactβ , ββ-is-totally-separated fe' , (Ξ» i β micro-tychonoff fe' (β-to-ββ-is-embedding fe' i) (Ξ» _ β π-is-compactβ)) , (Ξ» i β Ξ -is-totally-separated fe' (Ξ» _ β π-is-totally-separated)) , πΌ-totally-separated-gives-¬¬WLPOWe now get back to our main concern, the sup-of-extension interpretation β¦_β§β discussed in the introduction to this file. In order to make sense of the proof below, remember our remark that this non-standard interpretation maps Z to one rather than zero.open import Ordinals.BrouwerCodes open import Ordinals.BrouwerCodesInterpretations ua pt sr using (β¦_β§β) open import Ordinals.Arithmetic fe renaming (πβ to πβ-standard) total-separatedness-of-the-sup-of-extension-interpretation-gives-¬¬WLPO : ((b : B) β is-totally-separated β¨ β¦ b β§β β©) β ¬¬ WLPO total-separatedness-of-the-sup-of-extension-interpretation-gives-¬¬WLPO ts = V where _ : β¦ Z β§β οΌ πβ _ = refl _ : β¦ S Z β§β οΌ πβ-standard _ = refl I : πβ οΌ β¦ S Z β§β I = eqtoidβ (ua π€β) fe' πβ β¦ S Z β§β (πβ-agrees-with-πβ-standard fe) b : B b = L (Ξ» _ β S Z) II : β¦ b β§β οΌ πΌ II = ap (sup β extension) (dfunext fe' (Ξ» _ β I β»ΒΉ)) III : is-totally-separated β¨ β¦ b β§β β© III = ts b IV : is-totally-separated β¨ πΌ β© IV = transport (Ξ» - β is-totally-separated β¨ - β©) II III V : ¬¬ WLPO V = πΌ-totally-separated-gives-¬¬WLPO IV