Log inStart free
LESSON 14.07 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Verifiers: coverage gaps and false acceptance

Watch a verifier accept a wrong program that passes every check.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 14.07 · VERIFIER BAY7 TESTS · 3 VISIBLE · 4 HIDDEN
01
Stage 1 of 6 · Tests
The reference solution sort_mid writes the expected output of 7 tests. The candidates see 3 tests, and 4 are hidden tests.
Explain it simply

Ten programs try the same task: find the middle value of a list, the median. A trusted program, the reference, writes the right answer for seven tests. The programs can see three of the tests. The other four stay hidden, like exam questions you never saw.

Ten candidate programs in rows. Seven test columns: three visible, four hidden. Each test has an input list and the expected output.

test inputspass, acceptfail, rejectclose callcost in runs
the testsvisible testshidden testsV1V2V3H1H2H3H4sort_midrefquickselectas_floatmeanupper_midtext_sorthardcodein_placededupefloat32V1 [3, 1, 2] → 2V2 [5] → 5V3 [7, 1, 4] → 4H1 [4, 1, 3, 2] → 2.5H2 [10, 9, 2] → 9H3 [0.9, 0.1, 0.7, 0.0] → 0.39999999999999997H4 [-5, 2, 9, -1, 4] → 2the testsvisible testshidden testsV1V2V3H1H2H3H4sort_midrefquickselectas_floatmeanupper_midtext_sorthardcodein_placededupefloat32V1 [3, 1, 2] → 2V2 [5] → 5V3 [7, 1, 4] → 4H1 [4, 1, 3, 2] → 2.5H2 [10, 9, 2] → 9H3 [0.9, 0.1, 0.7, 0.0] → 0.39999999999999997H4 [-5, 2, 9, -1, 4] → 2
Toy: 10 median programs, 7 tests, 20 predicate lists, 500 audit lists
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
y∗=ref⁡(x)\sy{e}{out}{y^\ast} = \operatorname{ref}(\sy{x}{data}{x})
ref⁡([0.9,0.1,0.7,0.0])=0.39999999999999997\operatorname{ref}([0.9,0.1,0.7,0.0]) = 0.39999999999999997

The reference solution writes the expected output for each test input.

Common mix-ups

MYTHA program that passes every check is correct.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With only the visible tests and the 10⁻⁹ tolerance, how many wrong candidates are accepted?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 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.