Expected BETWEEN facts are assertions only.

highlighted = computed this step

Honest by construction

Expected BETWEEN facts are assertions only.

compiler is source of truth\text{compiler is source of truth}

Render checked rows

The guarded BETWEEN range renders 3 TRUE output rows after recomputation.

checked rows=3\text{checked rows}=3

BETWEEN examples are tiny finite-table transforms with SQL-style TRUE/FALSE/UNKNOWN results; SQL dialect completeness, type coercion, optimizer behavior, indexing, and product claims are out of scope.

Honest by construction: base rowsidnameqty1small32edge-low53middle74edge-high95large126missingNULL BETWEEN result per rowsourcetestedValuelowerupperrangePositionbaseTruthtruthoutputRole0359belowFALSEFALSEdropped1559insideTRUETRUEkept2759insideTRUETRUEkept3959insideTRUETRUEkept41259aboveFALSEFALSEdropped5NULL59unknownUNKNOWNUNKNOWNdropped WHERE-style TRUE-only output rowsidnameqty2edge-low53middle74edge-high9 BETWEEN factsfactvalueinputRowCount6trueCount3falseCount2unknownCount1outputRowCount3droppedRowCount3belowCount1insideCount3aboveCount1equalEndpointRangenonegatednowhereKeepsTRUE_only_source_order

Try to tamper

Wrong expected facts, derived sidecars, missing columns, malformed ranges, bools, floats, and mixed-type ordered values fail closed.

tamper rejected\text{tamper rejected}

Summary

The book shows exact finite BETWEEN behavior only; product SQL behavior is outside the model.

scoped BETWEEN model\text{scoped BETWEEN model}