Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ontologies Reasoning Components Agents Simulations Belief Update, Belief Revision and Planning with the Fluent Calculus and FLUX Cleyton Rodrigues Marcos.

Similar presentations


Presentation on theme: "Ontologies Reasoning Components Agents Simulations Belief Update, Belief Revision and Planning with the Fluent Calculus and FLUX Cleyton Rodrigues Marcos."— Presentation transcript:

1 Ontologies Reasoning Components Agents Simulations Belief Update, Belief Revision and Planning with the Fluent Calculus and FLUX Cleyton Rodrigues Marcos Aurelio Pablo Santana Jacques Robin

2 Non-Monotonic Reasoning  Monotonic Reasoning  KB |= f, then  g, KB  g |= f  Inference engine only performs ask and tell to the KB, never retract  Non-monotonic reasoning  Allows KB |= f, and then KB  g |  f  Previously derived facts can be retracted upon arrival (for example from sensors) of new, conflicting evidence

3 Sources of Non-monotonicity  Ontological  Non-stationary Environment  KB must reflect environment changes as time goes by  Epistemological  Partially observable Environment  Decision making requires using abduction in addition to deduction  KB must reflect changes of the agent’s beliefs as new evidences become available through sensing

4 Non-Monotonic Reasoning Case Study: The Wumpus World (from:

5 The Frame Problem  Almost everything stays unchanged between states  We want thus to specify just the modifications  The wrong way: At(Agent,x,s)  Adjacent(x,y)  At(Agent,y,Result(Go(x,y),s))  Why?  This axiom says what changes but not what stays the same!

6 The Ramification Problem  Ex:  I go from home to the store, creating a new situation S’. In S’:  I am now at the store  The number of people in the store went up by 1  The agent moves from (x,y) to (z,w)  If he holds something, this thing moves too to (z,w)  The hunter kills the wumpus in (x,y)  The wumpus is not in (x,y) anymore  Do we want to say all that in the action definition?  Actions have:  intended effects that satisfy the agent’s goal and justify their execution  side effects related to preconditions of other actions

7 The Qualification Problem  In the real world it is difficult to define the circumstances under which a given action is guaranteed to work.  think of everything that can go wrong!  e.g. grabbing an object may not work if it is slippery, glued down, a holographic projection, or the gripper fails, or the agent is struck by lightning…  if some conditions are left out the agent is in danger of generating false beliefs

8 Knowledge Representation Language for Non-Monotonic Reasoning  The Situation Calculus  The Event Calculus  Transaction Logic  The Fluent Calculus FAZER UM RESUMO DAS CARACTERÍSTICAS DE CADA LINGUAGEM!!!

9 Ontologies Reasoning Components Agents Simulations Fluent Calculus

10 The Fluent Calculus Layers Simple FC  Ramifications FC Planning Meta-reasoningConcurrency Non-Deterministic Environment Partially Observable Environment Ramifying Environment Concurrent Asynchronous Environment Noisy Sensors Noisy Actuators Belief Revision Communication Communicative Multi-Agent Environment  Actions with Conditional Effects Environments With Infinite Fluent Domains

11 The Simple Fluent Calculus: Key Ideas  Sorted first-order logic language  Fluent  “A fluent represents a single atomic property of the physical world which may change in the course of time, in particular through manipulation by the robot.”  Ex: player has ball, player position, ball position, player speed…  State  “…a so-called state is a snapshot of the environment at a certain moment.”  Action  Pre-condition Axioms  State Update Axioms  Sensing Actions

12 The Simple Fluent Calculus  Sorts  FLUENT  STATE  ACTION  SIT  Functions   :  STATE  State : SIT  STATE  Do : ACTION x SIT  SIT  o : STATE x STATE  STATE  Predicates  Poss : ACTION x STATE

13 The Simple Fluent Calculus: Foundational Axioms

14 The Simple Fluent Calculus: Abbreviations

15 The Simple Fluent Calculus: Pure State Formulas  Ex:  Holds(InRoom(r), z), Connects(d,r,r’)

16 The Simple Fluent Calculus: Action Precondition Axioms  Ex:

17 The Simple Fluent Calculus: State Update Axioms  Ex:

18 The Simple Fluent Calculus: MOF Metamodel Action Fluent State minus(f:Fluent) : State + do(a:Action) : State Situation o / holds poss * * * * **

19 Planning with the Simple Fluent Calculus  Fluent Calculus models how the current state changes given the actions performed by the agents  It can be used to “simulate” the outcomes of a given action sequence  Ex: Do(Open(D12), Do(Go(R1), S0)) = InRoom(R1) o Opened(D12) o...  The entire planning problem can be modeled as the problem of finding a situation in which certain goal conditions are met:  Ex:  s Holds(HasGold, s)

20 The Disjunctive Fluent Calculus  Non-deterministic actions: Alternative outcomes x Vagueness  Simple disjunctive state update axioms for non-deterministic actions  θ n is a first-order formula without terms of any reserved sort  Example  Alternative outcomes: Poss(Shoot, s)  (State(Do(Shoot, s)) = State(s) o DeadWumpus)  (State(Do(Shoot, s)) = State(s) o LiveWumpus)  Vagueness: Poss(Shoot, s)  Holds(Life(Wumpus, x),s)   y (State(Do(Shoot, s)) = State(s) o Life(Wumpus, y)  y < x)  Planning: should consider all possible outcomes! CONSIDERAR COMO VAMOS FAZER COM O METAMODEL

21 The Ramifying Fluent Calculus  Modeling Ramifications

22 The Ramifying Fluent Calculus  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-

23 Abbreviations

24 Foundational Axioms (Reflexive and Transitive Closure of Causes)

25 State Update Axiom with Ramifications  Simple  Disjunctive

26 Causal Relations Axiomatization  Relies on the assumption that the underlying Causes relation is completely specified CONSIDERAR COMO VAMOS FAZER COM O METAMODEL

27 The Concurrent Fluent Calculus  Allows agents to execute more than one action at a time concurrently  Motivation  Parallel actions lead to shorter plans and less execution time  Certain effects may only be achievable by simultaneous actions  Sorted second-order logic language  Extensions to Simple Fluent Calculus  Sorts  ACTION < CONCURRENT  Functions   :  CONCURRENT . : CONCURRENT x CONCURRENT  CONCURRENT  Do : CONCURRENT x SIT  SIT  DirState, DirEffect+, DirEffect-: CONCURRENT x SIT  STATE  Predicates  Poss : CONCURRENT x STATE  Affects : CONCURRENT x CONCURRENT

28 The Concurrent Fluent Calculus: Foundational Axioms

29 The Concurrent Fluent Calculus  Action Preconditions  Recursive state update axiom  Disjunctive recursive state update axiom

30 The Concurrent Fluent Calculus

31

32 The Concurrent Fluent Calculus: MOF Metamodel Action Fluent State minus(f:Fluent) : State + do(a:Action) : State Situation do(c:Concurrent) : Situatiuon + dirState(c:Concurrent) : State + dirEffectsPlus(c:Concurrent) : State) + dirEffectsMinus(c:Concurrent) : State o / holds Concurrent. poss affects * * * * * * * *

