Transition Systems and Propositional Logic
Source slide: B1 Transition Systems and Propositional Logic
The previous chapter described planning as search for an action sequence. This chapter makes the search space explicit. A transition system is the mathematical object behind the picture: it tells us which states exist, which labeled transitions connect them, how much those transitions cost, where execution starts, and which states count as goals.
The chapter then explains why planners rarely receive transition systems in this explicit form. Even simple domains can have too many states to list. Propositional logic gives us a compact language for describing states and sets of states without drawing the whole graph.
The Formal Object
Section titled “The Formal Object”A transition system is a labeled directed graph with a little extra structure.
Definition: Transition system
A transition system is a tuple
where is a finite set of states, is a finite set of transition labels, is a label-cost function, is the transition relation, is the initial state, and is the set of goal states.
If , we write
Read this as: from state , transition label may take us to state . In planning, the label will usually correspond to an action or operator.
How to Read the Components
Section titled “How to Read the Components”Each component answers one practical question.
- says what complete world states are possible in the model.
- says what labels can appear on transitions.
- says how expensive each label is.
- says which labeled moves are actually allowed.
- says where execution starts.
- says which states are acceptable endpoints.
A solution is not a state by itself. It is a path from the initial state to some goal state. If the path uses labels , its cost is
When every label has cost , this is just the number of steps. With general non-negative costs, a shorter path need not be cheaper.
Determinism
Section titled “Determinism”Classical planning assumes deterministic change. In transition-system language, that means a state and a label determine at most one successor.
Definition: Deterministic transition system
A transition system is deterministic if, for all states and labels , there is at most one state such that .
Determinism does not mean every action is always possible. It means that if a transition with label exists from , there is no second different successor with the same label. An unavailable action is represented by the absence of such a transition.
Paths, Reachability, and Solutions
Section titled “Paths, Reachability, and Solutions”Most planning terminology in transition systems comes directly from graph search.
A state is a successor of if some label leads from to . Conversely, is a predecessor of . A state is reachable from if there is a finite sequence of transitions from to that state. When no starting state is mentioned, reachability is usually from .
A trace writes both states and labels:
This trace is a solution from if . A transition system is solvable if at least one such goal-reaching trace exists.
Blocks World and State Explosion
Section titled “Blocks World and State Explosion”Blocks world is a useful running example because its rules are simple but its state space grows very quickly. Blocks can be stacked on the table or on top of one another. The exact table positions do not matter, and each block can have at most one block above it and at most one block below it.
The number of possible states grows as follows:
| Blocks | States |
|---|---|
| 1 | 1 |
| 3 | 13 |
| 5 | 501 |
| 8 | 394,353 |
| 10 | 58,941,091 |
| 15 | 65,573,803,186,921 |
These numbers explain why explicit transition systems are mainly a semantic model. They tell us what a planning problem means, but they are usually not a practical input format.
There is also a useful distinction between finding any plan and finding a best plan. In blocks world, a simple strategy can find some solution by clearing blocks to the table and rebuilding the target tower. Finding a shortest solution is much harder. This distinction will later reappear as satisficing versus optimal planning.
Why We Need Compact Descriptions
Section titled “Why We Need Compact Descriptions”If a planner had to receive all of and all of explicitly, even small domains would be impossible to write down. Instead, we describe states using variables and describe transitions using operators. The explicit transition system is then induced by the compact description.
Propositional logic is the first compact language we need. With Boolean variables, there are possible truth assignments. A formula over those variables can describe a single state, many states, all states, or no states.
For example, if means “the package is in the truck” and means “the truck is at the right location”, then the formula
describes all states in which both facts are true, regardless of other variables in the model.
Propositional Syntax
Section titled “Propositional Syntax”Let be a set of atomic propositions. Formulas over are built from the following ingredients:
- and , meaning truth and falsity;
- atoms ;
- negation ;
- disjunction ;
- conjunction .
Implication and equivalence are common abbreviations:
and
The syntax tells us which strings are well-formed formulas. It does not yet tell us whether a formula is true.
Propositional Semantics
Section titled “Propositional Semantics”Truth is evaluated relative to an interpretation. An interpretation assigns each atom a truth value. Satisfaction, written , is defined recursively:
For planning, interpretations will become states. A formula then represents the set of states that satisfy it.
Useful Logical Vocabulary
Section titled “Useful Logical Vocabulary”A formula is satisfiable if at least one interpretation satisfies it. It is unsatisfiable if none do. It is valid if every interpretation satisfies it.
Logical consequence is written . It means every model of is also a model of . Logical equivalence, written , means the two formulas have exactly the same models.
A literal is an atom or a negated atom . A clause is a disjunction of literals. A monomial is a conjunction of literals. Normal forms such as negation normal form, conjunctive normal form, and disjunctive normal form reorganize formulas into restricted shapes that are useful for algorithms.
Common Mistake
Section titled “Common Mistake”Do not confuse a transition system with its compact encoding. The transition system is the full state-space graph. A planning task is a compact description that induces such a graph. Algorithms often reason over the compact description while using transition-system concepts to define correctness.
Another common mistake is to treat determinism as totality. A deterministic system can still have no outgoing transition for a particular state-label pair.
Chapter Summary
Section titled “Chapter Summary”A transition system is the explicit mathematical model of state-space search: states, labels, costs, transitions, an initial state, and goal states. A solution is a path from the initial state to a goal state, and its cost is the sum of the labels used. Classical planning focuses on deterministic transition systems, but explicit systems are usually too large to list. Propositional logic provides the compact language for describing states and sets of states, preparing us for planning tasks.
Study Check
Section titled “Study Check”- What does each component of represent?
- Why does deterministic not mean every label is applicable everywhere?
- What is the difference between a trace and a label path?
- How many truth assignments are possible over propositional variables?
- Why are transition systems useful even when planners do not receive them explicitly?