file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.strict_suffix_of_or_eq_nil
val strict_suffix_of_or_eq_nil (#a: Type) (l: list a) : Lemma (ensures (strict_suffix_of [] l \/ l == []))
val strict_suffix_of_or_eq_nil (#a: Type) (l: list a) : Lemma (ensures (strict_suffix_of [] l \/ l == []))
let strict_suffix_of_or_eq_nil (#a: Type) (l: list a) : Lemma (ensures (strict_suffix_of [] l \/ l == [])) = match l with | [] -> () | a :: q -> strict_suffix_of_nil a q
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 1041, "start_col": 0, "start_line": 1036 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.strict_suffix_of [] l \/ l == [])
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.strict_suffix_of_nil", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_or", "FStar.List.Tot.Base.strict_suffix_of", "Prims.Nil", "Prims.eq2", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let strict_suffix_of_or_eq_nil (#a: Type) (l: list a) : Lemma (ensures (strict_suffix_of [] l \/ l == [])) =
match l with | [] -> () | a :: q -> strict_suffix_of_nil a q
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.fold_left_map
val fold_left_map (#a #b #c: Type) (f_aba: (a -> b -> Tot a)) (f_bc: (b -> Tot c)) (f_aca: (a -> c -> Tot a)) (l: list b) : Lemma (requires forall (x: a) (y: b). f_aba x y == f_aca x (f_bc y)) (ensures forall (x: a). fold_left f_aba x l == fold_left f_aca x (map f_bc l))
val fold_left_map (#a #b #c: Type) (f_aba: (a -> b -> Tot a)) (f_bc: (b -> Tot c)) (f_aca: (a -> c -> Tot a)) (l: list b) : Lemma (requires forall (x: a) (y: b). f_aba x y == f_aca x (f_bc y)) (ensures forall (x: a). fold_left f_aba x l == fold_left f_aca x (map f_bc l))
let rec fold_left_map (#a #b #c: Type) (f_aba: a -> b -> Tot a) (f_bc: b -> Tot c) (f_aca: a -> c -> Tot a) (l: list b) : Lemma (requires forall (x: a) (y: b) . f_aba x y == f_aca x (f_bc y) ) (ensures forall (x : a) . fold_left f_aba x l == fold_left f_aca x (map f_bc l) ) = match l with | [] ->...
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 940, "start_col": 0, "start_line": 928 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f_aba: (_: a -> _: b -> a) -> f_bc: (_: b -> c) -> f_aca: (_: a -> _: c -> a) -> l: Prims.list b -> FStar.Pervasives.Lemma (requires forall (x: a) (y: b). f_aba x y == f_aca x (f_bc y)) (ensures forall (x: a). FStar.List.Tot.Base.fold_left f_aba x l == FStar.List.Tot.Base.fold_left f...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.fold_left_map", "Prims.unit", "Prims.l_Forall", "Prims.eq2", "Prims.squash", "FStar.List.Tot.Base.fold_left", "FStar.List.Tot.Base.map", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec fold_left_map (#a #b #c: Type) (f_aba: (a -> b -> Tot a)) (f_bc: (b -> Tot c)) (f_aca: (a -> c -> Tot a)) (l: list b) : Lemma (requires forall (x: a) (y: b). f_aba x y == f_aca x (f_bc y)) (ensures forall (x: a). fold_left f_aba x l == fold_left f_aca x (map f_bc l)) =
match l with | [] -> () | y :: q -> fold_left_map f_aba f_bc f_aca q
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.strict_suffix_of_correct
val strict_suffix_of_correct (#a: _) (l1 l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> l1 << l2)) (decreases l2)
val strict_suffix_of_correct (#a: _) (l1 l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> l1 << l2)) (decreases l2)
let rec strict_suffix_of_correct (#a) (l1 l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> l1 << l2)) (decreases l2) = match l2 with | [] -> () | _ :: q -> strict_suffix_of_correct l1 q
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 1066, "start_col": 0, "start_line": 1058 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> l2: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.strict_suffix_of l1 l2 ==> l1 << l2) (decreases l2)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.strict_suffix_of_correct", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_imp", "FStar.List.Tot.Base.strict_suffix_of", "Prims.precedes", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec strict_suffix_of_correct #a (l1: list a) (l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> l1 << l2)) (decreases l2) =
match l2 with | [] -> () | _ :: q -> strict_suffix_of_correct l1 q
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.mem_strict_suffix_of
val mem_strict_suffix_of (#a: eqtype) (l1: list a) (m: a) (l2: list a) : Lemma (requires True) (ensures ((mem m l1 /\ strict_suffix_of l1 l2) ==> mem m l2))
val mem_strict_suffix_of (#a: eqtype) (l1: list a) (m: a) (l2: list a) : Lemma (requires True) (ensures ((mem m l1 /\ strict_suffix_of l1 l2) ==> mem m l2))
let rec mem_strict_suffix_of (#a: eqtype) (l1: list a) (m: a) (l2: list a) : Lemma (requires True) (ensures ((mem m l1 /\ strict_suffix_of l1 l2) ==> mem m l2)) = match l2 with | [] -> () | a :: q -> mem_strict_suffix_of l1 m q
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 1085, "start_col": 0, "start_line": 1078 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> m: a -> l2: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.mem m l1 /\ FStar.List.Tot.Base.strict_suffix_of l1 l2 ==> FStar.List.Tot.Base.mem m l2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.List.Tot.Properties.mem_strict_suffix_of", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_imp", "Prims.l_and", "Prims.b2t", "FStar.List.Tot.Base.mem", "FStar.List.Tot.Base.strict_suffix_of", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec mem_strict_suffix_of (#a: eqtype) (l1: list a) (m: a) (l2: list a) : Lemma (requires True) (ensures ((mem m l1 /\ strict_suffix_of l1 l2) ==> mem m l2)) =
match l2 with | [] -> () | a :: q -> mem_strict_suffix_of l1 m q
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.strict_suffix_of_or_eq_exists_append
val strict_suffix_of_or_eq_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures ((strict_suffix_of l1 l2 \/ l1 == l2) ==> (exists l3. l2 == append l3 l1)))
val strict_suffix_of_or_eq_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures ((strict_suffix_of l1 l2 \/ l1 == l2) ==> (exists l3. l2 == append l3 l1)))
let strict_suffix_of_or_eq_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures ((strict_suffix_of l1 l2 \/ l1 == l2) ==> (exists l3 . l2 == append l3 l1))) = FStar.Classical.or_elim #(strict_suffix_of l1 l2) #(l1 == l2) #(fun _ -> exists l3 . l2 == append l3 l1) (fun _ -> strict_suffix...
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 1125, "start_col": 0, "start_line": 1111 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> l2: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.strict_suffix_of l1 l2 \/ l1 == l2 ==> (exists (l3: Prims.list a). l2 == l3 @ l1))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.Classical.or_elim", "FStar.List.Tot.Base.strict_suffix_of", "Prims.eq2", "Prims.squash", "Prims.l_or", "Prims.l_Exists", "FStar.List.Tot.Base.append", "FStar.List.Tot.Properties.strict_suffix_of_exists_append", "Prims.unit", "FStar.Classical.exists_intro", "Prims.Nil", "...
[]
false
false
true
false
false
let strict_suffix_of_or_eq_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures ((strict_suffix_of l1 l2 \/ l1 == l2) ==> (exists l3. l2 == append l3 l1))) =
FStar.Classical.or_elim #(strict_suffix_of l1 l2) #(l1 == l2) #(fun _ -> exists l3. l2 == append l3 l1) (fun _ -> strict_suffix_of_exists_append l1 l2) (fun _ -> FStar.Classical.exists_intro (fun l3 -> l2 == append l3 l1) [])
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.fold_left_append
val fold_left_append (#a #b: Type) (f: (a -> b -> Tot a)) (l1 l2: list b) : Lemma (ensures forall x. fold_left f x (l1 @ l2) == fold_left f (fold_left f x l1) l2)
val fold_left_append (#a #b: Type) (f: (a -> b -> Tot a)) (l1 l2: list b) : Lemma (ensures forall x. fold_left f x (l1 @ l2) == fold_left f (fold_left f x l1) l2)
let rec fold_left_append (#a #b: Type) (f: a -> b -> Tot a) (l1 l2: list b) : Lemma (ensures forall x . fold_left f x (l1 @ l2) == fold_left f (fold_left f x l1) l2) = match l1 with | [] -> () | x :: q -> fold_left_append f q l2
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 962, "start_col": 0, "start_line": 954 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> _: b -> a) -> l1: Prims.list b -> l2: Prims.list b -> FStar.Pervasives.Lemma (ensures forall (x: a). FStar.List.Tot.Base.fold_left f x (l1 @ l2) == FStar.List.Tot.Base.fold_left f (FStar.List.Tot.Base.fold_left f x l1) l2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.fold_left_append", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_Forall", "Prims.eq2", "FStar.List.Tot.Base.fold_left", "FStar.List.Tot.Base.op_At", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec fold_left_append (#a #b: Type) (f: (a -> b -> Tot a)) (l1 l2: list b) : Lemma (ensures forall x. fold_left f x (l1 @ l2) == fold_left f (fold_left f x l1) l2) =
match l1 with | [] -> () | x :: q -> fold_left_append f q l2
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.strict_suffix_of_trans
val strict_suffix_of_trans (#a: Type) (l1 l2 l3: list a) : Lemma (requires True) (ensures ((strict_suffix_of l1 l2 /\ strict_suffix_of l2 l3) ==> strict_suffix_of l1 l3)) (decreases l3) [SMTPat (strict_suffix_of l1 l2); SMTPat (strict_suffix_of l2 l3)]
val strict_suffix_of_trans (#a: Type) (l1 l2 l3: list a) : Lemma (requires True) (ensures ((strict_suffix_of l1 l2 /\ strict_suffix_of l2 l3) ==> strict_suffix_of l1 l3)) (decreases l3) [SMTPat (strict_suffix_of l1 l2); SMTPat (strict_suffix_of l2 l3)]
let rec strict_suffix_of_trans (#a: Type) (l1 l2 l3: list a) : Lemma (requires True) (ensures ((strict_suffix_of l1 l2 /\ strict_suffix_of l2 l3) ==> strict_suffix_of l1 l3)) (decreases l3) [SMTPat (strict_suffix_of l1 l2); SMTPat (strict_suffix_of l2 l3)] = match l3 with | [] -> () | _ :: q -> strict_suffi...
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 1056, "start_col": 0, "start_line": 1048 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> l2: Prims.list a -> l3: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.strict_suffix_of l1 l2 /\ FStar.List.Tot.Base.strict_suffix_of l2 l3 ==> FStar.List.Tot.Base.strict_suffix_of l1 l3) (decreases l3) [ SMTPat (FStar.List.Tot.Base.st...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.strict_suffix_of_trans", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_imp", "Prims.l_and", "FStar.List.Tot.Base.strict_suffix_of", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.Nil" ]
[ "recursion" ]
false
false
true
false
false
let rec strict_suffix_of_trans (#a: Type) (l1 l2 l3: list a) : Lemma (requires True) (ensures ((strict_suffix_of l1 l2 /\ strict_suffix_of l2 l3) ==> strict_suffix_of l1 l3)) (decreases l3) [SMTPat (strict_suffix_of l1 l2); SMTPat (strict_suffix_of l2 l3)] =
match l3 with | [] -> () | _ :: q -> strict_suffix_of_trans l1 l2 q
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.map_strict_suffix_of
val map_strict_suffix_of (#a #b: Type) (f: (a -> Tot b)) (l1 l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> strict_suffix_of (map f l1) (map f l2))) (decreases l2)
val map_strict_suffix_of (#a #b: Type) (f: (a -> Tot b)) (l1 l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> strict_suffix_of (map f l1) (map f l2))) (decreases l2)
let rec map_strict_suffix_of (#a #b: Type) (f: a -> Tot b) (l1: list a) (l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> strict_suffix_of (map f l1) (map f l2))) (decreases l2) = match l2 with | [] -> () | a::q -> map_strict_suffix_of f l1 q
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 1076, "start_col": 0, "start_line": 1068 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> b) -> l1: Prims.list a -> l2: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.strict_suffix_of l1 l2 ==> FStar.List.Tot.Base.strict_suffix_of (FStar.List.Tot.Base.map f l1) (FStar.List.Tot.Base.map f l2)) (decreases l2)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.map_strict_suffix_of", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_imp", "FStar.List.Tot.Base.strict_suffix_of", "FStar.List.Tot.Base.map", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec map_strict_suffix_of (#a #b: Type) (f: (a -> Tot b)) (l1 l2: list a) : Lemma (requires True) (ensures (strict_suffix_of l1 l2 ==> strict_suffix_of (map f l1) (map f l2))) (decreases l2) =
match l2 with | [] -> () | a :: q -> map_strict_suffix_of f l1 q
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.index_extensionality_aux
val index_extensionality_aux (#a: Type) (l1 l2: list a) (l_len: (l_len: unit{length l1 == length l2})) (l_index: (i: (i: nat{i < length l1}) -> Tot (l_index: unit{index l1 i == index l2 i}))) : Lemma (ensures (l1 == l2))
val index_extensionality_aux (#a: Type) (l1 l2: list a) (l_len: (l_len: unit{length l1 == length l2})) (l_index: (i: (i: nat{i < length l1}) -> Tot (l_index: unit{index l1 i == index l2 i}))) : Lemma (ensures (l1 == l2))
let rec index_extensionality_aux (#a: Type) (l1 l2: list a) (l_len: (l_len: unit { length l1 == length l2 } )) (l_index: (i: (i: nat {i < length l1})) -> Tot (l_index: unit {index l1 i == index l2 i})) : Lemma (ensures (l1 == l2)) = match (l1, l2) with | (a1::q1, a2::q2) -> let a_eq : (a_eq : unit {a1 =...
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 1013, "start_col": 8, "start_line": 998 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> l2: Prims.list a -> l_len: Prims.unit{FStar.List.Tot.Base.length l1 == FStar.List.Tot.Base.length l2} -> l_index: (i: Prims.nat{i < FStar.List.Tot.Base.length l1} -> l_index: Prims.unit{FStar.List.Tot.Base.index l1 i == FStar.List.Tot.Base.index l2 i}) -> FStar.Per...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Prims.unit", "Prims.eq2", "Prims.nat", "FStar.List.Tot.Base.length", "Prims.b2t", "Prims.op_LessThan", "FStar.List.Tot.Base.index", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Properties.index_extensionality_aux", "Prims.op_Addition", "FStar.Pervasives.Native.tuple2", ...
[ "recursion" ]
false
false
true
false
false
let rec index_extensionality_aux (#a: Type) (l1 l2: list a) (l_len: (l_len: unit{length l1 == length l2})) (l_index: (i: (i: nat{i < length l1}) -> Tot (l_index: unit{index l1 i == index l2 i}))) : Lemma (ensures (l1 == l2)) =
match (l1, l2) with | a1 :: q1, a2 :: q2 -> let a_eq:(a_eq: unit{a1 == a2}) = l_index 0 in let q_len:(q_len: unit{length q1 == length q2}) = () in let q_index (i: (i: nat{i < length q1})) : Tot (q_index: unit{index q1 i == index q2 i}) = l_index (i + 1) in let q_eq:(q_eq: unit{l1 == l2}) = index_extension...
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.output_len
val output_len : a: Hacl.Streaming.Blake2.Common.alg -> FStar.UInt32.t
let output_len (a : alg) = U32.uint_to_t (output_size a)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 241, "start_col": 0, "start_line": 241 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "FStar.UInt32.uint_to_t", "Hacl.Streaming.Blake2.Common.output_size", "FStar.UInt32.t" ]
[]
false
false
false
true
false
let output_len (a: alg) =
U32.uint_to_t (output_size a)
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.stateful_key
val stateful_key (a: alg) (kk: key_size a) : I.stateful unit
val stateful_key (a: alg) (kk: key_size a) : I.stateful unit
let stateful_key (a : alg) (kk : key_size a) : I.stateful unit = I.Stateful (fun _ -> stateful_key_t a kk) (* footprint *) (fun #_ h s -> if kk = 0 then B.loc_none else B.loc_addr_of_buffer (s <: B.buffer uint8)) (* freeable *) (fun #_ h s -> if kk = 0 then True else B.freeable (s <: B.buffer ui...
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 206, "start_col": 0, "start_line": 168 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> kk: Hacl.Streaming.Blake2.Common.key_size a -> Hacl.Streaming.Interface.stateful Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.key_size", "Hacl.Streaming.Interface.Stateful", "Prims.unit", "Hacl.Streaming.Blake2.Common.stateful_key_t", "FStar.Monotonic.HyperStack.mem", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.loc_none", "Prims.bool", "L...
[]
false
false
false
false
false
let stateful_key (a: alg) (kk: key_size a) : I.stateful unit =
I.Stateful (fun _ -> stateful_key_t a kk) (fun #_ h s -> if kk = 0 then B.loc_none else B.loc_addr_of_buffer (s <: B.buffer uint8)) (fun #_ h s -> if kk = 0 then True else B.freeable (s <: B.buffer uint8)) (fun #_ h s -> if kk = 0 then True else B.live h (s <: B.buffer uint8)) (fun _ -> s: S.seq uint8 {S.length...
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.empty_key
val empty_key : a: Hacl.Streaming.Blake2.Common.alg -> Type0
let empty_key a = I.optional_key () I.Erased (stateful_key a 0)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 617, "start_col": 0, "start_line": 617 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Interface.optional_key", "Prims.unit", "Hacl.Streaming.Interface.Erased", "Hacl.Streaming.Blake2.Common.stateful_key" ]
[]
false
false
false
true
true
let empty_key a =
I.optional_key () I.Erased (stateful_key a 0)
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.strict_suffix_of_exists_append
val strict_suffix_of_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures (strict_suffix_of l1 l2 ==> (exists l3. l2 == append l3 l1)))
val strict_suffix_of_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures (strict_suffix_of l1 l2 ==> (exists l3. l2 == append l3 l1)))
let rec strict_suffix_of_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures (strict_suffix_of l1 l2 ==> (exists l3 . l2 == append l3 l1))) = match l2 with | [] -> () | a :: q -> FStar.Classical.or_elim #(l1 == q) #(strict_suffix_of l1 q) #(fun _ -> exists l3 . l2 == append l3 l1) ...
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 15, "end_line": 1109, "start_col": 0, "start_line": 1087 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> l2: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.strict_suffix_of l1 l2 ==> (exists (l3: Prims.list a). l2 == l3 @ l1))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.Classical.or_elim", "Prims.eq2", "FStar.List.Tot.Base.strict_suffix_of", "Prims.squash", "Prims.l_or", "Prims.l_Exists", "FStar.List.Tot.Base.append", "FStar.Classical.exists_intro", "Prims.Cons", "Prims.Nil", "Prims.unit", "FStar.Classical.exists_elim", "FStar.List.To...
[ "recursion" ]
false
false
true
false
false
let rec strict_suffix_of_exists_append (#a: Type) (l1 l2: list a) : Lemma (ensures (strict_suffix_of l1 l2 ==> (exists l3. l2 == append l3 l1))) =
match l2 with | [] -> () | a :: q -> FStar.Classical.or_elim #(l1 == q) #(strict_suffix_of l1 q) #(fun _ -> exists l3. l2 == append l3 l1) (fun _ -> FStar.Classical.exists_intro (fun l3 -> l2 == append l3 l1) ([a])) (fun _ -> FStar.Classical.exists_elim (exists l3. l2 == append l3 l1) ...
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.precedes_append_cons_prod_r
val precedes_append_cons_prod_r (#a #b: Type) (l1: list (a * b)) (x: a) (y: b) (l2: list (a * b)) : Lemma (ensures x << (append l1 ((x, y) :: l2)) /\ y << (append l1 ((x, y) :: l2)))
val precedes_append_cons_prod_r (#a #b: Type) (l1: list (a * b)) (x: a) (y: b) (l2: list (a * b)) : Lemma (ensures x << (append l1 ((x, y) :: l2)) /\ y << (append l1 ((x, y) :: l2)))
let precedes_append_cons_prod_r (#a #b: Type) (l1: list (a * b)) (x: a) (y: b) (l2: list (a * b)) : Lemma (ensures x << (append l1 ((x, y) :: l2)) /\ y << (append l1 ((x, y) :: l2))) = precedes_append_cons_r l1 (x, y) l2
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 1158, "start_col": 0, "start_line": 1148 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list (a * b) -> x: a -> y: b -> l2: Prims.list (a * b) -> FStar.Pervasives.Lemma (ensures x << l1 @ (x, y) :: l2 /\ y << l1 @ (x, y) :: l2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.List.Tot.Properties.precedes_append_cons_r", "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_and", "Prims.precedes", "FStar.List.Tot.Base.append", "Prims.Cons", "Prims.Nil", "FStar.Pervasives.pa...
[]
true
false
true
false
false
let precedes_append_cons_prod_r (#a #b: Type) (l1: list (a * b)) (x: a) (y: b) (l2: list (a * b)) : Lemma (ensures x << (append l1 ((x, y) :: l2)) /\ y << (append l1 ((x, y) :: l2))) =
precedes_append_cons_r l1 (x, y) l2
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.assoc_precedes
val assoc_precedes (#a: eqtype) (#b: Type) (x: a) (l: list (a * b)) (y: b) : Lemma (requires (assoc x l == Some y)) (ensures (x << l /\ y << l))
val assoc_precedes (#a: eqtype) (#b: Type) (x: a) (l: list (a * b)) (y: b) : Lemma (requires (assoc x l == Some y)) (ensures (x << l /\ y << l))
let assoc_precedes (#a: eqtype) (#b: Type) (x: a) (l: list (a * b)) (y: b) : Lemma (requires (assoc x l == Some y)) (ensures (x << l /\ y << l)) = assoc_memP_some x y l; memP_precedes (x, y) l
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 1188, "start_col": 0, "start_line": 1178 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> l: Prims.list (a * b) -> y: b -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.assoc x l == FStar.Pervasives.Native.Some y) (ensures x << l /\ y << l)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.List.Tot.Properties.memP_precedes", "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "FStar.List.Tot.Properties.assoc_memP_some", "Prims.eq2", "FStar.Pervasives.Native.option", "FStar.List.Tot.Base.assoc", "FStar.Pervasives....
[]
true
false
true
false
false
let assoc_precedes (#a: eqtype) (#b: Type) (x: a) (l: list (a * b)) (y: b) : Lemma (requires (assoc x l == Some y)) (ensures (x << l /\ y << l)) =
assoc_memP_some x y l; memP_precedes (x, y) l
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.precedes_append_cons_r
val precedes_append_cons_r (#a: Type) (l1: list a) (x: a) (l2: list a) : Lemma (requires True) (ensures (x << append l1 (x :: l2))) [SMTPat (x << append l1 (x :: l2))]
val precedes_append_cons_r (#a: Type) (l1: list a) (x: a) (l2: list a) : Lemma (requires True) (ensures (x << append l1 (x :: l2))) [SMTPat (x << append l1 (x :: l2))]
let rec precedes_append_cons_r (#a: Type) (l1: list a) (x: a) (l2: list a) : Lemma (requires True) (ensures (x << append l1 (x :: l2))) [SMTPat (x << append l1 (x :: l2))] = match l1 with | [] -> () | _ :: q -> precedes_append_cons_r q x l2
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 1146, "start_col": 0, "start_line": 1135 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> x: a -> l2: Prims.list a -> FStar.Pervasives.Lemma (ensures x << l1 @ x :: l2) [SMTPat (x << l1 @ x :: l2)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.precedes_append_cons_r", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.precedes", "FStar.List.Tot.Base.append", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.Nil" ]
[ "recursion" ]
false
false
true
false
false
let rec precedes_append_cons_r (#a: Type) (l1: list a) (x: a) (l2: list a) : Lemma (requires True) (ensures (x << append l1 (x :: l2))) [SMTPat (x << append l1 (x :: l2))] =
match l1 with | [] -> () | _ :: q -> precedes_append_cons_r q x l2
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.find_none
val find_none (#a: Type) (f: (a -> Tot bool)) (l: list a) (x: a) : Lemma (requires (find f l == None /\ memP x l)) (ensures (f x == false))
val find_none (#a: Type) (f: (a -> Tot bool)) (l: list a) (x: a) : Lemma (requires (find f l == None /\ memP x l)) (ensures (f x == false))
let rec find_none (#a: Type) (f: (a -> Tot bool)) (l: list a) (x: a) : Lemma (requires (find f l == None /\ memP x l)) (ensures (f x == false)) = let (x' :: l') = l in Classical.or_elim #(x == x') #(~ (x == x')) #(fun _ -> f x == false) (fun h -> ()) (fun h -> find_none f l' x)
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 1206, "start_col": 0, "start_line": 1192 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> Prims.bool) -> l: Prims.list a -> x: a -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.find f l == FStar.Pervasives.Native.None /\ FStar.List.Tot.Base.memP x l ) (ensures f x == false)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.bool", "Prims.list", "FStar.Classical.or_elim", "Prims.eq2", "Prims.l_not", "Prims.squash", "Prims.l_or", "Prims.unit", "FStar.List.Tot.Properties.find_none", "Prims.l_and", "FStar.Pervasives.Native.option", "Prims.b2t", "FStar.List.Tot.Base.find", "FStar.Pervasives.Native.None", ...
[ "recursion" ]
false
false
true
false
false
let rec find_none (#a: Type) (f: (a -> Tot bool)) (l: list a) (x: a) : Lemma (requires (find f l == None /\ memP x l)) (ensures (f x == false)) =
let x' :: l' = l in Classical.or_elim #(x == x') #(~(x == x')) #(fun _ -> f x == false) (fun h -> ()) (fun h -> find_none f l' x)
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.init_last_def
val init_last_def (#a: Type) (l: list a) (x: a) : Lemma (let l' = append l [x] in init l' == l /\ last l' == x)
val init_last_def (#a: Type) (l: list a) (x: a) : Lemma (let l' = append l [x] in init l' == l /\ last l' == x)
let rec init_last_def (#a: Type) (l: list a) (x: a) : Lemma (let l' = append l [x] in init l' == l /\ last l' == x) = match l with | [] -> () | y :: q -> init_last_def q x
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 1225, "start_col": 0, "start_line": 1220 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list a -> x: a -> FStar.Pervasives.Lemma (ensures (let l' = l @ [x] in FStar.List.Tot.Base.init l' == l /\ FStar.List.Tot.Base.last l' == x))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.init_last_def", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_and", "Prims.eq2", "FStar.List.Tot.Base.init", "FStar.List.Tot.Base.last", "FStar.List.Tot.Base.append", "Prims.Cons", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec init_last_def (#a: Type) (l: list a) (x: a) : Lemma (let l' = append l [x] in init l' == l /\ last l' == x) =
match l with | [] -> () | y :: q -> init_last_def q x
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.init_last_inj
val init_last_inj (#a: Type) (l1: list a {Cons? l1}) (l2: list a {Cons? l2}) : Lemma (requires (init l1 == init l2 /\ last l1 == last l2)) (ensures (l1 == l2))
val init_last_inj (#a: Type) (l1: list a {Cons? l1}) (l2: list a {Cons? l2}) : Lemma (requires (init l1 == init l2 /\ last l1 == last l2)) (ensures (l1 == l2))
let init_last_inj (#a: Type) (l1: list a { Cons? l1 } ) (l2: list a { Cons? l2 } ) : Lemma (requires (init l1 == init l2 /\ last l1 == last l2)) (ensures (l1 == l2)) = append_init_last l1; append_init_last l2
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 1231, "start_col": 0, "start_line": 1227 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a {Cons? l1} -> l2: Prims.list a {Cons? l2} -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.init l1 == FStar.List.Tot.Base.init l2 /\ FStar.List.Tot.Base.last l1 == FStar.List.Tot.Base.last l2) (ensures l1 == l2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Prims.b2t", "Prims.uu___is_Cons", "FStar.List.Tot.Properties.append_init_last", "Prims.unit", "Prims.l_and", "Prims.eq2", "FStar.List.Tot.Base.init", "FStar.List.Tot.Base.last", "Prims.squash", "Prims.l_or", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let init_last_inj (#a: Type) (l1: list a {Cons? l1}) (l2: list a {Cons? l2}) : Lemma (requires (init l1 == init l2 /\ last l1 == last l2)) (ensures (l1 == l2)) =
append_init_last l1; append_init_last l2
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.finish_s
val finish_s (#a: alg) (acc: t a) : output: S.seq uint8 {S.length output = U32.v (output_len a)}
val finish_s (#a: alg) (acc: t a) : output: S.seq uint8 {S.length output = U32.v (output_len a)}
let finish_s (#a : alg) (acc : t a) : output : S.seq uint8 { S.length output = U32.v (output_len a) } = Spec.blake2_finish a acc (U32.v (output_len a))
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 286, "start_col": 0, "start_line": 284 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Hacl.Streaming.Blake2.Common.t a -> output: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8 {FStar.Seq.Base.length output = FStar.UInt32.v (Hacl.Streaming.Blake2.Common.output_len a)}
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.t", "Spec.Blake2.blake2_finish", "FStar.UInt32.v", "Hacl.Streaming.Blake2.Common.output_len", "FStar.Seq.Base.seq", "Hacl.Streaming.Blake2.Common.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_Gre...
[]
false
false
false
false
false
let finish_s (#a: alg) (acc: t a) : output: S.seq uint8 {S.length output = U32.v (output_len a)} =
Spec.blake2_finish a acc (U32.v (output_len a))
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.append_init_last
val append_init_last (#a: Type) (l: list a {Cons? l}) : Lemma (l == append (init l) [last l])
val append_init_last (#a: Type) (l: list a {Cons? l}) : Lemma (l == append (init l) [last l])
let rec append_init_last (#a: Type) (l: list a { Cons? l }) : Lemma (l == append (init l) [last l]) = match l with | a :: q -> if Cons? q then append_init_last q else ()
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 8, "end_line": 1218, "start_col": 0, "start_line": 1210 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list a {Cons? l} -> FStar.Pervasives.Lemma (ensures l == FStar.List.Tot.Base.init l @ [FStar.List.Tot.Base.last l])
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Prims.b2t", "Prims.uu___is_Cons", "FStar.List.Tot.Properties.append_init_last", "Prims.bool", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "FStar.List.Tot.Base.append", "FStar.List.Tot.Base.init", "Prims.Cons", "FStar.List.Tot.Base.last", "Prims.Nil", "FStar....
[ "recursion" ]
false
false
true
false
false
let rec append_init_last (#a: Type) (l: list a {Cons? l}) : Lemma (l == append (init l) [last l]) =
match l with | a :: q -> if Cons? q then append_init_last q
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.for_all_append
val for_all_append (#a: _) (f: (a -> Tot bool)) (s1 s2: list a) : Lemma (ensures for_all f (s1 @ s2) <==> for_all f s1 && for_all f s2)
val for_all_append (#a: _) (f: (a -> Tot bool)) (s1 s2: list a) : Lemma (ensures for_all f (s1 @ s2) <==> for_all f s1 && for_all f s2)
let rec for_all_append #a (f: a -> Tot bool) (s1 s2: list a): Lemma (ensures for_all f (s1 @ s2) <==> for_all f s1 && for_all f s2) = let _ = allow_inversion (list a) in match s1 with | [] -> () | hd1 :: tl1 -> for_all_append f tl1 s2
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 1242, "start_col": 0, "start_line": 1236 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> Prims.bool) -> s1: Prims.list a -> s2: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.for_all f (s1 @ s2) <==> FStar.List.Tot.Base.for_all f s1 && FStar.List.Tot.Base.for_all f s2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.bool", "Prims.list", "FStar.List.Tot.Properties.for_all_append", "Prims.unit", "FStar.Pervasives.allow_inversion", "Prims.l_True", "Prims.squash", "Prims.l_iff", "Prims.b2t", "FStar.List.Tot.Base.for_all", "FStar.List.Tot.Base.op_At", "Prims.op_AmpAmp", "Prims.Nil", "FStar.Pervasive...
[ "recursion" ]
false
false
true
false
false
let rec for_all_append #a (f: (a -> Tot bool)) (s1: list a) (s2: list a) : Lemma (ensures for_all f (s1 @ s2) <==> for_all f s1 && for_all f s2) =
let _ = allow_inversion (list a) in match s1 with | [] -> () | hd1 :: tl1 -> for_all_append f tl1 s2
false
FStar.List.Tot.Properties.fst
FStar.List.Tot.Properties.memP_precedes
val memP_precedes (#a: Type) (x: a) (l: list a) : Lemma (requires True) (ensures (memP x l ==> x << l)) (decreases l)
val memP_precedes (#a: Type) (x: a) (l: list a) : Lemma (requires True) (ensures (memP x l ==> x << l)) (decreases l)
let rec memP_precedes (#a: Type) (x: a) (l: list a) : Lemma (requires True) (ensures (memP x l ==> x << l)) (decreases l) = match l with | [] -> () | y :: q -> FStar.Classical.or_elim #(x == y) #(memP x q) #(fun _ -> x << l) (fun _ -> ()) (fun _ -> memP_precedes x q)
{ "file_name": "ulib/FStar.List.Tot.Properties.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 1176, "start_col": 0, "start_line": 1160 }
(* Copyright 2008-2014 Nikhil Swamy and Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.StrongExcludedMiddle.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked" ], "...
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> l: Prims.list a -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.memP x l ==> x << l) (decreases l)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.Classical.or_elim", "Prims.eq2", "FStar.List.Tot.Base.memP", "Prims.squash", "Prims.l_or", "Prims.precedes", "Prims.unit", "FStar.List.Tot.Properties.memP_precedes", "Prims.l_True", "Prims.l_imp", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec memP_precedes (#a: Type) (x: a) (l: list a) : Lemma (requires True) (ensures (memP x l ==> x << l)) (decreases l) =
match l with | [] -> () | y :: q -> FStar.Classical.or_elim #(x == y) #(memP x q) #(fun _ -> x << l) (fun _ -> ()) (fun _ -> memP_precedes x q)
false
Hacl.Bignum.MontExponentiation.fst
Hacl.Bignum.MontExponentiation.bn_exp_mont_bm_consttime
val bn_exp_mont_bm_consttime: #t:limb_t -> k:BM.mont t -> bn_exp_mont_st t k.BM.bn.BN.len
val bn_exp_mont_bm_consttime: #t:limb_t -> k:BM.mont t -> bn_exp_mont_st t k.BM.bn.BN.len
let bn_exp_mont_bm_consttime #t k n mu r2 aM bBits b resM = push_frame (); let h0 = ST.get () in [@inline_let] let len = k.BM.bn.BN.len in [@inline_let] let bLen = blocks0 bBits (size (bits t)) in let k1 = Ghost.hide (E.mk_nat_mont_ll_comm_monoid (bits t) (v len) (bn_v h0 n) (v mu)) in let ctx = create (len...
{ "file_name": "code/bignum/Hacl.Bignum.MontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 234, "start_col": 0, "start_line": 222 }
module Hacl.Bignum.MontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl.Spec.B...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Exponentiation.Lemmas.fst.checked", "Hacl.Spec.Bignum.Montgomery...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Exponentiation.Lemmas", "short_module": "E" }, { "abbrev": true, "full_module": "Hacl.Impl.Exponentiation", "short_module": "BE" },...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontExponentiation.bn_exp_mont_st t (Mkbn?.len (Mkmont?.bn k))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks0", "Lib.IntTypes.size",...
[]
false
false
false
false
false
let bn_exp_mont_bm_consttime #t k n mu r2 aM bBits b resM =
push_frame (); let h0 = ST.get () in [@@ inline_let ]let len = k.BM.bn.BN.len in [@@ inline_let ]let bLen = blocks0 bBits (size (bits t)) in let k1 = Ghost.hide (E.mk_nat_mont_ll_comm_monoid (bits t) (v len) (bn_v h0 n) (v mu)) in let ctx = create (len +! len) (uint #t #SEC 0) in mk_ctx #t len n r2 ctx; BE.lexp_mont_la...
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.array_pred
val array_pred (#t: Type) (n: nat) (s: list t) : GTot Type0
val array_pred (#t: Type) (n: nat) (s: list t) : GTot Type0
let array_pred (#t: Type) (n: nat) (s: list t) : GTot Type0 = L.length s == n
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 17, "end_line": 18, "start_col": 0, "start_line": 17 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> s: Prims.list t -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.nat", "Prims.list", "Prims.eq2", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
true
let array_pred (#t: Type) (n: nat) (s: list t) : GTot Type0 =
L.length s == n
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.init_s
val init_s (a: alg) (kk: size_nat{kk <= max_key a}) : Tot (t a)
val init_s (a: alg) (kk: size_nat{kk <= max_key a}) : Tot (t a)
let init_s (a : alg) (kk : size_nat{kk <= max_key a}) : Tot (t a) = Spec.blake2_init_hash a (Spec.blake2_default_params a) kk (output_size a)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 263, "start_col": 0, "start_line": 261 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> kk: Hacl.Streaming.Blake2.Common.size_nat{kk <= Hacl.Streaming.Blake2.Common.max_key a} -> Hacl.Streaming.Blake2.Common.t a
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Streaming.Blake2.Common.max_key", "Spec.Blake2.blake2_init_hash", "Spec.Blake2.Definitions.blake2_default_params", "Hacl.Streaming.Blake2.Common.output_size", "Hacl.Streaming.B...
[]
false
false
false
false
false
let init_s (a: alg) (kk: size_nat{kk <= max_key a}) : Tot (t a) =
Spec.blake2_init_hash a (Spec.blake2_default_params a) kk (output_size a)
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.spec_s
val spec_s : a: Hacl.Streaming.Blake2.Common.alg -> kk: Hacl.Streaming.Blake2.Common.size_nat{kk <= Hacl.Streaming.Blake2.Common.max_key a} -> key: Hacl.Streaming.Blake2.Common.lbytes kk -> input: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8 { (match kk = 0 with | true -> ...
let spec_s (a : alg) (kk : size_nat{kk <= max_key a}) (key : lbytes kk) (input : S.seq uint8{if kk = 0 then S.length input <= max_input_length a else S.length input + Spec.size_block a <= max_input_length a}) = Spec.blake2 a input (Spec.blake2_default_params a) kk key (output_size a)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 293, "start_col": 0, "start_line": 289 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> kk: Hacl.Streaming.Blake2.Common.size_nat{kk <= Hacl.Streaming.Blake2.Common.max_key a} -> key: Hacl.Streaming.Blake2.Common.lbytes kk -> input: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8 { (match kk = 0 with | true -> FStar.Se...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Streaming.Blake2.Common.max_key", "Hacl.Streaming.Blake2.Common.lbytes", "FStar.Seq.Base.seq", "Hacl.Streaming.Blake2.Common.uint8", "Prims.op_Equality", "Prims.int", "FSta...
[]
false
false
false
false
false
let spec_s (a: alg) (kk: size_nat{kk <= max_key a}) (key: lbytes kk) (input: S.seq uint8 { if kk = 0 then S.length input <= max_input_length a else S.length input + Spec.size_block a <= max_input_length a }) =
Spec.blake2 a input (Spec.blake2_default_params a) kk key (output_size a)
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.stateful_blake2
val stateful_blake2 (a: alg) (m: m_spec) : I.stateful unit
val stateful_blake2 (a: alg) (m: m_spec) : I.stateful unit
let stateful_blake2 (a : alg) (m : m_spec) : I.stateful unit = I.Stateful (fun () -> s a m) (* s *) (* footprint *) (fun #_ _ acc -> let wv, b = acc in B.loc_union (B.loc_addr_of_buffer (state_to_lbuffer wv)) (B.loc_addr_of_buffer (state_to_lbuffer b))) (* freeable *) (fu...
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 134, "start_col": 0, "start_line": 89 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> m: Hacl.Streaming.Blake2.Common.m_spec -> Hacl.Streaming.Interface.stateful Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.m_spec", "Hacl.Streaming.Interface.Stateful", "Prims.unit", "Hacl.Streaming.Blake2.Common.s", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Blake2.Core.state_p", "LowStar.Monotonic.Buffer.loc_union", "LowStar.Monotonic.Buffer.loc_addr_...
[]
false
false
false
true
false
let stateful_blake2 (a: alg) (m: m_spec) : I.stateful unit =
I.Stateful (fun () -> s a m) (fun #_ _ acc -> let wv, b = acc in B.loc_union (B.loc_addr_of_buffer (state_to_lbuffer wv)) (B.loc_addr_of_buffer (state_to_lbuffer b))) (fun #_ _ acc -> let wv, b = acc in B.freeable (state_to_lbuffer wv) /\ B.freeable (state_to_lbuffer b)) (fun #_ h ...
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.array
val array : t: Type -> n: Prims.nat -> Type
let array (t: Type) (n: nat) = (l: list t { array_pred n l } )
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 62, "end_line": 53, "start_col": 0, "start_line": 53 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> n: Prims.nat -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.list", "LowParse.Spec.Array.array_pred" ]
[]
false
false
false
true
true
let array (t: Type) (n: nat) =
(l: list t {array_pred n l})
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.blake2_prevlen
val blake2_prevlen (a: alg) (prevlen: U64.t{U64.v prevlen <= max_input_length a}) : x: Spec.limb_t a {Lib.IntTypes.uint_v x = U64.v prevlen}
val blake2_prevlen (a: alg) (prevlen: U64.t{U64.v prevlen <= max_input_length a}) : x: Spec.limb_t a {Lib.IntTypes.uint_v x = U64.v prevlen}
let blake2_prevlen (a : alg) (prevlen : U64.t{ U64.v prevlen <= max_input_length a}) : x:Spec.limb_t a { Lib.IntTypes.uint_v x = U64.v prevlen } = let open Lib.IntTypes in match a with | Spec.Blake2S -> to_u64 #U64 #PUB prevlen | Spec.Blake2B -> [@inline_let] let x : uint64 = to_u64...
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 255, "start_col": 0, "start_line": 246 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> prevlen: FStar.UInt64.t{FStar.UInt64.v prevlen <= Hacl.Streaming.Blake2.Common.max_input_length a} -> x: Spec.Blake2.Definitions.limb_t a {Lib.IntTypes.uint_v x = FStar.UInt64.v prevlen}
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "FStar.UInt64.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt64.v", "Hacl.Streaming.Blake2.Common.max_input_length", "Lib.IntTypes.to_u64", "Lib.IntTypes.U64", "Lib.IntTypes.PUB", "Lib.IntTypes.cast", "Lib.IntTypes.SEC", "Lib.IntTypes.U128", "Lib....
[]
false
false
false
false
false
let blake2_prevlen (a: alg) (prevlen: U64.t{U64.v prevlen <= max_input_length a}) : x: Spec.limb_t a {Lib.IntTypes.uint_v x = U64.v prevlen} =
let open Lib.IntTypes in match a with | Spec.Blake2S -> to_u64 #U64 #PUB prevlen | Spec.Blake2B -> [@@ inline_let ]let x:uint64 = to_u64 #U64 #PUB prevlen in Lib.IntTypes.cast U128 SEC x
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.update_last_s
val update_last_s (#a: alg) (acc: t a) (prevlen: nat{prevlen % Spec.size_block a = 0}) (input: Seq.seq uint8 {S.length input + prevlen <= max_input_length a /\ S.length input <= Spec.size_block a}) : Tot (t a)
val update_last_s (#a: alg) (acc: t a) (prevlen: nat{prevlen % Spec.size_block a = 0}) (input: Seq.seq uint8 {S.length input + prevlen <= max_input_length a /\ S.length input <= Spec.size_block a}) : Tot (t a)
let update_last_s (#a : alg) (acc : t a) (prevlen : nat{prevlen % Spec.size_block a = 0}) (input : Seq.seq uint8{ S.length input + prevlen <= max_input_length a /\ S.length input <= Spec.size_block a }) : Tot (t a) = Spec.blake2_update_la...
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 281, "start_col": 0, "start_line": 276 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Hacl.Streaming.Blake2.Common.t a -> prevlen: Prims.nat{prevlen % Spec.Blake2.Definitions.size_block a = 0} -> input: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8 { FStar.Seq.Base.length input + prevlen <= Hacl.Streaming.Blake2.Common.max_input_length a /\ FStar.Seq.Bas...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.t", "Prims.nat", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Spec.Blake2.Definitions.size_block", "FStar.Seq.Base.seq", "Hacl.Streaming.Blake2.Common.uint8", "Prims.l_and", "Prims.op_LessThanOrEqual", "...
[]
false
false
false
false
false
let update_last_s (#a: alg) (acc: t a) (prevlen: nat{prevlen % Spec.size_block a = 0}) (input: Seq.seq uint8 {S.length input + prevlen <= max_input_length a /\ S.length input <= Spec.size_block a}) : Tot (t a) =
Spec.blake2_update_last a prevlen (S.length input) input acc
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vlarray
val vlarray : t: Type -> min: Prims.nat -> max: Prims.nat -> Type
let vlarray (t: Type) (min max: nat) = (l: list t { min <= L.length l /\ L.length l <= max } )
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 57, "end_line": 371, "start_col": 0, "start_line": 370 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> min: Prims.nat -> max: Prims.nat -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.list", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.List.Tot.Base.length" ]
[]
false
false
false
true
true
let vlarray (t: Type) (min max: nat) =
(l: list t {min <= L.length l /\ L.length l <= max})
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vlarray_pred
val vlarray_pred (#t: Type) (min max: nat) (s: list t) : GTot Type0
val vlarray_pred (#t: Type) (min max: nat) (s: list t) : GTot Type0
let vlarray_pred (#t: Type) (min max: nat) (s: list t) : GTot Type0 = let l = L.length s in min <= l /\ l <= max
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 24, "end_line": 302, "start_col": 0, "start_line": 300 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat -> s: Prims.list t -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.nat", "Prims.list", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
true
let vlarray_pred (#t: Type) (min max: nat) (s: list t) : GTot Type0 =
let l = L.length s in min <= l /\ l <= max
false
Vale.Interop.Base.fst
Vale.Interop.Base.default_bq
val default_bq : Vale.Interop.Base.buffer_qualifiers
let default_bq = { modified = true; taint = Secret; strict_disjointness = false }
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 61, "start_col": 0, "start_line": 57 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Vale.Interop.Base.buffer_qualifiers
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.Mkbuffer_qualifiers", "Vale.Arch.HeapTypes_s.Secret" ]
[]
false
false
false
true
false
let default_bq =
{ modified = true; taint = Secret; strict_disjointness = false }
false
Vale.Interop.Base.fst
Vale.Interop.Base.mut_to_b8
val mut_to_b8 (src: base_typ) (b: B.buffer (base_typ_as_type src)) : GTot b8
val mut_to_b8 (src: base_typ) (b: B.buffer (base_typ_as_type src)) : GTot b8
let mut_to_b8 (src:base_typ) (b:B.buffer (base_typ_as_type src)) : GTot b8 = Buffer true b
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 43, "start_col": 0, "start_line": 42 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> b: LowStar.Buffer.buffer (Vale.Interop.Types.base_typ_as_type src) -> Prims.GTot Vale.Interop.Types.b8
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "LowStar.Buffer.buffer", "Vale.Interop.Types.base_typ_as_type", "Vale.Interop.Types.Buffer", "Vale.Interop.Types.b8" ]
[]
false
false
false
false
false
let mut_to_b8 (src: base_typ) (b: B.buffer (base_typ_as_type src)) : GTot b8 =
Buffer true b
false
Vale.Interop.Base.fst
Vale.Interop.Base.valid_base_type
val valid_base_type : Type0
let valid_base_type = x:base_typ{x <> TUInt128}
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 70, "start_col": 0, "start_line": 70 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.b2t", "Prims.op_disEquality", "Vale.Arch.HeapTypes_s.TUInt128" ]
[]
false
false
false
true
true
let valid_base_type =
x: base_typ{x <> TUInt128}
false
Vale.Interop.Base.fst
Vale.Interop.Base.imm_to_b8
val imm_to_b8 (src: base_typ) (b: IB.ibuffer (base_typ_as_type src)) : GTot b8
val imm_to_b8 (src: base_typ) (b: IB.ibuffer (base_typ_as_type src)) : GTot b8
let imm_to_b8 (src:base_typ) (b:IB.ibuffer (base_typ_as_type src)) : GTot b8 = Buffer false b
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 40, "start_col": 0, "start_line": 39 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> b: LowStar.ImmutableBuffer.ibuffer (Vale.Interop.Types.base_typ_as_type src) -> Prims.GTot Vale.Interop.Types.b8
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "LowStar.ImmutableBuffer.ibuffer", "Vale.Interop.Types.base_typ_as_type", "Vale.Interop.Types.Buffer", "Vale.Interop.Types.b8" ]
[]
false
false
false
false
false
let imm_to_b8 (src: base_typ) (b: IB.ibuffer (base_typ_as_type src)) : GTot b8 =
Buffer false b
false
Vale.Interop.Base.fst
Vale.Interop.Base.stack_bq
val stack_bq : Vale.Interop.Base.buffer_qualifiers
let stack_bq = { modified = true; taint = Public; strict_disjointness = true }
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 68, "start_col": 0, "start_line": 64 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Vale.Interop.Base.buffer_qualifiers
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.Mkbuffer_qualifiers", "Vale.Arch.HeapTypes_s.Public" ]
[]
false
false
false
true
false
let stack_bq =
{ modified = true; taint = Public; strict_disjointness = true }
false
Vale.Interop.Base.fst
Vale.Interop.Base.normal
val normal (#a: Type) (x: a) : a
val normal (#a: Type) (x: a) : a
let normal (#a:Type) (x:a) : a = FStar.Pervasives.norm [iota; zeta; delta_attr [`%__reduce__; `%BigOps.__reduce__]; delta_only [`%TD_Buffer?; `%BS.Mkmachine_state?.ms_ok; `%BS.Mkmachine_state?.ms_regs; `%BS.Mkmachine_state?.ms_flags; ...
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 105, "start_col": 0, "start_line": 80 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> a
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.iota", "FStar.Pervasives.zeta", "FStar.Pervasives.delta_attr", "Prims.string", "Prims.Nil", "FStar.Pervasives.delta_only", "FStar.Pervasives.primops", "FStar.Pervasives.simplify" ]
[]
false
false
false
true
false
let normal (#a: Type) (x: a) : a =
FStar.Pervasives.norm [ iota; zeta; delta_attr [`%__reduce__; `%BigOps.__reduce__]; delta_only [ `%TD_Buffer?; `%BS.Mkmachine_state?.ms_ok; `%BS.Mkmachine_state?.ms_regs; `%BS.Mkmachine_state?.ms_flags; `%BS.Mkmachine_state?.ms_heap; `%BS.Mkmachine_state?.ms_stack; `%BS.Mkmachine...
false
Vale.Interop.Base.fst
Vale.Interop.Base.arg
val arg : Type0
let arg = t:td & td_as_type t
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 117, "start_col": 0, "start_line": 117 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.dtuple2", "Vale.Interop.Base.td", "Vale.Interop.Base.td_as_type" ]
[]
false
false
false
true
true
let arg =
t: td & td_as_type t
false
Vale.Interop.Base.fst
Vale.Interop.Base.arr
val arr : dom: Type -> codom: Type -> Type
let arr (dom:Type) (codom:Type) = dom -> codom
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 130, "start_col": 0, "start_line": 130 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dom: Type -> codom: Type -> Type
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
true
let arr (dom codom: Type) =
dom -> codom
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.repeati_split_at_eq
val repeati_split_at_eq : a : alg -> s : t a -> input:S.seq uint8 { S.length input <= max_input_length a } -> Lemma( let n_blocks, l_last = Spec.split a (S.length input) in let blocks, last = Lib.UpdateMulti.split_at_last_lazy (U32.v (block_len a)) input in n_blocks = Lib.Sequence.length blocks / Sp...
val repeati_split_at_eq : a : alg -> s : t a -> input:S.seq uint8 { S.length input <= max_input_length a } -> Lemma( let n_blocks, l_last = Spec.split a (S.length input) in let blocks, last = Lib.UpdateMulti.split_at_last_lazy (U32.v (block_len a)) input in n_blocks = Lib.Sequence.length blocks / Sp...
let repeati_split_at_eq a s input = let n_blocks, l_last = Spec.split a (S.length input) in let blocks, last = Lib.UpdateMulti.split_at_last_lazy (U32.v (block_len a)) input in let f = Spec.blake2_update1 a 0 input in let g = Spec.blake2_update1 a 0 blocks in let s1 = Lib.LoopCombinators.repeati n_blocks f s ...
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 450, "start_col": 0, "start_line": 415 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> s: Hacl.Streaming.Blake2.Common.t a -> input: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8 {FStar.Seq.Base.length input <= Hacl.Streaming.Blake2.Common.max_input_length a} -> FStar.Pervasives.Lemma (ensures (let _ = Spec.Blake2.split...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.t", "FStar.Seq.Base.seq", "Hacl.Streaming.Blake2.Common.uint8", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Seq.Base.length", "Hacl.Streaming.Blake2.Common.max_input_length", "Prims.nat", "Lib.UpdateMulti.uint8", "Lib.Sequence...
[]
false
false
true
false
false
let repeati_split_at_eq a s input =
let n_blocks, l_last = Spec.split a (S.length input) in let blocks, last = Lib.UpdateMulti.split_at_last_lazy (U32.v (block_len a)) input in let f = Spec.blake2_update1 a 0 input in let g = Spec.blake2_update1 a 0 blocks in let s1 = Lib.LoopCombinators.repeati n_blocks f s in assert (Lib.Sequence.length blocks = n_bloc...
false
Vale.Interop.Base.fst
Vale.Interop.Base.intro_n_arrow_nil
val intro_n_arrow_nil (a: Type) (x: a) : n_arrow [] a
val intro_n_arrow_nil (a: Type) (x: a) : n_arrow [] a
let intro_n_arrow_nil (a:Type) (x:a) : n_arrow [] a = x
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 149, "start_col": 0, "start_line": 147 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> x: a -> Vale.Interop.Base.n_arrow [] a
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.n_arrow", "Prims.Nil", "Vale.Interop.Base.td" ]
[]
false
false
false
true
false
let intro_n_arrow_nil (a: Type) (x: a) : n_arrow [] a =
x
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.update_multi_s
val update_multi_s (#a: alg) (acc: t a) (prevlen: nat{prevlen % Spec.size_block a = 0}) (input: Seq.seq uint8 { prevlen + S.length input <= max_input_length a /\ S.length input % Spec.size_block a = 0 }) : Tot (t a)
val update_multi_s (#a: alg) (acc: t a) (prevlen: nat{prevlen % Spec.size_block a = 0}) (input: Seq.seq uint8 { prevlen + S.length input <= max_input_length a /\ S.length input % Spec.size_block a = 0 }) : Tot (t a)
let update_multi_s (#a : alg) (acc : t a) (prevlen : nat{prevlen % Spec.size_block a = 0}) (input : Seq.seq uint8{ prevlen + S.length input <= max_input_length a /\ S.length input % Spec.size_block a = 0 }) : Tot (t a) = let nb = S.len...
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 74, "end_line": 273, "start_col": 0, "start_line": 266 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Hacl.Streaming.Blake2.Common.t a -> prevlen: Prims.nat{prevlen % Spec.Blake2.Definitions.size_block a = 0} -> input: FStar.Seq.Base.seq Hacl.Streaming.Blake2.Common.uint8 { prevlen + FStar.Seq.Base.length input <= Hacl.Streaming.Blake2.Common.max_input_length a /\ FStar.Seq.Bas...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.t", "Prims.nat", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Spec.Blake2.Definitions.size_block", "FStar.Seq.Base.seq", "Hacl.Streaming.Blake2.Common.uint8", "Prims.l_and", "Prims.op_LessThanOrEqual", "...
[]
false
false
false
false
false
let update_multi_s (#a: alg) (acc: t a) (prevlen: nat{prevlen % Spec.size_block a = 0}) (input: Seq.seq uint8 { prevlen + S.length input <= max_input_length a /\ S.length input % Spec.size_block a = 0 }) : Tot (t a) =
let nb = S.length input / U32.v (block_len a) in Lib.LoopCombinators.repeati nb (Spec.blake2_update1 a prevlen input) acc
false
Vale.Interop.Base.fst
Vale.Interop.Base.intro_n_arrow_cons
val intro_n_arrow_cons (hd: td) (b: Type) (tl: list td) (x: (td_as_type hd -> n_arrow tl b)) : n_arrow (hd :: tl) b
val intro_n_arrow_cons (hd: td) (b: Type) (tl: list td) (x: (td_as_type hd -> n_arrow tl b)) : n_arrow (hd :: tl) b
let intro_n_arrow_cons (hd:td) (b:Type) (tl:list td) (x:td_as_type hd -> n_arrow tl b) : n_arrow (hd::tl) b = x
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 155, "start_col": 0, "start_line": 152 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hd: Vale.Interop.Base.td -> b: Type -> tl: Prims.list Vale.Interop.Base.td -> x: (_: Vale.Interop.Base.td_as_type hd -> Vale.Interop.Base.n_arrow tl b) -> Vale.Interop.Base.n_arrow (hd :: tl) b
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.td", "Prims.list", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.n_arrow", "Prims.Cons" ]
[]
false
false
false
false
false
let intro_n_arrow_cons (hd: td) (b: Type) (tl: list td) (x: (td_as_type hd -> n_arrow tl b)) : n_arrow (hd :: tl) b =
x
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.fldata_array_precond
val fldata_array_precond (k: parser_kind) (array_byte_size elem_count: nat) : Tot bool
val fldata_array_precond (k: parser_kind) (array_byte_size elem_count: nat) : Tot bool
let fldata_array_precond (k: parser_kind) (array_byte_size: nat) (elem_count: nat) : Tot bool = serialize_list_precond k && k.parser_kind_high = Some k.parser_kind_low && elem_count * k.parser_kind_low = array_byte_size
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 50, "end_line": 28, "start_col": 0, "start_line": 21 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: LowParse.Spec.Base.parser_kind -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.nat", "Prims.op_AmpAmp", "LowParse.Spec.List.serialize_list_precond", "Prims.op_Equality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_high", "FStar.Pervasives.Native.Some", "LowParse.Spec.Base.__proj__Mkpar...
[]
false
false
false
true
false
let fldata_array_precond (k: parser_kind) (array_byte_size elem_count: nat) : Tot bool =
serialize_list_precond k && k.parser_kind_high = Some k.parser_kind_low && elem_count * k.parser_kind_low = array_byte_size
false
Vale.Interop.Base.fst
Vale.Interop.Base.ibuf_t
val ibuf_t : src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> Type0
let ibuf_t src t = b:IB.ibuffer (base_typ_as_type src){(B.length b * view_n_unfold src) % view_n_unfold t = 0}
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 110, "end_line": 24, "start_col": 0, "start_line": 24 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "LowStar.ImmutableBuffer.ibuffer", "Vale.Interop.Types.base_typ_as_type", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "LowStar.Monotonic.Buffer.length", "LowStar.ImmutableBuffer.immutable_preorder", "Vale.Interop.Types...
[]
false
false
false
true
true
let ibuf_t src t =
b: IB.ibuffer (base_typ_as_type src) {(B.length b * view_n_unfold src) % view_n_unfold t = 0}
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_array'
val parse_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Pure (parser (parse_array_kind' array_byte_size) (array t elem_count)) (requires (fldata_array_precond k array_byte_size elem_count == true)) (ensures (fun _...
val parse_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Pure (parser (parse_array_kind' array_byte_size) (array t elem_count)) (requires (fldata_array_precond k array_byte_size elem_count == true)) (ensures (fun _...
let parse_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) : Pure (parser (parse_array_kind' array_byte_size) (array t elem_count)) (requires ( fldata_array_precond k array_byte_size elem_count == true )) (ensures (fun _ -> True)) = le...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 121, "end_line": 111, "start_col": 0, "start_line": 97 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> Prims.Pure (LowParse.Spec.Base.parser (LowParse.Spec.Array.parse_array_kind' array_byte_size) (LowParse.Spec.Array.array t elem_count))
Prims.Pure
[]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.FLData.parse_fldata_kind", "LowParse.Spec.List.parse_list_kind", "LowParse.Spec.FLData.parse_fldata_strong_t", "Prims.list", "LowPars...
[]
false
false
false
false
false
let parse_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Pure (parser (parse_array_kind' array_byte_size) (array t elem_count)) (requires (fldata_array_precond k array_byte_size elem_count == true)) (ensures (fun _...
let u:u: unit{fldata_array_precond k array_byte_size elem_count == true} = () in fldata_to_array_inj s array_byte_size elem_count u; (parse_fldata_strong (serialize_list _ s) array_byte_size) `parse_synth` (fldata_to_array s array_byte_size elem_count u)
false
Vale.Interop.Base.fst
Vale.Interop.Base.intro_dep_arrow_nil
val intro_dep_arrow_nil (b: Type) (f: b) : n_dep_arrow [] b
val intro_dep_arrow_nil (b: Type) (f: b) : n_dep_arrow [] b
let intro_dep_arrow_nil (b:Type) (f:b) : n_dep_arrow [] b = f
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 171, "start_col": 0, "start_line": 168 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Type -> f: b -> Vale.Interop.Base.n_dep_arrow [] b
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.n_dep_arrow", "Prims.Nil", "Vale.Interop.Base.td" ]
[]
false
false
false
true
false
let intro_dep_arrow_nil (b: Type) (f: b) : n_dep_arrow [] b =
f
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_array_kind'
val parse_array_kind' (array_byte_size: nat) : Tot parser_kind
val parse_array_kind' (array_byte_size: nat) : Tot parser_kind
let parse_array_kind' (array_byte_size: nat) : Tot parser_kind = parse_fldata_kind array_byte_size parse_list_kind
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 95, "start_col": 0, "start_line": 92 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size: Prims.nat -> LowParse.Spec.Base.parser_kind
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "LowParse.Spec.FLData.parse_fldata_kind", "LowParse.Spec.List.parse_list_kind", "LowParse.Spec.Base.parser_kind" ]
[]
false
false
false
true
false
let parse_array_kind' (array_byte_size: nat) : Tot parser_kind =
parse_fldata_kind array_byte_size parse_list_kind
false
Vale.Interop.Base.fst
Vale.Interop.Base.buf_t
val buf_t : src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> Type0
let buf_t src t = b:B.buffer (base_typ_as_type src){(B.length b * view_n_unfold src) % view_n_unfold t = 0}
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 107, "end_line": 21, "start_col": 0, "start_line": 21 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "LowStar.Buffer.buffer", "Vale.Interop.Types.base_typ_as_type", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder", "Vale.Interop.Types.view_n_unfold" ]
[]
false
false
false
true
true
let buf_t src t =
b: B.buffer (base_typ_as_type src) {(B.length b * view_n_unfold src) % view_n_unfold t = 0}
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_array_kind
val parse_array_kind (k: parser_kind) (array_byte_size elem_count: nat) : Tot parser_kind
val parse_array_kind (k: parser_kind) (array_byte_size elem_count: nat) : Tot parser_kind
let parse_array_kind (k: parser_kind) (array_byte_size: nat) (elem_count: nat) : Tot parser_kind = if fldata_array_precond k array_byte_size elem_count && k.parser_kind_metadata = Some ParserKindMetadataTotal then total_constant_size_parser_kind array_byte_size else parse_array_kind' array_byt...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 149, "start_col": 0, "start_line": 138 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: LowParse.Spec.Base.parser_kind -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> LowParse.Spec.Base.parser_kind
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.nat", "Prims.op_AmpAmp", "LowParse.Spec.Array.fldata_array_precond", "Prims.op_Equality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_kind_metadata_some", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_metadata", "FStar.Pervasi...
[]
false
false
false
true
false
let parse_array_kind (k: parser_kind) (array_byte_size elem_count: nat) : Tot parser_kind =
if fldata_array_precond k array_byte_size elem_count && k.parser_kind_metadata = Some ParserKindMetadataTotal then total_constant_size_parser_kind array_byte_size else parse_array_kind' array_byte_size
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vldata_vlarray_precond
val vldata_vlarray_precond (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min elem_count_max: nat) : GTot bool
val vldata_vlarray_precond (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min elem_count_max: nat) : GTot bool
let vldata_vlarray_precond (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min: nat) (elem_count_max: nat) : GTot bool = (* constant-size serializable parser for elements *) serialize_list_precond k && k.parser_kind_high = Some k.par...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 81, "end_line": 328, "start_col": 0, "start_line": 304 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> p: LowParse.Spec.Base.parser k t -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.op_AmpAmp", "LowParse.Spec.List.serialize_list_precond", "Prims.op_Equality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_high", "FStar.Pervasives.Native.Some", "L...
[]
false
false
false
false
false
let vldata_vlarray_precond (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min elem_count_max: nat) : GTot bool =
serialize_list_precond k && k.parser_kind_high = Some k.parser_kind_low && array_byte_size_min <= array_byte_size_max && array_byte_size_max > 0 && array_byte_size_max < 4294967296 && elem_count_min <= elem_count_max && 0 < elem_count_max && elem_count_min * k.parser_kind_low < array_byte_size_min + k.parser_kind_low &...
false
Vale.Interop.Base.fst
Vale.Interop.Base.coerce
val coerce (x: 'a{'a == 'b}) : 'b
val coerce (x: 'a{'a == 'b}) : 'b
let coerce (x:'a{'a == 'b}) : 'b = x
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 46, "start_col": 0, "start_line": 46 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: 'a{'a == 'b} -> 'b
Prims.Tot
[ "total" ]
[]
[ "Prims.eq2" ]
[]
false
false
false
false
false
let coerce (x: 'a{'a == 'b}) : 'b =
x
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_array
val parse_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Pure (parser (parse_array_kind k array_byte_size elem_count) (array t elem_count)) (requires (fldata_array_precond k array_byte_size elem_count == true)) (ens...
val parse_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Pure (parser (parse_array_kind k array_byte_size elem_count) (array t elem_count)) (requires (fldata_array_precond k array_byte_size elem_count == true)) (ens...
let parse_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) : Pure (parser (parse_array_kind k array_byte_size elem_count) (array t elem_count)) (requires ( fldata_array_precond k array_byte_size elem_count == true )) (ensures (fun _ -> ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 104, "end_line": 185, "start_col": 0, "start_line": 172 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> Prims.Pure (LowParse.Spec.Base.parser (LowParse.Spec.Array.parse_array_kind k array_byte_size elem_count) (LowParse.Spec.Array.array t elem_count))
Prims.Pure
[]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "LowParse.Spec.Base.strengthen", "LowParse.Spec.Array.parse_array_kind", "LowParse.Spec.Array.array", "LowParse.Spec.Array.parse_array'", "Prims.unit", "LowParse.Spec.Array.parse_array_kind...
[]
false
false
false
false
false
let parse_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Pure (parser (parse_array_kind k array_byte_size elem_count) (array t elem_count)) (requires (fldata_array_precond k array_byte_size elem_count == true)) (ens...
parse_array_kind_correct s array_byte_size elem_count; strengthen (parse_array_kind k array_byte_size elem_count) (parse_array' s array_byte_size elem_count)
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.array_to_fldata_correct
val array_to_fldata_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: list t) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ array_pred elem_count x)) (ensures (parse_...
val array_to_fldata_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: list t) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ array_pred elem_count x)) (ensures (parse_...
let array_to_fldata_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (x: list t) : Lemma (requires ( fldata_array_precond k array_byte_size elem_count == true /\ array_pred elem_count x )) (ensures ( parse_fldata_strong_pred...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 46, "end_line": 204, "start_col": 0, "start_line": 187 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> x: Prims.list t -> FStar.Pervasives.Lemma (requires LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true /\ LowParse.Spec.Array.array_pred elem_count x) (e...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.list", "LowParse.Spec.List.list_length_constant_size_parser_correct", "LowParse.Bytes.bytes", "LowParse.Spec.Base.serialize", "LowParse.Spec.List.parse_list_kind", "LowParse.Spec.Lis...
[]
true
false
true
false
false
let array_to_fldata_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: list t) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ array_pred elem_count x)) (ensures (parse_...
let y = serialize (serialize_list _ s) x in list_length_constant_size_parser_correct p y
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.serialize_array
val serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) : Tot (serializer (parse_array s array_byte_size elem_count))
val serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) : Tot (serializer (parse_array s array_byte_size elem_count))
let serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (u: unit { fldata_array_precond k array_byte_size elem_count == true }) : Tot (serializer (parse_array s array_byte_size elem_count)) = fun x -> serialize (serialize_array' s ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 72, "end_line": 271, "start_col": 0, "start_line": 260 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> u242: u243: Prims.unit{LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true} -> LowParse.Spec.Base.serializer (LowParse.Spec.Array.parse_array s array_byte_size elem_count...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.fldata_array_precond", "LowParse.Spec.Array.array", "LowParse.Spec.Base.serialize", "LowParse.Spec.Array.parse_array_kind'", ...
[]
false
false
false
false
false
let serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) : Tot (serializer (parse_array s array_byte_size elem_count)) =
fun x -> serialize (serialize_array' s array_byte_size elem_count u) x
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.update_multi_zero
val update_multi_zero: #a : alg -> acc:t a -> prevlen:nat{prevlen % Spec.size_block a = 0} -> Lemma (requires (prevlen <= max_input_length a)) (ensures (update_multi_s #a acc prevlen S.empty == acc))
val update_multi_zero: #a : alg -> acc:t a -> prevlen:nat{prevlen % Spec.size_block a = 0} -> Lemma (requires (prevlen <= max_input_length a)) (ensures (update_multi_s #a acc prevlen S.empty == acc))
let update_multi_zero #a acc prevlen = Lib.LoopCombinators.eq_repeati0 (0 / U32.v (block_len a)) (Spec.blake2_update1 a prevlen S.empty) acc
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 103, "end_line": 307, "start_col": 0, "start_line": 306 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Hacl.Streaming.Blake2.Common.t a -> prevlen: Prims.nat{prevlen % Spec.Blake2.Definitions.size_block a = 0} -> FStar.Pervasives.Lemma (requires prevlen <= Hacl.Streaming.Blake2.Common.max_input_length a) (ensures Hacl.Streaming.Blake2.Common.update_multi_s acc prevlen FStar.Seq.Base.empty == acc)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.t", "Prims.nat", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Spec.Blake2.Definitions.size_block", "Lib.LoopCombinators.eq_repeati0", "Spec.Blake2.Definitions.state", "Prims.op_Division", "FStar.UInt32.v",...
[]
true
false
true
false
false
let update_multi_zero #a acc prevlen =
Lib.LoopCombinators.eq_repeati0 (0 / U32.v (block_len a)) (Spec.blake2_update1 a prevlen S.empty) acc
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_vlarray
val parse_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max ...
val parse_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max ...
let parse_vlarray (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min: nat) (elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_count_min elem_count_max == true ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 93, "end_line": 439, "start_col": 0, "start_line": 423 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> u413: u414: Prims.unit { LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min array_byte_...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.vldata_vlarray_precond", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.VLData.parse_bounded_vldata_strong_kind", "L...
[]
false
false
false
false
false
let parse_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max ...
vldata_to_vlarray_inj array_byte_size_min array_byte_size_max s elem_count_min elem_count_max u; (parse_bounded_vldata_strong array_byte_size_min array_byte_size_max (serialize_list _ s)) `parse_synth` (vldata_to_vlarray array_byte_size_min array_byte_size_max s elem_count_min elem_count_max u)
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.fldata_to_array_correct
val fldata_to_array_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: list t) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ parse_fldata_strong_pred (serialize_li...
val fldata_to_array_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: list t) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ parse_fldata_strong_pred (serialize_li...
let fldata_to_array_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (x: list t) : Lemma (requires ( fldata_array_precond k array_byte_size elem_count == true /\ parse_fldata_strong_pred (serialize_list _ s) array_byte_size x )) ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 50, "start_col": 0, "start_line": 30 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> x: Prims.list t -> FStar.Pervasives.Lemma (requires LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true /\ LowParse.Spec.FLData.parse_fldata_strong_pred (LowPar...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.list", "LowParse.Math.mul_reg_r", "FStar.List.Tot.Base.length", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_low", "Prims.unit", "LowParse.Spec.List.list_length_cons...
[]
true
false
true
false
false
let fldata_to_array_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: list t) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ parse_fldata_strong_pred (serialize_li...
let y = serialize (serialize_list _ s) x in assert (parse (parse_list p) y == Some (x, array_byte_size)); assert (Seq.length y == array_byte_size); list_length_constant_size_parser_correct p y; M.mul_reg_r elem_count (L.length x) k.parser_kind_low
false
Vale.Interop.Base.fst
Vale.Interop.Base.__test
val __test:n_dep_arrow [TD_Base TUInt8] (fun (x: UInt8.t) -> y: UInt8.t{x == y})
val __test:n_dep_arrow [TD_Base TUInt8] (fun (x: UInt8.t) -> y: UInt8.t{x == y})
let __test : n_dep_arrow [TD_Base TUInt8] (fun (x:UInt8.t) -> y:UInt8.t{x == y}) = fun (x:UInt8.t) -> intro_dep_arrow_nil (y:UInt8.t{x == y}) x
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 205, "start_col": 0, "start_line": 204 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Vale.Interop.Base.n_dep_arrow [Vale.Interop.Base.TD_Base Vale.Arch.HeapTypes_s.TUInt8] (fun x -> y: FStar.UInt8.t{x == y})
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt8.t", "Vale.Interop.Base.intro_dep_arrow_nil", "Prims.eq2", "Vale.Interop.Base.n_dep_arrow", "Prims.Nil", "Vale.Interop.Base.td", "Vale.Interop.Base.elim_1", "Prims.Cons", "Vale.Interop.Base.TD_Base", "Vale.Arch.HeapTypes_s.TUInt8", "Vale.Interop.Base.n_arrow" ]
[]
false
false
false
false
false
let __test:n_dep_arrow [TD_Base TUInt8] (fun (x: UInt8.t) -> y: UInt8.t{x == y}) =
fun (x: UInt8.t) -> intro_dep_arrow_nil (y: UInt8.t{x == y}) x
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.array_to_fldata
val array_to_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: array t elem_count) : Tot (parse_fldata_strong_t (serialize_list _ s) array_byte_si...
val array_to_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: array t elem_count) : Tot (parse_fldata_strong_t (serialize_list _ s) array_byte_si...
let array_to_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (u: unit { fldata_array_precond k array_byte_size elem_count == true }) (x: array t elem_count) : Tot (parse_fldata_strong_t (serialize_list _ s) array_byte_size) = [@inline...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 223, "start_col": 0, "start_line": 207 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> u188: u190: Prims.unit{LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true} -> x: LowParse.Spec.Array.array t elem_count -> LowParse.Spec.FLData.parse_fldata_strong_t...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.fldata_array_precond", "LowParse.Spec.Array.array", "LowParse.Spec.Array.array_to_fldata_correct", "Prims.list", "LowParse....
[]
false
false
false
false
false
let array_to_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: array t elem_count) : Tot (parse_fldata_strong_t (serialize_list _ s) array_byte_si...
[@@ inline_let ]let x':list t = x in [@@ inline_let ]let _ = array_to_fldata_correct s array_byte_size elem_count x' in x'
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_array_kind_correct
val parse_array_kind_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true)) (ensures (parser_kind_prop (parse_array_kind k array_byte_size ele...
val parse_array_kind_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true)) (ensures (parser_kind_prop (parse_array_kind k array_byte_size ele...
let parse_array_kind_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) : Lemma (requires ( fldata_array_precond k array_byte_size elem_count == true )) (ensures ( parser_kind_prop (parse_array_kind k array_byte_size elem_count) (pa...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 170, "start_col": 0, "start_line": 151 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> FStar.Pervasives.Lemma (requires LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true) (ensures LowParse.Spec.Base.parser_kind_prop (LowParse.Spec.Array.parse_array_kind k ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.op_Equality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_kind_metadata_some", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_metadata", "FStar.Pervasiv...
[]
false
false
true
false
false
let parse_array_kind_correct (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true)) (ensures (parser_kind_prop (parse_array_kind k array_byte_size ele...
if k.parser_kind_metadata = Some ParserKindMetadataTotal then (parser_kind_prop_equiv (parse_array_kind' array_byte_size) (parse_array' s array_byte_size elem_count); parser_kind_prop_equiv (parse_array_kind k array_byte_size elem_count) (parse_array' s array_byte_size elem_count); Classical.foral...
false
Vale.Interop.Base.fst
Vale.Interop.Base.disjoint_or_eq_1
val disjoint_or_eq_1 : a: Vale.Interop.Base.arg -> b: Vale.Interop.Base.arg -> Prims.logical
let disjoint_or_eq_1 (a:arg) (b:arg) = match a, b with | (| TD_Buffer _ _ {strict_disjointness=true}, xb |), (| TD_Buffer _ _ _, yb |) | (| TD_ImmBuffer _ _ {strict_disjointness=true}, xb |), (| TD_ImmBuffer _ _ _, yb |) | (| TD_Buffer _ _ _, xb |), (| TD_Buffer _ _ {strict_disjointness=true}, yb |) ...
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 232, "start_col": 0, "start_line": 219 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Vale.Interop.Base.arg -> b: Vale.Interop.Base.arg -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.arg", "FStar.Pervasives.Native.Mktuple2", "Prims.dtuple2", "Vale.Interop.Base.td", "Vale.Interop.Base.td_as_type", "Vale.Arch.HeapTypes_s.base_typ", "Prims.bool", "Vale.Arch.HeapTypes_s.taint", "Vale.Interop.Base.TD_Buffer", "Vale.Interop.Base.Mkbuffer_qualifiers", "Vale.Inter...
[]
false
false
false
true
true
let disjoint_or_eq_1 (a b: arg) =
match a, b with | (| TD_Buffer _ _ { strict_disjointness = true } , xb |), (| TD_Buffer _ _ _ , yb |) | (| TD_ImmBuffer _ _ { strict_disjointness = true } , xb |), (| TD_ImmBuffer _ _ _ , yb |) | (| TD_Buffer _ _ _ , xb |), (| TD_Buffer _ _ { strict_disjointness = true } , yb |) | (| TD_ImmBuffer _ _ _ , xb |), (| TD_I...
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vldata_vlarray_precond_parser_kind_low
val vldata_vlarray_precond_parser_kind_low (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min elem_count_max: nat) : Lemma (requires (vldata_vlarray_precond array_byte_size_min array_byte_size_max ...
val vldata_vlarray_precond_parser_kind_low (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min elem_count_max: nat) : Lemma (requires (vldata_vlarray_precond array_byte_size_min array_byte_size_max ...
let vldata_vlarray_precond_parser_kind_low (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min: nat) (elem_count_max: nat) : Lemma (requires (vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_count_min elem_count_max)) ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 58, "end_line": 342, "start_col": 0, "start_line": 330 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> p: LowParse.Spec.Base.parser k t -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> FStar.Pervasives.Lemma (requires LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min array_byte_size...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "FStar.Math.Lemmas.lemma_mult_le_right", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_low", "Prims.unit", "Prims.b2t", "LowParse.Spec.Array.vldata_vlarray_precond", "Prims.squash", "Prims.op_LessThan", "...
[]
true
false
true
false
false
let vldata_vlarray_precond_parser_kind_low (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (p: parser k t) (elem_count_min elem_count_max: nat) : Lemma (requires (vldata_vlarray_precond array_byte_size_min array_byte_size_max ...
M.lemma_mult_le_right k.parser_kind_low 1 elem_count_max
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vldata_to_vlarray_correct
val vldata_to_vlarray_correct (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (x: list t) : Lemma (requires (vldata_vlarray_precond array_byte_size_min ...
val vldata_to_vlarray_correct (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (x: list t) : Lemma (requires (vldata_vlarray_precond array_byte_size_min ...
let vldata_to_vlarray_correct (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min: nat) (elem_count_max: nat) (x: list t) : Lemma (requires ( vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_co...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 367, "start_col": 0, "start_line": 344 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> x: Prims.list t -> FStar.Pervasives.Lemma (requires LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.list", "LowParse.Math.lt_mul_add_reg_r", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_low", "Prims.unit", "LowParse.Spec.List.list_length_constant_size_parser_correct"...
[]
true
false
true
false
false
let vldata_to_vlarray_correct (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (x: list t) : Lemma (requires (vldata_vlarray_precond array_byte_size_min ...
let y = serialize (serialize_list _ s) x in let l = L.length x in assert (parse (parse_list p) y == Some (x, Seq.length y)); list_length_constant_size_parser_correct p y; M.lt_mul_add_reg_r elem_count_min l k.parser_kind_low; M.lt_mul_add_reg_r l elem_count_max k.parser_kind_low
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_array_total_constant_size
val parse_array_total_constant_size (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: bytes) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ k.parser_kind_metadata == Some ...
val parse_array_total_constant_size (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: bytes) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ k.parser_kind_metadata == Some ...
let parse_array_total_constant_size (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (x: bytes) : Lemma (requires ( fldata_array_precond k array_byte_size elem_count == true /\ k.parser_kind_metadata == Some ParserKindMetadataTotal /\ S...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 135, "start_col": 0, "start_line": 113 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> x: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true /\ Mkparser_kind'?.parser_kind_metadata k == ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "LowParse.Bytes.bytes", "LowParse.Spec.Base.parser_kind_prop_equiv", "Prims.list", "LowParse.Spec.List.parse_list_kind", "LowParse.Spec.List.parse_list", "Prims.unit", "LowParse.Spec.List...
[]
true
false
true
false
false
let parse_array_total_constant_size (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (x: bytes) : Lemma (requires (fldata_array_precond k array_byte_size elem_count == true /\ k.parser_kind_metadata == Some ...
let u:u: unit{fldata_array_precond k array_byte_size elem_count == true} = () in fldata_to_array_inj s array_byte_size elem_count u; parse_synth_eq (parse_fldata_strong (serialize_list _ s) array_byte_size) (fldata_to_array s array_byte_size elem_count u) x; let x' = Seq.slice x 0 array_byte_size in parse_list_tota...
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.serialize_array'
val serialize_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) : Tot (serializer (parse_array' s array_byte_size elem_count))
val serialize_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) : Tot (serializer (parse_array' s array_byte_size elem_count))
let serialize_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (u: unit { fldata_array_precond k array_byte_size elem_count == true }) : Tot (serializer (parse_array' s array_byte_size elem_count)) = fldata_to_array_inj s array_byte_size...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 258, "start_col": 0, "start_line": 240 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> u228: u229: Prims.unit{LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true} -> LowParse.Spec.Base.serializer (LowParse.Spec.Array.parse_array' s array_byte_size elem_coun...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.fldata_array_precond", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.FLData.parse_fldata_kind", "LowParse.Spec....
[]
false
false
false
false
false
let serialize_array' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) : Tot (serializer (parse_array' s array_byte_size elem_count)) =
fldata_to_array_inj s array_byte_size elem_count u; array_to_fldata_to_array s array_byte_size elem_count u u; serialize_synth _ (fldata_to_array s array_byte_size elem_count u) (serialize_fldata_strong (serialize_list _ s) array_byte_size) (array_to_fldata s array_byte_size elem_count u) ()
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.fldata_to_array
val fldata_to_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: parse_fldata_strong_t (serialize_list _ s) array_byte_size) : Tot (array t elem_cou...
val fldata_to_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: parse_fldata_strong_t (serialize_list _ s) array_byte_size) : Tot (array t elem_cou...
let fldata_to_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (u: unit { fldata_array_precond k array_byte_size elem_count == true }) (x: parse_fldata_strong_t (serialize_list _ s) array_byte_size) : Tot (array t elem_count) = [@inline...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 72, "start_col": 0, "start_line": 56 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> u59: u61: Prims.unit{LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true} -> x: LowParse.Spec.FLData.parse_fldata_strong_t (LowParse.Spec.List.serialize_list p s) ...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.fldata_array_precond", "LowParse.Spec.FLData.parse_fldata_strong_t", "LowParse.Spec.List.parse_list_kind", "Prims.list", "L...
[]
false
false
false
false
false
let fldata_to_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: parse_fldata_strong_t (serialize_list _ s) array_byte_size) : Tot (array t elem_cou...
[@@ inline_let ]let x':list t = x in [@@ inline_let ]let _ = fldata_to_array_correct s array_byte_size elem_count x' in x'
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.length_serialize_array
val length_serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: array t elem_count) : Lemma (Seq.length (serialize (serialize_array s ar...
val length_serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: array t elem_count) : Lemma (Seq.length (serialize (serialize_array s ar...
let length_serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size: nat) (elem_count: nat) (u: unit { fldata_array_precond k array_byte_size elem_count == true }) (x: array t elem_count) : Lemma (Seq.length (serialize (serialize_array s array_byte_size el...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 79, "end_line": 297, "start_col": 0, "start_line": 273 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> array_byte_size: Prims.nat -> elem_count: Prims.nat -> u266: u270: Prims.unit{LowParse.Spec.Array.fldata_array_precond k array_byte_size elem_count == true} -> x: LowParse.Spec.Array.array t elem_count -> FStar.Pervasives.Lemma (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.fldata_array_precond", "LowParse.Spec.Array.array", "LowParse.Spec.List.list_length_constant_size_parser_correct", "LowParse....
[]
true
false
true
false
false
let length_serialize_array (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (array_byte_size elem_count: nat) (u: unit{fldata_array_precond k array_byte_size elem_count == true}) (x: array t elem_count) : Lemma (Seq.length (serialize (serialize_array s ar...
fldata_to_array_inj s array_byte_size elem_count u; array_to_fldata_to_array s array_byte_size elem_count u u; serialize_synth_eq _ (fldata_to_array s array_byte_size elem_count u) (serialize_fldata_strong (serialize_list _ s) array_byte_size) (array_to_fldata s array_byte_size elem_count u) () x; list_length...
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.parse_vlarray_kind
val parse_vlarray_kind (array_byte_size_min: nat) (array_byte_size_max: nat { array_byte_size_min <= array_byte_size_max /\ array_byte_size_max > 0 /\ array_byte_size_max < 4294967296 }) : Tot parser_kind
val parse_vlarray_kind (array_byte_size_min: nat) (array_byte_size_max: nat { array_byte_size_min <= array_byte_size_max /\ array_byte_size_max > 0 /\ array_byte_size_max < 4294967296 }) : Tot parser_kind
let parse_vlarray_kind (array_byte_size_min: nat) (array_byte_size_max: nat { array_byte_size_min <= array_byte_size_max /\ array_byte_size_max > 0 /\ array_byte_size_max < 4294967296 } ) : Tot parser_kind = parse_bounded_vldata_strong_kind array_byte_size_min array_byte_size_max (log256' array_byte_size_max) parse...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 120, "end_line": 421, "start_col": 0, "start_line": 417 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat { array_byte_size_min <= array_byte_size_max /\ array_byte_size_max > 0 /\ array_byte_size_max < 4294967296 } -> LowParse.Spec.Base.parser_kind
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.VLData.parse_bounded_vldata_strong_kind", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.List.parse_list_kind", "LowParse.Spec.Base.parser_kind" ]
[]
false
false
false
false
false
let parse_vlarray_kind (array_byte_size_min: nat) (array_byte_size_max: nat { array_byte_size_min <= array_byte_size_max /\ array_byte_size_max > 0 /\ array_byte_size_max < 4294967296 }) : Tot parser_kind =
parse_bounded_vldata_strong_kind array_byte_size_min array_byte_size_max (log256' array_byte_size_max) parse_list_kind
false
Vale.Interop.Base.fst
Vale.Interop.Base.disjoint_or_eq
val disjoint_or_eq : l: Prims.list Vale.Interop.Base.arg -> Type0
let disjoint_or_eq (l:list arg) = BigOps.pairwise_and' disjoint_or_eq_1 l
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 236, "start_col": 0, "start_line": 235 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list Vale.Interop.Base.arg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "FStar.BigOps.pairwise_and'", "Vale.Interop.Base.disjoint_or_eq_1" ]
[]
false
false
false
true
true
let disjoint_or_eq (l: list arg) =
BigOps.pairwise_and' disjoint_or_eq_1 l
false
Vale.Interop.Base.fst
Vale.Interop.Base.n_arrow
val n_arrow : dom: Prims.list Vale.Interop.Base.td -> codom: Type -> Type
let rec n_arrow (dom:list td) (codom:Type) = match dom with | [] -> codom | hd::tl -> td_as_type hd -> n_arrow tl codom
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 127, "start_col": 0, "start_line": 124 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dom: Prims.list Vale.Interop.Base.td -> codom: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.Interop.Base.td", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.n_arrow" ]
[ "recursion" ]
false
false
false
true
true
let rec n_arrow (dom: list td) (codom: Type) =
match dom with | [] -> codom | hd :: tl -> td_as_type hd -> n_arrow tl codom
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vlarray_to_vldata
val vlarray_to_vldata (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
val vlarray_to_vldata (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
let vlarray_to_vldata (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min: nat) (elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_count_min elem_count_max == true ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 526, "start_col": 0, "start_line": 508 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> u490: u492: Prims.unit { LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min array_byte_...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.vldata_vlarray_precond", "LowParse.Spec.Array.vlarray", "LowParse.Spec.Array.vlarray_to_vldata_correct", "Prims.list", "Low...
[]
false
false
false
false
false
let vlarray_to_vldata (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
[@@ inline_let ]let x':list t = x in [@@ inline_let ]let _ = vlarray_to_vldata_correct array_byte_size_min array_byte_size_max s elem_count_min elem_count_max x' in x'
false
Vale.Interop.Base.fst
Vale.Interop.Base.all_live
val all_live : h: FStar.Monotonic.HyperStack.mem -> bs: Prims.list Vale.Interop.Base.arg -> Type0
let all_live (h:HS.mem) (bs:list arg) = BigOps.big_and' (live_arg h) bs
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 247, "start_col": 0, "start_line": 246 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> bs: Prims.list Vale.Interop.Base.arg -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "Prims.list", "Vale.Interop.Base.arg", "FStar.BigOps.big_and'", "Vale.Interop.Base.live_arg" ]
[]
false
false
false
true
true
let all_live (h: HS.mem) (bs: list arg) =
BigOps.big_and' (live_arg h) bs
false
Vale.Interop.Base.fst
Vale.Interop.Base.mem_roots_p
val mem_roots_p : h0: FStar.Monotonic.HyperStack.mem -> args: Prims.list Vale.Interop.Base.arg -> Prims.logical
let mem_roots_p (h0:HS.mem) (args:list arg) = disjoint_or_eq args /\ all_live h0 args
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 252, "start_col": 0, "start_line": 250 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: FStar.Monotonic.HyperStack.mem -> args: Prims.list Vale.Interop.Base.arg -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "Prims.list", "Vale.Interop.Base.arg", "Prims.l_and", "Vale.Interop.Base.disjoint_or_eq", "Vale.Interop.Base.all_live", "Prims.logical" ]
[]
false
false
false
true
true
let mem_roots_p (h0: HS.mem) (args: list arg) =
disjoint_or_eq args /\ all_live h0 args
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.serialize_vlarray
val serialize_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
val serialize_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
let serialize_vlarray (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min: nat) (elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_count_min elem_count_max == true ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 571, "start_col": 0, "start_line": 551 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> u535: u536: Prims.unit { LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min array_byte_...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.vldata_vlarray_precond", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.VLData.parse_bounded_vldata_strong_kind", ...
[]
false
false
false
false
false
let serialize_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
vldata_to_vlarray_inj array_byte_size_min array_byte_size_max s elem_count_min elem_count_max u; vlarray_to_vldata_to_vlarray array_byte_size_min array_byte_size_max s elem_count_min elem_count_max u; serialize_synth _ (vldata_to_vlarray array_byte_size_min array_byte_size_max s elem_count_min elem_count_ma...
false
Vale.Interop.Base.fst
Vale.Interop.Base.elim_nil
val elim_nil (#dom: list td {Nil? dom}) (#r: Type) (f: n_arrow dom r) : r
val elim_nil (#dom: list td {Nil? dom}) (#r: Type) (f: n_arrow dom r) : r
let elim_nil (#dom:list td{Nil? dom}) (#r:Type) (f:n_arrow dom r) : r = f
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 144, "start_col": 0, "start_line": 140 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Vale.Interop.Base.n_arrow dom r -> r
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.Interop.Base.td", "Prims.b2t", "Prims.uu___is_Nil", "Vale.Interop.Base.n_arrow" ]
[]
false
false
false
false
false
let elim_nil (#dom: list td {Nil? dom}) (#r: Type) (f: n_arrow dom r) : r =
f
false
Vale.Interop.Base.fst
Vale.Interop.Base.mem_roots
val mem_roots : args: Prims.list Vale.Interop.Base.arg -> Type
let mem_roots (args:list arg) = h0:HS.mem{ mem_roots_p h0 args }
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 256, "start_col": 0, "start_line": 255 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.mem_roots_p" ]
[]
false
false
false
true
true
let mem_roots (args: list arg) =
h0: HS.mem{mem_roots_p h0 args}
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vlarray_to_vldata_correct
val vlarray_to_vldata_correct (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (x: list t) : Lemma (requires (vldata_vlarray_precond array_byte_size_min ...
val vlarray_to_vldata_correct (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (x: list t) : Lemma (requires (vldata_vlarray_precond array_byte_size_min ...
let vlarray_to_vldata_correct (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min: nat) (elem_count_max: nat) (x: list t) : Lemma (requires ( vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_co...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 58, "end_line": 505, "start_col": 0, "start_line": 482 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> x: Prims.list t -> FStar.Pervasives.Lemma (requires LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.list", "FStar.Math.Lemmas.lemma_mult_le_right", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_low", "Prims.unit", "LowParse.Spec.List.list_length_constant_size_parser_c...
[]
true
false
true
false
false
let vlarray_to_vldata_correct (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (x: list t) : Lemma (requires (vldata_vlarray_precond array_byte_size_min ...
let y = serialize (serialize_list _ s) x in let l = L.length x in assert (parse (parse_list p) y == Some (x, Seq.length y)); list_length_constant_size_parser_correct p y; M.lemma_mult_le_right k.parser_kind_low elem_count_min l; M.lemma_mult_le_right k.parser_kind_low l elem_count_max
false
Vale.Interop.Base.fst
Vale.Interop.Base.loc_modified_args
val loc_modified_args (args: list arg) : GTot B.loc
val loc_modified_args (args: list arg) : GTot B.loc
let loc_modified_args (args:list arg) : GTot B.loc = let maybe_union_loc (x:arg) l = match x with | (|TD_Buffer _ _ {modified=true}, x|) -> B.loc_union (B.loc_buffer x) l | _ -> l in List.Tot.fold_right_gtot args maybe_union_loc B.loc_none
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 281, "start_col": 0, "start_line": 275 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "FStar.List.Tot.Base.fold_right_gtot", "LowStar.Monotonic.Buffer.loc", "LowStar.Monotonic.Buffer.loc_none", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Arch.HeapTypes_s.taint", "Prims.bool", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Buffer", "Vale.I...
[]
false
false
false
false
false
let loc_modified_args (args: list arg) : GTot B.loc =
let maybe_union_loc (x: arg) l = match x with | (| TD_Buffer _ _ { modified = true } , x |) -> B.loc_union (B.loc_buffer x) l | _ -> l in List.Tot.fold_right_gtot args maybe_union_loc B.loc_none
false
Vale.Interop.Base.fst
Vale.Interop.Base.default_v_of_typ
val default_v_of_typ (t: base_typ) : (base_typ_as_type t)
val default_v_of_typ (t: base_typ) : (base_typ_as_type t)
let default_v_of_typ (t:base_typ) : (base_typ_as_type t) = match t with | TUInt8 -> UInt8.uint_to_t 0 | TUInt16 -> UInt16.uint_to_t 0 | TUInt32 -> UInt32.uint_to_t 0 | TUInt64 -> UInt64.uint_to_t 0 | TUInt128 -> Vale.Def.Words_s.Mkfour #W.nat32 0 0 0 0
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 36, "start_col": 0, "start_line": 31 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Vale.Arch.HeapTypes_s.base_typ -> Vale.Interop.Types.base_typ_as_type t
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "FStar.UInt8.uint_to_t", "FStar.UInt16.uint_to_t", "FStar.UInt32.uint_to_t", "FStar.UInt64.uint_to_t", "Vale.Def.Words_s.Mkfour", "Vale.Def.Words_s.nat32", "Vale.Interop.Types.base_typ_as_type" ]
[]
false
false
false
false
false
let default_v_of_typ (t: base_typ) : (base_typ_as_type t) =
match t with | TUInt8 -> UInt8.uint_to_t 0 | TUInt16 -> UInt16.uint_to_t 0 | TUInt32 -> UInt32.uint_to_t 0 | TUInt64 -> UInt64.uint_to_t 0 | TUInt128 -> Vale.Def.Words_s.Mkfour #W.nat32 0 0 0 0
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.vldata_to_vlarray
val vldata_to_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
val vldata_to_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
let vldata_to_vlarray (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min: nat) (elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_count_min elem_count_max == true ...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 392, "start_col": 0, "start_line": 374 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> u364: u366: Prims.unit { LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min array_byte_...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.vldata_vlarray_precond", "LowParse.Spec.VLData.parse_bounded_vldata_strong_t", "LowParse.Spec.List.parse_list_kind", "Prims.l...
[]
false
false
false
false
false
let vldata_to_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_...
[@@ inline_let ]let x':list t = x in [@@ inline_let ]let _ = vldata_to_vlarray_correct array_byte_size_min array_byte_size_max s elem_count_min elem_count_max x' in x'
false
Vale.Interop.Base.fst
Vale.Interop.Base.modified_arg_loc
val modified_arg_loc (x: arg) : GTot B.loc
val modified_arg_loc (x: arg) : GTot B.loc
let modified_arg_loc (x:arg) : GTot B.loc = match x with | (|TD_Buffer _ _ {modified=true}, x|) -> B.loc_buffer x | _ -> B.loc_none
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 272, "start_col": 0, "start_line": 269 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Vale.Interop.Base.arg -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Interop.Base.arg", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Arch.HeapTypes_s.taint", "Prims.bool", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Buffer", "Vale.Interop.Base.Mkbuffer_qualifiers", "LowStar.Monotonic.Buffer.loc_buffer", "Vale.Interop.Types.base_typ_as_type", "LowStar.Buf...
[]
false
false
false
false
false
let modified_arg_loc (x: arg) : GTot B.loc =
match x with | (| TD_Buffer _ _ { modified = true } , x |) -> B.loc_buffer x | _ -> B.loc_none
false
Vale.Interop.Base.fst
Vale.Interop.Base.n_dep_arrow
val n_dep_arrow : dom: Prims.list Vale.Interop.Base.td -> codom: Vale.Interop.Base.n_arrow dom Type -> Type
let rec n_dep_arrow (dom:list td) (codom: n_arrow dom Type) = match dom with | [] -> codom | hd::tl -> x:td_as_type hd -> n_dep_arrow tl (elim_1 codom x)
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 165, "start_col": 0, "start_line": 162 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dom: Prims.list Vale.Interop.Base.td -> codom: Vale.Interop.Base.n_arrow dom Type -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.Interop.Base.td", "Vale.Interop.Base.n_arrow", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.n_dep_arrow", "Vale.Interop.Base.elim_1" ]
[ "recursion" ]
false
false
false
false
true
let rec n_dep_arrow (dom: list td) (codom: n_arrow dom Type) =
match dom with | [] -> codom | hd :: tl -> x: td_as_type hd -> n_dep_arrow tl (elim_1 codom x)
false
Vale.Interop.Base.fst
Vale.Interop.Base.loc_all_args
val loc_all_args (args: list arg) : GTot B.loc
val loc_all_args (args: list arg) : GTot B.loc
let loc_all_args (args:list arg) : GTot B.loc = let l = List.Tot.map_gtot arg_loc args in List.Tot.fold_right_gtot l B.loc_union B.loc_none
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 293, "start_col": 0, "start_line": 291 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "FStar.List.Tot.Base.fold_right_gtot", "LowStar.Monotonic.Buffer.loc", "LowStar.Monotonic.Buffer.loc_union", "LowStar.Monotonic.Buffer.loc_none", "FStar.List.Tot.Base.map_gtot", "Vale.Interop.Base.arg_loc" ]
[]
false
false
false
false
false
let loc_all_args (args: list arg) : GTot B.loc =
let l = List.Tot.map_gtot arg_loc args in List.Tot.fold_right_gtot l B.loc_union B.loc_none
false
Vale.Interop.Base.fst
Vale.Interop.Base.elim_1
val elim_1: #dom: list td {Cons? dom} -> #r: Type -> f: n_arrow dom r -> td_as_type (Cons?.hd dom) -> n_arrow (Cons?.tl dom) r
val elim_1: #dom: list td {Cons? dom} -> #r: Type -> f: n_arrow dom r -> td_as_type (Cons?.hd dom) -> n_arrow (Cons?.tl dom) r
let elim_1 (#dom:list td{Cons? dom}) (#r:Type) (f:n_arrow dom r) : td_as_type (Cons?.hd dom) -> n_arrow (Cons?.tl dom) r = f
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 137, "start_col": 0, "start_line": 133 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Vale.Interop.Base.n_arrow dom r -> _: Vale.Interop.Base.td_as_type (Cons?.hd dom) -> Vale.Interop.Base.n_arrow (Cons?.tl dom) r
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.Interop.Base.td", "Prims.b2t", "Prims.uu___is_Cons", "Vale.Interop.Base.n_arrow", "Vale.Interop.Base.td_as_type", "Prims.__proj__Cons__item__hd", "Prims.__proj__Cons__item__tl" ]
[]
false
false
false
false
false
let elim_1 (#dom: list td {Cons? dom}) (#r: Type) (f: n_arrow dom r) : td_as_type (Cons?.hd dom) -> n_arrow (Cons?.tl dom) r =
f
false
Vale.Interop.Base.fst
Vale.Interop.Base.arg_of_sb
val arg_of_sb (#t: _) (x: buf_t TUInt64 t) : arg
val arg_of_sb (#t: _) (x: buf_t TUInt64 t) : arg
let arg_of_sb #t (x:buf_t TUInt64 t) :arg = (| TD_Buffer TUInt64 t stack_bq, x |)
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 81, "end_line": 428, "start_col": 0, "start_line": 428 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 2, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Vale.Interop.Base.buf_t Vale.Arch.HeapTypes_s.TUInt64 t -> Vale.Interop.Base.arg
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buf_t", "Vale.Arch.HeapTypes_s.TUInt64", "Prims.Mkdtuple2", "Vale.Interop.Base.td", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Buffer", "Vale.Interop.Base.stack_bq", "Vale.Interop.Base.arg" ]
[]
false
false
false
false
false
let arg_of_sb #t (x: buf_t TUInt64 t) : arg =
(| TD_Buffer TUInt64 t stack_bq, x |)
false
Vale.Interop.Base.fst
Vale.Interop.Base.arg_of_lb
val arg_of_lb (#src #t: _) (x: buf_t src t) : arg
val arg_of_lb (#src #t: _) (x: buf_t src t) : arg
let arg_of_lb #src #t (x:buf_t src t) : arg = (| TD_Buffer src t default_bq, x |)
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 81, "end_line": 425, "start_col": 0, "start_line": 425 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 2, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Vale.Interop.Base.buf_t src t -> Vale.Interop.Base.arg
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buf_t", "Prims.Mkdtuple2", "Vale.Interop.Base.td", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Buffer", "Vale.Interop.Base.default_bq", "Vale.Interop.Base.arg" ]
[]
false
false
false
false
false
let arg_of_lb #src #t (x: buf_t src t) : arg =
(| TD_Buffer src t default_bq, x |)
false
Vale.Interop.Base.fst
Vale.Interop.Base.disjoint_not_eq
val disjoint_not_eq : x: LowStar.Monotonic.Buffer.mbuffer (Vale.Interop.Types.base_typ_as_type src1) rel1 rrel1 -> y: LowStar.Monotonic.Buffer.mbuffer (Vale.Interop.Types.base_typ_as_type src2) rel2 rrel2 -> Prims.logical
let disjoint_not_eq (#src1 #src2:base_typ) (#rel1 #rrel1:MB.srel (base_typ_as_type src1)) (#rel2 #rrel2:MB.srel (base_typ_as_type src2)) (x:MB.mbuffer (base_typ_as_type src1) rel1 rrel1) (y:MB.mbuffer (base_typ_as_type src2) rel2 rrel2) = B.loc_disjoint (B.loc_buffer x) (B.loc_buffer y) /\ ~ (src1 == ...
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 216, "start_col": 0, "start_line": 209 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: LowStar.Monotonic.Buffer.mbuffer (Vale.Interop.Types.base_typ_as_type src1) rel1 rrel1 -> y: LowStar.Monotonic.Buffer.mbuffer (Vale.Interop.Types.base_typ_as_type src2) rel2 rrel2 -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "LowStar.Monotonic.Buffer.srel", "Vale.Interop.Types.base_typ_as_type", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "LowStar.Monotonic.Buffer.loc_disjoint", "LowStar.Monotonic.Buffer.loc_buffer", "Prims.l_not", "Prims.eq2", "FStar.Preorder.relation", "FSt...
[]
false
false
false
false
true
let disjoint_not_eq (#src1 #src2: base_typ) (#rel1 #rrel1: MB.srel (base_typ_as_type src1)) (#rel2 #rrel2: MB.srel (base_typ_as_type src2)) (x: MB.mbuffer (base_typ_as_type src1) rel1 rrel1) (y: MB.mbuffer (base_typ_as_type src2) rel2 rrel2) =
B.loc_disjoint (B.loc_buffer x) (B.loc_buffer y) /\ ~(src1 == src2 /\ rel1 == rel2 /\ rrel1 == rrel2 /\ x == y)
false
Vale.Interop.Base.fst
Vale.Interop.Base.intro_dep_arrow_1
val intro_dep_arrow_1 (a: td) (b: n_arrow [a] Type) (f: (x: td_as_type a -> elim_1 b x)) : n_dep_arrow [a] b
val intro_dep_arrow_1 (a: td) (b: n_arrow [a] Type) (f: (x: td_as_type a -> elim_1 b x)) : n_dep_arrow [a] b
let intro_dep_arrow_1 (a:td) (b:n_arrow [a] Type) (f:(x:td_as_type a -> elim_1 b x)) : n_dep_arrow [a] b = f
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 178, "start_col": 0, "start_line": 174 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Vale.Interop.Base.td -> b: Vale.Interop.Base.n_arrow [a] Type -> f: (x: Vale.Interop.Base.td_as_type a -> Vale.Interop.Base.elim_1 b x) -> Vale.Interop.Base.n_dep_arrow [a] b
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.td", "Vale.Interop.Base.n_arrow", "Prims.Cons", "Prims.Nil", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.elim_1", "Vale.Interop.Base.n_dep_arrow" ]
[]
false
false
false
false
false
let intro_dep_arrow_1 (a: td) (b: n_arrow [a] Type) (f: (x: td_as_type a -> elim_1 b x)) : n_dep_arrow [a] b =
f
false
Vale.Interop.Base.fst
Vale.Interop.Base.elim_dep_arrow_nil
val elim_dep_arrow_nil (#codom: n_arrow [] Type) (f: n_dep_arrow [] codom) : elim_nil codom
val elim_dep_arrow_nil (#codom: n_arrow [] Type) (f: n_dep_arrow [] codom) : elim_nil codom
let elim_dep_arrow_nil (#codom:n_arrow [] Type) (f:n_dep_arrow [] codom) : elim_nil codom = f
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 192, "start_col": 0, "start_line": 189 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Vale.Interop.Base.n_dep_arrow [] codom -> Vale.Interop.Base.elim_nil codom
Prims.Tot
[ "total" ]
[]
[ "Vale.Interop.Base.n_arrow", "Prims.Nil", "Vale.Interop.Base.td", "Vale.Interop.Base.n_dep_arrow", "Vale.Interop.Base.elim_nil" ]
[]
false
false
false
false
false
let elim_dep_arrow_nil (#codom: n_arrow [] Type) (f: n_dep_arrow [] codom) : elim_nil codom =
f
false
Vale.Interop.Base.fst
Vale.Interop.Base.live_arg
val live_arg : h: FStar.Monotonic.HyperStack.mem -> x: Vale.Interop.Base.arg -> Type0
let live_arg (h:HS.mem) (x:arg) = match x with | (|TD_Buffer _ _ _, x|) | (|TD_ImmBuffer _ _ _, x|) -> B.live h x | (|TD_Base _, _ |) -> True
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 243, "start_col": 0, "start_line": 239 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> x: Vale.Interop.Base.arg -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.arg", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buffer_qualifiers", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Buffer", "LowStar.Monotonic.Buffer.live", "Vale.Interop.Types.base_typ_as_type", "LowStar.Buffer.trivial_preorder"...
[]
false
false
false
true
true
let live_arg (h: HS.mem) (x: arg) =
match x with | (| TD_Buffer _ _ _ , x |) | (| TD_ImmBuffer _ _ _ , x |) -> B.live h x | (| TD_Base _ , _ |) -> True
false
Hacl.Streaming.Blake2.Common.fst
Hacl.Streaming.Blake2.Common.init_key_block
val init_key_block (a : alg) (kk : key_size a) (k : stateful_key_t a kk) (buf_: B.buffer uint8 { B.length buf_ = Spec.size_block a }) : ST.Stack unit (requires fun h0 -> let key = stateful_key a kk in key.invariant h0 k /\ B.live h0 buf_ /\ B.(loc_disjoint (loc_buffer buf_) (key.footprint h0 k))) ...
val init_key_block (a : alg) (kk : key_size a) (k : stateful_key_t a kk) (buf_: B.buffer uint8 { B.length buf_ = Spec.size_block a }) : ST.Stack unit (requires fun h0 -> let key = stateful_key a kk in key.invariant h0 k /\ B.live h0 buf_ /\ B.(loc_disjoint (loc_buffer buf_) (key.footprint h0 k))) ...
let init_key_block a kk k buf_ = if kk = 0 then () else begin (**) let h0 = ST.get () in (* Set the end of the buffer to 0 *) [@inline_let] let sub_b_len = U32.(block_len a -^ U32.uint_to_t kk) in let sub_b = B.sub buf_ (U32.uint_to_t kk) sub_b_len in B.fill sub_b (Lib.IntTypes.u8 0) sub_b_...
{ "file_name": "code/streaming/Hacl.Streaming.Blake2.Common.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 544, "start_col": 0, "start_line": 502 }
module Hacl.Streaming.Blake2.Common module HS = FStar.HyperStack module B = LowStar.Buffer module S = FStar.Seq module LS = Lib.Sequence module U32 = FStar.UInt32 module U64 = FStar.UInt64 module U128 = FStar.UInt128 module I = Hacl.Streaming.Interface module ST = FStar.HyperStack.ST open FStar.Mul module Loops = Li...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.Alternative.fsti.checked", "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.che...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Core", "short_module": "Core" }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Streaming.Blake2.Common.alg -> kk: Hacl.Streaming.Blake2.Common.key_size a -> k: Hacl.Streaming.Blake2.Common.stateful_key_t a kk -> buf_: LowStar.Buffer.buffer Hacl.Streaming.Blake2.Common.uint8 {LowStar.Monotonic.Buffer.length buf_ = Spec.Blake2.Definitions.size_block a} -> FS...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Streaming.Blake2.Common.alg", "Hacl.Streaming.Blake2.Common.key_size", "Hacl.Streaming.Blake2.Common.stateful_key_t", "LowStar.Buffer.buffer", "Hacl.Streaming.Blake2.Common.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preor...
[]
false
true
false
false
false
let init_key_block a kk k buf_ =
if kk = 0 then () else let h0 = ST.get () in [@@ inline_let ]let sub_b_len = let open U32 in block_len a -^ U32.uint_to_t kk in let sub_b = B.sub buf_ (U32.uint_to_t kk) sub_b_len in B.fill sub_b (Lib.IntTypes.u8 0) sub_b_len; let h1 = ST.get () in assert ((S.slice (B.as_seq h1 buf_) kk (Spec.size_block a))...
false
LowParse.Spec.Array.fst
LowParse.Spec.Array.length_serialize_vlarray
val length_serialize_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byt...
val length_serialize_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byt...
let length_serialize_vlarray (array_byte_size_min: nat) (array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min: nat) (elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byte_size_max p elem_count_min elem_count_max =...
{ "file_name": "src/lowparse/LowParse.Spec.Array.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 79, "end_line": 598, "start_col": 0, "start_line": 573 }
module LowParse.Spec.Array include LowParse.Spec.FLData include LowParse.Spec.VLData include LowParse.Spec.List module Seq = FStar.Seq module L = FStar.List.Tot module M = LowParse.Math module U32 = FStar.UInt32 open FStar.Mul // for Prims.op_Multiply // arith lemmas must be called explicitly #reset-options "--z3cl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLData.fsti.checked", "LowParse.Spec.List.fsti.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.ch...
[ { "abbrev": false, "full_module": "FStar.Mul // for Prims.op_Multiply", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
array_byte_size_min: Prims.nat -> array_byte_size_max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> elem_count_min: Prims.nat -> elem_count_max: Prims.nat -> u565: u569: Prims.unit { LowParse.Spec.Array.vldata_vlarray_precond array_byte_size_min array_byte_...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.unit", "Prims.eq2", "Prims.bool", "LowParse.Spec.Array.vldata_vlarray_precond", "LowParse.Spec.Array.vlarray", "LowParse.Spec.List.list_length_constant_size_parser_correct", "LowPa...
[]
true
false
true
false
false
let length_serialize_vlarray (array_byte_size_min array_byte_size_max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (elem_count_min elem_count_max: nat) (u: unit { vldata_vlarray_precond array_byte_size_min array_byt...
vldata_to_vlarray_inj array_byte_size_min array_byte_size_max s elem_count_min elem_count_max u; vlarray_to_vldata_to_vlarray array_byte_size_min array_byte_size_max s elem_count_min elem_count_max u; serialize_synth_eq _ (vldata_to_vlarray array_byte_size_min array_byte_size_max s elem_count_min elem_count...
false
Vale.Interop.Base.fst
Vale.Interop.Base.args_b8
val args_b8 (args: list arg) : GTot (list b8)
val args_b8 (args: list arg) : GTot (list b8)
let args_b8 (args:list arg) : GTot (list b8) = let maybe_cons_buffer (x:arg) (args:list b8) : GTot (list b8) = match x with | (|TD_Buffer src _ _, x|) -> mut_to_b8 src x :: args | (|TD_ImmBuffer src _ _, x|) -> imm_to_b8 src x :: args | (|TD_Base _, _ |) -> args in List.Tot.fold_right_gtot...
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 266, "start_col": 0, "start_line": 259 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> Prims.GTot (Prims.list Vale.Interop.Types.b8)
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "FStar.List.Tot.Base.fold_right_gtot", "Vale.Interop.Types.b8", "Prims.Nil", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buffer_qualifiers", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Buffer", "Prims.Cons", "Vale.Interop.Base.mut_to_b8",...
[]
false
false
false
false
false
let args_b8 (args: list arg) : GTot (list b8) =
let maybe_cons_buffer (x: arg) (args: list b8) : GTot (list b8) = match x with | (| TD_Buffer src _ _ , x |) -> mut_to_b8 src x :: args | (| TD_ImmBuffer src _ _ , x |) -> imm_to_b8 src x :: args | (| TD_Base _ , _ |) -> args in List.Tot.fold_right_gtot args maybe_cons_buffer []
false
Vale.Interop.Base.fst
Vale.Interop.Base.disjoint_or_eq_cons
val disjoint_or_eq_cons (hd: arg) (tl: list arg) : Lemma (disjoint_or_eq (hd :: tl) <==> (BigOps.big_and' (disjoint_or_eq_1 hd) tl /\ disjoint_or_eq tl))
val disjoint_or_eq_cons (hd: arg) (tl: list arg) : Lemma (disjoint_or_eq (hd :: tl) <==> (BigOps.big_and' (disjoint_or_eq_1 hd) tl /\ disjoint_or_eq tl))
let disjoint_or_eq_cons (hd:arg) (tl:list arg) : Lemma (disjoint_or_eq (hd::tl) <==> (BigOps.big_and' (disjoint_or_eq_1 hd) tl /\ disjoint_or_eq tl)) = BigOps.pairwise_and'_cons disjoint_or_eq_1 hd tl
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 306, "start_col": 0, "start_line": 304 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hd: Vale.Interop.Base.arg -> tl: Prims.list Vale.Interop.Base.arg -> FStar.Pervasives.Lemma (ensures Vale.Interop.Base.disjoint_or_eq (hd :: tl) <==> FStar.BigOps.big_and' (Vale.Interop.Base.disjoint_or_eq_1 hd) tl /\ Vale.Interop.Base.disjoint_or_eq tl)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Interop.Base.arg", "Prims.list", "FStar.BigOps.pairwise_and'_cons", "Vale.Interop.Base.disjoint_or_eq_1", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "Vale.Interop.Base.disjoint_or_eq", "Prims.Cons", "Prims.l_and", "FStar.BigOps.big_and'", "Prims.Nil", "FStar.Pervasi...
[]
true
false
true
false
false
let disjoint_or_eq_cons (hd: arg) (tl: list arg) : Lemma (disjoint_or_eq (hd :: tl) <==> (BigOps.big_and' (disjoint_or_eq_1 hd) tl /\ disjoint_or_eq tl)) =
BigOps.pairwise_and'_cons disjoint_or_eq_1 hd tl
false
Vale.Interop.Base.fst
Vale.Interop.Base.arg_loc
val arg_loc (x: arg) : GTot B.loc
val arg_loc (x: arg) : GTot B.loc
let arg_loc (x:arg) : GTot B.loc = match x with | (|TD_Buffer _ _ _, x|) -> B.loc_buffer x | (|TD_ImmBuffer _ _ _, x|) -> B.loc_buffer x | (|TD_Base _, _|) -> B.loc_none
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 288, "start_col": 0, "start_line": 284 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Vale.Interop.Base.arg -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Interop.Base.arg", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buffer_qualifiers", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Buffer", "LowStar.Monotonic.Buffer.loc_buffer", "Vale.Interop.Types.base_typ_as_type", "LowStar.Buffer.trivial_preorder", "Vale.Interop.Base.TD_ImmB...
[]
false
false
false
false
false
let arg_loc (x: arg) : GTot B.loc =
match x with | (| TD_Buffer _ _ _ , x |) -> B.loc_buffer x | (| TD_ImmBuffer _ _ _ , x |) -> B.loc_buffer x | (| TD_Base _ , _ |) -> B.loc_none
false
Vale.Interop.Base.fst
Vale.Interop.Base.liveness_disjointness
val liveness_disjointness (args: list arg) (h: mem_roots args) : Lemma (list_disjoint_or_eq (args_b8 args) /\ list_live h (args_b8 args))
val liveness_disjointness (args: list arg) (h: mem_roots args) : Lemma (list_disjoint_or_eq (args_b8 args) /\ list_live h (args_b8 args))
let liveness_disjointness (args:list arg) (h:mem_roots args) : Lemma (list_disjoint_or_eq (args_b8 args) /\ list_live h (args_b8 args)) = args_b8_disjoint_or_eq args; args_b8_live h args
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 396, "start_col": 0, "start_line": 392 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 2, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> h: Vale.Interop.Base.mem_roots args -> FStar.Pervasives.Lemma (ensures Vale.Interop.Heap_s.list_disjoint_or_eq (Vale.Interop.Base.args_b8 args) /\ Vale.Interop.Heap_s.list_live h (Vale.Interop.Base.args_b8 args))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "Vale.Interop.Base.mem_roots", "Vale.Interop.Base.args_b8_live", "Prims.unit", "Vale.Interop.Base.args_b8_disjoint_or_eq", "Prims.l_True", "Prims.squash", "Prims.l_and", "Vale.Interop.Heap_s.list_disjoint_or_eq", "Vale.Interop.Base.args_b8", "Vale.Interop...
[]
true
false
true
false
false
let liveness_disjointness (args: list arg) (h: mem_roots args) : Lemma (list_disjoint_or_eq (args_b8 args) /\ list_live h (args_b8 args)) =
args_b8_disjoint_or_eq args; args_b8_live h args
false
Vale.Interop.Base.fst
Vale.Interop.Base.mem_roots_p_modifies_none
val mem_roots_p_modifies_none (args: list arg) (h0 h1: HS.mem) : Lemma (requires mem_roots_p h0 args /\ B.modifies B.loc_none h0 h1) (ensures mem_roots_p h1 args)
val mem_roots_p_modifies_none (args: list arg) (h0 h1: HS.mem) : Lemma (requires mem_roots_p h0 args /\ B.modifies B.loc_none h0 h1) (ensures mem_roots_p h1 args)
let rec mem_roots_p_modifies_none (args:list arg) (h0:HS.mem) (h1:HS.mem) : Lemma (requires mem_roots_p h0 args /\ B.modifies B.loc_none h0 h1) (ensures mem_roots_p h1 args) = match args with | [] -> () | hd::tl -> all_live_cons hd tl h0; mem_roots_p_modifies_none tl h0...
{ "file_name": "vale/specs/interop/Vale.Interop.Base.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 422, "start_col": 0, "start_line": 407 }
module Vale.Interop.Base open Vale.Arch.HeapTypes_s include Vale.Interop.Types include Vale.Interop.Heap_s module MB = LowStar.Monotonic.Buffer module DV = LowStar.BufferView.Down module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer include Vale.Arch.Heap module BS = Vale.X64.Machine_Semantics_s module BV = Lo...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Heap_s.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked",...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "Vale.Def.Words_s", "short_module": "W" }, { "abbrev": true, "full_module": "FStar...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 2, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires Vale.Interop.Base.mem_roots_p h0 args /\ LowStar.Monotonic.Buffer.modifies LowStar.Monotonic.Buffer.loc_none h0 h1) (ensures V...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.valid_base_type", "Vale.Interop.Base.td_as_type", "Vale.Interop.Base.TD_Base", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buffer_qualifiers", "Vale.Interop.Base.TD_Buffer", "Prims._assert", "Low...
[ "recursion" ]
false
false
true
false
false
let rec mem_roots_p_modifies_none (args: list arg) (h0 h1: HS.mem) : Lemma (requires mem_roots_p h0 args /\ B.modifies B.loc_none h0 h1) (ensures mem_roots_p h1 args) =
match args with | [] -> () | hd :: tl -> all_live_cons hd tl h0; mem_roots_p_modifies_none tl h0 h1; match hd with | (| TD_Base _ , _ |) -> () | (| TD_Buffer _ _ _ , x |) | (| TD_ImmBuffer _ _ _ , x |) -> assert (B.live h1 x)
false