370 likes | 499 Views
CHR + O Operational Semantics in Fluent Calculus (Using Knowledge & Ramifications). December, 2007. Simple Fluent Calculus (SFC). Introduction. A many-sorted first-order language with equality Includes: Sorts: FLUENT < STATE, ACTION, SIT Functions: Predicate. Abbreviations.
E N D
CHR + O Operational Semantics in Fluent Calculus(Using Knowledge & Ramifications) December, 2007
Introduction • A many-sorted first-order language with equality • Includes: • Sorts: FLUENT < STATE, ACTION, SIT • Functions: • Predicate
SFC Domain Axiomatization • State Constraints • Unique simple Action Precondition Axiom for each function symbol with range ACTION • A set of State Update Axioms • Foundational Axioms (Fstate) • Possibly further domain-specific axioms
State Update Axiom • Ex:
Introduction • Extends Simple Fluent Calculus • KState : SIT x STATE • Kstate(s, st) • The state st can be the current agent state at the situation s • Models the uncertainty about current agent’s state (since the agent can’t know what state is the real one)
Fluent Calculus with Ramifications • Sorted second-order logic language • Reserved Predicates: • Causes : STATE x STATE x STATE x STATE x STATE x STATE • Causes(z1, e1+, e1-, z2, e2+, e2-) • If z1 is the result of positive effects e1+ and negative effects e1-, then an additional effect is caused which leads to z2 (now the result of positive and negative effects e2+ and e2-, resp.) • Ramify : STATE x STATE x STATE x STATE • Ramify(z, e+, e-, z’) • z’ can be reached by iterated application of the underlying casual relation, starting in state z with momentum e+ and e-
Foundational Axioms (Reflexive and Transitive Closure of Causes)
Causal Relations Axiomatization • Relies on the assumption that the underlying Causes relation is completely specified
Fluent Calculus Domain Axiomatizationwith Ramifications • State constraints • Causal Relations axiomatization • Unique action precondition axiom for each function symbol with range ACTION • Set of state update axioms (possibly with ramifications) • Foundational Axioms: Fstate and Framify • Domain Specific Axioms
Domain Sorts • RULE • Ex: gcd(0) <=> true | true. • CONSTRAINT • p(1,2,7) • UDC < CONSTRAINT • BIC < CONSTRAINT • EQUATION < BIC
Domain Functions • S0 : SIT • The initial situation / the initial constraint store
Domain Predicates (1/3) InQuery : CONSTRAINT The constraint is in the initial goal (query) Matching : Seq(UDC) x Seq(UDC) x Set(EQUATION) x STATE Matching(h, m, e, s) The sequence of constraints m is in s and matches with h generating the matching equations in e
Domain Predicates (2/3) RenVars : RULE x RULE x STATE RenVars(r, rc, s) Rc is a copy of the rule r with all variables renamed (using names not already being used in s) Ex: RenVars(“p(x) q(x)”, “p(x1) q(x1)”, s) If x1 does not appear in s
Domain Predicates (3/3) entails : STATE x Set(EQUATION) x Set(BIC) entails(s, h, g) CT |= s \exists x(h ^ g)
Domain Actions • Simplify: RULE x Seq(UDC) ACTION • Propagate: RULE x Seq(UDC) ACTION • Simpagate: RULE x Seq(UDC)x Seq(UDC) ACTION
CHR + O Operational Semantics in Fluent Calculus(Using Knowledge & Ramifications
Domain Sorts • FATOM < CONSTRAINT • TAXONOMY_FATOM < FATOM < UDC • a:b • SUBCLASS_FATOM < FATOM < UDC • a::b • FIELD_FATOM < FATOM < UDC • a[bc] • OPERATION_FATOM < FATOM < BIC • a[b(c,d,e) f]