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

Skip to content

Conversation

@cocohearts
Copy link
Contributor

feat: 0-indexed is_allocated column for padding trace to power of 2, also pad dummy traces in testing, and adjust row indices where applicable

Copy link
Contributor

@jonathanpwang jonathanpwang left a comment

Choose a reason for hiding this comment

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

Can you add some description what this PR does and why it's needed?
e.g., Is it hard to satisfy constraints with a dummy 0 row

Copy link
Contributor

@jonathanpwang jonathanpwang left a comment

Choose a reason for hiding this comment

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

do you need to constrain is_alloc is a bit?

@TlatoaniHJ
Copy link
Contributor

do you need to constrain is_alloc is a bit?

I think from the field arithmetic chip's perspective, as long as the arithmetic operations are correct then it's a valid trace, because we could view is_alloc as just representing the frequency with which that arithmetic operation was requested, and the frequency can be aribtrary. From that perspective maybe it makes sense to change the name to something involving frequency, rather than the current name that implies it's a boolean (though it is always boolean given the current trace generation).

@jonathanpwang
Copy link
Contributor

do you need to constrain is_alloc is a bit?

I think from the field arithmetic chip's perspective, as long as the arithmetic operations are correct then it's a valid trace, because we could view is_alloc as just representing the frequency with which that arithmetic operation was requested, and the frequency can be aribtrary. From that perspective maybe it makes sense to change the name to something involving frequency, rather than the current name that implies it's a boolean (though it is always boolean given the current trace generation).

I agree

@jonathanpwang jonathanpwang merged commit d8ab17f into main Jul 1, 2024
@jonathanpwang jonathanpwang deleted the feat/field-arithmetic-alloc branch July 1, 2024 23:34
luffykai pushed a commit that referenced this pull request Dec 13, 2024
* feat: 0-indexed is_allocated column for padding trace to power of 2, also pad dummy traces in testing

* chore: rename `is_alloc` to `rcv_count`

---------

Co-authored-by: Alex Zhao <[email protected]>
Co-authored-by: Jonathan Wang <[email protected]>
jonathanpwang pushed a commit that referenced this pull request Aug 14, 2025
* wip: mulh tracegen

* feat: mulh tracegen + tests

* chore: small fix

* fix: minor import fixes from OpenVM

* fix: pass in tuple size by value

* fix: rangetuple

* test: remove rangetuple

* fix: initialize run to zero

* fix: pass in range tuple by value
jonathanpwang pushed a commit that referenced this pull request Aug 14, 2025
* wip: mulh tracegen

* feat: mulh tracegen + tests

* chore: small fix

* fix: minor import fixes from OpenVM

* fix: pass in tuple size by value

* fix: rangetuple

* test: remove rangetuple

* fix: initialize run to zero

* fix: pass in range tuple by value
jonathanpwang pushed a commit that referenced this pull request Aug 19, 2025
* wip: mulh tracegen

* feat: mulh tracegen + tests

* chore: small fix

* fix: minor import fixes from OpenVM

* fix: pass in tuple size by value

* fix: rangetuple

* test: remove rangetuple

* fix: initialize run to zero

* fix: pass in range tuple by value
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.

4 participants