Skip to content

U8 subtraction and less than#305

Merged
gabriel-barrett merged 2 commits intomainfrom
sub_lessthan
Feb 16, 2026
Merged

U8 subtraction and less than#305
gabriel-barrett merged 2 commits intomainfrom
sub_lessthan

Conversation

@gabriel-barrett
Copy link
Member

This PR adds u8 (overflowing) subtraction and less than. Technically, neither of these are necessary, since they can all be implemented through overflowing addition. However, the constraints are a bit tricky and the U8 table is super cheap. I think we should eventually add non-overflowing addition/subtraction too, since they consume one less column.

Copy link
Member

@arthurpaulino arthurpaulino left a comment

Choose a reason for hiding this comment

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

LGTM!

@gabriel-barrett gabriel-barrett merged commit 59b8e44 into main Feb 16, 2026
19 checks passed
@gabriel-barrett gabriel-barrett deleted the sub_lessthan branch February 16, 2026 23:18
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.

2 participants