ding
authorMart Lubbers <mart@martlubbers.net>
Tue, 13 Jan 2015 10:49:26 +0000 (11:49 +0100)
committerMart Lubbers <mart@martlubbers.net>
Tue, 13 Jan 2015 10:49:26 +0000 (11:49 +0100)
report/src/burglary.ail

index 51aff68..482efed 100644 (file)
@@ -1 +1,24 @@
-% Bestand
+prob joeW: 5/7.
+prob williamW: 5/7.
+prob jackW: 5/7.
+prob averallW: 5/7.
+
+works(joe) <- joeW.
+works(william) <- williamW.
+works(jack) <- jackW.
+works(averall) <- averallW.
+
+needs(joe, []).
+needs(william, []).
+needs(jack, [joe]).
+needs(averall, [jack, william]).
+
+
+burgels(X) <-
+       works(X) & needs(X, Needs) & forall(member(Burgel, Needs), member(Burgel, Workers)).
+
+%burgels(X) <-
+%      works(X) & findall(Y, works(Y), Workers) &
+%      needs(X, Needs) & forall(member(Burgel, Needs), member(Burgel, Workers)).
+
+%findall(X, burgels(X), L) & length(L, LX) & LX > 1.