Skip to content

feat(avm)!: WIP Derive is_infinite flag from point coordinates#22564

Draft
MirandaWood wants to merge 3 commits intomerge-train/avmfrom
mw/avm-derive-is-inf
Draft

feat(avm)!: WIP Derive is_infinite flag from point coordinates#22564
MirandaWood wants to merge 3 commits intomerge-train/avmfrom
mw/avm-derive-is-inf

Conversation

@MirandaWood
Copy link
Copy Markdown
Contributor

WIP

Will close AVM-248

As a kind of stopgap before removing the is_infinite flag completely from the AVM (AVM-266), we now follow Noir behaviour more closely by deriving is_inf from coordinates inside the circuits ( (x, y) == (0, 0) ? is_inf == true). This replaces previous logic remapping points to (0, 0) from is_inf.

This method relies on the on curve check (for (0, 0) ==> is_inf ) and some new relations enforcing coordinates (for is_inf ==> (0, 0)) rather than (more expensive) error handling. However this does mean that the former will fail with an on curve error whereas the latter will simply fail a relation.

@MirandaWood MirandaWood force-pushed the mw/avm-derive-is-inf branch from 8f3f2d6 to 50d4a19 Compare April 15, 2026 21:54
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.

1 participant