Skip to content

Instantly share code, notes, and snippets.

@cutsea110
Created May 17, 2018 02:44
Show Gist options
  • Save cutsea110/8873b60d09b98e69ba29bc6b291ae3ed to your computer and use it in GitHub Desktop.
Save cutsea110/8873b60d09b98e69ba29bc6b291ae3ed to your computer and use it in GitHub Desktop.
alloy* is ok, but alloy reject this. since "Analysis cannot be performed since it requires higher-order quantification that could not be skolemized."
sig A {
}
sig B {
S : set A
}
sig C {
R : set B
}
pred Monic(m : S){
all f,g: R | f.m = g.m <=> f = g
}
pred Epic(e : R){
all f,g: S | e.f = e.g <=> f = g
}
pred show{
some m:S | Monic[m]
some e:R | Epic[e]
}
run show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment