Repository navigation
Conversation
Port branch isolation to main without losing its type-candidate joins. Generate result equality inside the selected branch instead of aliasing a source value to the shared output during translation; retain the existing edge-scoped branch handling. Add the thirteen branch examples and three checks for independent source values, candidate unions and prebound-result ordering. Make the native-arithmetic matrix tolerate renamed generated temporaries.
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.
Translating an inactive branch can bind a shared result variable before the
branch runs. For example, (if False (let $x 4 $x) (let $x 1 3)) produces no
answer, and the same expression inside superpose loses the selected answer.
Generate the result equality inside each selected alternative. Preserve
main's candidate-type joins through a fresh carrier instead of aliasing the
source value to the shared output during translation. The existing handling
of edge-scoped source variables is retained.
This ports the branch-output correction from stable PR #319 to main. It adds
13 MeTTa assertions and three tests for source-variable independence, joined
candidate types and the ordering required by a prebound output. The native
arithmetic matrix now accepts renamed generated temporaries while still
requiring a direct variable-plus-variable arithmetic operation.
Validation against upstream main ee5cacb:
Its optional tilepuzzle oracle comparison reaches its existing timeout.
10.1.9 and 10.1.20. The three new Prolog tests fail on unchanged main and
pass with the fix.
counts. A 100,000-deep tail-recursive probe retains constant stack usage.
locally as it does on unchanged main. No cache changes are included.