aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-04-30 16:53:14 +0100
committertslil <tslil@posteo.de>2026-04-30 17:30:22 +0100
commit0f7efe7518b925d9688dad4c6f6e87f84015e2c1 (patch)
treef4cdfa08c7d3e7a69860570f3f7826119f3bcdef /src/main.rs
parentd57f1d3c845220c741db73c1fada017a75b11992 (diff)
wip case for instances
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 34d6360..a395db8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -23,9 +23,11 @@ let signature Graph = theory {
Edge :: (s : set-of(Node)) (t : set-of(Node)) -> Set
}
+let set FinTwo = variant [ zero : record{} | one : record{} ]
+
let instance natGraph :: Graph = {
- .Node = Nat :: Set,
- .Edge = for (s : Nat) (t : Nat), Bool :: Set
+ .Node = FinTwo :: Set,
+ .Edge = for (s : set-of(Node)) (t : set-of(Node)), case s of [ zero. ignore => Bool :: Set | one. ignore => Nat :: Set ]
}
let set NatEdges = record {