Skip to content

feat(ir): add OperationPtr.getOpOperands#956

Open
sueszli wants to merge 4 commits into
opencompl:mainfrom
sueszli:feat/op-getoperands
Open

feat(ir): add OperationPtr.getOpOperands#956
sueszli wants to merge 4 commits into
opencompl:mainfrom
sueszli:feat/op-getoperands

Conversation

@sueszli

@sueszli sueszli commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Closes #663

Same structure as #955

@math-fehr math-fehr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks a lot!

Comment thread Veir/IR/Basic.lean Outdated
Comment thread Veir/IR/Basic.lean Outdated
@sueszli

sueszli commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing.

Makes sense, this is a lot cleaner.

@math-fehr

Copy link
Copy Markdown
Collaborator

Sorry about the delay btw!
I think there is a conflict with your other PR, once it's fixed I'll just merge this!

sueszli and others added 2 commits July 12, 2026 23:36
Co-authored-by: Mathieu Fehr <mathieu.fehr@gmail.com>
Co-authored-by: Mathieu Fehr <mathieu.fehr@gmail.com>
@sueszli sueszli force-pushed the feat/op-getoperands branch from 31f714d to 10d3739 Compare July 12, 2026 21:36
simp only [getOpOperand] unfolded the definition in the goal, leaving
grind unable to close getOpOperands!.getElem!_eq_getOpOperand and
getOpOperands!.getElem_eq_getOpOperand. Supplying getOpOperand as a
grind parameter keeps it folded, so grind closes the goals by
congruence after rewriting with Array.getElem_map/getElem_range.
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.

Add OperationPtr.getOperands

2 participants