Repository navigation
T-4: canonical-B per-primitive grounding exemplar (unblocks Phase-3 ts/py) #3421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
37 changes: 37 additions & 0 deletions
37
src/v4/test/claim/manual/rust_primitive_grounding_anchor.dag
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| // src/v4/test/claim/manual/rust_primitive_grounding_anchor.dag | ||
| // Scope: Canonical-B per-primitive grounding/coincidence compile exemplar (operator A-vs-B=B). | ||
| // Owns: rust_anchor_* type/data aliases for bool decl-ref, never primitive coincidence, i64 fact-bundle vs std Int64. | ||
| // Consumes: extdeps/languages/rust.dag, std/logic, std/cardinality, std/integer, std/algebra. | ||
| // Status: compile-only groundedness testcase — depth bar for T-4 Phase-3 typescript/python slices. | ||
| // Anchor: docs/modeling/grounding-worked-examples.md §0; INVARIANTS P1 hollow-alias / coincidence bar. | ||
|
|
||
| module v4.test.claim.manual.rust_primitive_grounding_anchor | ||
|
|
||
| import v4.extdeps.languages.rust { | ||
| rust_bool_grounding, | ||
| RustNever, | ||
| RustIntKind, | ||
| RustIntWidth, | ||
| RustScalar | ||
| } | ||
| import v4.std.algebra { BooleanAlgebra } | ||
| import v4.std.cardinality { Never } | ||
| import v4.std.integer { Int64 } | ||
| import v4.std.logic { Bool, bool_boolean_algebra } | ||
|
|
||
| // §0 base case — canonical-B decl-ref: language bool → single std authority (not GroundingMap spelling). | ||
| data rust_anchor_bool_grounding: BooleanAlgebra<Bool> = rust_bool_grounding | ||
| data rust_anchor_bool_std_authority: BooleanAlgebra<Bool> = bool_boolean_algebra | ||
|
|
||
| // §0 degenerate case — primitive coincidence: Rust `!` is std `Never` (no build-up above the primitive). | ||
| type rust_anchor_never_coincidence = RustNever | ||
| type rust_anchor_never_std = Never | ||
|
|
||
| // §0 classifier vs coincidence — `RustScalar.NeverScalar` classifies surface `!`; `RustNever` is the grounding target. | ||
| type rust_anchor_never_scalar_classifier = RustScalar | ||
|
|
||
| // §B refinement case — `RustScalar.IntScalar` fact-bundle (kind×width) vs std `Int64` coincidence target (fold-discharge, not alias). | ||
| type rust_anchor_i64_scalar_classifier = RustScalar | ||
| type rust_anchor_i64_kind_axis = RustIntKind | ||
| type rust_anchor_i64_width_axis = RustIntWidth | ||
| type rust_anchor_i64_std_coincidence_target = Int64 | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BLOCKING: The i64 exemplar names the whole RustScalar classifier instead of a concrete Rust i64 fact bundle, so it does not anchor the Rust Reference facts or the Int64 coincidence required by INVARIANTS P1 / modeling-discipline Practice 8.