33 The Meta Fluent Calculus  Extends the Simple Fluent Calculus in order to allow handling partial knowledge about the environment  Extensions:  Predicates  KState : SIT x STATE  Knows : FluentFormula x SIT  Kwhether : FluentFormula x SIT  Unknown : FluentFormula x SIT  Functions   :  ACTION  ; : ACTION x ACTION  ACTION  If : FLUENT x ACTION x ACTION  ACTION

34 The Meta Fluent Calculus: The Knows Predicate

35 The Meta Fluent Calculus: The Unknown Predicate ?

36 The Meta Fluent Calculus: Knowledge Update Axioms  Define how states satisfying KState(s,z) relate to the states satisfying KState(Do(a,s),z)  Sensing Actions  Reduce the set of possible states  Physical Actions  Reflect what the agent knows about the effects of the respective action

37 The Meta Fluent Calculus: Knowledge Update by Sensing Actions  Knowledge Update Axioms for accurate sensing  Ex:

38 The Meta Fluent Calculus: Knowledge Update by Sensing Actions  Knowledge Update Axioms for sensing  Ex:

39 The Meta Fluent Calculus: Knowledge Update by Physical Actions  Knowledge Update Axioms  Ex:

40 The Meta Fluent Calculus: Conditional Actions  Extending the foundational axioms:  Ex: Ex: Do(Sense(Closed(DA3)) ; If(Closed(DA3), SendId,  ); Enter(R403), S0)

