25 — Exhaustiveness: the one question of three a compiler answers
After this lesson you will be able to name the three different questions people mean by "is this union handled everywhere", say which one a compiler answers and why answering it so well makes the other two look answered; write the signature that turns a hand-kept list into a checked claim, and say why an annotation and a satisfies clause both fail at it; explain why a type and a schema describing one shape must have one of them derived from the other, and say which direction of drift is loud and which is silent and precisely why; read a completeness check and judge how strong it is by asking what its second source is — including the case where the second source is a third copy; say what it costs a project that the strongest check in its repository and the weakest one both look, at the call site, like a list of strings; and name the door a completeness check closes and the two it cannot, using a fault in this runtime that survived being fixed.
Prerequisites: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24.
Lesson 24 ended with a question to carry into an eighth Part V seam: when your system cannot answer, what does it return — and who would notice if it started returning that when it could?
This lesson takes that question to the checker every one of the previous seven took for granted. Every Part V lesson so far has been about something the runtime could not check — a scope it could not see, a word it could not interpret, a document in somebody else's registry. Underneath all of them sat a checker nobody questioned, because it is the one that runs before any of this code does and the one whose silence everybody reads as approval.
The compiler answers exactly one of the three questions you can ask about a closed set. When it cannot answer the other two, what it returns is nothing — and nothing is the same output as a pass.
Reading what you have done so far…