--------------------------------------------------------------------------------
title:          Two
author:         Ayberk Tosun
date-started:   2024-03-04
date-completed: 2024-03-04
--------------------------------------------------------------------------------

We define the locale corresponding to the two-point discrete space.

\begin{code}

{-# OPTIONS --safe --without-K #-}

open import UF.PropTrunc
open import UF.FunExt
open import UF.Subsingletons

module Locales.DiscreteLocale.Two
        (fe : Fun-Ext)
        (pe : Prop-Ext)
        (pt : propositional-truncations-exist)
       where

open import Locales.DiscreteLocale.Definition fe pe pt
open import Locales.Frame pt fe
open import MLTT.Spartan hiding (๐Ÿš)
open import UF.Logic
open import UF.Sets
open import UF.DiscreteAndSeparated hiding (๐Ÿš-is-set)
open import UF.Powerset

open AllCombinators pt fe renaming (_โˆง_ to _โˆงโ‚š_; _โˆจ_ to _โˆจโ‚š_)
open PropositionalSubsetInclusionNotation fe
open PropositionalTruncation pt hiding (_โˆจ_)

\end{code}

\begin{code}

module _ (๐“ค : Universe) where

 ๐Ÿš-is-set : {๐“ค : Universe} โ†’ is-set (๐Ÿš ๐“ค)
 ๐Ÿš-is-set {๐“ค} = +-is-set (๐Ÿ™ {๐“ค}) (๐Ÿ™ {๐“ค}) ๐Ÿ™-is-set ๐Ÿ™-is-set

 ๐Ÿš-loc : Locale (๐“ค โบ) ๐“ค ๐“ค
 ๐Ÿš-loc = discrete-locale (๐Ÿš ๐“ค) ๐Ÿš-is-set

\end{code}