Skip to content

Commit 411b021

Browse files
committed
cleanup: update F*, remove for_allP
1 parent bedffbc commit 411b021

3 files changed

Lines changed: 6 additions & 21 deletions

File tree

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Comparse.Parser.Builtins.fst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ module Comparse.Parser.Builtins
22

33
#set-options "--fuel 0 --ifuel 2"
44

5-
#push-options "--fuel 1"
6-
let rec for_allP_eq #a pre l =
7-
match l with
8-
| [] -> ()
9-
| h::t -> for_allP_eq pre t
10-
#pop-options
11-
125
let is_not_unit #bytes #bl #a ps_a = forall (x:a). 1 <= prefixes_length (ps_a.serialize x)
136

147
let is_well_formed_prefix_weaken #bytes #bl #a ps_a pre_strong pre_weak x =

src/Comparse.Parser.Builtins.fsti

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,6 @@ noeq type parser_serializer_prefix (bytes:Type0) {|bytes_like bytes|} (a:Type) =
109109
///
110110
/// -- End parenthesis about symbolic bytes --
111111

112-
let rec for_allP (#a:Type) (pre:a -> prop) (l:list a): prop =
113-
match l with
114-
| [] -> True
115-
| h::t -> pre h /\ for_allP pre t
116-
117-
val for_allP_eq: #a:Type -> pre:(a -> prop) -> l:list a ->
118-
Lemma (for_allP pre l <==> (forall x. List.Tot.memP x l ==> pre x))
119-
120112
[@@"opaque_to_smt"]
121113
let prefixes_length (#bytes:Type) {|bytes_like bytes|} (l:list bytes) =
122114
let add (x:nat) (y:nat): nat = x+y in

0 commit comments

Comments
 (0)