Expected comparison facts are assertions only.

highlighted = computed this step

Honest by construction

Expected comparison facts are assertions only.

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

Render checked rows

The guarded comparison renders 2 TRUE output rows after recomputation.

checked rows=2\text{checked rows}=2

Comparison 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 rowsidnameqtycity1alpha3Austin2beta7Boston3gamma7NULL4delta10Denver5epsilonNULLAustin Comparison result per rowsourceleftValueoprightValuetruthoutputRole03eq7FALSEdropped17eq7TRUEkept27eq7TRUEkept310eq7FALSEdropped4NULLeq7UNKNOWNdropped WHERE-style TRUE-only output rowsidnameqtycity2beta7Boston3gamma7NULL Comparison factsfactvalueinputRowCount5trueCount2falseCount2unknownCount1outputRowCount2droppedRowCount3orderedComparisonnowhereKeepsTRUE_only_source_order

Try to tamper

Wrong expected facts, derived sidecars, missing columns, unsupported ops, bools, floats, and mixed ordered comparisons fail closed.

tamper rejected\text{tamper rejected}

Summary

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

scoped comparison model\text{scoped comparison model}