Skip to content

Commit

Permalink
chore: update F*
Browse files Browse the repository at this point in the history
  • Loading branch information
TWal committed Sep 17, 2024
1 parent ad173bc commit 3362b9a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 17 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fstar/common/proofs/MLS.Crypto.Derived.Lemmas.fst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module MLS.Crypto.Derived.Lemmas

open MLS.Crypto.Derived

#push-options "--fuel 0 --ifuel 0"
#set-options "--fuel 0 --ifuel 0"

val get_mls_label_inj:
l1:valid_label -> l2:valid_label ->
Expand Down
2 changes: 1 addition & 1 deletion fstar/common/proofs/MLS.MiscLemmas.fst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module MLS.MiscLemmas
open FStar.List.Tot
open Comparse

#push-options "--fuel 1 --ifuel 1"
#set-options "--fuel 1 --ifuel 1"

val list_for_all_eq:
#a:eqtype ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ open MLS.Crypto.Derived.Lemmas
open MLS.Symbolic
open MLS.Result

#push-options "--fuel 0 --ifuel 0"
#set-options "--fuel 0 --ifuel 0"

(*** Split predicate for SignWithLabel ***)

Expand Down
2 changes: 1 addition & 1 deletion fstar/symbolic/MLS.Symbolic.fst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open DY.Core
open MLS.Crypto
open MLS.Result

#push-options "--fuel 0 --ifuel 0"
#set-options "--fuel 0 --ifuel 0"

(*** Typeclass instantiation on DY* ***)

Expand Down
1 change: 0 additions & 1 deletion fstar/treedem/MLS.TreeDEM.Keys.fst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ let ratchet_next_state #bytes #cb st =
generation = st.generation + 1;
})

//#push-options "--fuel 1 --ifuel 1"
val ratchet_get_generation_key:
#bytes:Type0 -> {|crypto_bytes bytes|} ->
st:ratchet_state bytes -> i:nat{st.generation <= i} ->
Expand Down
2 changes: 1 addition & 1 deletion fstar/treesync/code/MLS.TreeSync.Refined.Operations.fst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open MLS.TreeSync.Invariants.ValidLeaves.Proofs
open MLS.TreeSync.Refined.Types
open MLS.Result

#push-options "--fuel 0 --ifuel 0"
#set-options "--fuel 0 --ifuel 0"

val tree_create:
#bytes:Type0 -> {|crypto_bytes bytes|} -> #tkt:treekem_types bytes ->
Expand Down
6 changes: 3 additions & 3 deletions hacl-star-snapshot/lib/Lib.IntTypes.fst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Lib.IntTypes

open FStar.Math.Lemmas

#push-options "--max_fuel 0 --max_ifuel 1 --z3rlimit 200"
#set-options "--max_fuel 0 --max_ifuel 1 --z3rlimit 200"

let pow2_2 _ = assert_norm (pow2 2 = 4)
let pow2_3 _ = assert_norm (pow2 3 = 8)
Expand Down Expand Up @@ -768,6 +768,7 @@ let shift_left #t #l a b =
| S32 -> Int32.shift_left a b
| S64 -> Int64.shift_left a b
| S128 -> Int128.shift_left a b
#pop-options

#push-options "--max_fuel 1"

Expand Down Expand Up @@ -1009,6 +1010,7 @@ let conditional_subtract #t #l t' a =
let a3 = a `sub` pow2_bits in
logand_lemma mask pow2_bits;
a3 `add` (mask `logand` pow2_bits)
#pop-options

#push-options "--z3rlimit 500 --quake 1/25"
let cast_mod #t #l t' l' a =
Expand All @@ -1025,8 +1027,6 @@ let cast_mod #t #l t' l' a =
end
#pop-options

#pop-options

[@(strict_on_arguments [0])]
let div #t x y =
match t with
Expand Down
2 changes: 1 addition & 1 deletion hacl-star-snapshot/lib/Lib.IntTypes.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Lib.IntTypes

open FStar.Mul

#push-options "--max_fuel 0 --max_ifuel 1 --z3rlimit 20"
#set-options "--max_fuel 0 --max_ifuel 1 --z3rlimit 20"

// Other instances frollow from `FStar.UInt.pow2_values` which is in
// scope of every module depending on Lib.IntTypes
Expand Down
2 changes: 1 addition & 1 deletion hacl-star-snapshot/lib/Lib.Vec.Lemmas.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ open Lib.Sequence.Lemmas

module Loops = Lib.LoopCombinators

#push-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq \
+Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas +Lib.LoopCombinators +Lib.Vec.Lemmas'"

Expand Down

0 comments on commit 3362b9a

Please sign in to comment.