How Crow's Compiler Is Tested
Summary
Crow's compiler has two backends over one intermediate representation, and the central fact of its testing is that agreement between them is necessary but not sufficient: backend agreement catches divergence, reference implementations catch mistakes both backends share, build-time invariants catch malformed intermediate code, and measurement catches programs that are correct and slower. No one technique covers the others' blind spots, so all of them run on every push. Three worked examples follow the overview; the rest of the document is each technique with its scale, its limits and what it found. Counts are from the repository at commit d98c847 (2026-10-25); the evidence index at the end lists each artifact at that commit.
| Technique | Blind spot it covers | Scale |
|---|---|---|
| Differential testing of the two backends | A backend that diverges from the other | 291 parity programs, 214 book examples, 29 served pages, 8 package examples, each run both ways |
| Fuzzing | Programs no author writes on purpose | 20 generated programs of 20 cases and 50 with planted mistakes per push, fresh seeds; 3,000 random token strings |
| Self-check from the compiler's tables | Builtins and kinds no hand-written test combines | 10,140 generated cases under five configurations, 512 builtin rows and 67 forms enumerated, right answers from numpy and libm |
| Build-time invariants | Malformed intermediate code, a missing case for a kind, a hand-kept list | The IR verified in every build; exhaustive matches enforced by the type checker; 1,907 unit tests; coverage floors per crate |
| Reference conformance tests | A mistake both backends share in a kernel | Frames, 8 packages, each with its reference script and a stated criterion |
| Program verification | What a program written in Crow does, with no reference anywhere | Generated inputs, static analysis, derived baselines, recorded fixtures; 211 refused programs held to their messages |
| Measurement | A program that is correct and slower | 8 benchmark programs against Rust, Go and CPython; one regression bisected across 24 commits |
The system under test
The compiler is one front end, one typed intermediate representation (IR) and two backends that read it: a register-based interpreter, and an emitter that prints the IR as a Rust program and builds it at optimisation level 3 with link-time optimisation. The front end parses, expands, lowers, infers every type from use and validates; the programmer annotates nothing. The kernels both backends need, tensors, frames, the CSV reader, the database decoders, live in one runtime crate that both call.
Three properties of that design decide what verification can and cannot see:
- The IR carries every decision the backends act on: types, which loops run in parallel, where a value that can fail is unwrapped, the last read of each local, the width of each integer. A backend that departs from the IR is a backend defect; an IR that is inconsistent with itself points to a front-end or IR-processing defect, in inference, lowering, a transformation or the verifier itself.
- Two backends over one IR make differential testing cheap: any program is an oracle for the pair, and a disagreement narrows the investigation to the differences between the two execution paths. It also leaves the shared kernels as a blind spot, which the reference conformance tests and the self-check's right answers cover.
- Interval analysis on the IR decides integer width per place: a 64-bit integer where the range is proven to fit, an arbitrary-precision integer elsewhere. Both backends read the same conversions, so the analysis is one thing to verify rather than two.
The specification is the source of truth, read before a design and updated after, with 112 design notes recording each rejected alternative and its reason. The error messages and the mistake fuzzer read those notes as the rules a program is refused by.
Three stories
Each story runs the same sequence: trigger, the checks it escaped, the technique that caught it, the root cause, the fix, and the test that guards it.
Backend disagreement: a loop whose body can fail. The differential fuzzer, seed 1791422055, generated a loop whose body unwrapped a value that can fail into a boolean, inside a function that answers a result. Every hand-written parity program and the unit tests had passed, because no author writes that shape on purpose. The two backends disagreed on output: the compiled program ran the loop in parallel and the interpreter in order, so which failure left the function depended on the backend. Root cause: a round on another thread cannot return from the function, and the rule that keeps such a loop in order had been applied by one backend only. Fix: the rule moved into the lowering, so the IR says the loop is ordered and both backends read it. Guard: parity program 198 and the fuzzer's seed, recorded.
A shared wrong answer: TF-IDF weights off in the last digit.
Holding the retrieval package to scikit-learn, 77 of 214 weights differed in the last digit while both backends agreed with each other exactly. No differential test could see it. The reference conformance test could, because it compares against the reference's numbers, not against the other backend. Root cause: scikit-learn's float64 row-normalisation kernel, in the arm64 wheel tested, holds one fused multiply-add where Crow summed and multiplied separately; the wheel was disassembled to confirm it. Fix: an fma
builtin, and the sum written with it in the reference's first-seen order, after which none of the 214 differed. Guard: the fixture and the holding run in the gate with no Python present.
Correct but slower: a lookup on every call. When hand-kept lists of builtin properties were replaced by scans of the builtin table (commit e967633), every functional suite stayed green for three days while the interpreter ran n-body four times slower. Measurement caught it: the published benchmarks were re-measured, the gap bisected across the 24 commits since the previous release with release binaries as the baseline, and a profile sorted by top of stack showed the table scan. Root cause: a builtin lookup by name on every call. Fix: an index built once (commit d3ee350). Guard: a unit test that measures the index against a scan in the same run, which guards against reintroducing this regression rather than proving constant time.
Differential testing
The interpreter and the compiled program must produce identical results for every program, and the gate enforces it on every push.
| Suite | What runs | What is compared |
|---|---|---|
| Parity corpus | 291 programs, one per language feature or fixed defect | Standard output; a program both backends stop at the same line with the same runtime error agrees, a crash never does |
| The book | All 214 code examples, in both modes | Output against the text printed in the book |
| Served pages | 29 web pages driven through the same clicks | What each page settles on, the HTML normalised |
| Packages | Each package's tests, and its example in both modes | A test block runs interpreted, so the example is what holds the package to the compiled program |
| Reference apps | Two example applications from recorded fixtures, no model running | The same tests in the interpreter and against the compiled program |
| Self-check configurations | Every generated case under five configurations | All five answers identical, and equal to the reference where one exists |
The five configurations are: interpreted; walked, meaning every function body is run by the general tree walker and every loop in order, with the prepared instruction form switched off; unfused, with the fused element-wise kernels switched off; unmoved, with move placement switched off; and compiled. Switching one optimisation off at a time means a disagreement names the optimisation that caused it.
The corpus policy that keeps a comparison meaningful: every parity program logs what it checks, and a program that prints nothing in either mode fails, because two silent runs compare nothing and would also pass if both had done nothing. Termination and exit status are checked separately, through the runtime-error line and the crash rule.
What differential testing cannot see is stated plainly in the documentation: in the week the standard library moved from Rust into Crow, the suites found eleven defects, every one where the two backends differ and none in the kernels they share. That is the gap the next two sections close.
Fuzzing
Two program generators and one token fuzzer run on every push, each with a fresh seed that the report names, so any run can be repeated exactly.
- The differential fuzzer
generates whole programs from a seed: values of six kinds, maps and records, parsed JSON documents spliced into text, the text, list and map builtins, conversions read through
.ok, branches, loops, functions, predicates handed by name, frames, CSV and SQLite inputs. Each program gets a user module beside it, and every tenth program a served page driven through the page harness. A disagreement keeps the program undertarget/crow_fuzz/with the first line the backends differ on. - The mistake fuzzer plants one mistake per generated program, a wrong kind, a missing import, a habit from another language, and checks that both backends and the language server refuse it with the message the design notes say.
- The token fuzzer sends 3,000 strings of random tokens through the front end and requires no panic.
What makes the comparison valid. Generated programs are constrained so that a disagreement is unambiguous, the role Csmith's avoidance of undefined behaviour plays for C. They read no clock and no network and draw no random numbers: every value in them comes from the seeded generator that wrote the program; files and SQLite databases are the program's own, created by it; floating-point values print through the one runtime formatter both backends share, so a difference in the last digit is a real difference; the compiled side builds in the development profile, so an integer overflow stops instead of wrapping and is compared as a runtime error. Output, the runtime-error line and whether the program crashed are compared; a difference in any of them fails. A program both backends refuse with the same message is "refused alike" and passes; a refusal the generator itself provoked is a generator defect, recognisable because the message names a rule the generator should not have broken, and is fixed in the generator.
The fuzzer's finds become parity programs with their seed recorded: the loop in the first story (seed 1791422055, parity 198), a tensor added to a value that can fail printed as a bare +
the Rust compiler had no rule for (parity 169), and a name the core and the math module share typed as nothing known when its argument could fail (seed 1792144449, parity 250).
Self-check: cases generated from the compiler's tables
crow check --self
enumerates its cases from the compiler's own tables, so the space it tests grows with the compiler: a new builtin, kind or syntax form is tested the day it exists, or the gate names it as untested.
Generation.
Each of the 512 builtin rows and 67 forms is crossed with every kind it declares it takes; every collection kind with every index form; every operator with every operand pair; a pair/
family varies two parameters at once over the edge values (0, a negative, past the end, past 64 bits, a float, empty text, an empty list, a vector, a matrix, a value that can fail), because one parameter at a time had never met slice[m, -1, 3]
of a matrix. Further families generate routes and responses, views, page state driven through events, file operations in a directory per case, random draws held to their distributions under a fixed seed, gradients, the GPU, the language-model client against a model of the check's own, tokens, sockets and mail against servers the check starts on the loopback, and the database drivers against a scratch Postgres and a ClickHouse stand-in.
Execution and budgets.
10,140 cases at the last zero-finding commit (e3ec5df, 2026-10-17). About half are refusals the rules require: a builtin handed a kind it does not take must be refused, in the same words, in every configuration. The rest are lowered in process on a thread of their own, a panic being a finding, and run in batches under the five configurations, one function per case with its own copy of every helper so a Rust compile error lands in its case. Every process is held to a memory budget (the machine's RAM less 9 GB in all, 1 GB each), 30 seconds and 1 MB of output; the first version ran sixteen range[2^63]
s
at once and took the machine down.
Independence.
Table-driven generation checks that the implementation paths honour the declared rules; it cannot check that the declarations are right, since a row that misdeclares the kinds it takes would make the generator omit the correct behaviour systematically. Two things check the declarations themselves: tests/self/reference.py
,
which answers each case from the specification with libm, numpy and Rust's float display, within a stated tolerance where the reference has one, skipping what it cannot answer rather than guessing; and the hand-written suites, written from the specification rather than from the tables. The denominators are reported: of the 512 rows, 194 run with no reference answer (agreement-only) and 20 are called by no case, each with its reason beside it.
Ratchets.
Findings are grouped by cause. tests/self/known.txt
lists those known and only shrinks: a new finding fails the check, and so does a line no run finds any more. It holds zero currently reproduced findings in the tracked set, after 217 were fixed between the first run and commit e3ec5df; that is not a claim of zero remaining defects.
What the reference answers found that agreement could not: factorial
and gamma
were a Lanczos approximation, so 3! was 6.000000000000007. What the generated families found: the response forms took any value ( respond[65736, …]
answered 200 compiled and 599 interpreted; text[3]
did not build), the compiled page could not draw most kinds of child and the two renderers escaped quotes differently, and a record fact's field written in a handler was lowered as a local. The remaining finds are in the appendix.
Invariants enforced in the build
Some properties are not tested by running programs; they are refused at build time or by a unit test that fails the moment the property breaks. One distinction governs how to read this section. The IR verifier checks that a lowered program is internally well formed: types resolved, every call made with the kinds its row declares, every failure's propagation explicit. A valid IR can still represent the wrong program, since a subtraction lowered where an addition was written is perfectly well typed. Differential and reference tests check whether the program computes the intended result on tested inputs. Neither establishes semantic preservation for all programs.
| Invariant | How it is held | Why it exists |
|---|---|---|
| The IR is consistent before any backend reads it | The verifier runs on every lowered program in every build, strict by default | A release binary had skipped the check for weeks and a lowering slip reached the backends silently; three unit tests looked flaky until the finding, real, turned out to depend on which shell exported the variable |
| Every rule answers for every kind | src/totality.rs
lists the places that must answer for each type, value and argument class; the type checker refuses to compile until a new variant is placed |
A new kind threads through rows, inference, lowering, both backends and the runtime; a forgotten arm is where the modes drift |
| One type, one resolver | One type enum; one rule for which row a bare name reaches, read by inference, the lowering and both backends | Two type enums with a lossy map, and a list written four times, had produced an IR that disagreed with itself |
| The compiler names no module and no builtin | src/freeze.rs
fails when a compiler file gains such a name; the list of names it may still mention only shrinks; a builtin's effects, options and shapes live on its row and nowhere else |
Hand-kept lists had held removed builtins, lacked new ones, and disagreed with each other |
| No row is shadowed | A unit test fails when a row's position makes it unreachable | str[column]
listed after the catch-all form had shown every column |
| Lowering is idempotent | A desugaring passes its own lowered form through unchanged | A second pass must not re-lower what the first produced |
| Builtin lookup by name stays indexed | A unit test measures the index against a table scan in the same run | Guards against reintroducing the regression in the third story |
| Unaudited explicit panic paths are forbidden in runtime code | clippy denies an unaudited unwrap
,
expect
or panic
in the runtime, web and database crates; a failure no value can carry stops through one path |
A coding policy, not a guarantee: indexing and dependencies can still panic, and the self-check treats any panic as a finding |
| Coverage does not fall | Every suite instrumented, with floors of 82, 87, 75 and 83 percent for the compiler, runtime, web and database crates; a listing of the match arms no suite reaches | A backend's fallback arm for what the lowering must never produce is where the next slip hides |
The coverage floor caught its own infrastructure once: a stale test executable left beside the day's build made the report read functions matching no profile, and the compiler's coverage fell from 82 to 50 percent while every test passed. The script now removes every executable under the instrumented target before it builds.
Reference conformance tests
The kernels both backends share cannot be checked by comparing the backends, so the frame library and each package ship with a reference script in Python and a stated acceptance criterion. The reference's answers are written once, tracked, and checked on every push with no Python present.
| What | Reference | Criterion | Cases |
|---|---|---|---|
| Frames | pandas 3.0 | Exact equality of every cell, in both execution modes | 38 |
| Models | scikit-learn | Exact where the fit is closed-form; within 1e-12 to 1e-15 of the reference on the fixtures where it iterates, the tolerance stated per model | one fixture per model |
| Optimisation | scipy.optimize | Exact point and value, and identical iteration and evaluation counts | 39 |
| Retrieval | scikit-learn, rank_bm25 | Exact equality | 214 TF-IDF weights, 192 cosines |
| Graphs | networkx | Exact equality | per algorithm |
| Vector search | faiss IndexFlatIP, numpy | The same neighbour positions, and the float64 inner-product scores | 300 vectors, 16 queries |
| Symbolic regression | PySR, sympy | Deterministic parts exact: every printed equation, evaluated by sympy on the same data, has the reported loss to 1e-12 and the scores follow PySR's rule; search outcomes compared per seed and reported as such | 4 seeds per benchmark function |
| A GPT | nanoGPT in PyTorch | Logits and losses within 1e-9 relative over twenty steps; tokens exactly | one run |
Exact equality means reproducing the reference's arithmetic, not its formula, and that is where the technique earned its keep. The findings below are bounded to the platform tested: scikit-learn 1.9.1 and scipy 1.18.1 from their macOS arm64 wheels for CPython 3.12, on an Apple M4 Max; other builds, flags or architectures can change the arithmetic.
- pandas's rolling kernels compile to fused multiply-adds on arm64, so the runtime uses
f64::mul_addwhere pandas writesa + b * c, and restarts a window whose squared sum collapsed, as pandas'sroll_vardoes. - scikit-learn's float64 row-normalisation kernel holds one
fmaddand no separate multiply or add. With a plain sum, 77 of the 214 TF-IDF weights differed in the last digit; with a fused sum in sorted order, 47; in the reference's first-seen order, none. The language gained anfmabuiltin for exactly that, and a plain sum differs from a fused one a third of the time. - scipy's sparse product holds one
fmaddtoo: of 17 multi-term cosines, a plain dot differed in 3, a fused one in none.
The conformance tests were also the cheapest oracle the compiler had. The deduplicated tally, as of 2026-10-11, is 38 defects found through them: 30 in the compiler and its tooling, each now a parity program, and 8 in the library kernels, among them CSV booleans and quoting, a stable sort that put missing values last, typed aggregates, a join key, and Kahan and pairwise summation. What this evidence is worth is bounded by the reference and the fixture, which is the subject of a separate article on numerical reproducibility.
Verification of programs written in Crow
The techniques above hold the compiler. A program written in Crow usually has no reference anywhere, so the language carries its own verification, and the compiler's suites are built from the same machinery.
- Generated inputs.
A test block's parameters are generated, boundaries first; a truth under an
ifis checked where the precondition holds; a block that reaches no truth fails as "asserts nothing", because one of the language's own tests had passed for weeks with a line meant as a truth that was not one. - Static analysis.
crow checkfinds pure functions, unused names, unreachable code and loops it cannot prove terminate, then runs generated edge cases through the pure functions (ints, floats, text, booleans and lists of them; no shrinking, no coverage guidance) and keeps their answers as regression snapshots. - Schema-aware database checks. With a database URL the program's SQL is read against the schema the database enforces, and concurrency hazards are named: write skew, lost updates, one-way latches, reads assumed unique, unpaired writes.
- A derived baseline.
The baseline records selected structural and behavioural properties derived from the source: each handler's paths over facts and inputs, each view's conditional tree, each page's reachable states (searched over small abstract values, at most 4,096) and layout bounds at two widths, each file's reachable effects. A rename changes nothing in it; a guard flipped from
ltetoltor a button wired elsewhere shows as a diff. Behaviour outside its abstraction, and some behaviour-preserving rewrites, can move it or escape it. - Recorded fixtures. A scenario runs as a rehearsal in which nothing connects: database reads, HTTP requests and language-model answers are recorded once and replayed, writes recorded and never made, and the same fixtures run the tests where the servers are not, in both modes.
- Headless pages. A test opens a session, clicks handlers, changes inputs, and reads the rendered elements and the layout engine's boxes at a chosen width, with no browser; the layout engine itself is held to fixtures measured once in Chrome.
- Error messages held to the rules. 211 one-mistake programs are each held to the message both backends and the language server must print, and the mistake fuzzer plants the same classes of mistake in generated programs.
Performance verification and root-causing regressions
Three different things happen under the word benchmark, and they are kept apart.
- Correctness on every push. CI runs the benchmark programs in both modes at small sizes with no timing threshold, so the programs cannot rot and their outputs are compared like any parity program.
- Full measurements, by hand.
crow test --bench --writeruns the programs at full size in both modes and rewritesdocs/benchmarks.mdwith the machine and the commit, findings kept below the table. The cross-language table compares eight benchmarks-game programs against hand-written Rust, Go and CPython ports. - Automated regression gates. One: the unit test that measures builtin lookup against a table scan. There is no timing threshold in CI; a regression is found by re-measuring, as the third story shows.
The published metric.
Every number in the cross-language table is elapsed wall time of the whole process from launch to exit: start-up and reading the input from standard input included, compilation never, since every binary is built beforehand. For parallel programs that is elapsed time, not summed CPU time; the Rust and Go ports ran with sixteen threads where they take a thread count, and Crow's loops used every core. Each cell is the median of five runs with the range across the runs stated as a percentage of the median, on an Apple M4 Max with sixteen cores and 64 GB, crow 0.6.0, rustc 1.93.1 at optimisation level 3 with target-cpu=native
,
Go 1.23.0, CPython 3.12.12; every port's output was byte-identical on every run. Two measurements are diagnostic and appear in no published table: process-wide CPU time, used for the interpreter during development because elapsed time under a running suite was three times off, and instructions retired, which machine load does not move.
Regressions root-caused by measurement. Each was found by a number moving and explained by a profile sorted by top of stack, or by rewriting the generated Rust by hand one change at a time; the third story is the fullest account.
| Symptom | Cause | Fix |
|---|---|---|
| Builtin lookup on every interpreted call, 2–4× slower for three days | Hand-kept lists replaced by table scans | An index built once, guarded by a timing test |
str::replace
of one ASCII byte 3× slower under fat LTO |
LTO re-optimised the standard library's byte loop worse | The runtime writes its own loop for the ASCII pair |
| A byte-counting kernel 25× slower | The build's overflow checks kept a vector loop to one item at a time | wrapping_add
where it cannot overflow |
| Sixteen threads no faster than one on spectral norm | Every thread wrote the same reference counts on every call | A handle per chunk; the record layout interned, read with no count |
| n-queens 4.4× slower | A loop variable's integer range grew to unbounded under a narrowing condition, so it ran as an arbitrary-precision integer | The interval analysis joins only the bounded sides |
mach_absolute_time
at the top of a parallel profile |
macOS's allocator reads the clock in free
|
mimalloc for the interpreter and every generated program |
Infrastructure
Nothing is called done until one gate passes locally, and CI runs the same gate on every push in three jobs: the suites (about two hours), the self-check (about an hour and a half) and coverage, every suite again instrumented (about an hour and a half). The gate's full order, the ratchet files and the runner's provisions are in the appendix.
The infrastructure has needed verification of its own, and three of its defects are instructive. The Postgres driver had never been tested on CI until the runner's PostgreSQL server tools were put on the PATH so the driver tests could start a scratch cluster. The GPU tests had skipped on every runner until Mesa's lavapipe gave CI a Vulkan device on the CPU. And a release binary had quietly needed OpenSSL on Linux while the documentation said otherwise; CI now checks that the binary links only the system's own libraries.
Two rules of work the infrastructure enforces: every defect fix ships with the test that reproduces it, and new behaviour gets a parity program. A find by the fuzzer or the self-check becomes a parity program with its seed or case recorded. The documentation is part of the gate: every builtin is held to the specification and every specification row to the compiler, each with a verified book example, and the book's 214 examples run in both modes on every change.
Representative defects
Each row is a defect that escaped the other checks then in place and was caught by the technique named; the three stories above are omitted here.
| Defect | Caught by | What the checks in place had missed |
|---|---|---|
| Independent statements run in parallel waves gave a seeded script five different answers in thirty runs | A seeded program run repeatedly | The analysis saw variables, not the random generator, the clock or a file; any single run passed |
| The release binary skipped the IR check for weeks | Three unit tests that looked flaky | The finding was real; only one shell exported the variable that enabled the check |
factorial
answered 6.000000000000007 for 3! |
The self-check's reference answers | Both backends agreed with each other |
respond[65736, …]
answered 200 compiled and 599 interpreted |
The self-check's routes family | No hand-written test had passed a number where text was meant |
| The compiler's coverage fell from 82 to 50 percent while every test passed | The coverage floor | A stale test executable was read by the report; a number caught what no test could |
| CI's unit-test step ended with exit 143 on Linux only | Root-causing a lost coverage runner | kill -SIG -<pgid>
under procps 4.0.4 reads a group id beginning with 1 as kill(-1)
;
macOS's kill
reads it right |
What is and is not formal, and how it maps to AI-compiler verification
Nothing here is a machine-checked proof: there is no theorem prover, no SMT solver, and no bounded translation validation of the kind Alive2 performs for LLVM. The IR verifier establishes that a lowered program is well formed; differential and reference tests establish that it computes the intended result on tested inputs; neither establishes semantic preservation for all programs. What exists sits between testing and formal methods, and each piece has a counterpart in the verification of AI compilers.
| Requirement in AI-compiler verification | What Crow has | Where it stops short |
|---|---|---|
| Formal specifications | A specification that is the source of truth, with 112 design notes recording each rejected alternative; an IR design document; a documentation check that holds the specification and the compiler to each other | Natural language, not a mechanised semantics |
| Operator and tensor semantics | Every builtin declares on its row the kinds it takes, the shape pattern of the tensor it answers, the range of the integer it answers, its effects and whether it is differentiable; the compiler reads the row and nothing else | Declared and exercised by generated cases, not proven; the declarations themselves are checked only by the reference answers and the hand-written suites |
| Semantic preservation across lowering and optimisation | A typed IR verified in every build; interval analysis both backends obey; the parallel-loop decision made once in the IR; configurations that switch one optimisation off at a time | Well-formedness per program plus agreement on tested inputs, not a proof |
| Code equivalence | Two backends over one IR, compared on 291 programs, 214 examples, 29 pages and generated programs | Agreement is necessary, not sufficient; shared kernels need the reference tests |
| Numerical behaviour | Exact conformance to pandas, scikit-learn and scipy on the tested platform, with the fused multiply-add and summation-order findings; a rule that a float never meets an exact number silently | Tolerances where the reference's arithmetic cannot be reproduced; one architecture tested |
| Adversarial and generated workloads | Two program fuzzers with fresh seeds per push; the self-check's pair family over edge values; memory, time and output budgets | No coverage-guided fuzzing; no input shrinking |
| Static analysis and automated debugging | Purity, termination, reachability and schema hazards without running; a derived baseline that reports what else a change changed; a finding placed in the case and configuration that produced it | Termination is best-effort |
| Root-causing regressions | Benchmarks recorded with machine and commit, re-measured, bisected with release binaries, profiled, confirmed by hand-edited generated code; the fix guarded by a test | One machine, five runs per measurement, no timing gate in CI |
What this work does not demonstrate. The work is relevant to AI-compiler verification, not evidence of equivalent coverage. It does not cover GPU hardware execution beyond a software Vulkan device; mixed-precision or reduced-precision arithmetic; tensor fusion beyond element-wise chains, layout transformations or device memory behaviour; hardware-specific concurrency and nondeterminism; or large model workloads across devices and toolchains.
Appendix: evidence index
Every path is at commit d98c847 (2026-10-25).
| Artifact | Where |
|---|---|
| Parity programs (291), including 169, 198, 250 and 268 named above | tests/parity |
| Refused programs (211) with their expected messages | tests/errors |
| Self-check: generator and families | src/selfcheck |
| Self-check: reference answers, ratchet lists | tests/self; the zero-finding commit is e3ec5df |
| Differential and mistake fuzzers | src/fuzz.rs |
| IR verifier, totality, freeze, interval analysis | src/ir_verify.rs, src/totality.rs, src/freeze.rs, src/int_width.rs |
| Frames held to pandas | tests/frames and parity 185 |
| Package reference scripts | packages, each under reference/
|
| Coverage script and floors | scripts/coverage.sh |
| CI workflow (the gate's order) | .github/workflows/ci.yml |
| Benchmarks recording | docs/benchmarks.md |
| The table-scan regression and its fix | e967633, d3ee350 |
| Design records | docs/language-spec.md, docs/bug-classes.md, docs/automatic-verification.md, docs/crow-check.md |
The gate, in order. Unit tests with the IR verifier strict; clippy with unaudited panics denied in the runtime crates; the 211 refused programs; the 291 parity programs; the packages; 20 fuzzed programs and 50 with mistakes; the self-check; the 29 served pages; the documentation check; the 214 book examples; the book's own site; the layout engine against its browser fixtures; the frames against pandas; every standard module written in Crow tested on its own; the two reference applications from their fixtures in both modes; coverage against the floors.
Ratchet files, each changed only by a blessing that keeps the reasons written.
tests/self/known.txt
(findings known: zero),
not-called.txt
(20 rows),
agreement-only.txt
(194 rows),
forms.txt
(syntax forms no case reaches: none);
tests/freeze/names.txt
(module and builtin names the compiler may still mention, only shrinks);
the coverage floors.
Other self-check finds. A select bound to a fact accepted any value a forged event sent; a field asked of a value that can fail was refused nowhere; the io cases sharing one directory made answers depend on the cases before them; a loop over a column was typed differently by the lowering and the emitter (parity 268); a trailing window over timestamps that go backwards summed rows by no reading of "trailing", and now stops saying where.
