B-tree Pages
Honest by Construction
The B-tree and search path are recomputed before rendering.
Honest by construction
The lesson author supplies inserts and optional expected checks. The engine recomputes the tree and recomputes any search path before rendering. Note: an expected value can only reject a mismatch; it cannot create the answer.
Compiled tree
The recomputed tree has key count 6. Note: the structure in the diagram comes from inserts, not an authored tree.
a page models a node; real B-trees tune fanout to disk pages; tiny exact trees prove structure/search behavior only - no I/O or perf claims.
Compiled search
The recomputed search uses 3 comparisons. Note: a wrong authored path is rejected during the lesson self-test.
a page models a node; real B-trees tune fanout to disk pages; tiny exact trees prove structure/search behavior only - no I/O or perf claims.
Compiled scan
The recomputed scan emits 6 keys. Note: a wrong authored scan is rejected during the lesson self-test.
a page models a node; real B-trees tune fanout to disk pages; tiny exact trees prove structure/search behavior only - no I/O or perf claims.
Tamper guards
The self-test also rejects a wrong authored tree, a wrong authored search path, a wrong authored scan, and a derived height sidecar. Note: expected values can guard the recompute boundary, but cannot become rendered facts.
Summary
The trust boundary is recompute first, then render. Note: a page models a node; real B-trees tune fanout to disk; no I/O or perf claims.