Lesson 6 of 6 · written lesson
Check a procedure yourself
Run the exact verifier and distinguish validity from optimality.
What the checker receives
A model lists each feasible state's target, sensor readings, free initial label, exact prices, probabilities and prerequisite outcomes. A certificate supplies roots, test nodes, branches, leaf answers and claimed costs. The checker follows every feasible state through that proposed procedure.
It checks that each test is permitted, every reachable branch exists, every final answer is correct and the claimed worst, expected and installed costs match. It includes feasible states with probability zero. Unused stored branches and nodes are rejected by the canonical format.
Run the working lab
Download and extract the lab below. Python 3.10 or later is sufficient; no third-party packages, account or network call is required by the lab. In PowerShell, enter the extracted observable_answers_lab folder:
python -B worked_lab.py
The first exercise builds all eight address states and checks the two-query policy, with all execution and installation prices equal to 1. It prints worst 2, expected 2, installed 3. Two deliberate corruptions are rejected. The second builds the restricted prerequisite example and checks costs 1, 1 and 2: installation prices are separately fixed at 1 each, and one corruption that skips g is rejected.
Download the worked Python lab (MIT License) · Download the complete reviewed companion package
To reproduce the report's full evidence, extract the companion, enter companion_note, and run python -B code/run_checks.py. It compares generated results with the retained fixtures. Those fixtures use their own documented prices; do not mix them with this lab's unit prices.
A valid policy can be inefficient
The checker compares a policy with its model and claimed costs. It does not compare it with all other policies. A correct three-query policy can therefore pass even where a two-query policy exists. Five valid fixtures and nineteen corruptions are included in the companion tests.
Inputs are trusted explicit tables, not a hardened hostile-JSON interface. A model digest binds the table content, not its physical truth. Exact finite checks do not establish a scalable tensor algorithm or human peer-review approval.
Try it before opening the answer
A policy gives correct answers but claims installed cost 2 while using all three unit-price sensors across its possible paths. Should the checker accept it? If its claim is fixed to 3, does acceptance prove optimality?
Show answer and explanation
The false installed-cost claim must be rejected. With truthful claims and legal correct execution, it may pass; acceptance still proves only validity and those costs, not optimality.
Report sections: 8–9. Read the complete mathematical account.

