AI Wiki中文/EN

Planning under uncertainty: guarantees without observations

不确定环境中的规划

Search finite belief states for one action sequence that works despite unknown initial states and nondeterministic outcomes.

On this pageIntuitionMathematics & methodImplementationLimitationsExercisesResearch connections

One procedure must work from every possible starting state

Consider a hypothetical kiln controller. The empty kiln is either cold or warm, but the controller cannot observe which. Loading is permitted only when it is cold. A cooling action makes either starting state cold. After loading, a quick firing procedure can produce ready or failed; a controlled procedure produces ready in this deliberately small model.

The sequence cool, load, controlled_fire works from both possible initial states. load, controlled_fire does not: loading may be inapplicable. And cool, load, quick_fire has a successful execution, but also a failed one. The model assigns no probabilities to these outcomes.

These are two different uncertainties. The initial state is unknown before acting. The firing action can have more than one result even from a known state. An observation would be a third component: information available to the controller during execution. Here there are no observations, so the controller must choose one fixed action sequence.

This chapter implements conformant planning with a strong guarantee: every action must be applicable throughout the possible executions, and every final state must satisfy the goal. Cimatti and Roveri distinguish this from conditional plans whose actions depend on information collected during execution. Original paper, introduction and §3.

Search over sets of possible states

Let SS be a finite nonempty set of fully specified world states. An action aa has a successor set Ta(s)T_a(s) at state ss. An empty successor set means the action is inapplicable there, not that it leaves the state unchanged. A belief state BB is a nonempty set of possible current states:

0<∣S∣<∞,Ta(s)⊆S,∅≠B⊆S.0<|S|<\infty,\qquad T_a(s)\subseteq S,\qquad\varnothing\ne B\subseteq S.

This is a set of possibilities, not a probability distribution or a set of propositions jointly true. Exactly one world state is actual. The set records which states remain possible given the initial information, the model and the actions performed. The state description must contain everything that influences later transitions. For example, a persistent hidden fault type must be part of the state if it correlates successive outcomes; omitting it and allowing a new fault choice at every step would describe a different system.

An action is usable only when it is usable in every member of the current belief. Its next belief includes every successor of every possible current state:

Applicable(B,a)⟺∀s∈B:Ta(s)≠∅,F(B,a)=⋃s∈BTa(s)when applicable.Applicable(B,a)\Longleftrightarrow\forall s\in B:T_a(s)\ne\varnothing,\qquad F(B,a)=\bigcup_{s\in B}T_a(s)\quad\text{when applicable}.

The universal applicability check comes before the union. Otherwise, a state with no successor would silently disappear, falsely making uncertainty look resolved. Cimatti and Roveri give this nonempty-belief applicability requirement and action image separately. Definitions 2–4, printed pp309–310.

Let II be the initial belief and GG the set of acceptable goal states. A conformant plan is a finite action word with defined belief updates all the way through and a final belief contained in GG:

π=(a1,…,ah),B0=I,Bi+1=F(Bi,ai+1) (0≤i<h),Bh⊆G.\pi=(a_1,\ldots,a_h),\quad B_0=I,\quad B_{i+1}=F(B_i,a_{i+1})\ (0\leq i<h),\quad B_h\subseteq G.

For the empty word, the final belief is simply II. Success does not require knowing one exact state: several possible states can all be acceptable. Our interface also accepts an empty goal set as an impossible target. The cited paper’s planning-problem definition instead assumes a nonempty goal set; the program’s extension adds no successful empty-belief cases because initial beliefs and applicable successors stay nonempty.

The belief update is deterministic even when the underlying action is not. From loaded, quick firing produces the known set {ready, failed}; the controller cannot select which member becomes actual. Cooling moves {cold, warm} to {cold} without sensing. It establishes a known current condition rather than discovering which initial condition held. LaValle explains why a sensorless information-state trajectory can be predictable although the world-state trajectory is not. Planning Algorithms, §12.1.1.

If a sensor were added, prediction and observation would be separate operations. For an exact observation function OO of the next state, observing yy would filter the predicted belief:

