Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Sep 5, 2025

  • Simplifies AVM.Program by removing the invoke constructor and implementing it as a function instead

@lukaszcz lukaszcz self-assigned this Sep 5, 2025
Copy link
Contributor

Copilot AI left a 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.Sized in favor of direct Program inductive type
  • Converts invoke from 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.

@lukaszcz lukaszcz changed the title Simplify functions implementation Simplify program implementation Sep 6, 2025
@lukaszcz lukaszcz changed the title Simplify program implementation Simplify AVM.Program implementation Sep 6, 2025
janmasrovira
janmasrovira approved these changes Sep 6, 2025
@janmasrovira janmasrovira merged commit e0f83c3 into main Sep 6, 2025
2 checks passed
@janmasrovira janmasrovira deleted the simplify-functions branch September 6, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants