Module 10
Classical and Symbolic Artificial Intelligence
How do we build systems capable of reasoning, searching for solutions and planning through explicit representations of knowledge?
- lessons
- 23
- duration
- 40 h 35 min
- concepts
- 140
- available in English
- 23 / 23
- completed by you
0 of 23
Where it fits
Overview
A specialist tour of the three pillars of symbolic AI: search (heuristic, local, adversarial and Monte Carlo Tree Search), automated reasoning (CSPs, SAT solver engineering with CDCL, SMT, verification and symbolic execution, first-order logic, logic programming, rule systems and knowledge representation), and automated planning, concluding with symbolic uncertainty and neurosymbolic integration. Propositional logic, Tseitin, resolution and DPLL are assumed from m01 and become real solvers here. Each algorithm is demonstrated, implemented from scratch in Python and compared with industrial tools such as Z3, PySAT, OR-Tools CP-SAT, clingo and Fast Downward.
Why it matters
MCTS with UCT and PUCT is the search skeleton of AlphaZero, and the game engine built here underlies the capstone project. SAT, SMT, symbolic execution and Datalog are core technologies in software security analysis (CodeQL, KLEE, angr), directly applicable to AppSec work. Planners, verifiers and solvers also give language-model agents tools to generate and verify, and the neurosymbolic frontier is an active research field.
Lessons 23
- 01State spaces and uninformed searchA dense review of formulating problems as implicit state-space searches and of classical uninformed algorithms: breadth-first, uniform-cost, depth-first, iterative deepening and bidirectional search. Analyze completeness, optimality and complexity rigorously in terms of branching factor b, depth d and the ratio C*/ε, and build the generic search engine reused throughout the module.
- 02A* and the theory of admissible heuristicsInformed search uses an estimate h(n) of remaining cost to guide exploration. Prove A* optimality with admissible and consistent heuristics, study its optimal efficiency, design heuristics using relaxed problems and measure their quality with effective branching factor.
- 03Heuristic search at scale: linear memory, bounded suboptimality and pattern databasesA* runs out of memory long before time. Study specialist responses: linear-memory IDA* and RBFS, weighted A* and anytime search with suboptimality guarantees, and abstraction-based precomputed heuristics (additive pattern databases) that solve the 15-puzzle and Rubik’s cube optimally.
- 04Local search and metaheuristicsWhen only the final state matters, move through a landscape of candidate solutions. Study hill climbing with restarts, simulated annealing and its Metropolis foundation, tabu search, local beam and genetic algorithms, alongside honest comparison of stochastic methods.
- 05Zero-sum games: minimax and alpha-beta pruningDeterministic two-player perfect-information games can in principle be solved with minimax. Alpha-beta returns the same value while exploring roughly the square root of the nodes with good ordering. Prove correctness, derive Knuth and Moore’s analysis and build a Connect 4 player on bitboards.
- 06Anatomy of a game engine: iterative deepening, transposition tables and evaluationBare alpha-beta does not win games; surrounding techniques do. Build a complete engine with timed iterative deepening, Zobrist hashing and transposition tables, quiescence, null windows (PVS), forward pruning and data-tuned evaluation, and extend search to chance games with expectiminimax.
- 07Monte Carlo Tree Search and UCTWhen no good evaluation function exists and branching is enormous, as in Go, alpha-beta fails. MCTS builds an asymmetric tree guided by simulations and treats each node as a multi-armed bandit. This lesson studies its four phases, the UCT rule and its convergence guarantee, and implements a generic MCTS that will underpin AlphaZero in the reinforcement learning module.
- 08Advanced MCTS: priors, RAVE, parallelism and imperfect informationThe variants that turn MCTS into a competitive engine: PUCT selection with priors, the interface AlphaZero fills with a network, shared RAVE statistics, progressive widening for numerous or continuous actions, MCTS-solver, parallelism with virtual loss, and information-set methods for imperfect-information games.
- 09Constraint satisfaction: modeling, propagation and backtrackingCSPs open the black box of state: variables, domains and constraints enable general heuristics and inference propagation. This lesson studies modeling, backtracking with ordering heuristics, forward checking and arc consistency with AC-3, and builds a generic solver for hard sudokus and large n-queens problems.
- 10Structure and constraint programming: trees, global constraints and CP-SATConstraint-graph structure determines complexity: tree CSPs are solved without backtracking and general difficulty grows exponentially only in treewidth. This lesson studies efficiently filtered global constraints, conflict-directed backjumping, min-conflicts local search, symmetry breaking and professional modeling with CP-SAT.
- 11Practical SAT: propagating encodings, an efficient DPLL engine and local searchBuilding on propositional logic, Tseitin, resolution and DPLL from m01, this lesson bridges textbook algorithms and useful solvers. Encode CSPs, cardinalities and pseudo-Boolean constraints so unit propagation performs arc-consistency work; build iterative DPLL with a trail, decision levels and two watched literals as the basis for the next lesson’s CDCL; and study preprocessing and stochastic local search (WalkSAT and probSAT).
- 12CDCL: how modern SAT solvers workBuild a complete conflict-driven clause-learning SAT solver, analyze and measure its heuristics, and certify UNSAT with proof traces.
- 13SMT: satisfiability modulo theories and the design of Z3Study SMT, the DPLL(T) interface and theory explanations, congruence closure, difference logic, arithmetic, bit-blasting, theory combination and Z3.
- 14Z3 in depth: incremental solving, cores, optimization, quantifiers and synthesisUse Z3 incrementally with assumptions and unsatisfiable cores, MaxSAT, optimization, quantifiers and counterexample-guided synthesis.
- 15Verifying and attacking programs with solvers: IC3, Horn clauses and symbolic executionSolvers can prove a program never reaches an error state or find an input that reaches it. Starting from bounded verification and k-induction from m01, study IC3/PDR, which constructs inductive invariants without unrolling; its generalization to programs as constrained Horn clauses solved by Z3 Spacer; and symbolic and concolic execution (KLEE, SAGE, angr), which generates failure-triggering inputs, together with its main enemy: path explosion.
- 16First-order inference: unification and resolutionFrom knowledge-based agents to automated theorem proving. Starting with first-order semantics, reduce logical consequence to refutation through clausal form and Skolemization, Herbrand’s theorem, unification and resolution with refutational completeness, and the given-clause loop used by modern provers such as Vampire and E.
- 17Logic programming: Prolog, Datalog and Answer Set ProgrammingRestricting logic to Horn clauses turns inference into computation. Study forward chaining as a fixed point (Datalog with seminaive evaluation and stratified negation), backward chaining by SLD resolution (Prolog), and stable-model semantics of Answer Set Programming, with direct applications to static program analysis such as the taint analysis underlying CodeQL.
- 18Rule-based systems and expert systemsExpert systems were AI’s first commercial success and their rule engines remain in production in fraud detection, compliance, WAF and SIEM. Study production systems, conflict resolution strategies, the Rete algorithm for incremental matching, expert-system architecture with explanations, and lessons from the knowledge-engineering bottleneck.
- 19Knowledge representation: ontologies, description logics and nonmonotonic reasoningKnowledge representation chooses what can be expressed and inferred efficiently. Survey semantic networks and frames, formalize them using description logics and their tableaux algorithm in OWL ontologies, study nonmonotonic reasoning for exceptions and defaults, and represent actions and the frame problem as a bridge to planning.
- 20Classical automated planning: STRIPS, PDDL and domain-independent heuristicsA planner is a general solver: given a domain and problem description it returns a plan without domain-specific knowledge. Study STRIPS and PDDL, grounding, planning complexity, progression and regression search, and automatically derived delete-relaxation heuristics (h_max, h_add, h_FF) and landmarks underlying FF, LAMA and Fast Downward.
- 21Beyond state-space search: planning as SAT, GraphPlan, partial-order and HTN planningPlanning includes approaches beyond heuristic search. Study GraphPlan and mutual exclusions, planning as satisfiability with horizons and incremental SAT, partial-order planning with causal links, and hierarchical task networks, the dominant industry approach, ending with a map beyond classical planning.
- 22Reasoning under uncertainty in symbolic systems: from certainty factors to probabilistic logicReal-world rules have exceptions and evidence is noisy. Study why MYCIN certainty factors failed, the contributions and failures of Dempster–Shafer, and how possible-world semantics joins logic and probability. The computational core covers model counting (#SAT), weighted model counting, knowledge compilation and probabilistic logic programming with ProbLog, directly reusing the module’s SAT machinery.
- 23Frontier: learning-guided search and symbolic reasoningCurrent research combines symbolic engines’ guarantees with learned neural intuition. Study learned search heuristics (DeepCubeA), learning inside solvers (NeuroSAT and algorithm selection), evidence on language models as planners and generate-and-verify, program search with an evaluator (FunSearch), and neural-guided theorem proving (AlphaGeometry, AlphaProof, LeanDojo), with criteria for rigorous reading and reproduction.
Module capstone
Sokoban with four paradigms: heuristic search, planning, SAT and MCTS
Solve Sokoban, a PSPACE-complete problem, with four module approaches on the same level benchmark: (1) A* and IDA* with a minimum matching heuristic between boxes and goals, a transposition table and rule-based deadlock detection; (2) a PDDL domain solved with the custom planner using h_FF and, if available, Fast Downward; (3) planning as SAT with the custom CDCL solver and with CaDiCaL or Z3 for increasing horizons; (4) single-player MCTS. Deliver a reproducible report with coverage, time, memory and solution length by paradigm, ablations of each component and an analysis of which level features favor each approach, with every solution validated by an independent verifier.
Check what you already know
- Analyze the complexity of BFS, uniform-cost search and IDDFS and choose the appropriate blind search algorithm
- Prove the optimality of A* with a consistent heuristic and design heuristics by relaxation
- Build additive pattern databases and use them with IDA*
- Implement negamax with alpha-beta and reason about the window and cutoffs
- Use transposition tables with Zobrist hashing and quiescence search
- Implement MCTS with UCT and correct backpropagation for two players
- Explain PUCT selection with priors and virtual loss in parallel MCTS
- Apply AC-3 and backtracking with MRV and MAC to a CSP
- Choose between direct, support and order encodings of a CSP according to the propagation they achieve
- Derive the 1-UIP clause and backjump level from an implication graph
- Explain DPLL(T) and model a problem with bit vectors in Z3
- Extract a minimal unsatisfiable core and solve a MaxSAT problem with Z3
- Use symbolic execution to generate an input that reaches a failure and explain how IC3 constructs an inductive invariant
- Unify terms and refute by first-order resolution
- Evaluate a Datalog program with stratified negation and compute stable models
- Calculate h_add and h_FF in a STRIPS problem
- Calculate the probability of a query by weighted model counting
References
- Artificial Intelligence: A Modern Approach
- Handbook of Satisfiability
- Heuristic Search: Theory and Applications
- Constraint Processing
- Decision Procedures: An Algorithmic Point of View
- Handbook of Practical Logic and Automated Reasoning
- Knowledge Representation and Reasoning
- A Concise Introduction to Models and Methods for Automated Planning
- A Survey of Monte Carlo Tree Search Methods