Skip to content

Conversation

@mkannwischer
Copy link
Contributor

During #1393, we noticed that the HOL-Light proof for the x86 INTT proves the bound <=26632, while our contract requires <= 26631.
This commit corrects the bound in the HOL-Light specification.

@mkannwischer mkannwischer force-pushed the hol-light-fix-intt-bound branch 3 times, most recently from 76a780f to 3c005aa Compare December 16, 2025 01:03
@mkannwischer mkannwischer marked this pull request as ready for review December 16, 2025 09:15
@mkannwischer mkannwischer requested a review from a team as a code owner December 16, 2025 09:15
mkannwischer added a commit to mkannwischer/s2n-bignum that referenced this pull request Dec 16, 2025
While integrating the x86 ML-KEM inverse NTT proof into mlkem-native (more
specifically when adding the corresponding CBMC contract and trying to
prove it's adherence to out API contracts), we noticed that the output bound
in the HOL-Light specification is off by one:
mlkem-native requires < 26632 = 8*q, while the HOL-Light specification states
<= 26632.
This commit corrects the specification. No change to the proof is required.

 - See pq-code-package/mlkem-native#1394

Signed-off-by: Matthias J. Kannwischer <[email protected]>
mkannwischer added a commit to mkannwischer/s2n-bignum that referenced this pull request Dec 16, 2025
While integrating the x86 ML-KEM inverse NTT proof into mlkem-native (more
specifically when adding the corresponding CBMC contract and trying to
prove its adherence to out API contracts), we noticed that the output bound
in the HOL-Light specification is off by one:
mlkem-native requires < 26632 (8q), while the HOL-Light specification states
<= 26632.
This commit corrects the specification. No change to the proof is required.

 - See pq-code-package/mlkem-native#1394

Signed-off-by: Matthias J. Kannwischer <[email protected]>
mkannwischer added a commit to mkannwischer/s2n-bignum that referenced this pull request Dec 16, 2025
While integrating the x86 ML-KEM inverse NTT proof into mlkem-native (more
specifically when adding the corresponding CBMC contract and trying to
prove its adherence to the API contracts), we noticed that the output bound
in the HOL-Light specification is off by one:
mlkem-native requires < 26632 (8q), while the HOL-Light specification states
<= 26632.
This commit corrects the specification. No change to the proof is required.

 - See pq-code-package/mlkem-native#1394

Signed-off-by: Matthias J. Kannwischer <[email protected]>
@hanno-becker hanno-becker force-pushed the hol-light-fix-intt-bound branch from 3c005aa to fb3ed8b Compare December 16, 2025 16:38
@mkannwischer
Copy link
Contributor Author

Merged as a part of #1383

jargh pushed a commit to awslabs/s2n-bignum that referenced this pull request Dec 20, 2025
While integrating the x86 ML-KEM inverse NTT proof into mlkem-native (more
specifically when adding the corresponding CBMC contract and trying to
prove its adherence to the API contracts), we noticed that the output bound
in the HOL-Light specification is off by one:
mlkem-native requires < 26632 (8q), while the HOL-Light specification states
<= 26632.
This commit corrects the specification. No change to the proof is required.

 - See pq-code-package/mlkem-native#1394

Signed-off-by: Matthias J. Kannwischer <[email protected]>
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.

3 participants