:-include(library('ec_planner/ec_test_incl')). :-expects_dialect(pfc). % Tue, 06 Oct 2020 04:57:42 GMT % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.pel:4 /* loading(load_e_pl, '/pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e'). */ %; %; Copyright (c) 2005 IBM Corporation and others. %; All rights reserved. This program and the accompanying materials %; are made available under the terms of the Common Public License v1.0 %; which accompanies this distribution, and is available at %; http://www.eclipse.org/legal/cpl-v10.html %; %; Contributors: %; IBM - Initial implementation %; %; @book{Mueller:2006, %; author = "Erik T. Mueller", %; year = "2006", %; title = "Commonsense Reasoning", %; address = "San Francisco", %; publisher = "Morgan Kaufmann/Elsevier", %; } %; % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:19 % load foundations/Root.e % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:20 % load foundations/EC.e % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:22 % sort agent % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:23 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:23 sort(agent). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:23 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:23 sort(agent). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:24 % fluent Awake(agent) % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 fluent(awake(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 fluents([awake/1]). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 fluents([awake/1]). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 meta_argtypes(awake(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 meta_argtypes(awake(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 mpred_prop(awake(agent),fluent). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 mpred_prop(awake(agent),fluent). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 meta_argtypes(awake(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 meta_argtypes(awake(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:25 % event WakeUp(agent) % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 event(wakeUp(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 actions([wakeUp/1]). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 actions([wakeUp/1]). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 meta_argtypes(wakeUp(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 meta_argtypes(wakeUp(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 mpred_prop(wakeUp(agent),event). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 mpred_prop(wakeUp(agent),event). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 meta_argtypes(wakeUp(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:26 meta_argtypes(wakeUp(agent)). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:27 % [agent,time] % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:27 % Initiates(WakeUp(agent),Awake(agent),time). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:27 /* [] -> ta(Time, tvs1=[Time], tvs2=[Time], initiates(wakeUp(Agent), awake(Agent), Time)). */ % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:27 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:27 initiates(wakeUp(Wakeup),awake(Wakeup),Initiates). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:27 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:27 initiated(happens(wakeUp(Wakeup),Maptime,Happens), awake(Wakeup), []). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:28 % [agent,time] % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:28 % Happens(WakeUp(agent),time) -> !HoldsAt(Awake(agent),time). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:28 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:28 happens(wakeUp(Agent), Time) -> holds_at(neg(awake(Agent)), Time). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:28 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:28 reactive_rule([happens(wakeUp(Agent),Time)], [holds(not(awake(Agent)),Time)]). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:30 % agent James % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 t(agent,james). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 agent(james). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 % Delta: % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 % Happens(WakeUp(James),0). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 /* [axiom_uses(delta, Axiom_Uses)] -> ta(TaP_Num4_V, tvs1=[start], tvs2=[start], happens(wakeUp(james), start)). */ % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 axiom_uses(delta, Axiom_Uses2) -> happens(wakeUp(james), start). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:31 reactive_rule([axiom_uses(delta,Axiom_Uses2)], [observe(at(wakeUp(james),start))]). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:32 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:32 % HoldsAt(Awake(James),1). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:32 /* [b(start, Time), ignore(start+1==Time)] -> ta(TaP_Num4_V, tvs1=[start+1], tvs2=[Time, start], holds_at(awake(james), Time)). */ % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:32 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:32 b(start, Time2) -> holds_at(awake(james), Time2). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:32 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:32 reactive_rule([b(start,Time2)],[holds(awake(james),Time2)]). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:34 % completion Delta Happens % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 completion(delta). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 completion(delta). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 completion(happens). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:35 completion(happens). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:36 % range time 0 1 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:37 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:37 range(time,0,1). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:37 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:37 range(time,0,1). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:37 % range offset 1 1 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:38 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:38 range(offset,1,1). % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:38 % From /pack/logicmoo_ec/ext/ec_sources/examples/Mueller2006/Chapter13/Postdiction.e:38 range(offset,1,1).