Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement LastModDown #19

Open
Janmajayamall opened this issue Feb 12, 2024 · 0 comments
Open

Implement LastModDown #19

Janmajayamall opened this issue Feb 12, 2024 · 0 comments

Comments

@Janmajayamall
Copy link
Collaborator

This uses the same algorithm as ApproximateModDown (i.e. algorithm 2 of 2018/931) but scales by $q_l$ where $q_l$ is last prime in moduli chain of $Q$.

On input $x \in R_Q$, output $x' \in R_{Q'}$ where $Q'$ equals $Q$ after dropping last prime $q_l$ such that

$$x'i = [\lceil \frac{1}{q_l} x_i \rfloor]{Q'}$$

  • Input can either be in Evaluation or Coefficient form. Try to accommodate it into a single function. If not, create two separate functions as LastModDownCoeff and LastModDownEval
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

No branches or pull requests

1 participant