aboutsummaryrefslogtreecommitdiff
path: root/examples/tests/test_ext_codomain.makkai
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-05-06 11:21:22 +0100
committertslil <tslil@posteo.de>2026-05-06 13:35:14 +0100
commit1b4abb8fdd81f6de2166ef3f064a77fd5622fe83 (patch)
tree7a1bea5e296fc8607fed97d7fe82de618959fd32 /examples/tests/test_ext_codomain.makkai
parentfbb8835cb73fd51e130f4e319290eeb44eadfcf5 (diff)
clean up examples vs tests
Diffstat (limited to 'examples/tests/test_ext_codomain.makkai')
-rw-r--r--examples/tests/test_ext_codomain.makkai5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/tests/test_ext_codomain.makkai b/examples/tests/test_ext_codomain.makkai
new file mode 100644
index 0000000..da0ddae
--- /dev/null
+++ b/examples/tests/test_ext_codomain.makkai
@@ -0,0 +1,5 @@
+let signature S = (x : Nat) -> theory { G :: Set }
+
+let instance s :: S = for (x : Nat), { .G = (Nat :: Set) }
+
+let set NatAgain = set-of((s 42) .G)