Evidence words: how strongly something is checked
When Thunder tells you something is checked, it uses one of five words, always with the same meaning, and says what the evidence was. The words describe the evidence, not how confident anyone feels. Many passing tests are still Tested, never Proven.
| Word | Means | Example |
|---|---|---|
| Proven | Holds for every possible input: checked exhaustively, or proved by a solver. | thunder write: the edited step's code tree is exactly what the edit says, and every other function's tree is unchanged. That is a fact about the code's shape, true whatever the inputs. |
| Tested | Passed on the cases that ran, and only on those. Other inputs were not tried. | A guarantee whose named test passes its declared cases. Two versions of a rule giving the same answer on every edge case Thunder tried. |
| Partially checked | Some parts are checked and passed; others are not checked yet. Each unchecked part is named. | A guarantee with two named tests, one that ran and passed and one that only runs in target mode. Steps whose wording and code match, but which were not run. |
| Unverified | Nothing checks it yet. | A guarantee that names no test, or names one that cannot run here. |
| Violated | A check failed: there is a case where it does not hold. The case is shown. | A named test fails. A rule gives a different answer for some input. |
What Thunder can prove today, and what it can't#
There is no solver in Thunder yet, so Proven is used only for structural facts that are true for every input: the code's tree is exactly what was asked, or unchanged. Every check that runs code (tests, edge cases, running two versions of a function, cross-language conformance) is Tested, and says how many cases ran. Solver proofs come after 2.0.
Where you see them#
thunder test <file> --contractsandthunder prove: each guarantee and prohibition, with the test that checked it.thunder provewrites the evidence record (*.thunder-proof.json).thunder same: Tested when rules were run on edge cases (with the count; when there are more cases than the limit, it says how many of how many were tried), Partially checked when steps were compared only by reading.thunder review: a rule whose code changed but whose answers match on every edge case tried is marked Tested; "Only the form changed" is kept for code that is identical apart from spacing, comments, or its own names.thunder write: Proven for the code's shape, Tested for--testand--behaviourruns, Violated when either fails.thunder coverageandthunder reportcount claims that name a check. Naming a check is not running it, and they say so.- The proof matrix, the Atlas, and the playground use the same words.
For tools#
Machine fields keep their values so existing tools keep working: an obligation's status is still verified,
failed, declared, or unverified, and intent-proof-v1 claim statuses are unchanged. Next to them:
- Each obligation (
resolveObligations) hasevidenceLevel(tested,partial,unverified,violated) andevidenceWord, and the result counts them inevidence. - Each claim in an intent-proof-v1 file has
evidenceLevelandevidenceWord. thunder same --jsonhasevidencefor the whole comparison and for each item.- evidence-event-v1 claims carry
evidence, and anintent.provenpayload has the combinedevidence.evidenceType: "tool_verified"names the layer (a deterministic tool made the event), not how strong the evidence is.
The words and the rule for combining them are a library call, from @skillstech/thunderlang/program:
import { EVIDENCE_WORDS, evidenceWord, combineEvidence } from "@skillstech/thunderlang/program";
evidenceWord("partial"); // "Partially checked"
combineEvidence(["tested", "unverified"]); // "partial"
combineEvidence(["tested", "violated"]); // "violated": a failed part decides