Repository navigation
Wave-4-A — find_witness enumeration and coercion_fold identity-MVP body fill #3473
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e87f3d9
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls 88fe2d2
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls e6b9c07
fix(v4): keep witness predicates fail-closed
briansrls f387b7a
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls 35784a8
Merge origin/main into Wave-4-A
briansrls a6abe14
Tighten find_witness predicate evidence
briansrls 20db35f
Gate equality witness by preservation rule
briansrls a9570c3
Mark narrowed find_witness predicate scaffold
briansrls 1273d23
Flatten declared inhabitant candidates
briansrls d5e292a
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls 684ee62
Route declared candidates through coercion surface
briansrls 625f2e6
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls fc74b0a
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls bd676d4
Assert find_witness identity MVP behavior claims
briansrls 96c8e92
Merge remote-tracking branch 'origin/main' into session/swift-lark-412
briansrls 9d8141f
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls 59b6d9f
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls 46f6599
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls 10f0ca2
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls 83208c5
WIP: Wave-4-A — find_witness/solve_constraints/coercion_fold BODY fil…
briansrls f091757
Resolve translate conflict markers
briansrls 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
Oops, something went wrong.
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: coercion_candidate_set_from_declared_inhabitants mints CandidateSet.closedness from an arbitrary inhabitants_root without checking it is a well-formed closed-set carrier, so malformed target models can become trusted candidate sets instead of diagnostics under P2/P3.
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.
Verified valid and fixed on current PR head
46f65997.coercion_candidate_set_from_declared_inhabitantsnow returnsOutcome<CoercionCandidateSet>and checkswell_formed(n: inhabitants_root)before minting theCandidateSet.closednesswitness. Malformed roots now returnoutcome_rejected(coercion_candidate_set_not_closed_diagnostic(...))instead of becoming trusted candidate sets.06_translate.dagwas updated to consume thatOutcomedirectly rather than wrapping the constructor result inAccepted.Verification run for this fix:
python3 scripts/test_strict_deprose_dag.py: PASSpython3 scripts/strict_deprose_dag.py --check: PASSgit diff --check: PASSrg -n "import v4\\.lens" src/v4/compiler src/v4/std: no matchescargo test -p v3-compiler --test integration v4_bin_main_dag_smoke_test::v4_bin_main_dag_tokenizes_and_parses_with_trampoline_source_anchor -- --exact --quiet: PASS remotelycargo test -p v3-compiler --test integration v4_compiler_emit_translate_smoke_test -- --quiet: PASS remotely— sent from swift-lark-412