aboutsummaryrefslogtreecommitdiff
path: root/Data/Setoid/Unit.agda
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-12-09 13:25:39 -0600
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-12-09 13:25:39 -0600
commit6272b4e84650b9833a53239b354770e0deba7b9a (patch)
treed69dfd53369f4630fe9e8beceabad3ac55a1dc0e /Data/Setoid/Unit.agda
parent3c62ac510f286f228c9993fe6c37abdcad9e1fb2 (diff)
Add shorter name for singleton setoid
Diffstat (limited to 'Data/Setoid/Unit.agda')
-rw-r--r--Data/Setoid/Unit.agda11
1 files changed, 11 insertions, 0 deletions
diff --git a/Data/Setoid/Unit.agda b/Data/Setoid/Unit.agda
new file mode 100644
index 0000000..8b8edde
--- /dev/null
+++ b/Data/Setoid/Unit.agda
@@ -0,0 +1,11 @@
+{-# OPTIONS --without-K --safe #-}
+
+open import Level using (Level)
+
+module Data.Setoid.Unit {c ℓ : Level} where
+
+open import Categories.Category.Instance.SingletonSet using (SingletonSetoid)
+open import Relation.Binary using (Setoid)
+
+⊤ₛ : Setoid c ℓ
+⊤ₛ = SingletonSetoid {c} {ℓ}