1:-include(library('ec_planner/ec_test_incl')). 2:-expects_dialect(pfc). 3 % loading(always,'examples/Mueller2006/Chapter13/Deduction1.e').
4%;
5%; Copyright (c) 2005 IBM Corporation and others.
6%; All rights reserved. This program and the accompanying materials
7%; are made available under the terms of the Common Public License v1.0
8%; which accompanies this distribution, and is available at
9%; http://www.eclipse.org/legal/cpl-v10.html
10%;
11%; Contributors:
12%; IBM - Initial implementation
13%;
14%; @book{Mueller:2006,
15%; author = "Erik T. Mueller",
16%; year = "2006",
17%; title = "Commonsense Reasoning",
18%; address = "San Francisco",
19%; publisher = "Morgan Kaufmann/Elsevier",
20%; }
21%;
22
23% load foundations/Root.e
24
25% load foundations/EC.e
26
27% sort agent
28==> sort(agent).
29
30% fluent Awake(agent)
31 % fluent(awake(agent)).
32==> mpred_prop(awake(agent),fluent).
33==> meta_argtypes(awake(agent)).
34
35% event WakeUp(agent)
36 % event(wakeUp(agent)).
37==> mpred_prop(wakeUp(agent),event).
38==> meta_argtypes(wakeUp(agent)).
39
40
43 44axiom(initiates(wakeUp(Agent), awake(Agent), Time),
45 []).
46
47% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction1.e:29
48% agent James
49% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction1.e:30
50==> t(agent,james).
51
52
55 56axiom(not(initially(awake(james))),
57 []).
58
61next_axiom_uses(delta).
62
63
64
67axiom(happens(wakeUp(james), t),
68 [is_time(0)]).
69
70% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction1.e:33
71% completion Delta Happens
72% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction1.e:34
73==> completion(delta).
74==> completion(happens).
75
76% range time 0 1
77% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction1.e:36
78==> range(time,0,1).
79
80% range offset 1 1
81% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction1.e:37
82==>