PDDL

Also known as: Planning Domain Definition Language

On this page 8

PDDL, the Planning Domain Definition Language, is a formal, Lisp-style language for describing automated planning problems so that a general-purpose planner can search for a sequence of actions that turns an initial state into a goal state. In artificial intelligence, and specifically in symbolic AI & reasoning, it serves as the common input format for classical planners, separating the description of a world from the algorithm that solves it.

PDDL was introduced in 1998 for the International Planning Competition, led by Drew McDermott, to give researchers one shared notation. It builds on the STRIPS action model and the richer ADL formalism, and later versions added numeric fluents, durative actions and preferences. Today it is the de facto standard for benchmarking planners and for connecting symbolic planning with robotics and language-model agents.

How PDDL separates domain and problem

A PDDL model is split into two files: a domain and a problem. The domain describes the general physics of a world, meaning its object types, the predicates that can be true or false, and the action schemas that change them. The problem file lists the concrete objects, the initial state and the goal condition for one specific task.

This separation lets one domain serve thousands of problems. A logistics domain written once can describe a delivery task with three trucks or with three hundred packages, and the planner reads both files without any domain-specific code. The planner then grounds the action schemas into concrete actions and performs state-space search over the resulting states.

The following table lists the main building blocks and where each one appears.

ElementFilePurpose
RequirementsDomainDeclares language features such as :strips or :typing
TypesDomainGroups objects into a hierarchy such as truck or package
PredicatesDomainBoolean facts such as (at ?t ?loc)
ActionsDomainParameters, preconditions and effects
ObjectsProblemNamed instances used in this task
InitProblemFacts that are true at the start
GoalProblemCondition every solution plan must satisfy
Core elements of a PDDL model

Action schemas, preconditions and effects

Each action schema has parameters, a precondition that must hold before execution and an effect that describes how the state changes. Effects consist of add effects, which make facts true, and delete effects, written with not, which make facts false. All facts not mentioned stay unchanged, which is how PDDL inherits the STRIPS answer to the frame problem.

A typical action such as drive takes a truck and two locations, requires (at ?t ?from) and produces (at ?t ?to) while deleting (at ?t ?from). The state itself is a set of ground atoms interpreted under the closed-world assumption: any fact not listed in the state is considered false. This makes states compact and search efficient, but it also means the modeler must list every relevant fact in the initial state.

PDDL versions and expressive features

PDDL evolved through several versions, each adding features demanded by planning competitions and applications. Planners usually support only a subset of requirements, so checking which flags a planner accepts is the first practical step.

VersionYearKey additions
PDDL 1.21998STRIPS and ADL actions, typing, conditional effects
PDDL 2.12002Numeric fluents, durative actions, plan metrics
PDDL 2.22004Derived predicates, timed initial literals
PDDL 3.02006State trajectory constraints and soft preferences
PDDL+2006Continuous processes and exogenous events
Main PDDL versions and what they added

Related dialects extend the core further. PPDDL and RDDL describe probabilistic effects for planning under uncertainty, while HDDL encodes hierarchical task network methods. These extensions show that PDDL acts less as a single language than as a family of compatible notations around a shared syntax.

PDDL is a modeling language, not an algorithm, and it is best understood next to the formalisms it draws on. The table contrasts it with neighboring approaches in symbolic reasoning.

FormalismMain focusRelation to PDDL
STRIPSAdd and delete lists for actionsThe core action model PDDL generalizes
Situation calculusActions in first-order logicMore expressive, far harder to solve automatically
HTN planningDecomposition of tasks into subtasksEncoded in the HDDL extension
SAT planningPlans as Boolean satisfiabilityPDDL problems are often compiled into SAT
Answer set programmingDeclarative logic programsAlternative way to model the same problems
PDDL and neighboring formalisms

Compared with first-order logic encodings, PDDL deliberately restricts expressiveness so that planners can apply powerful heuristic search. Planners such as Fast Downward translate the input into a compact internal representation and then use heuristics like FF or landmark-based estimates to guide best-first search.

Writing and debugging PDDL models

Good PDDL modeling is a craft that strongly affects planner performance. The same domain can be solved in seconds or not at all depending on how predicates and actions are designed. The table summarizes frequent mistakes.

SymptomLikely causeFix
Planner reports no planMissing fact in the initial stateCheck every precondition against init
Plan uses impossible movesMissing delete effectDelete the old fact in the effect
Grounding takes very longToo many untyped parametersAdd types to restrict parameters
Planner rejects the fileUnsupported requirement flagUse only features the planner supports
Common modeling mistakes and fixes

Practitioners validate plans with tools such as VAL, the plan validator used in the competitions, and test domains on small problems first. A key warning is that a syntactically valid model can still be semantically wrong, so every generated plan should be checked against domain knowledge.

Strengths and limitations of PDDL

The main strength of PDDL is domain independence: a single planner can solve problems from logistics, robotics or space operations without new code. Plans are explicit and verifiable, which matters in safety-critical settings where a neural policy cannot be inspected easily.

  • Knowledge engineering cost: writing a correct domain requires expert effort, a form of the knowledge acquisition bottleneck.
  • Limited uncertainty handling: core PDDL assumes full observability and deterministic actions.
  • Computational hardness: classical planning is PSPACE-complete, so large problems can remain intractable.
  • Uneven tool support: advanced features such as PDDL+ are supported by few planners.

Recent research combines PDDL with large language models, which translate natural-language task descriptions into PDDL problem files while a classical planner guarantees sound, executable plans. This neuro-symbolic pattern uses each component for what it does best.

The idea in brief

PDDL is a way to write down a task so that a computer can plan it. First, you describe the rules of a world. You say what things exist and what actions are possible. Then you describe where things start and where they must end up.

A planning program reads both parts. It then searches for the right order of actions. Think of a recipe book that lists every allowed kitchen step. The planner finds a recipe that reaches the dish you want. The rules are written once and can be reused for many different tasks.

A practical scenario

A warehouse automation team needs to coordinate six mobile robots that move shelves to packing stations. Instead of programming every route by hand, the engineers write one PDDL domain with actions such as move, lift-shelf and drop-shelf, each with typed parameters and clear preconditions. Every morning, a script generates a problem file from the order system, listing about 40 shelves and 12 target stations.

An off-the-shelf planner produces a plan of roughly 150 actions in under ten seconds, and the VAL validator confirms it before the robots execute it. When the warehouse adds a new charging rule, the team edits one action precondition rather than rewriting the controller. The result is a flexible, auditable planning layer that operators can inspect whenever a robot behaves unexpectedly.