Side experiment / reference evaluator
A simpler engine.
A clearer set of rules.
We built a simpler program to study how SQL should work. It is slower than the main engine, but selected operations have computer-checked proofs. It can also provide comparison answers for supported questions.
The reference evaluator is not publicly released. Release timing is still to be decided.
A checking tool alongside the fast engine.
A supported SQL query → Reference evaluator → A comparison answer
This reference program is separate from the engine in the alpha packages. Comparing their answers can reveal mistakes. Matching answers on a test do not prove that the fast engine is always correct.
The measurements below tested only the reference program. They did not compare it with the fast engine.
How far does the reference reach?
How much of the test collection could the reference handle with matching answers? The collection has 7,421,339 records in 622 files. A record is one entry in those test files.
The points show successive milestones, not time spent. Coverage grew both when proofs expanded and when the program accepted more kinds of queries.
Move over, tap or focus a point to read what changed. Use arrow keys to move and Enter or Space to select. Only the points show measured results.
All measured results as a table
| Milestone | Matched / all records | Coverage | Evidence |
|---|---|---|---|
| 1. Baseline | 388,825 / 7,421,339 | 5.24% | Measurement summary (JSON) |
| 2. Unary plus and constant SELECT | 1,624,341 / 7,421,339 | 21.89% | Measurement summary (JSON) |
| 3. DISTINCT plus broader column admission | 2,427,379 / 7,421,339 | 32.71% | Measurement summary (JSON) |
| 4. Whole-table aggregates | 2,997,068 / 7,421,339 | 40.38% | Measurement summary (JSON) |
| 5. CASE/IN/BETWEEN/ABS | 3,710,253 / 7,421,339 | 49.99% | Measurement summary (JSON) |
| 6. ORDER BY/LIMIT | 4,022,499 / 7,421,339 | 54.20% | Measurement summary (JSON) |
| 7. Exact decimal comparisons | 4,964,030 / 7,421,339 | 66.89% | Measurement summary (JSON) |
| 8. GROUP BY and HAVING | 5,086,352 / 7,421,339 | 68.54% | Measurement summary (JSON) |
| 9. IN and NOT IN subqueries | 5,169,602 / 7,421,339 | 69.66% | Measurement summary (JSON) |
The latest result covers 69.66% of all records. This is the reference program’s test coverage, not the share of fast-engine code proved. Counting only the 5,939,714 eligible records gives 87.03%; the chart keeps all records in its total.
No wrong outcomes were observed in these reference runs. The fast engine was not checked in these runs, so these results make no correctness claim about it.
Specific properties, with explicit boundaries.
A proof needs a precise rule. Here are examples of the rules checked for selected reference operations. NULL means a missing value in SQL.
Versions, assumptions and sources
The historical reference measurements reach development version v11. An earlier source-only experiment linked v9. The evaluator and its proof workspace are not part of the public repository or packages; the Python and Rust alpha packages contain the fast engine only.
There are limits. Decimal comparisons still rely on an unproved assumption about which inputs safely match SQLite’s number behavior. The code that reads SQL, translates it, prepares data and compares answers is trusted separately, as are the compiler and proof tools. A higher coverage percentage does not remove those assumptions.
DISTINCT receipt · Aggregate receipt · Ordering receipt · Subquery receipt
A research path, with work still ahead.
The fast engine has a public repository, but this separate reference evaluator is not publicly released. We are still exploring how to make the experiment useful and reproducible. A separate release is not scheduled.
