-
Notifications
You must be signed in to change notification settings - Fork 5
Simplify AVM.Program implementation #90
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
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 simplifies the AVM Program implementation by removing the Sized variant that tracked program size at the type level and converting the invoke operation from a constructor to a function.
- Removes size tracking from Program types by eliminating
Program.Sizedin favor of directPrograminductive type - Converts
invokefrom an inductive constructor to a standalone function that composes programs - Updates syntax macros to work with the simplified Program structure
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| AVM/Program.lean | Removes Program.Sized type and size tracking, implements invoke as a function |
| Applib/Surface/Program.lean | Updates Program wrapper to use simplified AVM.Program without size tracking |
| Applib/Surface/Program/Syntax.lean | Simplifies macro rules by removing intermediate Ξ syntax and size tracking |
| AVM/Class/Translation.lean | Updates Program.tasks to work with simplified Program structure |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
invokeconstructor and implementing it as a function instead