LESSON 21.22 · 6 STAGES · 2 CONTROLS · 2 CHECKSPRO · PREVIEW
Temporal logic and model checking
Watch a formula check every run of a robot and grade its reward.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 2 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 21.22 · SPEC BAYRUN 7 MOVES · 2 HAZARDS
01
Stage 1 of 6 · Labels and spec
Each cell carries a label: p for pickup, d for delivery, h for hazard. A formal specification writes the goal over labels.
Explain it simply
Each cell on the grid has a label, so a run of the robot becomes a list of labels. The spec on the right is a formal specification, a goal written as an exact formula. Here it says: never enter h and reach d. The teal path is the planned route, and its labels fill the strip.
A 5 by 4 grid. The start is at (0, 3). p is at (0, 1) and d at (4, 0). h is at (2, 1) and (2, 3). The spec is G ¬h ∧ F d. The planned route takes 7 moves.
labels, runsspechazard, counterexampletrue, accepted, policy
Toy: a 5 × 4 grid, 2 hazards, 3 specs
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A run is a list of labels; the spec is a formula over them.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 live controls
- 2 mix-up cards and 2 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.