-
Notifications
You must be signed in to change notification settings - Fork 5
AVM Programs and Applib Program translation pipeline #85
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
Conversation
257e210 to
295af3b
Compare
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.
Pull Request Overview
This PR implements a translation pipeline from Applib to Anoma programs by refactoring the AVM layer to use a dedicated Program type and establishing compilation methods.
- Renames
AVM.Class.Member.BodytoAVM.Programthroughout the codebase - Implements
Applib.Program.compilemethod that translates Applib programs to Anoma programs via AVM - Updates Task composition to handle optional messages and multiple consumed objects
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Applib/Translation.lean | New compilation method from Applib to Anoma programs |
| Applib/Surface/Program.lean | Renames toBody method to toAVM to match new naming |
| Applib/Surface/Member.lean | Updates method calls to use toAVM instead of toBody |
| Applib.lean | Adds import for the new Translation module |
| AVM/Task/Translation.lean | Enhances task translation to handle optional messages |
| AVM/Task.lean | Updates Task structure to support optional messages and universe polymorphism |
| AVM/Program/Translation.lean | New AVM program compilation to Anoma programs |
| AVM/Program.lean | Renames Member.Body to Program' and adds Program type alias |
| AVM/Class/Translation.lean | Updates references from Member.Body.tasks to Program.tasks |
| AVM/Class/Member.lean | Updates type signatures to use Program instead of Member.Body |
| AVM.lean | Adds imports for new Program modules |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
51d0a03 to
5722e4a
Compare
AVM.Class.Member.BodytoAVM.ProgramApplib.ProgramtoAnoma.Program, viaAVM.Program