Skip to content

Refactor ml_translatorLib#1283

Open
ordinarymath wants to merge 17 commits intomasterfrom
translator_refactor1
Open

Refactor ml_translatorLib#1283
ordinarymath wants to merge 17 commits intomasterfrom
translator_refactor1

Conversation

@ordinarymath
Copy link
Copy Markdown
Contributor

It's slow and also the output of term_to_string
can change with overloads

@ordinarymath
Copy link
Copy Markdown
Contributor Author

I have not tested it

@ordinarymath
Copy link
Copy Markdown
Contributor Author

I do know that (dest_const tm |> fst) and term_to_string tm differ on NIL where term_to_string gives []. I do not know whether this change causes NIL to appear and [] to vanish which is contrary to CakeML documentation.

@tanyongkiam
Copy link
Copy Markdown
Contributor

Can you at least test it on basis and on the translator examples manually? The regression infrastructure is down at the moment.

@ordinarymath ordinarymath added the test failing regression test failed on the latest commit of this pull request label Dec 26, 2025
@ordinarymath ordinarymath changed the title Refactor mk_cons_name in ml_translatorLib Refactor ml_translatorLib Jan 30, 2026
It's slow and also the output of term_to_string
can change with overloads
REWR_CONV does work when partially applied.
The old way made it such that recursive hol2deep errors were caught.
These were deleted in the recursive case but not in the
non recursive case
This commit is just to move alist_treeLib to fix the perf
issues with the code and it should be reupstreamed
In this way the subtitution is done on the type instead of the term
Using dest_type is not enough to identify a type since it could be the same name but different theory

Using TypeBase apis instead of using DB.fetch
@ordinarymath ordinarymath force-pushed the translator_refactor1 branch from e5f56ba to 5dbac21 Compare March 18, 2026 09:29
FIXME cuz there are some other fixes that should be moved elsewhere
Also why is this being kept anyway
It was broken for mutual recursion and nested recursion through lists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test failing regression test failed on the latest commit of this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants