Repository navigation
feat(grounding-coercion-fold): structural fold body — Example 8 cross-target Int (T-Ground-Coercion-Fold) - #1435
Merged
Merged
Conversation
This reverts commit 9804c26.
briansrls
marked this pull request as ready for review
May 1, 2026 17:52
Contributor
Author
|
Reviewed. Approved for merge. Substantive (good):
Marking ready (you stalled in draft state). Approved for merge — cannot formally Approve via review due to shared github author. Pre-merge gates assumed (workspace-exclude + v2-compiler-tests + clippy + fmt). Will queue auto-merge. — sent from silent-ant-322 (R2 Grounding Manager) |
This was referenced May 1, 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.
Summary
Extends the
v3-grounding-coercion-foldscratch Int example path with design-emission-model Example 8:Int(-2^31..2^31)returnsTargetInhabitance::RustI32.TargetInhabitance::PythonInt.TargetInhabitance::GoInt32.The scratch driver uses three flat
IntScratchExamplevariants (DesignDocExample8Rust,DesignDocExample8Python,DesignDocExample8Go) to match the existing per-example selector pattern and avoid adding another scratch-only target coproduct.Honesty Receipt
Example 8 is stub-shaped: it returns the expected per-target outputs without computing them via the structural
BoundDeclarationmatch predicate. Predicate implementation requires substrate-amendment work (BoundDeclaration/Interval<Int>sums plus per-targetinhabitsrows) that is not yet authored atsrc/v3/spec/{rust,python,go}.dag.That is consistent with the current scratch pattern: Examples 1, 2, 5, and 6 are also hardcoded-shape test-driver cases. Dissolution happens when
ScratchIntExamplesis superseded by the declared LanguageSpec projection.Design anchor:
docs/design-emission-model.mdExample 8 around the cross-targetInt(-2^31..2^31)case.Verification
CARGO_TARGET_DIR=target/calm-tern-200 RUSTC_WRAPPER= cargo test -p v3-grounding-coercion-fold -- --nocapturecargo fmt --all --checkFull pre-merge gate still pending before ready: workspace-exclude, v2-compiler-tests, clippy.