Skip to content

Adds theories/algebra/ZqCentered.ec providing the centered (signed) i…#995

Open
mbbarbosa wants to merge 1 commit intomainfrom
feature-zqcentered
Open

Adds theories/algebra/ZqCentered.ec providing the centered (signed) i…#995
mbbarbosa wants to merge 1 commit intomainfrom
feature-zqcentered

Conversation

@mbbarbosa
Copy link
Copy Markdown
Contributor

Adds theories/algebra/ZqCentered.ec providing the centered (signed)
integer representation of Z/pZ elements.

Two abstract theories:

  • ZqCentered (extends ZModRing, ge2_p): centered representative crepr
    on Zq and on int, range/round-trip lemmas, additive/multiplicative
    algebraic laws, centered absolute value "|_|" with triangle/product
    inequalities, negation symmetry abs_zpN.
  • ZqCenteredField (extends ZqCentered, prime_p): negation lemmas
    creprN, creprN2, creprND.

This is based on a theory (not authored by me) that is used in the proof of security of dilithium:
https://github.com/formosa-crypto/dilithium/blob/368acabdf65c7756a6f5696ff11e8c051f991769/proofs/utils/ZModFieldExtras.eca

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