Repository navigation
Extract real-world BST model and pointer-machine simulation - #3
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This extracts the real-world BST foundation onto current main so the book can use it independently of the unfinished paper formalizations.
The semantic model has fixed finite control, bounded words and local node access, with separately charged machine time and BST operations. Its connection to the pinned CSLib Frontier Tarjan pointer machine proves all six parent-linked BST primitives and compiles an entire finite controller into one program. Successful requests taking T source steps take at most 19T + 3 target instructions; sequences cost at most 19T + 3m. The compiler preserves exact record count and uses fixed code and register counts.
Includes the public audited interfaces, four regression suites (represented trees, rotations, metadata, repeated requests and failed checks), and a Models chapter with links to the checked declarations. The existing CSLib/mathlib pins are unchanged; Frontier is pinned at 86efa56d47a44812fab049080fba87d7635db63b.
Scope: forward simulation assumes positive word width and an existing representation of a nonempty tree. Initial heap construction and its cost, source total service/proportional time, and the algorithm-specific Theorem 7 and ComboBST preservation proofs remain open. No unrelated finger-paper modules are included.
Validation:
lake build --wfail(library, regressions and abstract/axiom audits).cd book && node scripts/extract.mjs && npm run check(declaration extraction, book build/lint, 30 tests, page checks).git diff --check.