A STRIPS instance is composed of: • An initial state; • The specification of the goal states – situations that the planner is trying to reach; • A set of actions. For each action, the following are included: • preconditions (what must be established before the action is performed); • postconditions (what is established after the action is performed). Mathematically, a STRIPS instance is a quadruple \langle P,O,I,G \rangle, in which each component has the following meaning: • P is a set of
conditions (i.e.,
propositional variables); • O is a set of
operators (i.e., actions); each operator is itself a quadruple \langle \alpha, \beta, \gamma, \delta \rangle, each element being a set of conditions. These four sets specify, in order, which conditions must be true for the action to be executable, which ones must be false, which ones are made true by the action and which ones are made false; • I is the initial state, given as the set of conditions that are initially true (all others are assumed false); • G is the specification of the goal state; this is given as a pair \langle N,M \rangle, which specify which conditions are true and false, respectively, in order for a state to be considered a goal state. A plan for such a planning instance is a sequence of operators that can be executed from the initial state and that leads to a goal state. Formally, a state is a set of conditions: a state is represented by the set of conditions that are true in it. Transitions between states are modeled by a transition function, which is a function mapping states into new states that result from the execution of actions. Since states are represented by sets of conditions, the transition function relative to the STRIPS instance \langle P,O,I,G \rangle is a function : \operatorname{succ}: 2^P \times O \rightarrow 2^P, where 2^P is the set of all subsets of P, and is therefore the set of all possible states. The transition function \operatorname{succ} for a state C \subseteq P, can be defined as follows, using the simplifying assumption that actions can always be executed but have no effect if their preconditions are not met: The function \operatorname{succ} can be extended to sequences of actions by the following recursive equations: :\operatorname{succ}(C,[\ ]) = C :\operatorname{succ}(C,[a_1,a_2,\ldots,a_n])=\operatorname{succ}(\operatorname{succ}(C,a_1),[a_2,\ldots,a_n]) A plan for a STRIPS instance is a sequence of actions such that the state that results from executing the actions in order from the initial state satisfies the goal conditions. Formally, [a_1,a_2,\ldots,a_n] is a plan for G = \langle N,M \rangle if F=\operatorname{succ}(I,[a_1,a_2,\ldots,a_n]) satisfies the following two conditions: :N \subseteq F :M \cap F = \varnothing ==Extensions==