fix(frontend): Process intercalating elements in refactoring #252

Merged
aniva merged 6 commits from frontend/refactor into dev 2025-07-28 16:05:08 -07:00
Owner

This is from PutnamBench's putnam_1997_b1, where we have declarations:

def mystery : Nat -> Nat := sorry
def auxiliary : Nat -> Nat := id
theorem property : ...

where property refers to both mystery and auxiliary.

This is from PutnamBench's `putnam_1997_b1`, where we have declarations: ```lean def mystery : Nat -> Nat := sorry def auxiliary : Nat -> Nat := id theorem property : ... ``` where `property` refers to both `mystery` and `auxiliary`.
aniva added this to the v0.3.5 milestone 2025-07-25 16:01:09 -07:00
aniva self-assigned this 2025-07-25 16:01:09 -07:00
Author
Owner

The current solution is to condense the search target in the head decl's environment. This clearly does not work. Therefore, we need to condense the search target in the last decl's environment.

However, in the future we may need to preserve the decl names instead of just squashing them into a new _composite decl. In this case, I think we should run two concurrent FrontendMs, one is for the input file, and one is for the output file.

The current solution is to condense the search target in the head decl's environment. This clearly does not work. Therefore, we need to condense the search target in the last decl's environment. However, in the future we may need to preserve the decl names instead of just squashing them into a new `_composite` decl. In this case, I think we should run two concurrent `FrontendM`s, one is for the input file, and one is for the output file.
aniva deleted branch frontend/refactor 2025-07-28 16:05:09 -07:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: aniva/Pantograph#252
No description provided.