Martin Escardo 13 Jun 2026. An equivalent copy of the ordinal ๐โ, for convenience. \begin{code} {-# OPTIONS --safe --without-K #-} module Ordinals.Two where open import MLTT.Spartan open import MLTT.Two-Properties open import Ordinals.Notions hiding (_โบโ_) open import Ordinals.Type open import UF.Subsingletons open import UF.DiscreteAndSeparated _โบโ_ : ๐ โ ๐ โ ๐คโฬ b โบโ c = (b ๏ผ โ) ร (c ๏ผ โ) โบโ-left : {x y : ๐} โ x โบโ y โ x ๏ผ โ โบโ-left = prโ โบโ-right : {x y : ๐} โ x โบโ y โ y ๏ผ โ โบโ-right = prโ โบโ-left-right : {x y : ๐} โ x ๏ผ โ โ y ๏ผ โ โ x โบโ y โบโ-left-right = _,_ ๐โ : Ordinal ๐คโ ๐โ = ๐ , (ฮป b c โ (b ๏ผ โ) ร (c ๏ผ โ)) , (ฮป b c โ ร-is-prop ๐-is-set ๐-is-set) , I , II , (ฮป _ _ _ (eโ , _) (_ , eโ) โ eโ , eโ) where I : is-well-founded (ฮป b c โ (b ๏ผ โ) ร (c ๏ผ โ)) I โ = acc (ฮป _ (_ , ฮฝ) โ zero-is-one-elim ฮฝ) I โ = acc (ฮป b (eโ , _) โ acc (ฮป c (_ , eโ) โ ๐-elim (zero-is-not-one (eโ โปยน โ eโ)))) II : is-extensional (ฮป b c โ (b ๏ผ โ) ร (c ๏ผ โ)) II โ โ f g = refl II โ โ f g = zero-is-one-elim (prโ (g โ (refl , refl))) II โ โ f g = zero-is-one-elim (prโ (f โ (refl , refl))) II โ โ f g = refl open import UF.FunExt module _ (fe : FunExt) where open import Ordinals.Arithmetic fe renaming (๐โ to ๐โ-standard) open import Ordinals.Equivalence open import Ordinals.Maps open import Ordinals.Underlying open import UF.Equiv ๐โ-agrees-with-๐โ-standard : ๐โ โโ ๐โ-standard {๐ค} ๐โ-agrees-with-๐โ-standard = f , f-is-order-preserving , qinvs-are-equivs f (g , gf , fg) , g-is-order-preserving where f : โจ ๐โ โฉ โ โจ ๐โ-standard โฉ f โ = inl โ f โ = inr โ f-is-order-preserving : is-order-preserving ๐โ ๐โ-standard f f-is-order-preserving โ โ l = zero-is-one-elim (โบโ-right l) f-is-order-preserving โ โ (refl , refl) = โ f-is-order-preserving โ y l = one-is-zero-elim (โบโ-left l) g : โจ ๐โ-standard โฉ โ โจ ๐โ โฉ g (inl โ) = โ g (inr โ) = โ fg : f โ g โผ id fg (inl โ) = refl fg (inr โ) = refl gf : g โ f โผ id gf โ = refl gf โ = refl g-is-order-preserving : is-order-preserving ๐โ-standard ๐โ g g-is-order-preserving (inl โ) (inl โ) l = ๐-elim l g-is-order-preserving (inl โ) (inr โ) โ = (refl , refl) g-is-order-preserving (inr โ) (inl โ) l = ๐-elim l g-is-order-preserving (inr โ) (inr โ) l = ๐-elim l \end{code}