Skip to content

Feat: Implement Clamp#145

Draft
AntoineF4C5 wants to merge 1 commit into
mainfrom
feat/clamp
Draft

Feat: Implement Clamp#145
AntoineF4C5 wants to merge 1 commit into
mainfrom
feat/clamp

Conversation

@AntoineF4C5
Copy link
Copy Markdown
Collaborator

Implement a lookup table that allows to clamp an imput value between two powers of two.
It considers bounds to be part of the public input.
It can be useful before feeding a tensor into a small lookup table, to have any outbound input clamped to most extreme indices of the lookup table.

LOWER_BOUND = 2^L
UPPER_BOUND = 2^U

It is left to find an mle with any value, in the mean time it is possible to clamp any value by virtually adding and substracting upper and lower bounds to input to build sumcheck claims. This should not incure any overhead for the prover or verifier (other than performing the addition/substraction).

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