-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex18.in
25 lines (16 loc) · 870 Bytes
/
ex18.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
formulas(sos).
% 1. anyone who loves any lottery is a gambler.
(all x (lovelottery(x) -> gambler(x))).
% 2. everyone who favors the lottery proposition loves some lottery.
(all x (favorprop(x) -> lovelottery(x))).
% 3. everyone favors the lottery proposition or opposes the lottery proposition.
(all x (favorprop(x) & opposeprop(x))).
% 4. if every baptist votes and opposes the lottery proposition, then the lottery proposition does not win.
(all x ((baptist(x) & vote(x) & opposeprop(x)) -> -propwin)).
% 5. every baptist who is faithful is not a gambler.
(all x ((baptist(x) & faithful(x)) -> -gambler(x))).
end_of_list.
formulas(goals).
% 6. if every baptist votes and the lottery proposition wins, then some baptist is not faithful.
((all x (baptist(x) & vote(x))) & propwin) -> (exists x (baptist(x) & -faithful(x))).
end_of_list.