Basalt bridge mockup#13
Merged
Merged
Conversation
Replace the HasType/WellTypedStmt running example with HasType/WellFormed which genuinely exercises all three mechanisms: backtracking (multiple constructors per type), DecOpt checkers (n ≠ 0 guard), and sub-generators (WellFormed calls HasType via BacktrackGenFor). Document changes: - Swap Sections 4 and 5 so DecOpt is defined before the generated code - Add unconstrained generator derivation (derive Arbitrary → GenFor) as Section 6, removing it from Known Limitations - Add fuel/size/partial_fixpoint discussion to Design Notes - Update all cross-references and proof sketches Test file changes: - Consolidate BridgeMockup.lean and BridgeDecOptMockup.lean into a single BridgeBacktrackMockup.lean that demonstrates all mechanisms - Include both status-quo (Specimen trace output) and migrated code - Add unconstrained generator (Tree.gen with frequency) example - Rename Generator/BacktrackGenerator to GenFor/BacktrackGenFor throughout
…rrected backtrack combinator; writeup in doc
ea998f7 to
0b86370
Compare
Collaborator
|
This looks good to me! We can discuss more specifics with @joscoh during our meeting tomorrow |
ngernest
previously approved these changes
Jun 9, 2026
joscoh
reviewed
Jun 9, 2026
joscoh
approved these changes
Jun 10, 2026
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.
Description of changes: Added a couple of documents planning out Specimen development work. In particular: 1/ a plan to make its output compatible with Basalt, a semantic property testing framework, and 2/ a discussion about generator configuration. Also included are some testfiles that mockup the change outlined in the first document.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.