Last active
June 26, 2016 12:41
-
-
Save motemen/5798c5a888f8c91bcc68e463b321c7c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sig Person { | |
shaken: set Person, | |
partner: Person | |
} | |
fact partnerProperties { | |
partner = ~partner | |
no p: Person | p in p.partner | |
} | |
fact shakenProperties { | |
shaken = ~shaken | |
no p: Person | p in p.shaken | |
no p: Person | p.partner in p.shaken | |
} | |
one sig Alice, Bob extends Person {} | |
fact { Alice -> Bob in partner } | |
fact numShakenPeopleMutuallyDiffer { | |
all disj p, p': Person - Alice { | |
#p.shaken != #p'.shaken | |
} | |
} | |
pred show {} | |
run show for exactly 10 Person |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment