aboutsummaryrefslogtreecommitdiff
path: root/examples/tests/test_projection.makkai
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-05-07 15:33:30 +0100
committertslil <tslil@posteo.de>2026-05-07 16:19:27 +0100
commit77d637846be1eb0d140612731c80ca7a6cf1bb29 (patch)
treeb5adb44f73a59644e54e7a21d7fbe9160f70b0bb /examples/tests/test_projection.makkai
parent8d9c0e5868b2a7fa22080f814357dcda69a10057 (diff)
fix failure to add hypotheticals for instances of compound signatures
Diffstat (limited to 'examples/tests/test_projection.makkai')
-rw-r--r--examples/tests/test_projection.makkai10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/tests/test_projection.makkai b/examples/tests/test_projection.makkai
new file mode 100644
index 0000000..2c4ce23
--- /dev/null
+++ b/examples/tests/test_projection.makkai
@@ -0,0 +1,10 @@
+let signature S = theory {
+ A :: Set,
+ Point :: <A>,
+ B :: (x : set-of(A)) -> Set
+}
+
+let signature T = theory {
+ SI :: S,
+ F :: (r: set-of((SI .B) (element-of(SI .Point)))) -> Set
+}