41 The Meta Fluent Calculus: Planning  Simple fluent calculus does not allows planning in platially known states (with unknown fluents)  Ex:  Conditional Actions allow agents to condition their actions on the outcome of sensing: Ex: Do(Sense(Closed(DA3)) ; If(Closed(DA3), SendId,  ); Enter(R403), S0)

42 The Meta Fluent Calculus: MOF metamodel Action Fluent State minus(f:Fluent) : State + do(a:Action) : State Situation o / holds poss KState \ Unknown \ Kwhether \ Knows ; If true false condition * * * * *** * * * * *

43 Flux

44 FLUX Predicates for Belief Update with the Simple Fluent Calculus

45 FLUX Example of Belief Update with the Simple Fluent Calculus

46 FLUX Predicates for Planning and Acting with the Simple Fluent Calculus

47 FLUX Example of Planning and Acting with the Simple Fluent Calculus

48 FLUX Predicates for Belief Update with the Ramifying Fluent Calculus

49 FLUX Example of Belief Update with the Ramifying Fluent Calculus

50 FLUX Predicates for Belief Update the Disjunctive Fluent Calculus

51 FLUX Example for Belief Update with the Disjunctive Fluent Calculus

52 FLUX Predicates for Belief Update with the Implicative Fluent Calculus

53 FLUX Example of Belief Update with the Implicative Fluent Calculus

54 FLUX Predicates for Planning and Acting with the Implicative Fluent Calculus

55 FLUX Example of Planning and Acting with the Implicative Fluent Calculus

56 FLUX Predicates for Belief Update with the Concurrent Fluent Calculus

57 FLUX Example of Belief Update with the Concurrent Fluent Calculus

58 FLUX Predicates for Planning and Acting with the Concurrent Fluent Calculus

59 FLUX Example of Planning and Acting with the Concurrent Fluent Calculus

60 FLUX Predicates for Belief Update with the Infinite Domain Fluent Calculus

61 FLUX Example of Belief Update with the Infinite Domain Fluent Calculus

62 FLUX Predicates for Planning and Acting with the Infinite Domain Fluent Calculus

63 FLUX Example of Planning and Acting with the Infinite Domain Fluent Calculus

64 FLUX Predicates for Belief Update with the Meta Fluent Calculus

65 FLUX Example of Belief Update with the Meta Fluent Calculus

66 FLUX Predicates for Belief Revision with the Meta Fluent Calculus

67 FLUX Example of Belief Revision with the Meta Fluent Calculus

68 FLUX Predicates for Planning and Acting with the Meta Fluent Calculus

69 FLUX Example of Planning and Acting with the Meta Fluent Calculus

70 FLUX Predicates for Belief Update with the Communicative Fluent Calculus

71 FLUX Example of Belief Update with the Communicative Fluent Calculus

72 FLUX Predicates for Belief Revision with the Meta Fluent Calculus

73 FLUX Example of Belief Revision with the Meta Fluent Calculus

74 FLUX Predicates for Planning and Acting with the Communicative Fluent Calculus

75 FLUX Example of Planning and Acting with the Communicative Fluent Calculus

76 Conclusion

77 References  sodas.cs.memphis.edu/ai/data/situationCalc.ppt 


Download ppt "Ontologies Reasoning Components Agents Simulations Belief Update, Belief Revision and Planning with the Fluent Calculus and FLUX Cleyton Rodrigues Marcos."

Similar presentations


Ads by Google