---
title:  Definition of sublocale
author: Ayberk Tosun
date:   2026-10-31
---

In this module, we define the notion of sublocale using nuclei.

\begin{code}

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

open import UF.FunExt
open import UF.PropTrunc

module Locales.Sublocale.Definition
        (pt : propositional-truncations-exist)
        (fe : Fun-Ext)
       where

open import Locales.ContinuousMap.Homeomorphism-Definition pt fe
open import Locales.Frame pt fe
open import Locales.Sublocale.Nucleus pt fe
open import Locales.Sublocale.SublocaleDeterminedByNucleus pt fe
open import MLTT.Spartan
open import UF.Logic
open import UF.SubtypeClassifier

open AllCombinators pt fe
open Locale

\end{code}

A sublocale of a locale `X` is one that is determined by a nucleus on `X`. In
other words, a locale `Y` is a sublocale of `X` if there is a nucleus
`j : š’Ŗ X → š’Ŗ X` such that `X_j` is homeomorphic to `Y`.

\begin{code}

exhibits-as-a-sublocale-of
 : (X : Locale (š“¤ ⁺) š“¤ š“¤)
 → (š’æ : Nucleus (š’Ŗ X))
 → Locale (š“¤ ⁺) š“¤ š“¤
 → š“¤ ⁺  ̇
exhibits-as-a-sublocale-of X š’æ Y = Y ≅c≅ Xā±¼
 where
  open Sublocale-Determined-By-Nucleus

  Xā±¼ = sublocale-determined-by-nucleus X š’æ

_is-sublocale-of_ : (Y X : Locale (š“¤ ⁺) š“¤ š“¤) → Ī© (š“¤ ⁺)
Y is-sublocale-of X = ʎ š’æ źž‰ Nucleus (š’Ŗ X) , exhibits-as-a-sublocale-of X š’æ Y

\end{code}