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 31, 2024
1 parent 311df71 commit 76c018d
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 @@ -647,7 +647,7 @@ submodule NTT where

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

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

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

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

/**
* This property demonstrates that `naive_ntt` is equivalent to `fast_ntt`.
* ```
* ```repl
* :prove naive_fast_ntt_equiv
* ```
*/
Expand All @@ -692,7 +692,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 @@ -759,7 +759,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 76c018d

Please sign in to comment.