Repository navigation
Conversation
Port the quotation fix to main: the list-valued head is already translated, so construct data from that value and its translated arguments without interpreting the head again. Retain eval_data_term/3 and eval_data_list/3 because main also uses them for malformed case syntax. Add the fourteen shared expression-head regressions and a control for that existing data fallback.
This was referenced Nov 16, 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.
Main counterpart to #323.
!(q4 ((quote (> 2 1))))currently returns(q4 (true)): the translator interprets a list-valued head again aftertranslating it. Reuse the evaluated head directly so the result is
(q4 ((> 2 1))), while translating the arguments as before.Keep
eval_data_term/3andeval_data_list/3: main still uses them for themalformed-
casedata fallback. Add the fourteen shared expression-headregressions plus a control for that fallback and its existing warning.
Based directly on
main(ee5cacb), with one commit and no PR dependencies.Validation:
test.shpasses: 333 positive examples, 167 expected rejections,parser and fold tests, compiler matrices, fuzz checks and the soundness
matrix. The harness reports one
--oracletimeout fortilepuzzle.metta; theunchanged base also times out at the same 240-second limit.
patched 10.1.20. A 90-case eval/compiled comparison also passes.
nested-data-head translation uses fewer inferences.
Optional Prolog
-Oruns retain the existing builtin-registry startupdiagnostic on both the unchanged base and this branch (#298); all 15 new
assertions pass there as well.
Fixes #322.