Skip to content

Commit 7da6768

Browse files
committed
HOL-Light: Remove memaccess_inbounds duplicates workaround
- Resolves #1578 Signed-off-by: Matthias J. Kannwischer <matthias@zerorisc.com>
1 parent 9ff0bad commit 7da6768

24 files changed

Lines changed: 2 additions & 146 deletions

proofs/hol_light/aarch64/proofs/keccak_f1600_x1_scalar.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,15 +522,11 @@ let KECCAK_F1600_X1_SCALAR_SUBROUTINE_CORRECT = prove
522522
needs "arm/proofs/consttime.ml";;
523523
needs "aarch64/proofs/subroutine_signatures.ml";;
524524

525-
needs "common/consttime_utils.ml";;
526-
527525
let full_spec,public_vars = mk_safety_spec
528526
~keep_maychanges:false
529527
(assoc "sha3_keccak_f1600" subroutine_signatures)
530528
KECCAK_F1600_X1_SCALAR_SUBROUTINE_CORRECT
531529
KECCAK_F1600_X1_SCALAR_EXEC;;
532-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
533-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
534530

535531
let KECCAK_F1600_X1_SCALAR_SUBROUTINE_SAFE = time prove
536532
(`exists f_events.

proofs/hol_light/aarch64/proofs/keccak_f1600_x1_v84a.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,11 @@ let KECCAK_F1600_X1_V84A_SUBROUTINE_CORRECT = prove
307307
needs "arm/proofs/consttime.ml";;
308308
needs "aarch64/proofs/subroutine_signatures.ml";;
309309

310-
needs "common/consttime_utils.ml";;
311-
312310
let full_spec,public_vars = mk_safety_spec
313311
~keep_maychanges:false
314312
(assoc "sha3_keccak_f1600_alt" subroutine_signatures)
315313
KECCAK_F1600_X1_V84A_SUBROUTINE_CORRECT
316314
KECCAK_F1600_X1_V84A_EXEC;;
317-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
318-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
319315

320316
let KECCAK_F1600_X1_V84A_SUBROUTINE_SAFE = time prove
321317
(`exists f_events.

proofs/hol_light/aarch64/proofs/keccak_f1600_x2_v84a.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,11 @@ let KECCAK_F1600_X2_V84A_SUBROUTINE_CORRECT = prove
388388
needs "arm/proofs/consttime.ml";;
389389
needs "aarch64/proofs/subroutine_signatures.ml";;
390390

391-
needs "common/consttime_utils.ml";;
392-
393391
let full_spec,public_vars = mk_safety_spec
394392
~keep_maychanges:false
395393
(assoc "sha3_keccak2_f1600" subroutine_signatures)
396394
KECCAK_F1600_X2_V84A_SUBROUTINE_CORRECT
397395
KECCAK_F1600_X2_V84A_EXEC;;
398-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
399-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
400396

401397
let KECCAK_F1600_X2_V84A_SUBROUTINE_SAFE = time prove
402398
(`exists f_events.

proofs/hol_light/aarch64/proofs/keccak_f1600_x4_v8a_scalar.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,15 +1495,11 @@ let KECCAK_F1600_X4_V8A_SCALAR_SUBROUTINE_CORRECT = prove
14951495
needs "arm/proofs/consttime.ml";;
14961496
needs "aarch64/proofs/subroutine_signatures.ml";;
14971497

1498-
needs "common/consttime_utils.ml";;
1499-
15001498
let full_spec,public_vars = mk_safety_spec
15011499
~keep_maychanges:false
15021500
(assoc "sha3_keccak4_f1600" subroutine_signatures)
15031501
KECCAK_F1600_X4_V8A_SCALAR_SUBROUTINE_CORRECT
15041502
KECCAK_F1600_X4_V8A_SCALAR_EXEC;;
1505-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
1506-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
15071503

15081504
let KECCAK_F1600_X4_V8A_SCALAR_SUBROUTINE_SAFE = time prove
15091505
(`exists f_events.

proofs/hol_light/aarch64/proofs/keccak_f1600_x4_v8a_v84a_scalar.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,15 +1400,11 @@ let KECCAK_F1600_X4_V8A_V84A_SCALAR_SUBROUTINE_CORRECT = prove
14001400
needs "arm/proofs/consttime.ml";;
14011401
needs "aarch64/proofs/subroutine_signatures.ml";;
14021402

1403-
needs "common/consttime_utils.ml";;
1404-
14051403
let full_spec,public_vars = mk_safety_spec
14061404
~keep_maychanges:false
14071405
(assoc "sha3_keccak4_f1600_alt" subroutine_signatures)
14081406
KECCAK_F1600_X4_V8A_V84A_SCALAR_SUBROUTINE_CORRECT
14091407
KECCAK_F1600_X4_V8A_V84A_SCALAR_EXEC;;
1410-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
1411-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
14121408

14131409
let KECCAK_F1600_X4_V8A_V84A_SCALAR_SUBROUTINE_SAFE = time prove
14141410
(`exists f_events.

proofs/hol_light/aarch64/proofs/mlkem_intt.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,15 +754,11 @@ let MLKEM_INTT_SUBROUTINE_CORRECT = prove
754754
needs "arm/proofs/consttime.ml";;
755755
needs "aarch64/proofs/subroutine_signatures.ml";;
756756

757-
needs "common/consttime_utils.ml";;
758-
759757
let full_spec,public_vars = mk_safety_spec
760758
~keep_maychanges:false
761759
(assoc "mlkem_intt" subroutine_signatures)
762760
MLKEM_INTT_SUBROUTINE_CORRECT
763761
MLKEM_INTT_EXEC;;
764-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
765-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
766762

767763
let MLKEM_INTT_SUBROUTINE_SAFE = time prove
768764
(`exists f_events.

proofs/hol_light/aarch64/proofs/mlkem_ntt.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,15 +689,11 @@ let MLKEM_NTT_SUBROUTINE_CORRECT = prove
689689
needs "arm/proofs/consttime.ml";;
690690
needs "aarch64/proofs/subroutine_signatures.ml";;
691691

692-
needs "common/consttime_utils.ml";;
693-
694692
let full_spec,public_vars = mk_safety_spec
695693
~keep_maychanges:false
696694
(assoc "mlkem_ntt" subroutine_signatures)
697695
MLKEM_NTT_SUBROUTINE_CORRECT
698696
MLKEM_NTT_EXEC;;
699-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
700-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
701697

702698
let MLKEM_NTT_SUBROUTINE_SAFE = time prove
703699
(`exists f_events.

proofs/hol_light/aarch64/proofs/mlkem_poly_mulcache_compute.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ let MLKEM_MULCACHE_COMPUTE_SUBROUTINE_CORRECT = prove
286286
(* Constant-time and memory safety proof. *)
287287
(* ------------------------------------------------------------------------- *)
288288

289-
needs "common/consttime_utils.ml";;
290289
needs "aarch64/proofs/subroutine_signatures.ml";;
291290

292291
let full_spec,public_vars = mk_safety_spec

proofs/hol_light/aarch64/proofs/mlkem_poly_reduce.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,11 @@ let MLKEM_POLY_REDUCE_SUBROUTINE_CORRECT = prove
279279
needs "arm/proofs/consttime.ml";;
280280
needs "aarch64/proofs/subroutine_signatures.ml";;
281281

282-
needs "common/consttime_utils.ml";;
283-
284282
let full_spec,public_vars = mk_safety_spec
285283
~keep_maychanges:false
286284
(assoc "mlkem_reduce" subroutine_signatures)
287285
MLKEM_POLY_REDUCE_SUBROUTINE_CORRECT
288286
MLKEM_POLY_REDUCE_EXEC;;
289-
(* Remove duplicates from memaccess_inbounds lists (s2n-bignum#350) *)
290-
let full_spec = ONCE_DEPTH_CONV MEMACCESS_INBOUNDS_DEDUP_CONV full_spec |> concl |> rhs;;
291287

292288
let MLKEM_POLY_REDUCE_SUBROUTINE_SAFE = time prove
293289
(`exists f_events.

proofs/hol_light/aarch64/proofs/mlkem_poly_tobytes.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ let MLKEM_POLY_TOBYTES_SUBROUTINE_CORRECT = prove
275275
(* Constant-time and memory safety proof. *)
276276
(* ------------------------------------------------------------------------- *)
277277

278-
needs "common/consttime_utils.ml";;
279278
needs "aarch64/proofs/subroutine_signatures.ml";;
280279

281280
let full_spec,public_vars = mk_safety_spec

0 commit comments

Comments
 (0)