Zulip Chat Archive
Stream: Machine Learning for Theorem Proving
Topic: Transpiling code
Jason Rute (Sep 22 2024 at 19:24):
This is Agda and not Lean, but this tweet is really interesting. He massively transpiles code from Agda to TypeScript using a LLM (Sonnet 3.5). I wonder how much it works in practice and scales. https://x.com/victortaelin/status/1837925011187027994?s=12
Jason Rute (Sep 22 2024 at 19:31):
I think this is @Victor Maia of KindLang (mentioned elsewhere here).
Xiyu Zhai (Sep 25 2024 at 06:04):
With these as test cases, how hard will it be to let Sonnet maintain an actual transpilot
Bas Spitters (Sep 30 2024 at 13:31):
Is there any feedback from the type checker to the AI?
Jason Rute (Sep 30 2024 at 14:21):
@Bas Spitters I don’t think so, but possibly there is some filtering to check if it actually compiles to TypeScript and maybe even some iteration to fix errors. Here is the prompt and code: https://github.com/VictorTaelin/AI-scripts/blob/main/agda2ts.mjs Also, he wasn’t clear how much manual fixing he had to do.
Last updated: May 02 2025 at 03:31 UTC