By′={s′∈F(B,a):O(s′)=y}.B'_{y}=\{s'\in F(B,a):O(s')=y\}.

Different possible observations could lead to different later actions. That is a policy with branches, not the fixed word implemented here. An empty filtered set would indicate an observation inconsistent with the stated model, not permission to declare success. No observation function or filtering routine is part of the program.

Breadth-first search with universal action checks

The program takes state names, an action table, an initial belief and a goal set. Each action is (name, transition_rows); each transition row is (origin, successors). Lists or tuples are required throughout. State and action declarations must be unique nonempty strings, and each origin can appear at most once per action. Repeated states inside a belief or successor collection are normalized. Every referenced state must be declared.

A missing origin row and an explicit empty successor list both mean inapplicability. An action with no rows is legal but never applicable. A state with no available action is also legal: it may be a terminal success or a dead end. The implementation does not insert self-loops.

A queue explores beliefs in nondecreasing action length. The parent map records one predecessor and action for each discovered belief. found includes the action word and its complete belief trace. no-conformant-plan requires exhausting all reachable beliefs. unknown means an expansion budget stopped a nonempty frontier; no partial plan is returned.

max_expansions counts beliefs removed from the queue to generate successors. Validation and initial-goal checking happen first. Success is also checked immediately when a new successor belief is discovered, so finishing an allowed expansion can return a solution at the exact budget limit. The initial belief can yield an empty plan even at budget zero. Within an expansion, action_checks counts action tables tried, including inapplicable actions; the final expansion may stop early on success. Action declaration order breaks ties among equally short plans.

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('Expected a nonempty string name')
    return value


def conformant_plan(states, actions, initial, goals, max_expansions=None):
    states = tuple(name(s) for s in sequence(states))
    if not states or len(set(states)) != len(states):
        raise ValueError('Declare a nonempty list of distinct states')
    universe = frozenset(states)

    def subset(values):
        values = frozenset(name(s) for s in sequence(values))
        if not values <= universe:
            raise ValueError('Undeclared state')
        return values

    initial, goals = subset(initial), subset(goals)
    if not initial:
        raise ValueError('The initial belief must be nonempty')
    if max_expansions is not None and (type(max_expansions) is not int
                                      or max_expansions < 0):
        raise ValueError('max_expansions must be nonnegative integer or None')
    model = {}
    for row in sequence(actions):
        row = sequence(row)
        if len(row) != 2:
            raise ValueError('Action: (name, transition rows)')
        action = name(row[0])
        if action in model:
            raise ValueError('Duplicate action name')
        table = {}
        for transition in sequence(row[1]):
            transition = sequence(transition)
            if len(transition) != 2:
                raise ValueError('Transition: (origin, successors)')
            origin = name(transition[0])
            if origin not in universe or origin in table:
                raise ValueError('Unknown or repeated transition origin')
            table[origin] = subset(transition[1])
        model[action] = table
    queue = deque([initial])
    parent = {initial: None}
    expanded = action_checks = 0

    def answer(status, target=None):
        plan, beliefs = None, None
        if target is not None:
            moves, trace = [], [target]
            while parent[target] is not None:
                previous, action = parent[target]
                moves.append(action)
                trace.append(previous)
                target = previous
            plan = tuple(reversed(moves))
            beliefs = tuple(tuple(s for s in states if s in b)
                            for b in reversed(trace))
        return dict(status=status, plan=plan, beliefs=beliefs,
                    expanded=expanded, discovered=len(parent), action_checks=action_checks)

    if initial <= goals:
        return answer('found', initial)
    while queue:
        if max_expansions is not None and expanded >= max_expansions:
            return answer('unknown')
        belief = queue.popleft()
        expanded += 1
        for action, table in model.items():
            action_checks += 1
            if not all(table.get(s) for s in belief):
                continue
            following = frozenset(t for s in belief for t in table[s])
            if following in parent:
                continue
            parent[following] = (belief, action)
            if following <= goals:
                return answer('found', following)
            queue.append(following)
    return answer('no-conformant-plan')


def kiln_example(include_controlled=True):
    states = ('cold', 'warm', 'loaded', 'ready', 'failed')
    actions = [
        ('cool', (('cold', ('cold',)), ('warm', ('cold',)))),
        ('load', (('cold', ('loaded',)),)),
        ('quick_fire', (('loaded', ('ready', 'failed')),)),
    ]
    if include_controlled:
        actions.append(('controlled_fire', (('loaded', ('ready',)),)))
    return states, actions, ('cold', 'warm'), ('ready',)


if __name__ == '__main__':
    result = conformant_plan(*kiln_example())
    print('plan:', result['plan'])
    print('beliefs:', result['beliefs'])
    print('work:', result['expanded'], result['discovered'], result['action_checks'])
    print('budget 2:', conformant_plan(*kiln_example(), max_expansions=2)['status'])
    print('quick only:', conformant_plan(*kiln_example(False))['status'])
    retry = [('try', [('waiting', ['waiting', 'done']), ('done', ['done'])])]
    print('retry:', conformant_plan(['waiting', 'done'], retry, ['waiting'], ['done'])['status'])

Running the complete file prints:

plan: ('cool', 'load', 'controlled_fire')
beliefs: (('cold', 'warm'), ('cold',), ('loaded',), ('ready',))
work: 3 5 12
budget 2: unknown
quick only: no-conformant-plan
retry: no-conformant-plan

The fifth discovered belief is {ready}; {ready, failed} was discovered earlier from quick firing, but did not pass the goal test. The returned trace follows only the successful parent chain. The word has three actions, and both possible initial histories end in ready.

Action from the current beliefResultInterpretation
load from {cold, warm}Inapplicablewarm does not permit loading
cool from {cold, warm}{cold}Current uncertainty shrinks without observation
load from {cold}{loaded}Loading is guaranteed applicable
quick_fire from {loaded}{ready, failed}A successful outcome is insufficient
controlled_fire from {loaded}{ready}Every outcome is acceptable

Why does merging equal beliefs preserve correctness? The transition model is time independent, there is no observation history affecting available actions, and future feasibility depends only on the current possible-state set. If two prefixes reach the same belief, any usable suffix works after either. Keeping the first prefix preserves a shortest solution because breadth-first search discovered it at the smallest depth.

Induction over the returned trace shows that each listed belief is exactly the set of possible states after that prefix: the base is II, and the action image includes all and only permitted successors. The universal applicability check prevents losing stuck histories. Therefore the final subset test proves the stated guarantee. Conversely, every applicable finite word follows edges in this belief graph. Exhaustion explores all its reachable vertices, so it cannot miss a conformant solution.

For n=∣S∣n=|S|, there are at most 2n−12^n-1 nonempty beliefs. A shortest solution never repeats a belief, since the intervening loop could be removed:

D≤2n−1,if a solution exists, its minimum length h≤2n−2.D\leq 2^n-1,\qquad\text{if a solution exists, its minimum length }h\leq 2^n-2.

Here DD is the number of discovered beliefs, including the initial one. This gives finite termination, not practical scalability. A world state may itself encode many Boolean facts; enumerating nn world states can already be expensive before the additional power set is considered. LaValle, §12.1.2.

Let AA be the action count, RR the number of expanded beliefs and LL the raw input size including one constant unit. Under expected hashing and unit-cost state names/counters, each action can inspect nn origins and up to n2n^2 successor entries. A loose bound including validation, hashing, parent recovery and the returned trace is:

T=O(L+(R+1)(A+1)(n+1)2),S=O(L+D(n+1)).T=O\bigl(L+(R+1)(A+1)(n+1)^2\bigr),\qquad S=O\bigl(L+D(n+1)\bigr).

The parent map stores one edge per belief, rather than copying entire plans into the queue. The trace can have at most DD beliefs, each with at most nn names. Long names and large integer bit lengths add costs. An expansion budget does not bound validation cost, one expansion’s work or total memory.

A lucky run, a fixed word and a reactive policy answer different questions

An optimistic execution can choose a favorable initial state and favorable action outcomes. In this chapter, that is the weak success test: at least one execution reaches a goal. The conformant guarantee instead quantifies over every possible initial state and every possible outcome at every step. Removing the controlled firing action leaves a weakly successful route through quick_fire, but no conformant plan. Reporting the quick route as reliable would discard a real model outcome.

A lack of conformant plans does not imply a lack of conditional plans. Suppose the initial state is left or right. Action L works only from left, and R only from right; each reaches a goal. Neither is safely usable from the combined belief. An exact sensor could distinguish the two states, permitting “observe; if left use L, otherwise use R.” The current interface cannot observe, split beliefs or synthesize that policy.

A different limitation appears with retry. From waiting, try can return waiting or done; from done, it stays done. After one try, the belief is {waiting, done}, and every additional fixed retry keeps it there. No finite word guarantees completion: an allowed execution can keep returning waiting. A policy that observes completion and retries otherwise has a different specification. A strong-cyclic policy keeps a goal-reaching continuation available after every finite execution; treating retries as eventually successful additionally requires an appropriate fairness assumption that excludes endlessly postponing progress. Neither that assumption nor such a policy is implemented here. No probability of success can be calculated from these unweighted sets. Pistore and Vardi, introduction, p102.

The transitions are supplied as an exact, finite model. Missing a possible outcome can create a false guarantee; adding impossible outcomes can hide a real plan. The program does not learn transitions, optimize risk, model partial sensor accuracy, plan with deadlines or solve a POMDP. It finds a shortest fixed word by action count under its stated model, not the cheapest, fastest or most likely real-world procedure.

Keep the unfavorable branch in view

  1. Why must the kiln plan begin with cool? Does that action reveal the initial temperature?

Answer: load is not applicable in warm, so it cannot be chosen from {cold, warm}. Cooling is applicable in both states and makes the current state cold. It does not reveal whether the kiln was initially cold or warm. The resulting plan is cool, load, controlled_fire.

  1. Quick firing yields {ready, failed}. Would changing the goal test to “belief intersects goal” be a harmless optimization? What if both states are acceptable goals?

Answer: No. Nonempty intersection would accept one lucky outcome while ignoring failure. With goal {ready}, the plan fails the strong test. If the goal is deliberately changed to {ready, failed}, both outcomes are acceptable and quick firing succeeds under that different specification; knowing one exact final state is unnecessary.

  1. An action maps left to goal and has no row for right. Starting from {left, right}, why not remove right and keep {goal}?

Answer: The missing row means the action cannot be applied in right. It is not an observation proving that the state was left. Discarding that history turns inapplicability into false knowledge. The entire action must be rejected for this belief. An exact sensor would require an explicit observation model and a branching policy.

  1. Why does the retry model have no conformant plan? How do a zero expansion budget and a two-expansion budget differ?

Answer: The first try produces {waiting, done} and further tries repeat it. The waiting outcome can occur on every trial, so no finite number guarantees completion. Zero budget returns unknown before exploring a non-goal initial belief. Two expansions exhaust this model’s two reachable beliefs and return no-conformant-plan. If the initial belief were already {done}, the empty plan would succeed even at zero budget.

Explicit beliefs are the small version of a larger research problem

Cimatti and Roveri’s Conformant Planning via Symbolic Model Checking appeared in JAIR 13, pp305–338, in 2000. The archived PDF carries that journal header; its later arXiv upload date is not the publication year. Definitions 1–5 specify nondeterministic domains, applicability, action images and conformant solutions. Section 4 searches backward with strong preimages; its BDD implementation is separate from this chapter’s original forward, explicit-set code. No original example, program or historical performance result is reproduced. Paper, university publication record.

LaValle’s Planning Algorithms explains information states as a new planning space. Sections 12.1.1–12.1.2 distinguish possible-state sets from probabilities, derive guaranteed goal membership and explain why sensorless belief evolution becomes deterministic. They also expose the exponential state-space cost. Author’s textbook.

The tests independently search backward through maximal starting sets for a common suffix, then replay complete outcome histories for each returned witness. They cover 279 small problems, including every two-state single-action relation with each nonempty initial belief and each goal set. Targeted checks exercise inapplicability, adverse outcomes, the hypothetical sensor policy, retry loops and budget boundaries. This is an AI technical check of the finite implementation, not a human peer-review claim.

See the chapters on classical planning, Markov decision processes and temporal planning for adjacent questions about known states, probabilistic decisions and time constraints.

Make a prediction, then check

An action maps left to goal but is undefined in right. Can it be used from belief {left, right}?

Choose one answer

Learning objectives

  • Separate unknown initial state, nondeterministic effects and runtime observations.
  • Compute universal action applicability and exact successor beliefs, then verify every outcome of a returned plan.
  • Prove finite belief-space BFS completeness and shortest length, while interpreting budget interruption and policy limitations correctly.

Prerequisites & connections

Explore related knowledge →

References

  1. Conformant Planning via Symbolic Model Checking
    Alessandro Cimatti; Marco Roveri · 2000
  2. Planning Algorithms — §§12.1.1–12.1.2: information-space planning
    Steven M. LaValle
  3. The Planning Spectrum — One, Two, Three, Infinity
    Marco Pistore; Moshe Y. Vardi · 2007

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.

  • Nine tests passed. Independent backward universal-preimage search checks 279 small problems, including all 192 two-state single-action/initial/goal combinations and 80 seeded three-state models. Replayed full outcome histories for 120 returned witnesses.
  • The kiln returns cool/load/controlled_fire with belief trace, 3 expansions, 5 discoveries and 12 action checks. Tested adverse outcomes, universal inapplicability, hypothetical sensing branches, two-belief retry exhaustion, exact expansion budgets, empty goals, duplicates, validation and unchanged input.
  • Original bilingual prose and code; six matching display equations, six anchors and four answered exercises. Strict MDX/KaTeX and actual React HTML passed. Exact finite-set model only; review written and AI author checks pending independent cross-review.
  • Read both complete articles, code, nine tests and metadata without edits. Universal applicability before action image, retention of stuck histories, goal containment rather than intersection, unknown versus failure and input-order ties are correct. Persistent hidden types must be represented in states; observation and fairness limits are accurately stated. No defect found.
  • The third reference totalizes each action with an absorbing failure state for missing/empty successors, then enumerates action words using full Boolean transition-matrix products. It uses neither forward belief BFS, author backward strong preimages nor outcome-history enumeration. Twelve focused small models are fully enumerated through the proved 2^n-2 bound; the main example is checked only through length three, totaling 501 words. All 45 complete return comparisons and 19 successful certificate checks pass.
  • Checked adverse outcomes, implicit/explicit inapplicability, several acceptable final states, the left/right sensing counterexample, retry cycles, no actions, empty goals and initial success. Separately verified main counts 3 expansions/5 discoveries/12 action checks and four budgets; invalid unused transitions remain rejected. All nine author tests reran successfully.
  • Separately checked the general argument: deterministic belief evolution gives equivalent futures and BFS first discovery is shortest; the finite nonempty powerset gives the cycle-free length bound 2^n-2. Costs include input constants, up to n squared successors per action, parent recovery and complete output, without equating finite termination with scalability. Weak/strong/strong-cyclic quantifiers and fairness for retry match the cited scope.
  • Final five hashes match. Strict MDX/KaTeX and actual React HTML pass with six displays, six anchors and four answers per locale. Displays and complete code are byte-identical, without math errors, display trailing spaces or emphasis residue outside code. Independent AI technical review only, with no draft/repository edits or browser, whole-site or real-controller acceptance.
  • 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: 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:

  • Conformant Planning via Symbolic Model Checking · Actually read the 34-page archived journal PDF through web text: header states JAIR 13 (2000), 305–338, published 12/00; university record https://iris.unitn.it/handle/11572/258740 independently lists year, pages and DOI. PDF pages 1–2 distinguish unknown initial states, uncertain effects and runtime observations. Pages 4–6, definitions 1–5, define partial transition relations, nonempty beliefs, applicability in every possible state, union images and final goal containment. Page 7 defines strong preimages; page 9 describes backward BFS, repeated-set pruning and finite termination. The teaching code searches forward explicitly and additionally accepts empty goal sets as impossible targets. No local download or visual inspection claimed.
  • Planning Algorithms — §§12.1.1–12.1.2: information-space planning · Actually opened the author-hosted HTML after the Illinois mirror returned errors. Section 12.1.1, node592.html lines 8–22 and 43–45: derived information states, possible-state sets versus distributions, goal subset condition and deterministic sensorless information-state evolution. Section 12.1.2, node593.html lines 8–10: 2^n−1 nonempty information states and exponential growth. No old performance number adopted.
  • The Planning Spectrum — One, Two, Three, Infinity · Actually read the university-hosted original PDF header and introduction on printed pp101–103 (PDF pages 1–3), especially p102: all executions versus some execution, strong cyclic as goal-reaching extension of every finite execution, and endless failed retries as an unfair execution. Used only for the unimplemented policy/fairness contrast, not as evidence that conformant BFS synthesizes strong-cyclic plans.
  • Conformant Planning via Symbolic Model Checking · Independently opened the 34-page archived PDF via web. Header confirms JAIR 13 (2000), 305–338, published 12/00. Read introduction on conformant versus runtime-conditional sequences; printed pp308–310, Definitions 1–5, on partial transitions, nonempty beliefs, universal applicability, action/plan images and final containment. Definition 5 assumes nonempty goals; the article clearly extends this to an impossible empty goal. Read p311 Definition 6 and the beginning of backward strong-preimage search, distinguishing it from the original forward teaching implementation. Fragmented PDF text was read; no visual/local-PDF audit or benchmark verification claimed.
  • Planning Algorithms — §§12.1.1–12.1.2: information-space planning · Independently read author-hosted node592.html, section 12.1.1: lines 8–22 distinguish derived sets versus probability distributions and goal containment; lines 43–45 explain predictable sensorless information-state evolution. Read node593.html, section 12.1.2, lines 8–10 for the nonempty powerset size. Formula image alt text is present. Did not reuse its old numerical scalability comparison or claim the HTML footer as book publication year.
  • The Planning Spectrum — One, Two, Three, Infinity · Independently opened the university-hosted original PDF. Header confirms JAIR 30 (2007), 101–132. Read introduction, printed p102, lines 51–77: universal versus existential execution requirements, strong cyclic as a goal-reaching extension after each finite partial execution, and unfair endless failure. Read the following p103 quantifier discussion only for scope. No implementation or audit of the later automata construction claimed.

Related topics

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.