Skip to content

Commit

Permalink
mlkem: format properties correctly #147
Browse files Browse the repository at this point in the history
Several properties didn't have correct `repl` commands in the
docstrings.
  • Loading branch information
marsella committed Oct 15, 2024
1 parent 50d8ab9 commit cd05cb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Primitive/Asymmetric/Cipher/ML_KEM/Specification.cry
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ submodule NTT where

/**
* This property demonstrates that NaiveNTT is self-inverting.
* ```
* ```repl
* :prove NaiveNTT_Inverts
* ```
*/
Expand All @@ -606,7 +606,7 @@ submodule NTT where

/**
* This property demonstrates that NaiveNTTInv is self-inverting.
* ```
* ```repl
* :prove NaiveNTTInv_Inverts
* ```
*/
Expand All @@ -615,7 +615,7 @@ submodule NTT where

/**
* This property demonstrates that `fast_ntt` is the inverse of `fast_invntt`.
* ```
* ```repl
* :prove fast_ntt_inverts
* ```
*/
Expand All @@ -624,7 +624,7 @@ submodule NTT where

/**
* This property demonstrates that `fast_invntt` is the inverse of `fast_ntt`.
* ```
* ```repl
* :prove fast_invntt_inverts
* ```
*/
Expand All @@ -633,7 +633,7 @@ submodule NTT where

/**
* This property demonstrates that `naive_ntt` is equivalent to `fast_ntt`.
* ```
* ```repl
* :prove naive_fast_ntt_equiv
* ```
*/
Expand All @@ -642,7 +642,7 @@ submodule NTT where

/**
* This property demonstrates that `naive_invntt` is equivalent to `fast_invntt`.
* ```
* ```repl
* :prove naive_fast_invntt_equiv
* ```
*/
Expand Down Expand Up @@ -709,7 +709,7 @@ MultiplyNTTs a b = join [BaseCaseMultiply (f_hat_i i) (g_hat_i i) (root i) | i :
root i = (zeta^^(reverse (64 + (i >> 1)) >> 1) * ((-1 : (Z q)) ^^ (i)))

/**
* Testing that (1+x)^2 = 1+2x+x^2
* Testing that (1+x)^2 = 1+2x+x^2.
* ```repl
* :prove TestMult
* ```
Expand Down

0 comments on commit cd05cb6

Please sign in to comment.