Classical planning: find a route from a known state to a goal
经典规划
Build a finite action model, find a shortest sequential plan with BFS, replay its certificate, and distinguish exhaustion from an unfinished budgeted search.
classical-planningMove the box, then come back
A hypothetical service robot and a box start in room A. A closed door separates A from room B. The robot must leave the box in B and finish back in A. It can open the door, move through it, pick up the box where it stands, or put the box down.
The task is not to choose a good next action in isolation. Opening the door does not deliver the box; picking it up does not say where to put it. Classical planning asks for an action sequence whose predicted effects connect the known initial situation to a goal. In this model, one answer is: open, pick up in A, move to B, put down in B, return to A.
The answer relies on explicit assumptions. States are finite and discrete, the initial state is fully known, and every applicable action has one known outcome. Only the chosen actions change the world; no person closes the door during planning or execution. Actions occur sequentially as state transitions, without durations. These assumptions describe the planning model, not a guarantee that a real robot has perfect sensors or never drops a box. CMU classical-planning lecture, slides 5–8
One detail makes this task worth examining: the robot already starts in A, which is also part of its goal. A planner that insists on preserving every initially satisfied goal would refuse the necessary trip to B. Here at_A must hold at the end; it is allowed to become false along the way.
States define what an action can change
Let F be a finite set of Boolean atoms. A state s lists the atoms that are true; every other declared atom is false. It therefore encodes a complete assignment, not a list of whatever facts the robot happens to know. With n atoms, there are at most 2 to the power n encoded states. Physical constraints may make many of them unreachable from the specified start.
The input problem consists of the atom vocabulary, a finite list of instantiated actions, an initial state and positive/negative achievement goals:
An action a has required-true atoms P⁺, required-false atoms P⁻, additions E⁺ and deletions E⁻. It is applicable exactly when:
For an applicable action, its single successor is:
The successor is undefined for an inapplicable action. Atoms not mentioned in either effect set retain their values. This persistence assumption keeps the representation short: moving the robot need not restate the door or box status. The code rejects intersecting addition/deletion sets instead of secretly giving either list priority. It also rejects contradictory true/false requirements as an input convention. Deleting a required-true atom, adding a required-false atom, deleting an already false atom and adding an already true atom are all permitted.
An action as a partial state-to-state function and the distinction between preconditions and effects are described in the textbook. Poole and Mackworth, section 6.1 Our interface includes negative preconditions and negative goals as an explicit teaching-language choice; it does not attribute every such feature to the original STRIPS language. The separate STRIPS chapter develops representation and its history.
The final state satisfies the goal when all required-true goals are present and all required-false goals are absent:
An empty goal is satisfied by every state. A partial goal can also describe many complete states. In the example, at_A and box_B are required at the end; the goal does not demand that the door be closed again. An achievement goal is different from a maintenance requirement that must hold throughout the plan. Poole and Mackworth, section 6.1.4
Existence, length and evidence
A valid plan is a sequence whose actions are applicable in order and whose resulting state satisfies the goal. The empty sequence is valid when the initial state already satisfies it. A plan-existence question asks whether any such sequence exists. This implementation also minimizes the number of actions, assigning every action cost 1:
The minimum is defined only when a solution exists. Five actions need not mean five seconds or minimum energy. A different cost model requires a different optimality test.
The search graph has states as nodes and applicable actions as labeled edges. It is generated from the action descriptions as needed. Forward planning, section 6.2 Reaching the same complete state twice gives the same future options under this static, history-independent model. The planner may therefore keep the first, shortest route to that state and discard later arrivals.
Return a shortest plan with its state trace
The complete Python 3.10+ program uses a FIFO frontier for breadth-first search. It checks the initial goal before consuming search budget, then checks each newly discovered successor immediately. All states from earlier depth levels are expanded first. Thus a newly discovered goal has minimum action length. Actions are examined in input order; that order chooses between equal-length plans, not alphabetical order of action names.
Every discovered state stores one parent and the action that reached it. Following these links reconstructs both the plan and its complete state trace. No-op actions and cycles may be legal, but their already discovered states are not enqueued again.
Inputs use lists or tuples. Atom declarations and action IDs must be unique nonempty strings. Each action row is (id, required_true, required_false, add, delete); every atom used must be declared. Repeated entries inside a requirement, effect, initial state or goal are collapsed. Invalid actions are rejected even when the initial state already satisfies the goal. Validation checks this language contract, not the physical consistency of an arbitrary initial state.
max_expansions limits how many state expansions may start. One begins when a state is removed from the frontier. Finding a goal can stop that expansion before all actions are examined, so action_checks can be smaller than the number of actions times expanded. The budget is None or a nonnegative integer; booleans and floats are rejected.
from collections import deque
def sequence(value):
if type(value) not in (list, tuple):
raise ValueError('expected a list or tuple')
return tuple(value)
def name(value):
if type(value) is not str or not value:
raise ValueError('names must be nonempty strings')
return value
def problem(atoms, actions, initial, goal_true, goal_false):
names = tuple(name(a) for a in sequence(atoms))
if len(set(names)) != len(names):
raise ValueError('duplicate atom declaration')
universe = frozenset(names)
def subset(values):
result = frozenset(name(a) for a in sequence(values))
if not result <= universe:
raise ValueError('undeclared atom')
return result
initial, positive, negative = map(subset, (initial, goal_true, goal_false))
if positive & negative:
raise ValueError('contradictory goal requirements')
normalized, ids = [], set()
for row in sequence(actions):
row = sequence(row)
if len(row) != 5:
raise ValueError('an action has five fields')
aid = name(row[0])
if aid in ids:
raise ValueError('duplicate action ID')
ids.add(aid)
pre, absent, add, delete = map(subset, row[1:])
if pre & absent or add & delete:
raise ValueError('contradictory preconditions or effects')
normalized.append((aid, pre, absent, add, delete))
return names, tuple(normalized), initial, positive, negative
def plan(atoms, actions, initial, goal_true=(), goal_false=(), max_expansions=None):
names, actions, start, positive, negative = problem(atoms, actions, initial, goal_true, goal_false)
if max_expansions is not None and (type(max_expansions) is not int or max_expansions < 0):
raise ValueError('max_expansions must be None or a nonnegative integer')
parents = {start: None}
frontier = deque([start])
expanded = action_checks = 0
def goal(state):
return positive <= state and negative.isdisjoint(state)
def finish(status, last=None):
moves = states = None
if status == 'found':
moves, states = [], []
while True:
states.append(tuple(a for a in names if a in last))
predecessor = parents[last]
if predecessor is None:
break
last, aid = predecessor
moves.append(aid)
moves, states = tuple(reversed(moves)), tuple(reversed(states))
return dict(status=status, plan=moves, states=states, expanded=expanded,
action_checks=action_checks, discovered=len(parents))
if goal(start):
return finish('found', start)
while frontier:
if max_expansions is not None and expanded >= max_expansions:
return finish('unknown')
state = frontier.popleft()
expanded += 1
for aid, pre, absent, add, delete in actions:
action_checks += 1
if not pre <= state or not absent.isdisjoint(state):
continue
successor = (state - delete) | add
if successor in parents:
continue
parents[successor] = (state, aid)
if goal(successor):
return finish('found', successor)
frontier.append(successor)
return finish('no-plan')
def replay(atoms, actions, initial, goal_true, goal_false, moves):
names, actions, state, positive, negative = problem(atoms, actions, initial, goal_true, goal_false)
actions = {row[0]: row for row in actions}
moves = tuple(name(aid) for aid in sequence(moves))
if any(aid not in actions for aid in moves):
raise ValueError('undeclared action in plan')
states = [tuple(a for a in names if a in state)]
for step, aid in enumerate(moves):
_, pre, absent, add, delete = actions[aid]
if not pre <= state or not absent.isdisjoint(state):
return dict(valid=False, goal=False, failed_at=step, states=tuple(states))
state = (state - delete) | add
states.append(tuple(a for a in names if a in state))
return dict(valid=True, goal=positive <= state and negative.isdisjoint(state),
failed_at=None, states=tuple(states))
ATOMS = ('at_A', 'at_B', 'box_A', 'box_B', 'holding', 'hand_free', 'door_open', 'door_closed')
ACTIONS = (
('open', ('at_A', 'door_closed'), (), ('door_open',), ('door_closed',)),
('move_A_B', ('at_A', 'door_open'), (), ('at_B',), ('at_A',)),
('move_B_A', ('at_B', 'door_open'), (), ('at_A',), ('at_B',)),
('pick_A', ('at_A', 'box_A', 'hand_free'), ('holding',), ('holding',), ('box_A', 'hand_free')),
('pick_B', ('at_B', 'box_B', 'hand_free'), ('holding',), ('holding',), ('box_B', 'hand_free')),
('drop_A', ('at_A', 'holding'), (), ('box_A', 'hand_free'), ('holding',)),
('drop_B', ('at_B', 'holding'), (), ('box_B', 'hand_free'), ('holding',)),
)
INITIAL = ('at_A', 'box_A', 'hand_free', 'door_closed')
GOAL = ('at_A', 'box_B')
if __name__ == '__main__':
answer = plan(ATOMS, ACTIONS, INITIAL, GOAL)
print('plan:', answer['plan'])
print('work:', tuple(answer[k] for k in ('expanded', 'action_checks', 'discovered')))
print('states:', answer['states'])
print('replay:', replay(ATOMS, ACTIONS, INITIAL, GOAL, (), answer['plan']))
print('cap 0:', plan(ATOMS, ACTIONS, INITIAL, GOAL, max_expansions=0)['status'])
print('empty goal:', plan(ATOMS, ACTIONS, INITIAL, max_expansions=0)['plan'])
print('without open:', plan(ATOMS, ACTIONS[1:], INITIAL, GOAL)['status'])
The main program prints:
plan: ('open', 'pick_A', 'move_A_B', 'drop_B', 'move_B_A')
work: (7, 45, 8)
states: (('at_A', 'box_A', 'hand_free', 'door_closed'), ('at_A', 'box_A', 'hand_free', 'door_open'), ('at_A', 'holding', 'door_open'), ('at_B', 'holding', 'door_open'), ('at_B', 'box_B', 'hand_free', 'door_open'), ('at_A', 'box_B', 'hand_free', 'door_open'))
replay: {'valid': True, 'goal': True, 'failed_at': None, 'states': (('at_A', 'box_A', 'hand_free', 'door_closed'), ('at_A', 'box_A', 'hand_free', 'door_open'), ('at_A', 'holding', 'door_open'), ('at_B', 'holding', 'door_open'), ('at_B', 'box_B', 'hand_free', 'door_open'), ('at_A', 'box_B', 'hand_free', 'door_open'))}
cap 0: unknown
empty goal: ()
without open: no-plan
The model has eight declared atoms and seven actions. The independent state-graph check finds eight states reachable from this initial state. The returned plan starts seven expansions, checks 45 actions and discovers eight states, counting the start and goal. The last expansion finds the goal on its third action: six full seven-action scans plus three checks give 45. The default unbounded run and a budget of 7 return the same plan; budgets 0 through 6 return unknown.
Five steps are also necessary directly from the model: some action must open the door, another pick up the box, another carry it from A to B, another put it in B, and another return the robot to A. None of the available actions performs two of these jobs at once. The displayed sequence attains that lower bound. Opening and picking up in A can exchange order, so the shortest plan is not unique.
replay checks a proposed sequence without running search. It reports whether every step is applicable, whether the final state meets the goal, and the first inapplicable step using a zero-based index. Its returned trace includes the initial state and all successfully completed steps. An unknown action name is a malformed plan and raises ValueError. An executable sequence that misses the goal returns valid=True, goal=False; executability alone is not success.
What the three search outcomes mean
found includes a plan and a state trace. A found empty plan is (), with a trace containing just the start. no-plan is returned only when the frontier becomes empty without finding a goal. unknown means the frontier still contains unexplored states but the expansion budget prevents continuing. Both unsuccessful statuses return plan=None and states=None.
Removing the open action leaves only two reachable states: the initial arrangement and the robot holding the box in A. The program exhausts them in two expansions and 12 action checks. Budget 1 returns unknown; budget 2 can return no-plan because the frontier has actually emptied. A consumed budget by itself is not evidence of impossibility. Conversely, an initial goal succeeds even at budget 0.
For the unbounded run, finite states, a finite action list and duplicate-state pruning ensure termination. A reachable goal is eventually discovered; otherwise every reachable state’s outgoing actions have been checked. Any shortest plan is simple: removing a cycle preserves the remaining future from the repeated state. Its length is at most the number of reachable states minus 1, hence at most 2 to the power n minus 1.
Let D be 1 plus the raw input row and atom-occurrence count, including duplicate entries, m the action count, n the declared atom count, and V the number of discovered states. Counting atomic-name comparisons and expected hash operations in the usual unit-cost model gives the following conservative full-search bounds:
The n factors include state copying, hashing, membership checks and ordering the returned state trace. Space includes the normalized model, frontier, parent map, and returned certificate. Long strings and large counter bit lengths add costs outside this model. Even a compact action description can induce exponentially many states; storing the frontier and parent map is a practical limit of this baseline.
A valid plan inherits the assumptions of its model
In the example, exactly one robot location holds, the box is either in A, in B or carried, hand_free is the opposite of holding, and exactly one door-status atom holds. The initial state satisfies these invariants; inspecting each applicable action shows that it preserves them. The matrix tests also verify them for every reachable state. The generic validator does not infer these conditions: an input that asserts both at_A and at_B is still a syntactically valid Boolean state. A mistaken action model can therefore produce a perfectly replayable but physically meaningless plan.
State information must include everything that affects future applicability or the goal. If a move consumes fuel, or a repair may be used only once, that information needs representation before state deduplication is sound. The present code records neither hidden resources nor history-dependent permissions.
The goal is checked at the end. It expresses neither “never leave room A” nor “keep the box safe at every step.” Such requirements need explicit state constraints or a richer goal language. Similarly, a sequence does not describe simultaneous actions, deadlines, durations, collisions between concurrent actions, uncertain outcomes or observations that reveal hidden state. Planning under uncertainty and temporal planning are separate topics; temporal planning is still being written.
Search speed does not validate physical execution. A robot must still detect deviations and decide how to respond; blindly following the rest of the sequence after a failed pickup no longer satisfies the premises used in its certificate. This chapter computes a plan in an authored model, not an executed robot trajectory.
For unequal nonnegative action costs, uniform-cost search targets accumulated cost; with a suitable admissible heuristic, A* can reduce exploration while preserving its stated optimality conditions. A planning heuristic needs justification from the action model. The plain BFS here makes no claim of matching a production planner’s performance.
Inspect the route as well as the destination
1. Why must the robot leave an already satisfied goal?
The goal includes at_A, which is true initially. Why does the plan temporarily make it false? Would the same plan meet a requirement to stay in A throughout?
Answer: Moving the box into B requires the robot to visit B. at_A is an achievement goal checked in the final state, so returning at the end suffices. A maintenance requirement to stay in A would forbid this route. With these actions, that requirement would make delivery to B impossible; the goal language and task would have changed.
2. Interpret a budget without inventing a proof
Remove open. Compare expansion budgets 1 and 2. What happens at budget 0 if the goal is empty?
Answer: Without opening, only the initial state and the holding-in-A state are reachable. One expansion leaves the other state waiting, so status is unknown. Two expansions finish checking both and empty the frontier, so status is no-plan. An empty goal is already true initially and returns found with plan () and zero expansions even at budget 0.
3. Separate state changes from inapplicability
From {p,r}, an action requires p true and q false, adds q, and deletes p. Give the successor. Can the action run again immediately? What if q appeared in both its addition and deletion lists?
Answer: The successor is {q,r}: r persists because neither effect mentions it. The action cannot run again because p is false and q true. replay marks that second step inapplicable. If q appeared in both effect lists, the input validator would reject the action; this interface supplies no hidden effect priority.
4. Compare optimality with physical validity
Why is the five-action plan shortest? If the initial state instead asserts both robot locations, will generic input validation detect the physical error?
Answer: Opening, picking up, transporting to B, dropping in B and returning to A are each necessary and require separate actions; the returned plan performs exactly those five. This minimizes action count, not elapsed time or fuel. The generic validator accepts both declared location atoms. The one-location invariant belongs to the domain model and must be checked separately.
Compare representations and search questions separately
The CMU course distinguishes the planning problem from its execution and presents known initial states and deterministic action models. Poole and Mackworth describe actions as partial functions, distinguish kinds of goals, and construct the forward state-space graph. Their examples and diagrams are not reproduced here. This two-room fixture, interface, implementation and tests are original.
The representation permits regularities to be expressed without listing every transition. Search then answers a separate question about reachable goals. STRIPS, planning graphs and partial-order planning are follow-on chapters with different emphases. None of those labels excuses an unspecified goal, action cost or failure policy.
The independent tests enumerate complete Boolean states and build an explicit transition table using per-atom truth updates. An all-pairs matrix calculation finds shortest action-index words, giving both distances and tie choices without BFS. The matrix order also checks search work and budget boundaries; a separate step-by-step truth assignment checks returned plans. Tests cover all one-atom action collections, every single-action two-atom pattern, random multi-action models, cycles, no-ops, negative requirements, duplicate fields, invalid declarations and unchanged inputs. These are AI technical checks of a finite teaching planner, not a human review or a hardware execution test.
Make a prediction, then check
After removing the opening action, two expansions exhaust the two reachable states. What should an expansion budget of 1 report?
Learning objectives
- Specify applicability, add/delete effects and final-state goals for a finite deterministic model with fully known states, distinguishing achievement from maintenance requirements.
- Return a plan with the fewest actions and a full replay certificate using BFS with state deduplication; explain equivalent futures, cycle removal and ties resolved by input order.
- Distinguish empty plans, exhaustive no-plan results and unknown results caused by a budget; check negative requirements, conflicting effects, invalid inputs and exponential state-space costs.
Prerequisites & connections
Explore related knowledge →References
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 6.1 Representing States, Actions, and Goals
David L. Poole; Alan K. Mackworth · 2023 - Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 6.2 Forward Planning
David L. Poole; Alan K. Mackworth · 2023 - Classical Planning — CMU 15-780 Graduate AI, Spring 2013
Manuela M. Veloso · 2013
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-05 · Codex technical check: primary-source locations, original runnable models, independent finite-state oracles, bilingual review and second-agent cross-checks; not independent human peer review.
- Original two-room box task with complete bilingual articles: six anchors, six display equations, four answered exercises, identical full Python and seven stdout lines. Reread the deterministic, finite, fully known and static sequential scope without presenting it as verified robot capability. Negative preconditions and goals are explicitly a teaching-language choice, not all attributed to original STRIPS syntax.
- All nine tests ran successfully on Python 3.12.4; the code requires the Python 3.10+ standard library. The independent reference enumerates complete Boolean states, updates transitions one truth bit at a time, and minimizes (path length, action-index word) through all-pairs Floyd matrices without BFS. The matrix-derived shortlex state order checks expansion, action and discovery counts as well as budgets; separate bitwise replay verifies every returned certificate.
- Recorded 22,367 complete matrix-result comparisons: 15,580 found, 3,733 no-plan and 3,054 unknown, totaling 7,272 expansions and 14,448 action checks. These include empty and budget-limited runs, not distinct domains. Coverage includes all 512 one-atom action collections × 2 initial states × 3 goals × 4 budgets = 12,288 queries; no actions or one of 81 two-atom single actions × 4 initial states × 9 goals × 3 budgets = 8,856 queries; and 240 random models with 0–4 atoms and 0–8 actions × 4 budgets = 960 queries. Another 240 action-order reversals and dedicated cases are included in the total.
- The main shortest plan is open, pick_A, move_A_B, drop_B, move_B_A: five actions, seven started expansions, 45 action checks and eight discovered states. Early stopping inside the last expansion is explicit. The full 256-state matrix finds only eight states reachable from this initial state. All eight satisfy invariants for robot and box location, holding versus free hand, and door status. Five distinct necessary actions give a separate lower bound.
- The main example is unknown at caps 0–6 and found at caps 7 and 8. Without open, two expansions and 12 checks exhaust the graph: cap 1 gives unknown, while cap 2 gives no-plan. Empty or already satisfied goals produce found with an empty plan at zero budget. Empty action sets, no-ops, self-loops, duplicate transitions and cycles do not repeatedly enqueue states. Input action order selects equal-length routes. Duplicate fields preserve the full result, and inputs remain unchanged.
- Checked pre-state conditions, persistence of unmentioned facts, rejection of overlapping effects, legal deletion of positive preconditions and addition of negative preconditions, unknown-action errors, and inapplicable declared actions with a failure index and successful prefix. Passed 21 invalid plan inputs, four invalid replay sequences and one satisfied-goal case with an invalid unused action. Generic validation accepts a physically inconsistent two-location state; the prose requires separate domain-invariant checking.
- General author self-review: FIFO layers and first discovery give unit-cost shortest paths; identical futures of complete states justify deduplication; finite states and actions with unbounded exhaustion give completeness; removing cycles bounds shortest length by reachable states − 1 ≤ 2^n − 1. Time D + 2^n(m+1)(n+1) and space D + V(n+1) include empty-input constants, raw duplicates, set copying and hashing, the parent map and returned state trace. Expected hashing and string/counter bit costs are stated separately.
- Individual strict MDX, remark-math, repository display-math plugins, strict KaTeX and actual React HTML pass in both languages: six displays, six headings and four strong answers. All six MathML TeX annotations match the equations byte for byte, without math errors or emphasis remnants outside code. Catalogue IDs and direct article targets exist. The targeted Humanizer phrase scan has no hits and did not replace reading the prose. Files remain under /tmp with review written and AI author self-checks; no whole-site build, browser acceptance, human expert review or hardware execution is claimed.
- An independent AI reviewer identified missing spaces around words, numbers and punctuation in the English metadata. Rewrote the English source notes, source locators, learning objectives, quiz wording and check descriptions while preserving facts, counts, code, tests and both articles. This is an editorial revision, not human review.
- Read both complete articles, program, nine author tests and metadata without edits. Finite instantiated actions, deterministic outcomes, complete initial state, no external changes and unit costs agree. Checked pre-state applicability, add/delete persistence, negative conditions/goals, rejection of overlapping effects and duplicate-field normalization. The extended interface is not attributed wholesale to original STRIPS. No algorithm or final mathematical defect found.
- The third semantic reference directly depth-first enumerates all legal simple action words, forbidding repeated states only on the current path. It never prunes by a global visited set and uses neither BFS, Floyd nor the author transition-matrix shortest-path reference. For each state it minimizes length then action-index lexicographic order over all simple paths. Future behavior depends only on the complete state, so cycle removal preserves suffixes and simple-path enumeration suffices. The run explicitly retained 1,607 nonbest repeated arrivals.
- Actually checked 27,771 models and 311,338 complete returns; enumerated 44,286 simple-path nodes and 95,267 path action trials, with 42,679 reachable-state occurrences. Includes every start/goal/meaningful budget for all 512 one-atom action collections; all 6,561 ordered two-atom two-action patterns times four starts and nine goals, with every budget for each eleventh pattern; seed 934812 adds 400 models with 0–3 atoms and 0–5 actions, the first hundred reversed, plus the main, no-opening and reversed-main fixtures. All 179,529 found, 114,533 no-plan and 17,276 unknown results agree.
- Each first-discovery event is derived from the final action and parent rank of its independently optimal action word. Event cutoffs directly determine started expansions, checked-action prefixes and discovery counts, without simulating a queue or reusing parents. Entire return dictionaries agree, including input-order ties, early stopping inside the last expansion, and no-plan at exact budget exhaustion. All 179,529 successful certificates and 41,719 action steps replay correctly. An additional 15,066 arbitrary replay words check first inapplicability, successful prefixes and final goals, distinguishing a valid sequence from a solution.
- Reran all nine author tests successfully; three additional malformed-tail inputs raise ValueError before semantic shortcuts: a satisfied goal still validates unused actions, and an unknown later action ID is rejected even after an inapplicable first step. Independent main enumeration finds exactly eight reachable states, all satisfying robot-location exclusivity, exactly one box location/carried state, free-hand versus holding complement, and door-state exclusivity. Checked the five-step shortest plan, 7 started expansions/45 checks/8 discoveries, and 2 expansions/12 checks without opening.
- Separately checked general soundness, completeness and costs: FIFO first arrival yields minimum unit-action length, and equivalent complete-state futures justify deduplication. Finite vocabulary/actions give unbounded termination, with shortest simple plan length at most reachable states minus one, hence 2^n-1. O(D+2^n(m+1)(n+1)) time and O(D+V(n+1)) space account for empty-input constants, raw duplicates, state copying/hashing, parent/frontier structures and complete atom-ordered output traces. These are neither bit-complexity nor non-unit-cost optimality claims.
- Both locales and all four answered exercises correspond. Achievement goals may temporarily fail, maintenance differs, syntactic validation does not establish physical invariants, and a model certificate is not robot execution. Strict MDX/KaTeX and actual React HTML pass with six displays, six stable headings and four strong answers each. All six rendered math annotations and complete Python are byte-identical, including the full cost equation, with no math errors, emphasis remnants outside code or display trailing spaces. Direct internal article links exist. Suggested normal English word boundaries throughout metadata; the author corrected and refroze it without changing article prose or code.
- Promoted the full prose, equations, code and exercises. Tests read formal MDX only; removed temporary fallbacks/draft skips and updated review assertion to checked. Algorithm and independent references are unchanged; final record binds both locale hashes.
- Publication navigation check: linked completed chapters directly and removed their obsolete planned labels. Unfinished topics still link to the catalogue with their status stated. Reversible replacements are recorded; other technical content is unchanged and both hashes are rebound.
- Publication navigation check: completed topics link to formal chapters with obsolete planned labels removed; temporal planning remains a catalogue topic in progress. Reversible replacements are recorded. Other prose, equations, programs, exercises and previous evidence are preserved, with final bilingual hashes rebound.
Source locations checked:
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 6.1 Representing States, Actions, and Goals · Actually opened canonical university HTML §6.1. Read web lines 17–18 on actions as partial functions, preconditions and effects; line 73 on sequential actions and controller assumptions; lines 74–112 on explicit graphs versus compact features; lines 118–143 on precondition/effect assignments and persistence of unchanged features; and lines 213–233 on known deterministic initial states and achievement, maintenance, transient and resource goals. Portions of example MathML are absent from the extracted prose, so complete mathematical inspection of source examples is not claimed. The article explicitly selects finite Boolean primitives, negative preconditions and goals, and disjoint effects. It neither attributes all those choices to original STRIPS nor implements the book’s derived-feature machinery. The 2023 copyright and HTML generation on 2025-06-28 are distinguished.
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 6.2 Forward Planning · Actually read the complete 83-line returned prose for §6.2: lines 17–41 on deterministic sequences and state-space graphs; line 51 on dynamic generation; lines 52–64 on search strategies and heuristics; and lines 66–76 on complete states versus paths and the need for state equality. Some example formulas were absent from text extraction. The broad search-strategy language at line 52 is not reused as an unconditional theorem; the article supplies a separate finite unit-cost BFS proof with exact interruption conditions. No source code was downloaded or executed.
- Classical Planning — CMU 15-780 Graduate AI, Spring 2013 · Actually opened the official 28-page PDF and read its header and initial pages, web lines 0–108: the cover identifies the course, author and Spring 2013, with footer 2/17/13; slide 2 defines initial worlds, goals and problems; slide 3 separates cognition, plans, actuation and perception; slides 5–6 distinguish atomic and factored representations; slide 7 states the known deterministic action model and fully known initial state; slide 8 covers ground states, closed-world interpretation, add/delete persistence and the absence of explicit action durations. A full 28-page lecture audit or execution of course planning systems is not claimed. Only concepts were used, not assets, examples or code.
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 6.1 Representing States, Actions, and Goals · Independently opened the canonical authors’ UBC third-edition HTML through web. Read section 6.1 lines 17–18 (deterministic partial action, conditions/effects), 73–112 (sequential controller assumption, explicit graphs versus compact features), 118–143 (feature assignments, pre-state requirements and unchanged-feature persistence), and 213–233 (fully specified initial state, achievement versus maintenance/transient/resource goals). Read the 2023 copyright and 2025-06-28 generated footer, distinguishing them. Some mathematical example tokens are omitted by web extraction; no inspection of those missing formulas or download/render of the whole book is claimed. The article defines its own finite Boolean teaching interface and copies no source examples/assets/code.
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 6.2 Forward Planning · Independently read the complete returned section 6.2 prose, 83 web lines. Lines 17–41 define deterministic action sequences and the forward state/action graph; line 51 distinguishes dynamic graph generation from explicit state representation; lines 66–76 discuss complete states, path representations, state equality and partially specified goals. The separate finite unit-cost BFS proof was checked rather than importing source strategy remarks as a theorem about every search method. Some example formulas are absent from extraction; no hidden-formula audit or source-code execution claimed.
- Classical Planning — CMU 15-780 Graduate AI, Spring 2013 · Independently opened the official 28-page CMU handout through web and read extracted lines 0–108. It has two numbered slides per PDF page: cover verifies Manuela M. Veloso, 15-780 Graduate AI, Spring 2013 and footer 2/17/13; slide 2 gives initial state/goals, slide 3 distinguishes planning/perception/execution, slides 5–6 discuss factored representations, slide 7 the known deterministic action model and fully known initial state, and slide 8 ground facts, closed-world interpretation, add/delete effects and no explicit duration. Locators distinguish slide numbers from PDF page indices. No whole-handout audit, slide visual inspection, historical robot execution or implementation of its typed STRIPS/PDDL systems is claimed.
Related topics