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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LowParse.Spec.Enum.fst | LowParse.Spec.Enum.enum_repr_of_key_cons' | val enum_repr_of_key_cons'
(key repr: eqtype)
(e: enum key repr)
(u: unit{Cons? e})
(f: enum_repr_of_key'_t (enum_tail' e))
: Tot (enum_repr_of_key'_t e) | val enum_repr_of_key_cons'
(key repr: eqtype)
(e: enum key repr)
(u: unit{Cons? e})
(f: enum_repr_of_key'_t (enum_tail' e))
: Tot (enum_repr_of_key'_t e) | let enum_repr_of_key_cons'
(key repr: eqtype)
(e: enum key repr)
(u: unit { Cons? e } )
(f : enum_repr_of_key'_t (enum_tail' e))
: Tot (enum_repr_of_key'_t e)
= enum_repr_of_key_cons e f | {
"file_name": "src/lowparse/LowParse.Spec.Enum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 27,
"end_line": 1239,
"start_col": 0,
"start_line": 1233
} | module LowParse.Spec.Enum
include LowParse.Spec.Combinators
module L = FStar.List.Tot
[@Norm]
let rec list_map
(#a #b: Type)
(f: (a -> Tot b))
(l: list a)
: Tot (l' : list b { l' == L.map f l } )
= match l with
| [] -> []
| a :: q -> f a :: list_map f q
type enum (key: eqtype) (repr: eqtype) = (l: list (ke... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowPa... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"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 |
key: Prims.eqtype ->
repr: Prims.eqtype ->
e: LowParse.Spec.Enum.enum key repr ->
u1105: u1107: Prims.unit{Cons? e} ->
f: LowParse.Spec.Enum.enum_repr_of_key'_t (LowParse.Spec.Enum.enum_tail' e)
-> LowParse.Spec.Enum.enum_repr_of_key'_t e | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"LowParse.Spec.Enum.enum",
"Prims.unit",
"Prims.b2t",
"Prims.uu___is_Cons",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Enum.enum_repr_of_key'_t",
"LowParse.Spec.Enum.enum_tail'",
"LowParse.Spec.Enum.enum_repr_of_key_cons"
] | [] | false | false | false | false | false | let enum_repr_of_key_cons'
(key repr: eqtype)
(e: enum key repr)
(u: unit{Cons? e})
(f: enum_repr_of_key'_t (enum_tail' e))
: Tot (enum_repr_of_key'_t e) =
| enum_repr_of_key_cons e f | false |
LowParse.Spec.Enum.fst | LowParse.Spec.Enum.maybe_enum_destr_cons | val maybe_enum_destr_cons
(t: Type)
(#key #repr: eqtype)
(e: enum key repr)
(l1 l2: list (key * repr))
(u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2))
(g:
(maybe_enum_destr_t' t
e
(list_hd l2 :: l1)
(list_tl l2)
... | val maybe_enum_destr_cons
(t: Type)
(#key #repr: eqtype)
(e: enum key repr)
(l1 l2: list (key * repr))
(u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2))
(g:
(maybe_enum_destr_t' t
e
(list_hd l2 :: l1)
(list_tl l2)
... | let maybe_enum_destr_cons
(t: Type)
(#key #repr: eqtype)
(e: enum key repr)
(l1: list (key * repr))
(l2: list (key * repr))
(u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2))
(g: (maybe_enum_destr_t' t e (list_hd l2 :: l1) (list_tl l2) (list_append_rev_cons l1 (list_hd l2) (list_tl l2))))
: Tot (maybe... | {
"file_name": "src/lowparse/LowParse.Spec.Enum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 57,
"end_line": 943,
"start_col": 0,
"start_line": 909
} | module LowParse.Spec.Enum
include LowParse.Spec.Combinators
module L = FStar.List.Tot
[@Norm]
let rec list_map
(#a #b: Type)
(f: (a -> Tot b))
(l: list a)
: Tot (l' : list b { l' == L.map f l } )
= match l with
| [] -> []
| a :: q -> f a :: list_map f q
type enum (key: eqtype) (repr: eqtype) = (l: list (ke... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowPa... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"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 ->
e: LowParse.Spec.Enum.enum key repr ->
l1: Prims.list (key * repr) ->
l2: Prims.list (key * repr) ->
u1: Prims.squash (Cons? l2 /\ e == FStar.List.Tot.Base.rev l1 @ l2) ->
g:
LowParse.Spec.Enum.maybe_enum_destr_t' t
e
(LowParse.Spec.Enum.list_hd l2 :: l1)
... | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"LowParse.Spec.Enum.enum",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.squash",
"Prims.l_and",
"Prims.b2t",
"Prims.uu___is_Cons",
"Prims.eq2",
"FStar.List.Tot.Base.append",
"FStar.List.Tot.Base.rev",
"LowParse.Spec.Enum.maybe_enum_destr_t'",
"Prims.Cons",
"LowPar... | [] | false | false | false | false | false | let maybe_enum_destr_cons
(t: Type)
(#key #repr: eqtype)
(e: enum key repr)
(l1 l2: list (key * repr))
(u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2))
(g:
(maybe_enum_destr_t' t
e
(list_hd l2 :: l1)
(list_tl l2)
... | fun
(eq: (t -> t -> GTot Type0))
(ift: if_combinator t eq)
(eq_refl: r_reflexive_t _ eq)
(eq_trans: r_transitive_t _ eq)
(f: (maybe_enum_key e -> Tot t))
->
[@@ inline_let ]let _ = r_reflexive_t_elim _ _ eq_refl in
[@@ inline_let ]let _ = r_transitive_t_elim _ _ eq_trans in
match list_hd l2 with
| k... | false |
LowParse.Spec.Enum.fst | LowParse.Spec.Enum.destruct_maybe_enum_key | val destruct_maybe_enum_key
(#key #value: eqtype)
(e: enum key value)
(f: (maybe_enum_key e -> Tot Type))
(f_known: (x: key -> u: squash (list_mem x (list_map fst e)) -> Tot (f (Known x))))
(f_unknown:
(x: value -> u: squash (list_mem x (list_map snd e) == false) -> Tot (f (Unkno... | val destruct_maybe_enum_key
(#key #value: eqtype)
(e: enum key value)
(f: (maybe_enum_key e -> Tot Type))
(f_known: (x: key -> u: squash (list_mem x (list_map fst e)) -> Tot (f (Known x))))
(f_unknown:
(x: value -> u: squash (list_mem x (list_map snd e) == false) -> Tot (f (Unkno... | let destruct_maybe_enum_key
(#key #value: eqtype)
(e: enum key value)
(f: maybe_enum_key e -> Tot Type)
(f_known: (
(x: key) ->
(u: squash (list_mem x (list_map fst e))) ->
Tot (f (Known x))
))
(f_unknown: (
(x: value) ->
(u: squash (list_mem x (list_map snd e) == false)) ->
Tot (f (... | {
"file_name": "src/lowparse/LowParse.Spec.Enum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 33,
"end_line": 1179,
"start_col": 0,
"start_line": 1161
} | module LowParse.Spec.Enum
include LowParse.Spec.Combinators
module L = FStar.List.Tot
[@Norm]
let rec list_map
(#a #b: Type)
(f: (a -> Tot b))
(l: list a)
: Tot (l' : list b { l' == L.map f l } )
= match l with
| [] -> []
| a :: q -> f a :: list_map f q
type enum (key: eqtype) (repr: eqtype) = (l: list (ke... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowPa... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"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 |
e: LowParse.Spec.Enum.enum key value ->
f: (_: LowParse.Spec.Enum.maybe_enum_key e -> Type) ->
f_known:
(
x: key ->
u1075:
Prims.squash (LowParse.Spec.Enum.list_mem x
(LowParse.Spec.Enum.list_map FStar.Pervasives.Native.fst e))
-> f ... | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"LowParse.Spec.Enum.enum",
"LowParse.Spec.Enum.maybe_enum_key",
"Prims.squash",
"Prims.b2t",
"LowParse.Spec.Enum.list_mem",
"LowParse.Spec.Enum.list_map",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.fst",
"LowParse.Spec.Enum.Known",
"Prims.eq2",
"Prims.bool",
"... | [] | false | false | false | false | false | let destruct_maybe_enum_key
(#key #value: eqtype)
(e: enum key value)
(f: (maybe_enum_key e -> Tot Type))
(f_known: (x: key -> u: squash (list_mem x (list_map fst e)) -> Tot (f (Known x))))
(f_unknown:
(x: value -> u: squash (list_mem x (list_map snd e) == false) -> Tot (f (Unkno... | match x with
| Known x' -> f_known x' ()
| Unknown x' -> f_unknown x' () | false |
LowParse.Spec.Enum.fst | LowParse.Spec.Enum.enum_repr_of_key_append_cons | val enum_repr_of_key_append_cons
(#key #repr: eqtype)
(e: enum key repr)
(l1: list (key & repr))
(kr: (key & repr))
(l2: list (key & repr))
: Lemma (requires (e == l1 `L.append` (kr :: l2)))
(ensures
(list_mem (fst kr) (list_map fst e) /\ enum_repr_of_key e (fst kr) == sn... | val enum_repr_of_key_append_cons
(#key #repr: eqtype)
(e: enum key repr)
(l1: list (key & repr))
(kr: (key & repr))
(l2: list (key & repr))
: Lemma (requires (e == l1 `L.append` (kr :: l2)))
(ensures
(list_mem (fst kr) (list_map fst e) /\ enum_repr_of_key e (fst kr) == sn... | let enum_repr_of_key_append_cons
(#key #repr: eqtype)
(e: enum key repr)
(l1: list (key & repr))
(kr: (key & repr))
(l2: list (key & repr))
: Lemma
(requires (e == l1 `L.append` (kr :: l2)))
(ensures (list_mem (fst kr) (list_map fst e) /\ enum_repr_of_key e (fst kr) == snd kr /\ list_mem (snd kr) (list_ma... | {
"file_name": "src/lowparse/LowParse.Spec.Enum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 36,
"end_line": 1277,
"start_col": 0,
"start_line": 1263
} | module LowParse.Spec.Enum
include LowParse.Spec.Combinators
module L = FStar.List.Tot
[@Norm]
let rec list_map
(#a #b: Type)
(f: (a -> Tot b))
(l: list a)
: Tot (l' : list b { l' == L.map f l } )
= match l with
| [] -> []
| a :: q -> f a :: list_map f q
type enum (key: eqtype) (repr: eqtype) = (l: list (ke... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowPa... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"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 |
e: LowParse.Spec.Enum.enum key repr ->
l1: Prims.list (key * repr) ->
kr: (key * repr) ->
l2: Prims.list (key * repr)
-> FStar.Pervasives.Lemma (requires e == l1 @ kr :: l2)
(ensures
LowParse.Spec.Enum.list_mem (FStar.Pervasives.Native.fst kr)
(LowParse.Spec.Enum.list_map FSta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"LowParse.Spec.Enum.enum",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Enum.enum_key_of_repr_of_key",
"FStar.Pervasives.Native.fst",
"Prims.unit",
"FStar.List.Tot.Properties.assoc_append_elim_l",
"Prims.Cons",
"FStar.List.Tot.Properties.assoc_mem",
"FStar.List.... | [] | true | false | true | false | false | let enum_repr_of_key_append_cons
(#key #repr: eqtype)
(e: enum key repr)
(l1: list (key & repr))
(kr: (key & repr))
(l2: list (key & repr))
: Lemma (requires (e == l1 `L.append` (kr :: l2)))
(ensures
(list_mem (fst kr) (list_map fst e) /\ enum_repr_of_key e (fst kr) == sn... | L.map_append fst l1 (kr :: l2);
L.noRepeats_append_elim (L.map fst l1) (L.map fst (kr :: l2));
L.assoc_mem (fst kr) l1;
L.assoc_mem (fst kr) e;
L.assoc_append_elim_l (fst kr) l1 (kr :: l2);
enum_key_of_repr_of_key e (fst kr) | false |
LowParse.Spec.Enum.fst | LowParse.Spec.Enum.enum_repr_of_key_cons_nil | val enum_repr_of_key_cons_nil (#key #repr: eqtype) (e: enum key repr)
: Pure (enum_repr_of_key'_t e)
(requires (Cons? e /\ Nil? (enum_tail' e)))
(ensures (fun _ -> True)) | val enum_repr_of_key_cons_nil (#key #repr: eqtype) (e: enum key repr)
: Pure (enum_repr_of_key'_t e)
(requires (Cons? e /\ Nil? (enum_tail' e)))
(ensures (fun _ -> True)) | let enum_repr_of_key_cons_nil
(#key #repr: eqtype)
(e: enum key repr)
: Pure (enum_repr_of_key'_t e)
(requires (Cons? e /\ Nil? (enum_tail' e)))
(ensures (fun _ -> True))
= (fun (e' : list (key * repr) { e' == e } ) -> match e' with
| [(k, r)] ->
(fun (x: enum_key e) ->
(r <: (r: enum_repr e { e... | {
"file_name": "src/lowparse/LowParse.Spec.Enum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 1252,
"start_col": 0,
"start_line": 1242
} | module LowParse.Spec.Enum
include LowParse.Spec.Combinators
module L = FStar.List.Tot
[@Norm]
let rec list_map
(#a #b: Type)
(f: (a -> Tot b))
(l: list a)
: Tot (l' : list b { l' == L.map f l } )
= match l with
| [] -> []
| a :: q -> f a :: list_map f q
type enum (key: eqtype) (repr: eqtype) = (l: list (ke... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowPa... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"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 | e: LowParse.Spec.Enum.enum key repr -> Prims.Pure (LowParse.Spec.Enum.enum_repr_of_key'_t e) | Prims.Pure | [] | [] | [
"Prims.eqtype",
"LowParse.Spec.Enum.enum",
"LowParse.Spec.Enum.enum_key",
"LowParse.Spec.Enum.enum_repr",
"Prims.eq2",
"LowParse.Spec.Enum.enum_repr_of_key",
"LowParse.Spec.Enum.enum_repr_of_key'_t",
"Prims.l_and",
"Prims.b2t",
"Prims.uu___is_Cons",
"FStar.Pervasives.Native.tuple2",
"Prims.uu_... | [] | false | false | false | false | false | let enum_repr_of_key_cons_nil (#key #repr: eqtype) (e: enum key repr)
: Pure (enum_repr_of_key'_t e)
(requires (Cons? e /\ Nil? (enum_tail' e)))
(ensures (fun _ -> True)) =
| (fun (e': list (key * repr) {e' == e}) ->
match e' with
| [k, r] -> (fun (x: enum_key e) -> (r <: (r: enum_repr e {enum_repr_of_key e x == r})))) e | false |
LowParse.Spec.Enum.fst | LowParse.Spec.Enum.enum_repr_of_key_cons | val enum_repr_of_key_cons
(#key #repr: eqtype)
(e: enum key repr)
(f: enum_repr_of_key'_t (enum_tail' e))
: Pure (enum_repr_of_key'_t e) (requires (Cons? e)) (ensures (fun _ -> True)) | val enum_repr_of_key_cons
(#key #repr: eqtype)
(e: enum key repr)
(f: enum_repr_of_key'_t (enum_tail' e))
: Pure (enum_repr_of_key'_t e) (requires (Cons? e)) (ensures (fun _ -> True)) | let enum_repr_of_key_cons
(#key #repr: eqtype)
(e: enum key repr)
(f : enum_repr_of_key'_t (enum_tail' e))
: Pure (enum_repr_of_key'_t e)
(requires (Cons? e))
(ensures (fun _ -> True))
= (fun (e' : list (key * repr) { e' == e } ) -> match e' with
| (k, r) :: _ ->
(fun (x: enum_key e) -> (
if k... | {
"file_name": "src/lowparse/LowParse.Spec.Enum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 1230,
"start_col": 0,
"start_line": 1216
} | module LowParse.Spec.Enum
include LowParse.Spec.Combinators
module L = FStar.List.Tot
[@Norm]
let rec list_map
(#a #b: Type)
(f: (a -> Tot b))
(l: list a)
: Tot (l' : list b { l' == L.map f l } )
= match l with
| [] -> []
| a :: q -> f a :: list_map f q
type enum (key: eqtype) (repr: eqtype) = (l: list (ke... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowPa... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"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 |
e: LowParse.Spec.Enum.enum key repr ->
f: LowParse.Spec.Enum.enum_repr_of_key'_t (LowParse.Spec.Enum.enum_tail' e)
-> Prims.Pure (LowParse.Spec.Enum.enum_repr_of_key'_t e) | Prims.Pure | [] | [] | [
"Prims.eqtype",
"LowParse.Spec.Enum.enum",
"LowParse.Spec.Enum.enum_repr_of_key'_t",
"LowParse.Spec.Enum.enum_tail'",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Enum.enum_key",
"Prims.op_Equality",
"Prims.bool",
"LowParse.Spec.Enum.enum_repr",
"Prims.eq2",
"LowParse.Spec.En... | [] | false | false | false | false | false | let enum_repr_of_key_cons
(#key #repr: eqtype)
(e: enum key repr)
(f: enum_repr_of_key'_t (enum_tail' e))
: Pure (enum_repr_of_key'_t e) (requires (Cons? e)) (ensures (fun _ -> True)) =
| (fun (e': list (key * repr) {e' == e}) ->
match e' with
| (k, r) :: _ ->
(fun (x: enum_key e) ->
(if k = x then (r <: repr) else (f (x <: key) <: repr))
<:
(r: enum_repr e {enum_repr_of_key e x == r}))) e | false |
Hacl.Bignum.Definitions.fst | Hacl.Bignum.Definitions.limb_t | val limb_t : Type0 | let limb_t = S.limb_t | {
"file_name": "code/bignum/Hacl.Bignum.Definitions.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | module Hacl.Bignum.Definitions
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module S = Hacl.Spec.Bignum.Definitions
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract
val blocks: x:size_t{v x > 0} -> m:size_t{v m > 0} -> r:size_t{v r... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.ST.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t"
] | [] | false | false | false | true | true | let limb_t =
| S.limb_t | false | |
Hacl.Bignum.Definitions.fst | Hacl.Bignum.Definitions.limb | val limb : t: Hacl.Bignum.Definitions.limb_t -> Type0 | let limb (t:limb_t) = S.limb t | {
"file_name": "code/bignum/Hacl.Bignum.Definitions.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 26,
"start_col": 0,
"start_line": 26
} | module Hacl.Bignum.Definitions
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module S = Hacl.Spec.Bignum.Definitions
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract
val blocks: x:size_t{v x > 0} -> m:size_t{v m > 0} -> r:size_t{v r... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.ST.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"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 | t: Hacl.Bignum.Definitions.limb_t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.Definitions.limb"
] | [] | false | false | false | true | true | let limb (t: limb_t) =
| S.limb t | false | |
Hacl.Bignum.Definitions.fst | Hacl.Bignum.Definitions.lbignum | val lbignum : t: Hacl.Bignum.Definitions.limb_t -> len: Lib.IntTypes.size_t -> Type0 | let lbignum (t:limb_t) len = lbuffer (limb t) len | {
"file_name": "code/bignum/Hacl.Bignum.Definitions.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 49,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | module Hacl.Bignum.Definitions
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module S = Hacl.Spec.Bignum.Definitions
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract
val blocks: x:size_t{v x > 0} -> m:size_t{v m > 0} -> r:size_t{v r... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.ST.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"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 | t: Hacl.Bignum.Definitions.limb_t -> len: Lib.IntTypes.size_t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Hacl.Bignum.Definitions.limb"
] | [] | false | false | false | true | true | let lbignum (t: limb_t) len =
| lbuffer (limb t) len | false | |
FStar.UInt32.fst | FStar.UInt32.v | val v (x:t) : Tot (uint_t n) | val v (x:t) : Tot (uint_t n) | let v x = x.v | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 28,
"start_col": 0,
"start_line": 28
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt32.t -> FStar.UInt.uint_t FStar.UInt32.n | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.__proj__Mk__item__v",
"FStar.UInt.uint_t",
"FStar.UInt32.n"
] | [] | false | false | false | true | false | let v x =
| x.v | false |
FStar.UInt32.fst | FStar.UInt32.uint_to_t | val uint_to_t (x:uint_t n) : Pure t
(requires True)
(ensures (fun y -> v y = x)) | val uint_to_t (x:uint_t n) : Pure t
(requires True)
(ensures (fun y -> v y = x)) | let uint_to_t x = Mk x | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt.uint_t FStar.UInt32.n -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt.uint_t",
"FStar.UInt32.n",
"FStar.UInt32.Mk",
"FStar.UInt32.t"
] | [] | false | false | false | false | false | let uint_to_t x =
| Mk x | false |
FStar.UInt32.fst | FStar.UInt32.one | val one : x:t{v x = 1} | val one : x:t{v x = 1} | let one = uint_to_t 1 | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 41,
"start_col": 0,
"start_line": 41
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt32.t{FStar.UInt32.v x = 1} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | false | false | let one =
| uint_to_t 1 | false |
Hacl.Bignum.Definitions.fst | Hacl.Bignum.Definitions.blocks | val blocks: x:size_t{v x > 0} -> m:size_t{v m > 0} -> r:size_t{v r == S.blocks (v x) (v m)} | val blocks: x:size_t{v x > 0} -> m:size_t{v m > 0} -> r:size_t{v r == S.blocks (v x) (v m)} | let blocks x m = (x -. 1ul) /. m +. 1ul | {
"file_name": "code/bignum/Hacl.Bignum.Definitions.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 16,
"start_col": 0,
"start_line": 16
} | module Hacl.Bignum.Definitions
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module S = Hacl.Spec.Bignum.Definitions
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.ST.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"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 | x: Lib.IntTypes.size_t{Lib.IntTypes.v x > 0} -> m: Lib.IntTypes.size_t{Lib.IntTypes.v m > 0}
-> r:
Lib.IntTypes.size_t
{ Lib.IntTypes.v r ==
Hacl.Spec.Bignum.Definitions.blocks (Lib.IntTypes.v x) (Lib.IntTypes.v m) } | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_GreaterThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.op_Plus_Dot",
"Lib.IntTypes.op_Slash_Dot",
"Lib.IntTypes.op_Subtraction_Dot",
"FStar.UInt32.__uint_to_t",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"Lib.IntType... | [] | false | false | false | false | false | let blocks x m =
| (x -. 1ul) /. m +. 1ul | false |
FStar.UInt32.fst | FStar.UInt32.zero | val zero : x:t{v x = 0} | val zero : x:t{v x = 0} | let zero = uint_to_t 0 | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 39,
"start_col": 0,
"start_line": 39
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt32.t{FStar.UInt32.v x = 0} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | false | false | let zero =
| uint_to_t 0 | false |
FStar.UInt32.fst | FStar.UInt32.add | val add (a:t) (b:t) : Pure t
(requires (size (v a + v b) n))
(ensures (fun c -> v a + v b = v c)) | val add (a:t) (b:t) : Pure t
(requires (size (v a + v b) n))
(ensures (fun c -> v a + v b = v c)) | let add a b = Mk (add (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 43,
"start_col": 0,
"start_line": 43
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.add",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let add a b =
| Mk (add (v a) (v b)) | false |
Hacl.Bignum.Definitions.fst | Hacl.Bignum.Definitions.blocks0 | val blocks0: x:size_t -> m:size_t{v m > 0} -> r:size_t{v r == S.blocks0 (v x) (v m)} | val blocks0: x:size_t -> m:size_t{v m > 0} -> r:size_t{v r == S.blocks0 (v x) (v m)} | let blocks0 x m = if x =. 0ul then 1ul else (x -. 1ul) /. m +. 1ul | {
"file_name": "code/bignum/Hacl.Bignum.Definitions.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 20,
"start_col": 0,
"start_line": 20
} | module Hacl.Bignum.Definitions
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module S = Hacl.Spec.Bignum.Definitions
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract
val blocks: x:size_t{v x > 0} -> m:size_t{v m > 0} -> r:size_t{v r... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.ST.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"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 | x: Lib.IntTypes.size_t -> m: Lib.IntTypes.size_t{Lib.IntTypes.v m > 0}
-> r:
Lib.IntTypes.size_t
{ Lib.IntTypes.v r ==
Hacl.Spec.Bignum.Definitions.blocks0 (Lib.IntTypes.v x) (Lib.IntTypes.v m) } | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_GreaterThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.op_Equals_Dot",
"FStar.UInt32.__uint_to_t",
"Prims.bool",
"Lib.IntTypes.op_Plus_Dot",
"Lib.IntTypes.op_Slash_Dot",
"Lib.IntTypes.op_Subtraction_Dot",
"Prims.eq2... | [] | false | false | false | false | false | let blocks0 x m =
| if x =. 0ul then 1ul else (x -. 1ul) /. m +. 1ul | false |
FStar.UInt32.fst | FStar.UInt32.add_mod | val add_mod (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.add_mod (v a) (v b) = v c)) | val add_mod (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.add_mod (v a) (v b) = v c)) | let add_mod a b = Mk (add_mod (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 47,
"start_col": 0,
"start_line": 47
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.add_mod",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let add_mod a b =
| Mk (add_mod (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.mul_underspec | val mul_underspec (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c ->
size (v a * v b) n ==> v a * v b = v c)) | val mul_underspec (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c ->
size (v a * v b) n ==> v a * v b = v c)) | let mul_underspec a b = Mk (mul_underspec (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 57,
"start_col": 0,
"start_line": 57
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.mul_underspec",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let mul_underspec a b =
| Mk (mul_underspec (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.sub_mod | val sub_mod (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.sub_mod (v a) (v b) = v c)) | val sub_mod (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.sub_mod (v a) (v b) = v c)) | let sub_mod a b = Mk (sub_mod (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 53,
"start_col": 0,
"start_line": 53
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.sub_mod",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let sub_mod a b =
| Mk (sub_mod (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.sub | val sub (a:t) (b:t) : Pure t
(requires (size (v a - v b) n))
(ensures (fun c -> v a - v b = v c)) | val sub (a:t) (b:t) : Pure t
(requires (size (v a - v b) n))
(ensures (fun c -> v a - v b = v c)) | let sub a b = Mk (sub (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 49,
"start_col": 0,
"start_line": 49
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.sub",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let sub a b =
| Mk (sub (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.add_underspec | val add_underspec (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c ->
size (v a + v b) n ==> v a + v b = v c)) | val add_underspec (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c ->
size (v a + v b) n ==> v a + v b = v c)) | let add_underspec a b = Mk (add_underspec (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 45,
"start_col": 0,
"start_line": 45
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.add_underspec",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let add_underspec a b =
| Mk (add_underspec (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.lognot | val lognot (x:t) : Pure t
(requires True)
(ensures (fun z -> lognot (v x) == v z)) | val lognot (x:t) : Pure t
(requires True)
(ensures (fun z -> lognot (v x) == v z)) | let lognot x = Mk (lognot (v x)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 71,
"start_col": 0,
"start_line": 71
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.lognot",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let lognot x =
| Mk (lognot (v x)) | false |
FStar.UInt32.fst | FStar.UInt32.sub_underspec | val sub_underspec (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c ->
size (v a - v b) n ==> v a - v b = v c)) | val sub_underspec (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c ->
size (v a - v b) n ==> v a - v b = v c)) | let sub_underspec a b = Mk (sub_underspec (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 51,
"start_col": 0,
"start_line": 51
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.sub_underspec",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let sub_underspec a b =
| Mk (sub_underspec (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.rem | val rem (a:t) (b:t{v b <> 0}) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.mod (v a) (v b) = v c)) | val rem (a:t) (b:t{v b <> 0}) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.mod (v a) (v b) = v c)) | let rem a b = Mk (mod (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 63,
"start_col": 0,
"start_line": 63
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t{FStar.UInt32.v b <> 0} -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_disEquality",
"Prims.int",
"FStar.UInt32.v",
"FStar.UInt32.Mk",
"FStar.UInt.mod",
"FStar.UInt32.n"
] | [] | false | false | false | false | false | let rem a b =
| Mk (mod (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.mul | val mul (a:t) (b:t) : Pure t
(requires (size (v a * v b) n))
(ensures (fun c -> v a * v b = v c)) | val mul (a:t) (b:t) : Pure t
(requires (size (v a * v b) n))
(ensures (fun c -> v a * v b = v c)) | let mul a b = Mk (mul (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 55,
"start_col": 0,
"start_line": 55
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.mul",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let mul a b =
| Mk (mul (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.mul_mod | val mul_mod (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.mul_mod (v a) (v b) = v c)) | val mul_mod (a:t) (b:t) : Pure t
(requires True)
(ensures (fun c -> FStar.UInt.mul_mod (v a) (v b) = v c)) | let mul_mod a b = Mk (mul_mod (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.mul_mod",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let mul_mod a b =
| Mk (mul_mod (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.logor | val logor (x:t) (y:t) : Pure t
(requires True)
(ensures (fun z -> v x `logor` v y == v z)) | val logor (x:t) (y:t) : Pure t
(requires True)
(ensures (fun z -> v x `logor` v y == v z)) | let logor x y = Mk (logor (v x) (v y)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 69,
"start_col": 0,
"start_line": 69
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt32.t -> y: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.logor",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let logor x y =
| Mk (logor (v x) (v y)) | false |
FStar.UInt32.fst | FStar.UInt32.logand | val logand (x:t) (y:t) : Pure t
(requires True)
(ensures (fun z -> v x `logand` v y = v z)) | val logand (x:t) (y:t) : Pure t
(requires True)
(ensures (fun z -> v x `logand` v y = v z)) | let logand x y = Mk (logand (v x) (v y)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 65,
"start_col": 0,
"start_line": 65
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt32.t -> y: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.logand",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let logand x y =
| Mk (logand (v x) (v y)) | false |
FStar.UInt32.fst | FStar.UInt32.logxor | val logxor (x:t) (y:t) : Pure t
(requires True)
(ensures (fun z -> v x `logxor` v y == v z)) | val logxor (x:t) (y:t) : Pure t
(requires True)
(ensures (fun z -> v x `logxor` v y == v z)) | let logxor x y = Mk (logxor (v x) (v y)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 67,
"start_col": 0,
"start_line": 67
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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 | x: FStar.UInt32.t -> y: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.logxor",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let logxor x y =
| Mk (logxor (v x) (v y)) | false |
OWGCounter.fst | OWGCounter.incr_main | val incr_main (#v: G.erased int) (r: ref int)
: SteelT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm (v + 2)) | val incr_main (#v: G.erased int) (r: ref int)
: SteelT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm (v + 2)) | let incr_main (#v:G.erased int) (r:ref int)
: SteelT unit
(pts_to r full_perm v)
(fun _ -> pts_to r full_perm (v + 2))
= //allocate the two contribution references
let r1 = ghost_alloc_pt (G.hide 0) in
let r2 = ghost_alloc_pt v in
//split their permissions into half
ghost_share_pt r1;
... | {
"file_name": "share/steel/examples/steel/OWGCounter.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 286,
"start_col": 0,
"start_line": 236
} | (*
Copyright 2019 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 applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.SpinLock.fsti.checked",
"Steel.Reference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.f... | [
{
"abbrev": true,
"full_module": "Steel.Effect.Atomic",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.Reference",
"short_module": "R"
},
{
"abbrev": false,
"... | {
"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 | r: Steel.Reference.ref Prims.int -> Steel.Effect.SteelT Prims.unit | Steel.Effect.SteelT | [] | [] | [
"FStar.Ghost.erased",
"Prims.int",
"Steel.Reference.ref",
"Steel.Effect.Atomic.rewrite_slprop",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.Reference.pts_to",
"Steel.FractionalPermission.full_perm",
"Prims.op_Addition",
"OWGCounter.fst",
"FStar.Ghost.... | [] | false | true | false | false | false | let incr_main (#v: G.erased int) (r: ref int)
: SteelT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm (v + 2)) =
| let r1 = ghost_alloc_pt (G.hide 0) in
let r2 = ghost_alloc_pt v in
ghost_share_pt r1;
rewrite_slprop ((ghost_pts_to r1 (P.half_perm P.full_perm) 0)
`star`
(ghost_pts_to r1 (P.half_perm P.full_perm) 0))
((ghost_pts_to r1 half_perm 0) `star` (ghost_pts_to r1 half_perm 0))
(fun _ -> ());
ghost_share_pt r2;
rew... | false |
FStar.UInt32.fst | FStar.UInt32.div | val div (a:t) (b:t{v b <> 0}) : Pure t
(requires (True))
(ensures (fun c -> v a / v b = v c)) | val div (a:t) (b:t{v b <> 0}) : Pure t
(requires (True))
(ensures (fun c -> v a / v b = v c)) | let div a b = Mk (div (v a) (v b)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 61,
"start_col": 0,
"start_line": 61
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> b: FStar.UInt32.t{FStar.UInt32.v b <> 0} -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_disEquality",
"Prims.int",
"FStar.UInt32.v",
"FStar.UInt32.Mk",
"FStar.UInt.div",
"FStar.UInt32.n"
] | [] | false | false | false | false | false | let div a b =
| Mk (div (v a) (v b)) | false |
FStar.UInt32.fst | FStar.UInt32.shift_left | val shift_left (a:t) (s:t) : Pure t
(requires (v s < n))
(ensures (fun c -> FStar.UInt.shift_left (v a) (v s) = v c)) | val shift_left (a:t) (s:t) : Pure t
(requires (v s < n))
(ensures (fun c -> FStar.UInt.shift_left (v a) (v s) = v c)) | let shift_left a s = Mk (shift_left (v a) (v s)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 77,
"start_col": 0,
"start_line": 77
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"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: FStar.UInt32.t -> s: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.shift_left",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let shift_left a s =
| Mk (shift_left (v a) (v s)) | false |
Steel.ST.C.Types.Union.fsti | Steel.ST.C.Types.Union.ununion_field_and_drop | val ununion_field_and_drop
(#opened: _)
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(r: ref (union0 tn n fields))
(field: field_t fields)
(#t': Type0)
(#td': typedef t')
(#v': Ghost.erased t')
(r': ref td')
: STGhost (Ghost.erased (unio... | val ununion_field_and_drop
(#opened: _)
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(r: ref (union0 tn n fields))
(field: field_t fields)
(#t': Type0)
(#td': typedef t')
(#v': Ghost.erased t')
(r': ref td')
: STGhost (Ghost.erased (unio... | let ununion_field_and_drop
(#opened: _)
(#tn: Type0)
(#tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(r: ref (union0 tn n fields))
(field: field_t fields)
(#t': Type0)
(#td': typedef t')
(#v': Ghost.erased t')
(r': ref td')
: STGhost (Ghost.erased (union_t0 tn n fields)) opened
(ha... | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 458,
"start_col": 0,
"start_line": 435
} | module Steel.ST.C.Types.Union
open Steel.ST.Util
include Steel.ST.C.Types.Fields
open Steel.C.Typestring
module P = Steel.FractionalPermission
[@@noextract_to "krml"] // primitive
val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0
inline_for_extraction [@@noextract_to ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.Fields.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.C.Typestring.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classic... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.Fields",
"short_module": null
},
{
"abbrev": f... | {
"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 |
r: Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Union.union0 tn n fields) ->
field: Steel.ST.C.Types.Fields.field_t fields ->
r': Steel.ST.C.Types.Base.ref td'
-> Steel.ST.Effect.Ghost.STGhost
(FStar.Ghost.erased (Steel.ST.C.Types.Union.union_t0 tn n fields)) | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"Prims.string",
"Steel.ST.C.Types.Fields.field_description_t",
"Steel.ST.C.Types.Base.ref",
"Steel.ST.C.Types.Union.union_t0",
"Steel.ST.C.Types.Union.union0",
"Steel.ST.C.Types.Fields.field_t",
"Steel.ST.C.Types.Base.typedef",
"FStar.Ghost.erased",
"Prims.unit",
"Steel.ST... | [] | false | true | false | false | false | let ununion_field_and_drop
(#opened: _)
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(r: ref (union0 tn n fields))
(field: field_t fields)
(#t': Type0)
(#td': typedef t')
(#v': Ghost.erased t')
(r': ref td')
: STGhost (Ghost.erased (unio... | let res = ununion_field r field r' in
drop (has_union_field _ _ _);
res | false |
FStar.UInt32.fst | FStar.UInt32.shift_right | val shift_right (a:t) (s:t) : Pure t
(requires (v s < n))
(ensures (fun c -> FStar.UInt.shift_right (v a) (v s) = v c)) | val shift_right (a:t) (s:t) : Pure t
(requires (v s < n))
(ensures (fun c -> FStar.UInt.shift_right (v a) (v s) = v c)) | let shift_right a s = Mk (shift_right (v a) (v s)) | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 73,
"start_col": 0,
"start_line": 73
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"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: FStar.UInt32.t -> s: FStar.UInt32.t -> Prims.Pure FStar.UInt32.t | Prims.Pure | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.Mk",
"FStar.UInt.shift_right",
"FStar.UInt32.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let shift_right a s =
| Mk (shift_right (v a) (v s)) | false |
Hacl.Bignum.Definitions.fst | Hacl.Bignum.Definitions.bn_v | val bn_v: #t:limb_t -> #len:size_t -> h:mem -> b:lbignum t len -> GTot nat | val bn_v: #t:limb_t -> #len:size_t -> h:mem -> b:lbignum t len -> GTot nat | let bn_v #t #len h b = S.bn_v #t #(v len) (as_seq h b) | {
"file_name": "code/bignum/Hacl.Bignum.Definitions.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 54,
"end_line": 33,
"start_col": 0,
"start_line": 33
} | module Hacl.Bignum.Definitions
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module S = Hacl.Spec.Bignum.Definitions
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract
val blocks: x:size_t{v x > 0} -> m:size_t{v m > 0} -> r:size_t{v r... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.ST.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"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 | h: FStar.Monotonic.HyperStack.mem -> b: Hacl.Bignum.Definitions.lbignum t len
-> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_t",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Hacl.Bignum.Definitions.limb",
"P... | [] | false | false | false | false | false | let bn_v #t #len h b =
| S.bn_v #t #(v len) (as_seq h b) | false |
FStar.UInt32.fst | FStar.UInt32.lemma_sub_msbs | val lemma_sub_msbs (a:t) (b:t)
: Lemma ((msb (v a) = msb (v b)) ==> (v a < v b <==> msb (v (sub_mod a b)))) | val lemma_sub_msbs (a:t) (b:t)
: Lemma ((msb (v a) = msb (v b)) ==> (v a < v b <==> msb (v (sub_mod a b)))) | let lemma_sub_msbs a b
= from_vec_propriety (to_vec (v a)) 1;
from_vec_propriety (to_vec (v b)) 1;
from_vec_propriety (to_vec (v (sub_mod a b))) 1 | {
"file_name": "ulib/FStar.UInt32.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 53,
"end_line": 82,
"start_col": 0,
"start_line": 79
} | (*
Copyright 2008-2019 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "FStar.UInt32.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"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: FStar.UInt32.t -> b: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(ensures
FStar.UInt.msb (FStar.UInt32.v a) = FStar.UInt.msb (FStar.UInt32.v b) ==>
(FStar.UInt32.v a < FStar.UInt32.v b <==>
FStar.UInt.msb (FStar.UInt32.v (FStar.UInt32.sub_mod a b)))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.UInt32.t",
"FStar.UInt.from_vec_propriety",
"FStar.UInt32.n",
"FStar.UInt.to_vec",
"FStar.UInt32.v",
"FStar.UInt32.sub_mod",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_sub_msbs a b =
| from_vec_propriety (to_vec (v a)) 1;
from_vec_propriety (to_vec (v b)) 1;
from_vec_propriety (to_vec (v (sub_mod a b))) 1 | false |
Vale.SHA2.Wrapper.fst | Vale.SHA2.Wrapper.sigma256_1_0 | val sigma256_1_0: x:nat32 -> Tot (nat32) | val sigma256_1_0: x:nat32 -> Tot (nat32) | let sigma256_1_0 x = v (_Sigma0 SHA2_256 (uint_to_t x)) | {
"file_name": "vale/specs/crypto/Vale.SHA2.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 13,
"start_col": 0,
"start_line": 13
} | module Vale.SHA2.Wrapper
open FStar.UInt32
open Spec.Agile.Hash
open Spec.SHA2
friend Lib.IntTypes
friend Spec.SHA2
let sigma256_0_0 x = v (_sigma0 SHA2_256 (uint_to_t x))
let sigma256_0_1 x = v (_sigma1 SHA2_256 (uint_to_t x)) | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.fst.checked",
"Spec.SHA2.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.IntTypes.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Vale.S... | [
{
"abbrev": false,
"full_module": "Spec.SHA2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt32",
"short_module": null
},
{
"abbrev": false,
"full_module": "Val... | {
"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: Vale.Def.Words_s.nat32 -> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"FStar.UInt32.v",
"Spec.SHA2._Sigma0",
"Spec.Hash.Definitions.SHA2_256",
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | true | false | let sigma256_1_0 x =
| v (_Sigma0 SHA2_256 (uint_to_t x)) | false |
Vale.SHA2.Wrapper.fst | Vale.SHA2.Wrapper.ch256 | val ch256: x:nat32 -> y:nat32 -> z:nat32 -> Tot (nat32) | val ch256: x:nat32 -> y:nat32 -> z:nat32 -> Tot (nat32) | let ch256 x y z = v (_Ch SHA2_256 (uint_to_t x) (uint_to_t y) (uint_to_t z)) | {
"file_name": "vale/specs/crypto/Vale.SHA2.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 17,
"start_col": 0,
"start_line": 17
} | module Vale.SHA2.Wrapper
open FStar.UInt32
open Spec.Agile.Hash
open Spec.SHA2
friend Lib.IntTypes
friend Spec.SHA2
let sigma256_0_0 x = v (_sigma0 SHA2_256 (uint_to_t x))
let sigma256_0_1 x = v (_sigma1 SHA2_256 (uint_to_t x))
let sigma256_1_0 x = v (_Sigma0 SHA2_256 (uint_to_t x))
let sigma256_1_1 x = v (_Sigma1... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.fst.checked",
"Spec.SHA2.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.IntTypes.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Vale.S... | [
{
"abbrev": false,
"full_module": "Spec.SHA2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt32",
"short_module": null
},
{
"abbrev": false,
"full_module": "Val... | {
"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: Vale.Def.Words_s.nat32 -> y: Vale.Def.Words_s.nat32 -> z: Vale.Def.Words_s.nat32
-> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"FStar.UInt32.v",
"Spec.SHA2._Ch",
"Spec.Hash.Definitions.SHA2_256",
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | true | false | let ch256 x y z =
| v (_Ch SHA2_256 (uint_to_t x) (uint_to_t y) (uint_to_t z)) | false |
Vale.SHA2.Wrapper.fst | Vale.SHA2.Wrapper.sigma256_0_1 | val sigma256_0_1: x:nat32 -> Tot (nat32) | val sigma256_0_1: x:nat32 -> Tot (nat32) | let sigma256_0_1 x = v (_sigma1 SHA2_256 (uint_to_t x)) | {
"file_name": "vale/specs/crypto/Vale.SHA2.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 11,
"start_col": 0,
"start_line": 11
} | module Vale.SHA2.Wrapper
open FStar.UInt32
open Spec.Agile.Hash
open Spec.SHA2
friend Lib.IntTypes
friend Spec.SHA2
let sigma256_0_0 x = v (_sigma0 SHA2_256 (uint_to_t x)) | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.fst.checked",
"Spec.SHA2.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.IntTypes.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Vale.S... | [
{
"abbrev": false,
"full_module": "Spec.SHA2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt32",
"short_module": null
},
{
"abbrev": false,
"full_module": "Val... | {
"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: Vale.Def.Words_s.nat32 -> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"FStar.UInt32.v",
"Spec.SHA2._sigma1",
"Spec.Hash.Definitions.SHA2_256",
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | true | false | let sigma256_0_1 x =
| v (_sigma1 SHA2_256 (uint_to_t x)) | false |
Vale.SHA2.Wrapper.fst | Vale.SHA2.Wrapper.sigma256_1_1 | val sigma256_1_1: x:nat32 -> Tot (nat32) | val sigma256_1_1: x:nat32 -> Tot (nat32) | let sigma256_1_1 x = v (_Sigma1 SHA2_256 (uint_to_t x)) | {
"file_name": "vale/specs/crypto/Vale.SHA2.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 15,
"start_col": 0,
"start_line": 15
} | module Vale.SHA2.Wrapper
open FStar.UInt32
open Spec.Agile.Hash
open Spec.SHA2
friend Lib.IntTypes
friend Spec.SHA2
let sigma256_0_0 x = v (_sigma0 SHA2_256 (uint_to_t x))
let sigma256_0_1 x = v (_sigma1 SHA2_256 (uint_to_t x))
let sigma256_1_0 x = v (_Sigma0 SHA2_256 (uint_to_t x)) | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.fst.checked",
"Spec.SHA2.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.IntTypes.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Vale.S... | [
{
"abbrev": false,
"full_module": "Spec.SHA2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt32",
"short_module": null
},
{
"abbrev": false,
"full_module": "Val... | {
"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: Vale.Def.Words_s.nat32 -> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"FStar.UInt32.v",
"Spec.SHA2._Sigma1",
"Spec.Hash.Definitions.SHA2_256",
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | true | false | let sigma256_1_1 x =
| v (_Sigma1 SHA2_256 (uint_to_t x)) | false |
Vale.SHA2.Wrapper.fst | Vale.SHA2.Wrapper.maj256 | val maj256: x:nat32 -> y:nat32 -> z:nat32 -> Tot (nat32) | val maj256: x:nat32 -> y:nat32 -> z:nat32 -> Tot (nat32) | let maj256 x y z = v (_Maj SHA2_256 (uint_to_t x) (uint_to_t y) (uint_to_t z)) | {
"file_name": "vale/specs/crypto/Vale.SHA2.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 19,
"start_col": 0,
"start_line": 19
} | module Vale.SHA2.Wrapper
open FStar.UInt32
open Spec.Agile.Hash
open Spec.SHA2
friend Lib.IntTypes
friend Spec.SHA2
let sigma256_0_0 x = v (_sigma0 SHA2_256 (uint_to_t x))
let sigma256_0_1 x = v (_sigma1 SHA2_256 (uint_to_t x))
let sigma256_1_0 x = v (_Sigma0 SHA2_256 (uint_to_t x))
let sigma256_1_1 x = v (_Sigma1... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.fst.checked",
"Spec.SHA2.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.IntTypes.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Vale.S... | [
{
"abbrev": false,
"full_module": "Spec.SHA2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt32",
"short_module": null
},
{
"abbrev": false,
"full_module": "Val... | {
"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: Vale.Def.Words_s.nat32 -> y: Vale.Def.Words_s.nat32 -> z: Vale.Def.Words_s.nat32
-> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"FStar.UInt32.v",
"Spec.SHA2._Maj",
"Spec.Hash.Definitions.SHA2_256",
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | true | false | let maj256 x y z =
| v (_Maj SHA2_256 (uint_to_t x) (uint_to_t y) (uint_to_t z)) | false |
EtM.CPA.fst | EtM.CPA.ivsize | val ivsize : Prims.int | let ivsize = CC.blockSize CC.AES_128_CBC | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 34,
"start_col": 0,
"start_line": 34
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [
"CoreCrypto.blockSize",
"CoreCrypto.AES_128_CBC"
] | [] | false | false | false | true | false | let ivsize =
| CC.blockSize CC.AES_128_CBC | false | |
EtM.CPA.fst | EtM.CPA.keysize | val keysize : Prims.int | let keysize = 16 | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 38,
"start_col": 0,
"start_line": 38
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let keysize =
| 16 | false | |
EtM.CPA.fst | EtM.CPA.cipher | val cipher : Type0 | let cipher = (b:bytes{B.length b >= ivsize}) | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 44,
"start_col": 0,
"start_line": 44
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Platform.Bytes.bytes",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Platform.Bytes.length",
"EtM.CPA.ivsize"
] | [] | false | false | false | true | true | let cipher =
| (b: bytes{B.length b >= ivsize}) | false | |
Vale.SHA2.Wrapper.fst | Vale.SHA2.Wrapper.sigma256_0_0 | val sigma256_0_0: x:nat32 -> Tot (nat32) | val sigma256_0_0: x:nat32 -> Tot (nat32) | let sigma256_0_0 x = v (_sigma0 SHA2_256 (uint_to_t x)) | {
"file_name": "vale/specs/crypto/Vale.SHA2.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 9,
"start_col": 0,
"start_line": 9
} | module Vale.SHA2.Wrapper
open FStar.UInt32
open Spec.Agile.Hash
open Spec.SHA2
friend Lib.IntTypes
friend Spec.SHA2 | {
"checked_file": "/",
"dependencies": [
"Spec.SHA2.fst.checked",
"Spec.SHA2.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.IntTypes.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Vale.S... | [
{
"abbrev": false,
"full_module": "Spec.SHA2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.UInt32",
"short_module": null
},
{
"abbrev": false,
"full_module": "Val... | {
"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: Vale.Def.Words_s.nat32 -> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"FStar.UInt32.v",
"Spec.SHA2._sigma0",
"Spec.Hash.Definitions.SHA2_256",
"FStar.UInt32.uint_to_t"
] | [] | false | false | false | true | false | let sigma256_0_0 x =
| v (_sigma0 SHA2_256 (uint_to_t x)) | false |
EtM.CPA.fst | EtM.CPA.log | val log (k: key) (h: mem) : GTot (seq log_entry) | val log (k: key) (h: mem) : GTot (seq log_entry) | let log (k:key) (h:mem)
: GTot (seq log_entry) =
sel h (Key?.log k) | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 103,
"start_col": 0,
"start_line": 101
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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: EtM.CPA.key -> h: FStar.Monotonic.HyperStack.mem
-> Prims.GTot (FStar.Seq.Base.seq EtM.CPA.log_entry) | Prims.GTot | [
"sometrivial"
] | [] | [
"EtM.CPA.key",
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperStack.sel",
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"FStar.Monotonic.Seq.grows",
"EtM.CPA.__proj__Key__item__log"
] | [] | false | false | false | false | false | let log (k: key) (h: mem) : GTot (seq log_entry) =
| sel h (Key?.log k) | false |
EtM.CPA.fst | EtM.CPA.iv | val iv : Type0 | let iv = lbytes ivsize | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 35,
"start_col": 0,
"start_line": 35
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Platform.Bytes.lbytes",
"EtM.CPA.ivsize"
] | [] | false | false | false | true | true | let iv =
| lbytes ivsize | false | |
EtM.CPA.fst | EtM.CPA.iv_of_entry | val iv_of_entry : _: EtM.CPA.log_entry -> EtM.CPA.iv | let iv_of_entry (Entry _ c) : iv = fst (B.split c ivsize) | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 57,
"end_line": 55,
"start_col": 0,
"start_line": 55
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | _: EtM.CPA.log_entry -> EtM.CPA.iv | Prims.Tot | [
"total"
] | [] | [
"EtM.CPA.log_entry",
"EtM.Plain.plain",
"EtM.CPA.cipher",
"FStar.Pervasives.Native.fst",
"Platform.Bytes.bytes",
"Platform.Bytes.split",
"EtM.CPA.ivsize",
"EtM.CPA.iv"
] | [] | false | false | false | true | false | let iv_of_entry (Entry _ c) : iv =
| fst (B.split c ivsize) | false | |
EtM.CPA.fst | EtM.CPA.raw_cipher | val raw_cipher : _: EtM.CPA.log_entry -> Platform.Bytes.bytes | let raw_cipher (Entry _ c) : bytes = snd (B.split c ivsize) | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 58,
"start_col": 0,
"start_line": 58
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | _: EtM.CPA.log_entry -> Platform.Bytes.bytes | Prims.Tot | [
"total"
] | [] | [
"EtM.CPA.log_entry",
"EtM.Plain.plain",
"EtM.CPA.cipher",
"FStar.Pervasives.Native.snd",
"Platform.Bytes.bytes",
"Platform.Bytes.split",
"EtM.CPA.ivsize"
] | [] | false | false | false | true | false | let raw_cipher (Entry _ c) : bytes =
| snd (B.split c ivsize) | false | |
EtM.CPA.fst | EtM.CPA.invariant | val invariant : k: EtM.CPA.key -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical | let invariant (k:key) (h:mem) =
let Key raw_key lg = k in
let log = log k h in
contains h lg /\ //<-- technical: the log must be allocated
pairwise_distinct_ivs log /\
cipher_functional_correctness raw_key log | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 178,
"start_col": 0,
"start_line": 173
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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: EtM.CPA.key -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"EtM.CPA.key",
"FStar.Monotonic.HyperStack.mem",
"EtM.CPA.rid",
"EtM.CPA.aes_key",
"FStar.Monotonic.Seq.log_t",
"EtM.CPA.log_entry",
"Prims.l_and",
"FStar.Monotonic.HyperStack.contains",
"FStar.Seq.Base.seq",
"FStar.Monotonic.Seq.grows",
"EtM.CPA.pairwise_distinct_ivs",
"EtM.CPA.cipher_functio... | [] | false | false | false | true | true | let invariant (k: key) (h: mem) =
| let Key raw_key lg = k in
let log = log k h in
contains h lg /\ pairwise_distinct_ivs log /\ cipher_functional_correctness raw_key log | false | |
EtM.CPA.fst | EtM.CPA.aes_key | val aes_key : Type0 | let aes_key = lbytes keysize | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 39,
"start_col": 0,
"start_line": 39
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Platform.Bytes.lbytes",
"EtM.CPA.keysize"
] | [] | false | false | false | true | true | let aes_key =
| lbytes keysize | false | |
EtM.CPA.fst | EtM.CPA.pairwise_distinct_ivs | val pairwise_distinct_ivs (log: seq log_entry) : Tot Type0 (decreases (Seq.length log)) | val pairwise_distinct_ivs (log: seq log_entry) : Tot Type0 (decreases (Seq.length log)) | let rec pairwise_distinct_ivs (log:seq log_entry)
: Tot Type0 (decreases (Seq.length log)) =
if Seq.length log > 0 then
let log, tl = Seq.un_snoc log in
pairwise_distinct_ivs log /\
iv_not_in (iv_of_entry tl) log
else True | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 133,
"start_col": 0,
"start_line": 127
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | log: FStar.Seq.Base.seq EtM.CPA.log_entry -> Prims.Tot Type0 | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"Prims.op_GreaterThan",
"FStar.Seq.Base.length",
"Prims.l_and",
"EtM.CPA.pairwise_distinct_ivs",
"EtM.CPA.iv_not_in",
"EtM.CPA.iv_of_entry",
"FStar.Pervasives.Native.tuple2",
"Prims.eq2",
"FStar.Seq.Properties.snoc",
"FStar.Pervasives.Native.fst",
"... | [
"recursion"
] | false | false | false | true | true | let rec pairwise_distinct_ivs (log: seq log_entry) : Tot Type0 (decreases (Seq.length log)) =
| if Seq.length log > 0
then
let log, tl = Seq.un_snoc log in
pairwise_distinct_ivs log /\ iv_not_in (iv_of_entry tl) log
else True | false |
EtM.CPA.fst | EtM.CPA.iv_not_in | val iv_not_in : iv: EtM.CPA.iv -> log: FStar.Seq.Base.seq EtM.CPA.log_entry -> Prims.logical | let iv_not_in (iv:iv) (log:seq log_entry) =
forall (e:log_entry{Seq.mem e log}). iv_of_entry e <> iv | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 122,
"start_col": 0,
"start_line": 121
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | iv: EtM.CPA.iv -> log: FStar.Seq.Base.seq EtM.CPA.log_entry -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"EtM.CPA.iv",
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"Prims.l_Forall",
"Prims.b2t",
"FStar.Seq.Properties.mem",
"Prims.op_disEquality",
"EtM.CPA.iv_of_entry",
"Prims.logical"
] | [] | false | false | false | true | true | let iv_not_in (iv: iv) (log: seq log_entry) =
| forall (e: log_entry{Seq.mem e log}). iv_of_entry e <> iv | false | |
EtM.CPA.fst | EtM.CPA.split_entry | val split_entry (p: plain) (c: cipher) (iv: iv) (r: bytes)
: Lemma (iv_of_entry (Entry p (iv @| r)) == iv /\ raw_cipher (Entry p (iv @| r)) == r) | val split_entry (p: plain) (c: cipher) (iv: iv) (r: bytes)
: Lemma (iv_of_entry (Entry p (iv @| r)) == iv /\ raw_cipher (Entry p (iv @| r)) == r) | let split_entry (p:plain) (c:cipher) (iv:iv) (r:bytes)
: Lemma (iv_of_entry (Entry p (iv@|r)) == iv /\
raw_cipher (Entry p (iv@|r)) == r)
= assert (Seq.equal (iv_of_entry (Entry p (iv@|r))) iv);
assert (Seq.equal (raw_cipher (Entry p (iv@|r))) r) | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 65,
"start_col": 0,
"start_line": 61
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | p: EtM.Plain.plain -> c: EtM.CPA.cipher -> iv: EtM.CPA.iv -> r: Platform.Bytes.bytes
-> FStar.Pervasives.Lemma
(ensures
EtM.CPA.iv_of_entry (EtM.CPA.Entry p (iv @| r)) == iv /\
EtM.CPA.raw_cipher (EtM.CPA.Entry p (iv @| r)) == r) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"EtM.Plain.plain",
"EtM.CPA.cipher",
"EtM.CPA.iv",
"Platform.Bytes.bytes",
"Prims._assert",
"FStar.Seq.Base.equal",
"Platform.Bytes.byte",
"EtM.CPA.raw_cipher",
"EtM.CPA.Entry",
"Platform.Bytes.op_At_Bar",
"Prims.unit",
"EtM.CPA.iv_of_entry",
"Prims.l_True",
"Prims.squash",
"Prims.l_and"... | [] | true | false | true | false | false | let split_entry (p: plain) (c: cipher) (iv: iv) (r: bytes)
: Lemma (iv_of_entry (Entry p (iv @| r)) == iv /\ raw_cipher (Entry p (iv @| r)) == r) =
| assert (Seq.equal (iv_of_entry (Entry p (iv @| r))) iv);
assert (Seq.equal (raw_cipher (Entry p (iv @| r))) r) | false |
EtM.CPA.fst | EtM.CPA.iv_of_entry_inj | val iv_of_entry_inj (e1 e2: log_entry)
: Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) | val iv_of_entry_inj (e1 e2: log_entry)
: Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) | let iv_of_entry_inj (e1 e2:log_entry)
: Lemma (iv_of_entry e1 <> iv_of_entry e2
==> Entry?.c e1 <> Entry?.c e2)
= let iv1, r1 = iv_of_entry e1, raw_cipher e1 in
let iv2, r2 = iv_of_entry e2, raw_cipher e2 in
FStar.Classical.move_requires (Platform.Bytes.lemma_append_inj iv1 r1 iv2) r2 | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 81,
"end_line": 74,
"start_col": 0,
"start_line": 69
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | e1: EtM.CPA.log_entry -> e2: EtM.CPA.log_entry
-> FStar.Pervasives.Lemma
(ensures EtM.CPA.iv_of_entry e1 <> EtM.CPA.iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"EtM.CPA.log_entry",
"Platform.Bytes.bytes",
"FStar.Classical.move_requires",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.Seq.Base.length",
"Platform.Bytes.byte",
"FStar.Seq.Base.equal",
"FStar.Seq.Base.append",
"Prims.l_and",
"Platform.Bytes.lemma_append_inj",
"Pri... | [] | false | false | true | false | false | let iv_of_entry_inj (e1 e2: log_entry)
: Lemma (iv_of_entry e1 <> iv_of_entry e2 ==> Entry?.c e1 <> Entry?.c e2) =
| let iv1, r1 = iv_of_entry e1, raw_cipher e1 in
let iv2, r2 = iv_of_entry e2, raw_cipher e2 in
FStar.Classical.move_requires (Platform.Bytes.lemma_append_inj iv1 r1 iv2) r2 | false |
EtM.CPA.fst | EtM.CPA.invert_pairwise | val invert_pairwise (cpas: Seq.seq log_entry) (e: log_entry) (c: cipher)
: Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c))
(ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) | val invert_pairwise (cpas: Seq.seq log_entry) (e: log_entry) (c: cipher)
: Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c))
(ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) | let invert_pairwise (cpas:Seq.seq log_entry) (e:log_entry) (c:cipher)
: Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\
Entry?.c e == c))
(ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c))
= pairwise_snoc cpas e;
FStar.Classical.forall_intro (iv_of_entry... | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 148,
"start_col": 0,
"start_line": 143
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | cpas: FStar.Seq.Base.seq EtM.CPA.log_entry -> e: EtM.CPA.log_entry -> c: EtM.CPA.cipher
-> FStar.Pervasives.Lemma
(requires EtM.CPA.pairwise_distinct_ivs (FStar.Monotonic.Seq.snoc cpas e) /\ Entry?.c e == c)
(ensures forall (e': EtM.CPA.log_entry). FStar.Seq.Properties.mem e' cpas ==> Entry?.c e' <> c
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"EtM.CPA.cipher",
"FStar.Classical.forall_intro",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_disEquality",
"EtM.CPA.iv",
"EtM.CPA.iv_of_entry",
"EtM.CPA.__proj__Entry__item__c",
"EtM.CPA.iv_of_entry_inj",
"Prims.unit",
"EtM.CPA.pairwise_snoc",
"Prims.l... | [] | false | false | true | false | false | let invert_pairwise (cpas: Seq.seq log_entry) (e: log_entry) (c: cipher)
: Lemma (requires (pairwise_distinct_ivs (snoc cpas e) /\ Entry?.c e == c))
(ensures (forall e'. Seq.mem e' cpas ==> Entry?.c e' <> c)) =
| pairwise_snoc cpas e;
FStar.Classical.forall_intro (iv_of_entry_inj e) | false |
EtM.CPA.fst | EtM.CPA.pairwise_snoc | val pairwise_snoc (cpas: Seq.seq log_entry) (tl: log_entry)
: Lemma
((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==>
(pairwise_distinct_ivs (Seq.snoc cpas tl))) | val pairwise_snoc (cpas: Seq.seq log_entry) (tl: log_entry)
: Lemma
((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==>
(pairwise_distinct_ivs (Seq.snoc cpas tl))) | let pairwise_snoc (cpas:Seq.seq log_entry) (tl:log_entry)
: Lemma ((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==>
(pairwise_distinct_ivs (Seq.snoc cpas tl)))
= un_snoc_snoc cpas tl | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 139,
"start_col": 0,
"start_line": 136
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | cpas: FStar.Seq.Base.seq EtM.CPA.log_entry -> tl: EtM.CPA.log_entry
-> FStar.Pervasives.Lemma
(ensures
EtM.CPA.pairwise_distinct_ivs cpas /\ EtM.CPA.iv_not_in (EtM.CPA.iv_of_entry tl) cpas <==>
EtM.CPA.pairwise_distinct_ivs (FStar.Seq.Properties.snoc cpas tl)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"FStar.Seq.Properties.un_snoc_snoc",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_iff",
"Prims.l_and",
"EtM.CPA.pairwise_distinct_ivs",
"EtM.CPA.iv_not_in",
"EtM.CPA.iv_of_entry",
"FStar.Seq.Properties.snoc",
"Prims.Nil",
"FStar.Pervasiv... | [] | true | false | true | false | false | let pairwise_snoc (cpas: Seq.seq log_entry) (tl: log_entry)
: Lemma
((pairwise_distinct_ivs cpas /\ iv_not_in (iv_of_entry tl) cpas) <==>
(pairwise_distinct_ivs (Seq.snoc cpas tl))) =
| un_snoc_snoc cpas tl | false |
EtM.CPA.fst | EtM.CPA.cipher_functional_correctness | val cipher_functional_correctness : raw_key: Platform.Bytes.bytes -> log: FStar.Seq.Base.seq EtM.CPA.log_entry -> Prims.logical | let cipher_functional_correctness (raw_key:bytes) (log:seq log_entry) =
forall (e:log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)}
entry_functional_correctness raw_key e | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 168,
"start_col": 0,
"start_line": 166
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | raw_key: Platform.Bytes.bytes -> log: FStar.Seq.Base.seq EtM.CPA.log_entry -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Platform.Bytes.bytes",
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"Prims.l_Forall",
"Prims.b2t",
"FStar.Seq.Properties.mem",
"EtM.CPA.entry_functional_correctness",
"Prims.logical"
] | [] | false | false | false | true | true | let cipher_functional_correctness (raw_key: bytes) (log: seq log_entry) =
| forall (e: log_entry{Seq.mem e log}). {:pattern (Seq.mem e log)}
entry_functional_correctness raw_key e | false | |
EtM.CPA.fst | EtM.CPA.entry_functional_correctness | val entry_functional_correctness (raw_key: bytes) (e: log_entry) : Type0 | val entry_functional_correctness (raw_key: bytes) (e: log_entry) : Type0 | let entry_functional_correctness (raw_key:bytes) (e:log_entry) : Type0 =
let iv = iv_of_entry e in
let c = raw_cipher e in
let plain = Entry?.plain e in
let p = if ind_cpa then createBytes (length plain) 0z else repr plain in
c == CC.block_encrypt_spec CC.AES_128_CBC raw_key iv p | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 163,
"start_col": 0,
"start_line": 158
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | raw_key: Platform.Bytes.bytes -> e: EtM.CPA.log_entry -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Platform.Bytes.bytes",
"EtM.CPA.log_entry",
"Prims.eq2",
"EtM.CoreCrypto.block_encrypt_spec",
"CoreCrypto.AES_128_CBC",
"EtM.Ideal.ind_cpa",
"Platform.Bytes.createBytes",
"EtM.Plain.length",
"FStar.UInt8.__uint_to_t",
"Prims.bool",
"EtM.Plain.repr",
"EtM.Plain.plain",
"EtM.CPA.__proj__Entry... | [] | false | false | false | true | true | let entry_functional_correctness (raw_key: bytes) (e: log_entry) : Type0 =
| let iv = iv_of_entry e in
let c = raw_cipher e in
let plain = Entry?.plain e in
let p = if ind_cpa then createBytes (length plain) 0uy else repr plain in
c == CC.block_encrypt_spec CC.AES_128_CBC raw_key iv p | false |
EtM.CPA.fst | EtM.CPA.encrypt | val encrypt (k: key) (m: plain)
: ST cipher
(requires (invariant k))
(ensures
(fun h0 c h1 ->
(let log0 = log k h0 in
let log1 = log k h1 in
invariant k h1 /\ modifies_one k.region h0 h1 /\ contains h1 k.log /\
log1 == snoc log0 (Entry m c)))... | val encrypt (k: key) (m: plain)
: ST cipher
(requires (invariant k))
(ensures
(fun h0 c h1 ->
(let log0 = log k h0 in
let log1 = log k h1 in
invariant k h1 /\ modifies_one k.region h0 h1 /\ contains h1 k.log /\
log1 == snoc log0 (Entry m c)))... | let encrypt (k:key) (m:plain)
: ST cipher
(requires (invariant k))
(ensures (fun h0 c h1 ->
(let log0 = log k h0 in
let log1 = log k h1 in
invariant k h1 /\
modifies_one k.region h0 h1 /\
contains h1 k.log /\
log1 == snoc log0 (Entry m c)))) =
let iv = fresh_iv k in
let text = i... | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 239,
"start_col": 0,
"start_line": 215
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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: EtM.CPA.key -> m: EtM.Plain.plain -> FStar.HyperStack.ST.ST EtM.CPA.cipher | FStar.HyperStack.ST.ST | [] | [] | [
"EtM.CPA.key",
"EtM.Plain.plain",
"Prims.unit",
"EtM.CPA.pairwise_snoc",
"EtM.CPA.log",
"FStar.Seq.Properties.lemma_mem_snoc",
"EtM.CPA.log_entry",
"EtM.CPA.cipher",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"FStar.Monotonic.Seq.write_at_end",
"EtM.CPA.__proj__Key__item__reg... | [] | false | true | false | false | false | let encrypt (k: key) (m: plain)
: ST cipher
(requires (invariant k))
(ensures
(fun h0 c h1 ->
(let log0 = log k h0 in
let log1 = log k h1 in
invariant k h1 /\ modifies_one k.region h0 h1 /\ contains h1 k.log /\
log1 == snoc log0 (Entry m c)))... | let iv = fresh_iv k in
let text = if ind_cpa then createBytes (length m) 0uy else repr m in
let raw_c = CC.block_enc CC.AES_128_CBC k.raw iv text in
let c = iv @| raw_c in
let e = Entry m c in
split_entry m c iv raw_c;
assert (entry_functional_correctness k.raw e);
let h0 = FStar.HyperStack.ST.get () in
write_at_end k.... | false |
EtM.CPA.fst | EtM.CPA.keygen | val keygen (parent: rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures
(fun m0 k m1 ->
modifies Set.empty m0 m1 /\ extends k.region parent /\ fresh_region k.region m0 m1 /\
log k m1 == Seq.empty /\ invariant k m1)) | val keygen (parent: rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures
(fun m0 k m1 ->
modifies Set.empty m0 m1 /\ extends k.region parent /\ fresh_region k.region m0 m1 /\
log k m1 == Seq.empty /\ invariant k m1)) | let keygen (parent:rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures (fun m0 k m1 ->
modifies Set.empty m0 m1 /\
extends k.region parent /\
fresh_region k.region m0 m1 /\
log k m1 == Seq.empty /\
... | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 198,
"start_col": 0,
"start_line": 186
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | parent: EtM.CPA.rid -> FStar.HyperStack.ST.ST EtM.CPA.key | FStar.HyperStack.ST.ST | [] | [] | [
"EtM.CPA.rid",
"EtM.CPA.Key",
"EtM.CPA.key",
"FStar.HyperStack.ST.m_rref",
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"FStar.Monotonic.Seq.grows",
"FStar.Monotonic.Seq.alloc_mref_seq",
"FStar.Seq.Base.empty",
"FStar.Monotonic.HyperHeap.rid",
"FStar.HyperStack.ST.new_region",
"Platform.Bytes.lb... | [] | false | true | false | false | false | let keygen (parent: rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures
(fun m0 k m1 ->
modifies Set.empty m0 m1 /\ extends k.region parent /\ fresh_region k.region m0 m1 /\
log k m1 == Seq.empty /\ invariant k m1)) =
| let raw = CC.random keysize in
let region = new_region parent in
let log = alloc_mref_seq region Seq.empty in
Key #region raw log | false |
EtM.CPA.fst | EtM.CPA.find_entry | val find_entry (log: seq log_entry) (c: cipher)
: Pure log_entry
(requires (exists p. Seq.mem (Entry p c) log))
(ensures (fun e -> Seq.mem e log /\ Entry?.c e == c)) | val find_entry (log: seq log_entry) (c: cipher)
: Pure log_entry
(requires (exists p. Seq.mem (Entry p c) log))
(ensures (fun e -> Seq.mem e log /\ Entry?.c e == c)) | let find_entry (log:seq log_entry) (c:cipher) : Pure log_entry
(requires (exists p. Seq.mem (Entry p c) log))
(ensures (fun e -> Seq.mem e log /\ Entry?.c e == c))
= let entry_has_cipher (c:cipher) (e:log_entry) = Entry?.c e = c in
let eopt = Seq.seq_find (entry_has_cipher c) log in
FStar.Classical.ex... | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 256,
"start_col": 0,
"start_line": 246
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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 | log: FStar.Seq.Base.seq EtM.CPA.log_entry -> c: EtM.CPA.cipher -> Prims.Pure EtM.CPA.log_entry | Prims.Pure | [] | [] | [
"FStar.Seq.Base.seq",
"EtM.CPA.log_entry",
"EtM.CPA.cipher",
"FStar.Pervasives.Native.__proj__Some__item__v",
"Prims.unit",
"FStar.Classical.exists_elim",
"Prims.l_and",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"FStar.Seq.Properties.mem",
"EtM.Plain.plain",
"EtM.CPA.Entry",
"FSta... | [] | false | false | false | false | false | let find_entry (log: seq log_entry) (c: cipher)
: Pure log_entry
(requires (exists p. Seq.mem (Entry p c) log))
(ensures (fun e -> Seq.mem e log /\ Entry?.c e == c)) =
| let entry_has_cipher (c: cipher) (e: log_entry) = Entry?.c e = c in
let eopt = Seq.seq_find (entry_has_cipher c) log in
FStar.Classical.exists_elim (Some? eopt /\ Seq.mem (Some?.v eopt) log /\
entry_has_cipher c (Some?.v eopt))
()
(fun (p: plain{Seq.mem (Entry p c) log}) -> Seq.find_mem log (entry_has_cipher c)... | false |
HaclExample2.fst | HaclExample2.do_something_with_limbs | val do_something_with_limbs (#v: Ghost.erased (Seq.seq (scalar_t U64.t))) (a: array (scalar U64.t))
: ST (Ghost.erased (Seq.seq (scalar_t U64.t)))
(array_pts_to a v)
(fun v' -> array_pts_to a v')
(requires array_length a == 5 /\ full_seq (scalar U64.t) v)
(ensures (fun v' -> full_seq (scalar... | val do_something_with_limbs (#v: Ghost.erased (Seq.seq (scalar_t U64.t))) (a: array (scalar U64.t))
: ST (Ghost.erased (Seq.seq (scalar_t U64.t)))
(array_pts_to a v)
(fun v' -> array_pts_to a v')
(requires array_length a == 5 /\ full_seq (scalar U64.t) v)
(ensures (fun v' -> full_seq (scalar... | let do_something_with_limbs
(#v: Ghost.erased (Seq.seq (scalar_t U64.t)))
(a: array (scalar U64.t))
: ST (Ghost.erased (Seq.seq (scalar_t U64.t)))
(array_pts_to a v)
(fun v' -> array_pts_to a v')
(requires
array_length a == 5 /\
full_seq (scalar U64.t) v
)
(ensures (fun v' ->
f... | {
"file_name": "share/steel/examples/steelc/HaclExample2.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 10,
"end_line": 59,
"start_col": 0,
"start_line": 42
} | module HaclExample2
open Steel.ST.GenElim
open Steel.ST.C.Types
open Steel.C.Typenat
open Steel.C.Typestring
module SZ = FStar.SizeT
module U64 = FStar.UInt64
(** In this file we demonstrate how Steel could be used to manipulate the following data type used in Hacl*:
https://github.com/project-everest/hacl-star... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.GenElim.fsti.checked",
"Steel.ST.C.Types.fst.checked",
"Steel.C.Typestring.fsti.checked",
"Steel.C.Typenat.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "SZ"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Steel.ST.C.Types.Array.array (Steel.ST.C.Types.Scalar.scalar FStar.UInt64.t)
-> Steel.ST.Effect.ST
(FStar.Ghost.erased (FStar.Seq.Base.seq (Steel.ST.C.Types.Scalar.scalar_t FStar.UInt64.t))) | Steel.ST.Effect.ST | [] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Steel.ST.C.Types.Scalar.scalar_t",
"FStar.UInt64.t",
"Steel.ST.C.Types.Array.array",
"Steel.ST.C.Types.Scalar.scalar",
"Steel.ST.Util.return",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.ST.C.Types.Array.arra... | [] | false | true | false | false | false | let do_something_with_limbs (#v: Ghost.erased (Seq.seq (scalar_t U64.t))) (a: array (scalar U64.t))
: ST (Ghost.erased (Seq.seq (scalar_t U64.t)))
(array_pts_to a v)
(fun v' -> array_pts_to a v')
(requires array_length a == 5 /\ full_seq (scalar U64.t) v)
(ensures (fun v' -> full_seq (scalar... | let p = array_cell a 2sz in
write p 0uL;
unarray_cell _ _ _;
drop (has_array_cell _ _ _);
return _ | false |
EtM.CPA.fst | EtM.CPA.decrypt | val decrypt (k: key) (c: cipher)
: ST plain
(requires
(fun h0 ->
let log = log k h0 in
invariant k h0 /\ (b2t ind_cpa_rest_adv ==> (exists p. Seq.mem (Entry p c) log))))
(ensures
(fun h0 res h1 ->
let log = log k h1 in
modifies_none h0 h1 /... | val decrypt (k: key) (c: cipher)
: ST plain
(requires
(fun h0 ->
let log = log k h0 in
invariant k h0 /\ (b2t ind_cpa_rest_adv ==> (exists p. Seq.mem (Entry p c) log))))
(ensures
(fun h0 res h1 ->
let log = log k h1 in
modifies_none h0 h1 /... | let decrypt (k:key) (c:cipher)
: ST plain
(requires (fun h0 ->
let log = log k h0 in
invariant k h0 /\
(b2t ind_cpa_rest_adv ==> (exists p. Seq.mem (Entry p c) log))))
(ensures (fun h0 res h1 ->
let log = log k h1 in
modifies_none h0 h1 /\
invariant k h1 /\
(b2t ind_cpa_rest_adv ==> S... | {
"file_name": "examples/crypto/EtM.CPA.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 295,
"start_col": 0,
"start_line": 265
} | (*
Copyright 2008-2018 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 applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "EtM.Plain",
"short_module": null
},
{
"abbrev": true,
"full_module": "Platform.Bytes",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "EtM.CoreCrypto",
"short_module": "CC"
},
{
"abbrev": false,
"full_module": "Platf... | {
"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: EtM.CPA.key -> c: EtM.CPA.cipher -> FStar.HyperStack.ST.ST EtM.Plain.plain | FStar.HyperStack.ST.ST | [] | [] | [
"EtM.CPA.key",
"EtM.CPA.cipher",
"EtM.CPA.rid",
"EtM.CPA.aes_key",
"FStar.Monotonic.Seq.log_t",
"EtM.CPA.log_entry",
"Platform.Bytes.bytes",
"EtM.Ideal.ind_cpa_rest_adv",
"EtM.Plain.plain",
"Prims.op_Negation",
"EtM.Ideal.ind_cpa",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.l_or"... | [] | false | true | false | false | false | let decrypt (k: key) (c: cipher)
: ST plain
(requires
(fun h0 ->
let log = log k h0 in
invariant k h0 /\ (b2t ind_cpa_rest_adv ==> (exists p. Seq.mem (Entry p c) log))))
(ensures
(fun h0 res h1 ->
let log = log k h1 in
modifies_none h0 h1 /... | let Key raw_key log = k in
let iv, c' = split c ivsize in
let raw_plain = CC.block_dec CC.AES_128_CBC raw_key iv c' in
if ind_cpa_rest_adv
then
let log = !log in
let Entry plain _ = find_entry log c in
split_entry plain c iv c';
if not ind_cpa
then
(CC.enc_dec_inverses CC.AES_128_CBC raw_key iv (repr plai... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.unsquash_equality | val unsquash_equality (t: term) : Tac (option (term & term)) | val unsquash_equality (t: term) : Tac (option (term & term)) | let unsquash_equality (t:term) : Tac (option (term & term)) =
begin match term_as_formula t with
| Comp (Eq _) l r -> Some (l, r)
| _ -> None
end | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 30,
"start_col": 0,
"start_line": 26
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.Native.option (FStar.Stubs.Reflection.Types.term *
FStar.Stubs.Reflection.Types.term)) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Reflection.V1.Formula.formula",
"FStar.Pervasives.Native.None",
"FStar.Reflection.V1... | [] | false | true | false | false | false | let unsquash_equality (t: term) : Tac (option (term & term)) =
| match term_as_formula t with
| Comp (Eq _) l r -> Some (l, r)
| _ -> None | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.is_focus_on_term | val is_focus_on_term : term -> Tac bool | val is_focus_on_term : term -> Tac bool | let is_focus_on_term t = is_fvar t (`%focus_on_term) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 64,
"start_col": 0,
"start_line": 64
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.bool | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Derived.is_fvar",
"Prims.bool"
] | [] | false | true | false | false | false | let is_focus_on_term t =
| is_fvar t (`%focus_on_term) | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.end_proof | val end_proof : _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | let end_proof () =
tadmit_t (`()) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 24,
"start_col": 0,
"start_line": 23
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.Stubs.Tactics.V1.Builtins.tadmit_t"
] | [] | false | true | false | false | false | let end_proof () =
| tadmit_t (`()) | false | |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.term_is_assert_or_assume | val term_is_assert_or_assume : term -> Tac (option term) | val term_is_assert_or_assume : term -> Tac (option term) | let term_is_assert_or_assume t =
match inspect t with
| Tv_App hd (a, Q_Explicit) ->
if is_any_fvar a [`%Prims._assert; `%FStar.Pervasives.assert_norm; `%Prims._assume]
then Some a
else None
| _ -> None | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 75,
"start_col": 0,
"start_line": 69
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Derived.is_any_fvar",
"Prims.Cons",
"Prims.string",
"Prims.Nil",
"FStar.Pervasives.Native.Some",
"Prims.bool",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Stubs.Tact... | [] | false | true | false | false | false | let term_is_assert_or_assume t =
| match inspect t with
| Tv_App hd (a, Q_Explicit) ->
if is_any_fvar a [`%assert; `%FStar.Pervasives.assert_norm; `%assume] then Some a else None
| _ -> None | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.pp_explore_print_goal | val pp_explore_print_goal : unit -> Tac unit | val pp_explore_print_goal : unit -> Tac unit | let pp_explore_print_goal () =
let f : explorer unit =
fun _ _ _ _ _ -> ((), Continue)
in
pp_explore true false f () | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 59,
"start_col": 0,
"start_line": 55
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.InteractiveHelpers.PostProcess.pp_explore",
"FStar.InteractiveHelpers.ExploreTerm.explorer",
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHelp... | [] | false | true | false | false | false | let pp_explore_print_goal () =
| let f:explorer unit = fun _ _ _ _ _ -> ((), Continue) in
pp_explore true false f () | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.pp_explore | val pp_explore (dbg dfs: bool) (#a: Type0) (f: explorer a) (x: a) : Tac unit | val pp_explore (dbg dfs: bool) (#a: Type0) (f: explorer a) (x: a) : Tac unit | let pp_explore (dbg dfs : bool)
(#a : Type0)
(f : explorer a)
(x : a) :
Tac unit =
let g = cur_goal () in
let e = cur_env () in
print_dbg dbg ("[> pp_explore:\n" ^ term_to_string g);
begin match unsquash_equality g with
| Some (l, _) ->
let c = safe_typ_or_co... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 49,
"start_col": 0,
"start_line": 33
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 2,
"max_fuel": 0,
"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 | dbg: Prims.bool -> dfs: Prims.bool -> f: FStar.InteractiveHelpers.ExploreTerm.explorer a -> x: a
-> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.InteractiveHelpers.ExploreTerm.explorer",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.PostProcess.end_proof",
"Prims.unit",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Tactics.Types.ctrl_flag",
"FStar.InteractiveHelpers.ExploreTerm.explore_term",
"Prims.Nil... | [] | false | true | false | false | false | let pp_explore (dbg dfs: bool) (#a: Type0) (f: explorer a) (x: a) : Tac unit =
| let g = cur_goal () in
let e = cur_env () in
print_dbg dbg ("[> pp_explore:\n" ^ term_to_string g);
match unsquash_equality g with
| Some (l, _) ->
let c = safe_typ_or_comp dbg e l in
let ge = mk_genv e [] [] in
print_dbg dbg ("[> About to explore term:\n" ^ term_to_string l);
let x = explore_term dbg dfs #a f ... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.mk_exploration_result | val mk_exploration_result : ge: FStar.InteractiveHelpers.Base.genv ->
parents:
Prims.list (FStar.InteractiveHelpers.Base.genv * FStar.Stubs.Reflection.V1.Data.term_view) ->
tgt_comp: FStar.Pervasives.Native.option FStar.InteractiveHelpers.ExploreTerm.typ_or_comp ->
res: _
-> FStar.InteractiveHelpers... | let mk_exploration_result = Mkexploration_result | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 93,
"start_col": 0,
"start_line": 93
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 |
ge: FStar.InteractiveHelpers.Base.genv ->
parents:
Prims.list (FStar.InteractiveHelpers.Base.genv * FStar.Stubs.Reflection.V1.Data.term_view) ->
tgt_comp: FStar.Pervasives.Native.option FStar.InteractiveHelpers.ExploreTerm.typ_or_comp ->
res: _
-> FStar.InteractiveHelpers.PostProcess.exploratio... | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.PostProcess.Mkexploration_result",
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHelpers.ExploreTerm.typ_or_comp",
"FStar.InteractiveHelpers... | [] | false | false | false | true | false | let mk_exploration_result =
| Mkexploration_result | false | |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.is_focused_term | val is_focused_term : term_view -> Tac (option term) | val is_focused_term : term_view -> Tac (option term) | let is_focused_term tv =
match tv with
| Tv_Let recf attrs _ _ def body ->
if is_focus_on_term def then Some body else None
| _ -> None | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 84,
"start_col": 0,
"start_line": 80
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | tv: FStar.Stubs.Reflection.V1.Data.term_view
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.V1.Data.term_view",
"Prims.bool",
"Prims.list",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHe... | [] | false | true | false | false | false | let is_focused_term tv =
| match tv with
| Tv_Let recf attrs _ _ def body -> if is_focus_on_term def then Some body else None
| _ -> None | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.pred_explorer | val pred_explorer : a: Type -> Type0 | let pred_explorer (a:Type) =
genv -> list (genv & term_view) -> option typ_or_comp -> term_view ->
Tac (option a) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 97,
"start_col": 0,
"start_line": 95
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHelpers.ExploreTerm.typ_or_comp"
] | [] | false | false | false | true | true | let pred_explorer (a: Type) =
| genv -> list (genv & term_view) -> option typ_or_comp -> term_view -> Tac (option a) | false | |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.find_predicated_term | val find_predicated_term : #a:Type0 -> pred_explorer a -> bool -> bool ->
genv -> list (genv & term_view) ->
option typ_or_comp -> term ->
Tac (option (exploration_result a)) | val find_predicated_term : #a:Type0 -> pred_explorer a -> bool -> bool ->
genv -> list (genv & term_view) ->
option typ_or_comp -> term ->
Tac (option (exploration_result a)) | let find_predicated_term #a pred dbg dfs ge pl opt_c t =
fst (explore_term dbg dfs #(option (exploration_result a))
(find_predicated_term_explorer #a pred dbg)
None ge pl opt_c t) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 118,
"start_col": 0,
"start_line": 115
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 |
pred: FStar.InteractiveHelpers.PostProcess.pred_explorer a ->
dbg: Prims.bool ->
dfs: Prims.bool ->
ge: FStar.InteractiveHelpers.Base.genv ->
pl: Prims.list (FStar.InteractiveHelpers.Base.genv * FStar.Stubs.Reflection.V1.Data.term_view) ->
opt_c: FStar.Pervasives.Native.option FStar.Interactive... | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.PostProcess.pred_explorer",
"Prims.bool",
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHelpers.ExploreTerm.typ_or_comp",
"FStar.Stubs.Ref... | [] | false | true | false | false | false | let find_predicated_term #a pred dbg dfs ge pl opt_c t =
| fst (explore_term dbg
dfs
#(option (exploration_result a))
(find_predicated_term_explorer #a pred dbg)
None
ge
pl
opt_c
t) | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.find_focused_term | val find_focused_term : bool -> bool -> genv -> list (genv & term_view) -> option typ_or_comp -> term ->
Tac (option (exploration_result term)) | val find_focused_term : bool -> bool -> genv -> list (genv & term_view) -> option typ_or_comp -> term ->
Tac (option (exploration_result term)) | let find_focused_term dbg dfs ge pl opt_c t =
find_predicated_term #term _is_focused_term_explorer dbg dfs ge pl opt_c t | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 76,
"end_line": 127,
"start_col": 0,
"start_line": 126
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 |
dbg: Prims.bool ->
dfs: Prims.bool ->
ge: FStar.InteractiveHelpers.Base.genv ->
pl: Prims.list (FStar.InteractiveHelpers.Base.genv * FStar.Stubs.Reflection.V1.Data.term_view) ->
opt_c: FStar.Pervasives.Native.option FStar.InteractiveHelpers.ExploreTerm.typ_or_comp ->
t: FStar.Stubs.Reflection.T... | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHelpers.ExploreTerm.typ_or_comp",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.PostPro... | [] | false | true | false | false | false | let find_focused_term dbg dfs ge pl opt_c t =
| find_predicated_term #term _is_focused_term_explorer dbg dfs ge pl opt_c t | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess._is_focused_term_explorer | val _is_focused_term_explorer : pred_explorer term | val _is_focused_term_explorer : pred_explorer term | let _is_focused_term_explorer ge pl opt_c tv =
is_focused_term tv | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 122,
"start_col": 0,
"start_line": 121
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | FStar.InteractiveHelpers.PostProcess.pred_explorer FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHelpers.ExploreTerm.typ_or_comp",
"FStar.InteractiveHelpers.PostProcess.is_focused_term",
"FStar.Stubs.Reflection.Types.... | [] | false | false | false | true | false | let _is_focused_term_explorer ge pl opt_c tv =
| is_focused_term tv | false |
Hacl.HKDF.Blake2s_128.fst | Hacl.HKDF.Blake2s_128.expand_blake2s_128 | val expand_blake2s_128:expand_st Blake2S | val expand_blake2s_128:expand_st Blake2S | let expand_blake2s_128: expand_st Blake2S =
mk_expand Blake2S Hacl.HMAC.Blake2s_128.compute_blake2s_128 | {
"file_name": "code/hkdf/Hacl.HKDF.Blake2s_128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 61,
"end_line": 17,
"start_col": 0,
"start_line": 16
} | module Hacl.HKDF.Blake2s_128
open Spec.Hash.Definitions
open Hacl.HKDF
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
[@@ Comment "Expand pseudorandom key to desired length.
@param okm Pointer to `len` bytes of memory where output keying material is written to.
@param prk Pointer to at least `HashLen` bytes of mem... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Hacl.HMAC.Blake2s_128.fst.checked",
"Hacl.HKDF.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Hacl.HKDF.Blake2s_128.fst"
} | [
{
"abbrev": false,
"full_module": "Hacl.HKDF",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.HKDF",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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 | Hacl.HKDF.expand_st Spec.Hash.Definitions.Blake2S | Prims.Tot | [
"total"
] | [] | [
"Hacl.HKDF.mk_expand",
"Spec.Hash.Definitions.Blake2S",
"Hacl.HMAC.Blake2s_128.compute_blake2s_128"
] | [] | false | false | false | true | false | let expand_blake2s_128:expand_st Blake2S =
| mk_expand Blake2S Hacl.HMAC.Blake2s_128.compute_blake2s_128 | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.pp_analyze_effectful_term | val pp_analyze_effectful_term : bool -> bool -> bool -> unit -> Tac unit | val pp_analyze_effectful_term : bool -> bool -> bool -> unit -> Tac unit | let pp_analyze_effectful_term dbg with_gpre with_gpost () =
try
let res = find_focused_term_in_current_goal dbg in
analyze_effectful_term dbg with_gpre with_gpost res;
end_proof ()
with | MetaAnalysis msg -> printout_failure msg; end_proof ()
| err -> (* Shouldn't happen, so transmit the exceptio... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 89,
"end_line": 251,
"start_col": 0,
"start_line": 245
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool -> with_gpre: Prims.bool -> with_gpost: Prims.bool -> _: Prims.unit
-> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"Prims.unit",
"FStar.Tactics.V1.Derived.try_with",
"FStar.InteractiveHelpers.PostProcess.end_proof",
"FStar.InteractiveHelpers.PostProcess.analyze_effectful_term",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Po... | [] | false | true | false | false | false | let pp_analyze_effectful_term dbg with_gpre with_gpost () =
| try
let res = find_focused_term_in_current_goal dbg in
analyze_effectful_term dbg with_gpre with_gpost res;
end_proof ()
with
| MetaAnalysis msg ->
printout_failure msg;
end_proof ()
| err -> raise err | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.remove_b2t | val remove_b2t : term -> Tac term | val remove_b2t : term -> Tac term | let remove_b2t (t:term) : Tac term =
match inspect t with
| Tv_App hd (a, Q_Explicit) ->
begin match inspect hd with
| Tv_FVar fv ->
if fv_eq_name fv b2t_qn then a else t
| _ -> t
end
| _ -> t | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 10,
"end_line": 273,
"start_col": 0,
"start_line": 265
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.fv",
"FStar.InteractiveHelpers.Base.fv_eq_name",
"FStar.Reflection.Const.b2t_qn",
"Prims.bool",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Stubs.Tactics.V1.Builtins.inspect"
] | [] | false | true | false | false | false | let remove_b2t (t: term) : Tac term =
| match inspect t with
| Tv_App hd (a, Q_Explicit) ->
(match inspect hd with
| Tv_FVar fv -> if fv_eq_name fv b2t_qn then a else t
| _ -> t)
| _ -> t | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.split_conjunctions_under_match | val split_conjunctions_under_match : bool -> term -> Tac (list term) | val split_conjunctions_under_match : bool -> term -> Tac (list term) | let split_conjunctions_under_match dbg t =
let t1 = remove_b2t t in
print_dbg dbg ("[> split_conjunctions_under_match: " ^ term_construct t1);
match inspect t1 with
| Tv_Match scrut ret_opt [(pat, br)] ->
let tl = split_conjunctions br in
map (fun x -> pack (Tv_Match scrut ret_opt [(pat, x)])) tl
| _ ... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 322,
"start_col": 0,
"start_line": 313
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool -> t: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.match_returns_ascription",
"FStar.Stubs.Reflection.V1.Data.pattern",
"FStar.Tactics.Util.map",
"FStar.Stubs.Tactics.V1.Builtins.pack",
"FStar.Stubs.Reflection.V1.Data.Tv_Match",
"Prims.... | [] | false | true | false | false | false | let split_conjunctions_under_match dbg t =
| let t1 = remove_b2t t in
print_dbg dbg ("[> split_conjunctions_under_match: " ^ term_construct t1);
match inspect t1 with
| Tv_Match scrut ret_opt [pat, br] ->
let tl = split_conjunctions br in
map (fun x -> pack (Tv_Match scrut ret_opt [(pat, x)])) tl
| _ -> [t] | false |
Hacl.HKDF.Blake2s_128.fst | Hacl.HKDF.Blake2s_128.extract_blake2s_128 | val extract_blake2s_128:extract_st Blake2S | val extract_blake2s_128:extract_st Blake2S | let extract_blake2s_128: extract_st Blake2S =
mk_extract Blake2S Hacl.HMAC.Blake2s_128.compute_blake2s_128 | {
"file_name": "code/hkdf/Hacl.HKDF.Blake2s_128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 27,
"start_col": 0,
"start_line": 26
} | module Hacl.HKDF.Blake2s_128
open Spec.Hash.Definitions
open Hacl.HKDF
#set-options "--z3rlimit 20 --fuel 0 --ifuel 0"
[@@ Comment "Expand pseudorandom key to desired length.
@param okm Pointer to `len` bytes of memory where output keying material is written to.
@param prk Pointer to at least `HashLen` bytes of mem... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Hacl.HMAC.Blake2s_128.fst.checked",
"Hacl.HKDF.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Hacl.HKDF.Blake2s_128.fst"
} | [
{
"abbrev": false,
"full_module": "Hacl.HKDF",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.HKDF",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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 | Hacl.HKDF.extract_st Spec.Hash.Definitions.Blake2S | Prims.Tot | [
"total"
] | [] | [
"Hacl.HKDF.mk_extract",
"Spec.Hash.Definitions.Blake2S",
"Hacl.HMAC.Blake2s_128.compute_blake2s_128"
] | [] | false | false | false | true | false | let extract_blake2s_128:extract_st Blake2S =
| mk_extract Blake2S Hacl.HMAC.Blake2s_128.compute_blake2s_128 | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.split_assert_conjs | val split_assert_conjs : bool -> exploration_result term -> Tac unit | val split_assert_conjs : bool -> exploration_result term -> Tac unit | let split_assert_conjs dbg res =
let ge0 = res.ge in
(* Simplify the term (it may be an abstraction applied to some parameters) *)
let t = norm_term_env ge0.env simpl_norm_steps res.res in
(* Split the conjunctions *)
let conjs = split_conjunctions t in
(* If there is only one conjunction, check if it is of... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 341,
"start_col": 0,
"start_line": 325
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 |
dbg: Prims.bool ->
res: FStar.InteractiveHelpers.PostProcess.exploration_result FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Output.printout_success",
"Prims.unit",
"FStar.InteractiveHelpers.Propositions.assertions",
"FStar.InteractiveHelpers.Propositions.mk_assertions",
"Prims.Nil",
"FSt... | [] | false | true | false | false | false | let split_assert_conjs dbg res =
| let ge0 = res.ge in
let t = norm_term_env ge0.env simpl_norm_steps res.res in
let conjs = split_conjunctions t in
let conjs = if List.length conjs = 1 then split_conjunctions_under_match dbg t else conjs in
let asserts = mk_assertions conjs [] in
printout_success ge0 asserts | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.pp_split_assert_conjs | val pp_split_assert_conjs : bool -> unit -> Tac unit | val pp_split_assert_conjs : bool -> unit -> Tac unit | let pp_split_assert_conjs dbg () =
try
let res = find_focused_assert_in_current_goal dbg in
split_assert_conjs dbg res;
end_proof ()
with | MetaAnalysis msg -> printout_failure msg; end_proof ()
| err -> (* Shouldn't happen, so transmit the exception for debugging *) raise err | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 89,
"end_line": 351,
"start_col": 0,
"start_line": 345
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool -> _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"Prims.unit",
"FStar.Tactics.V1.Derived.try_with",
"FStar.InteractiveHelpers.PostProcess.end_proof",
"FStar.InteractiveHelpers.PostProcess.split_assert_conjs",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.PostPr... | [] | false | true | false | false | false | let pp_split_assert_conjs dbg () =
| try
let res = find_focused_assert_in_current_goal dbg in
split_assert_conjs dbg res;
end_proof ()
with
| MetaAnalysis msg ->
printout_failure msg;
end_proof ()
| err -> raise err | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.find_subequality | val find_subequality : bool -> term -> term -> Tac (option term) | val find_subequality : bool -> term -> term -> Tac (option term) | let find_subequality dbg tm p =
print_dbg dbg ("[> find_subequality:" ^
"\n- ter : " ^ term_to_string tm ^
"\n- props: " ^ term_to_string p);
let conjuncts = split_conjunctions p in
print_dbg dbg ("Conjuncts:\n" ^ list_to_string term_to_string conjuncts);
tryPick (is_equality... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 462,
"start_col": 0,
"start_line": 456
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool -> tm: FStar.Stubs.Reflection.Types.term -> p: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.Tactics.Util.tryPick",
"FStar.InteractiveHelpers.PostProcess.is_equality_for_term",
"FStar.Pervasives.Native.option",
"Prims.unit",
"FStar.InteractiveHelpers.Base.print_dbg",
"Prims.string",
"Prims.op_Hat",
"FStar.InteractiveHelpers.Base.li... | [] | false | true | false | false | false | let find_subequality dbg tm p =
| print_dbg dbg
("[> find_subequality:" ^ "\n- ter : " ^ term_to_string tm ^ "\n- props: " ^ term_to_string p);
let conjuncts = split_conjunctions p in
print_dbg dbg ("Conjuncts:\n" ^ list_to_string term_to_string conjuncts);
tryPick (is_equality_for_term dbg tm) conjuncts | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.strip_implicit_parameters | val strip_implicit_parameters : term -> Tac term | val strip_implicit_parameters : term -> Tac term | let rec strip_implicit_parameters tm =
match inspect tm with
| Tv_App hd (a,qualif) ->
if Q_Implicit? qualif then strip_implicit_parameters hd else tm
| _ -> tm | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 597,
"start_col": 0,
"start_line": 593
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | tm: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V1.Data.aqualv",
"FStar.Stubs.Reflection.V1.Data.uu___is_Q_Implicit",
"FStar.InteractiveHelpers.PostProcess.strip_implicit_parameters",
"Prims.bool",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Stubs.Tactics.V1.Builtins.inspect"
] | [
"recursion"
] | false | true | false | false | false | let rec strip_implicit_parameters tm =
| match inspect tm with
| Tv_App hd (a, qualif) -> if Q_Implicit? qualif then strip_implicit_parameters hd else tm
| _ -> tm | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.pp_unfold_in_assert_or_assume | val pp_unfold_in_assert_or_assume : bool -> unit -> Tac unit | val pp_unfold_in_assert_or_assume : bool -> unit -> Tac unit | let pp_unfold_in_assert_or_assume dbg () =
try
let res = find_focused_assert_in_current_goal dbg in
unfold_in_assert_or_assume dbg res;
end_proof ()
with | MetaAnalysis msg -> printout_failure msg; end_proof ()
| err -> (* Shouldn't happen, so transmit the exception for debugging *) raise err | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 89,
"end_line": 745,
"start_col": 0,
"start_line": 739
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool -> _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"Prims.unit",
"FStar.Tactics.V1.Derived.try_with",
"FStar.InteractiveHelpers.PostProcess.end_proof",
"FStar.InteractiveHelpers.PostProcess.unfold_in_assert_or_assume",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelper... | [] | false | true | false | false | false | let pp_unfold_in_assert_or_assume dbg () =
| try
let res = find_focused_assert_in_current_goal dbg in
unfold_in_assert_or_assume dbg res;
end_proof ()
with
| MetaAnalysis msg ->
printout_failure msg;
end_proof ()
| err -> raise err | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.is_equality_for_term | val is_equality_for_term : bool -> term -> term -> Tac (option term) | val is_equality_for_term : bool -> term -> term -> Tac (option term) | let is_equality_for_term dbg tm p =
print_dbg dbg ("[> is_equality_for_term:" ^
"\n- term: " ^ term_to_string tm ^
"\n- prop: " ^ term_to_string p);
(* Specialize equality for bv - TODO: not sure if necessary, but I had problems
* in the past *)
let check_eq : term -> Tac bool... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 453,
"start_col": 0,
"start_line": 426
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool -> tm: FStar.Stubs.Reflection.Types.term -> p: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.PostProcess.eq_kind",
"FStar.InteractiveHelpers.PostProcess.uu___is_Eq_Hetero",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option",
"Prims.unit",
"FStar.InteractiveHelpers.Base.print_dbg",
"FStar.Pervasives.Na... | [] | false | true | false | false | false | let is_equality_for_term dbg tm p =
| print_dbg dbg
("[> is_equality_for_term:" ^ "\n- term: " ^ term_to_string tm ^ "\n- prop: " ^ term_to_string p);
let check_eq: term -> Tac bool =
match inspect tm with
| Tv_Var bv ->
(fun tm' ->
match inspect tm' with
| Tv_Var bv' -> bv_eq bv bv'
| _ -> false)
| _ -> (fun tm' -> term... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.find_predicated_term_explorer | val find_predicated_term_explorer : #a:Type0 -> pred_explorer a -> bool ->
explorer (option (exploration_result a)) | val find_predicated_term_explorer : #a:Type0 -> pred_explorer a -> bool ->
explorer (option (exploration_result a)) | let find_predicated_term_explorer #a pred dbg acc ge pl opt_c t =
if Some? acc then mfail "find_focused_term_explorer: non empty accumulator";
if dbg then
begin
print ("[> find_focused_term_explorer: " ^ term_view_construct t ^ ":\n" ^ term_to_string t)
end;
match pred ge pl opt_c t with
| Some ft -... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 109,
"start_col": 0,
"start_line": 101
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | pred: FStar.InteractiveHelpers.PostProcess.pred_explorer a -> dbg: Prims.bool
-> FStar.InteractiveHelpers.ExploreTerm.explorer (FStar.Pervasives.Native.option (FStar.InteractiveHelpers.PostProcess.exploration_result
a)) | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.PostProcess.pred_explorer",
"Prims.bool",
"FStar.Pervasives.Native.option",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.In... | [] | false | false | false | true | false | let find_predicated_term_explorer #a pred dbg acc ge pl opt_c t =
| if Some? acc then mfail "find_focused_term_explorer: non empty accumulator";
if dbg
then print ("[> find_focused_term_explorer: " ^ term_view_construct t ^ ":\n" ^ term_to_string t);
match pred ge pl opt_c t with
| Some ft -> Some (mk_exploration_result ge pl opt_c ft), Abort
| None -> None, Continue | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.find_focused_term_in_current_goal | val find_focused_term_in_current_goal : bool -> Tac (exploration_result term) | val find_focused_term_in_current_goal : bool -> Tac (exploration_result term) | let find_focused_term_in_current_goal dbg =
let g = cur_goal () in
let e = cur_env () in
print_dbg dbg ("[> find_focused_assert_in_current_goal:\n" ^ term_to_string g);
begin match unsquash_equality g with
| Some (l, _) ->
let c = safe_typ_or_comp dbg e l in
let ge = mk_genv e [] [] in
print_dbg d... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 149,
"start_col": 0,
"start_line": 131
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool
-> FStar.Tactics.Effect.Tac
(FStar.InteractiveHelpers.PostProcess.exploration_result FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"Prims.unit",
"FStar.InteractiveHelpers.Base.print_dbg",
"Prims.string",
"Prims.op_Hat",
"FStar.Stubs.Tactics.V1.Builtins.term_to_string",
"FStar.InteractiveHelpers.PostProcess.__proj__Mkexp... | [] | false | true | false | false | false | let find_focused_term_in_current_goal dbg =
| let g = cur_goal () in
let e = cur_env () in
print_dbg dbg ("[> find_focused_assert_in_current_goal:\n" ^ term_to_string g);
match unsquash_equality g with
| Some (l, _) ->
let c = safe_typ_or_comp dbg e l in
let ge = mk_genv e [] [] in
print_dbg dbg ("[> About to explore term:\n" ^ term_to_string l);
(match fi... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.replace_term_in | val replace_term_in : bool -> term -> term -> term -> Tac term | val replace_term_in : bool -> term -> term -> term -> Tac term | let rec replace_term_in dbg from_term to_term tm =
if term_eq from_term tm then to_term else
match inspect tm with
| Tv_Var _ | Tv_BVar _ | Tv_FVar _ -> tm
| Tv_App hd (a, qual) ->
let a' = replace_term_in dbg from_term to_term a in
let hd' = replace_term_in dbg from_term to_term hd in
pack (Tv_App ... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 6,
"end_line": 590,
"start_col": 0,
"start_line": 545
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 |
dbg: Prims.bool ->
from_term: FStar.Stubs.Reflection.Types.term ->
to_term: FStar.Stubs.Reflection.Types.term ->
tm: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.fv",
"FStar.Stubs.Reflection.V1.Data.aqualv",
"FStar.Stubs.Tactics.V1.Builtins.pack",
"FStar.Stubs.Reflection.V1.Data.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.InteractiveHel... | [
"recursion"
] | false | true | false | false | false | let rec replace_term_in dbg from_term to_term tm =
| if term_eq from_term tm
then to_term
else
match inspect tm with
| Tv_Var _ | Tv_BVar _ | Tv_FVar _ -> tm
| Tv_App hd (a, qual) ->
let a' = replace_term_in dbg from_term to_term a in
let hd' = replace_term_in dbg from_term to_term hd in
pack (Tv_App hd' (a', qual))
| Tv_Abs br body ->
let body' =... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess._split_conjunctions | val _split_conjunctions (ls: list term) (t: term) : Tac (list term) | val _split_conjunctions (ls: list term) (t: term) : Tac (list term) | let rec _split_conjunctions (ls : list term) (t : term) : Tac (list term) =
match is_conjunction t with
| None -> t :: ls
| Some (l, r) ->
let ls1 = _split_conjunctions ls r in
let ls2 = _split_conjunctions ls1 l in
ls2 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 300,
"start_col": 0,
"start_line": 294
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | ls: Prims.list FStar.Stubs.Reflection.Types.term -> t: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.list",
"FStar.Stubs.Reflection.Types.term",
"Prims.Cons",
"FStar.InteractiveHelpers.PostProcess._split_conjunctions",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"FStar.InteractiveHelpers.PostProcess.is_conjunction"
] | [
"recursion"
] | false | true | false | false | false | let rec _split_conjunctions (ls: list term) (t: term) : Tac (list term) =
| match is_conjunction t with
| None -> t :: ls
| Some (l, r) ->
let ls1 = _split_conjunctions ls r in
let ls2 = _split_conjunctions ls1 l in
ls2 | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.is_eq | val is_eq : bool -> term -> Tac (option (eq_kind & term & term)) | val is_eq : bool -> term -> Tac (option (eq_kind & term & term)) | let is_eq dbg t =
let t = remove_b2t t in
print_dbg dbg ("[> is_eq: " ^ term_to_string t);
let hd, params = collect_app t in
print_dbg dbg ("- hd:\n" ^ term_to_string hd);
print_dbg dbg ("- parameters:\n" ^ list_to_string (fun (x, y) -> term_to_string x) params);
match inspect hd with
| Tv_FVar fv ->
... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 391,
"start_col": 0,
"start_line": 370
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool -> t: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.Native.option ((FStar.InteractiveHelpers.PostProcess.eq_kind *
FStar.Stubs.Reflection.Types.term) *
FStar.Stubs.Reflection.Types.term)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Stubs.Reflection.V1.Data.argv",
"FStar.Stubs.Reflection.Types.fv",
"FStar.Reflection.V1.Derived.is_any_fvar",
"Prims.Cons",
"Prims.string",
"Prims.Nil",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.tuple3",
"FS... | [] | false | true | false | false | false | let is_eq dbg t =
| let t = remove_b2t t in
print_dbg dbg ("[> is_eq: " ^ term_to_string t);
let hd, params = collect_app t in
print_dbg dbg ("- hd:\n" ^ term_to_string hd);
print_dbg dbg ("- parameters:\n" ^ list_to_string (fun (x, y) -> term_to_string x) params);
match inspect hd with
| Tv_FVar fv ->
(match params with
| [a, Q_Imp... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.find_focused_assert_in_current_goal | val find_focused_assert_in_current_goal : bool -> Tac (exploration_result term) | val find_focused_assert_in_current_goal : bool -> Tac (exploration_result term) | let find_focused_assert_in_current_goal dbg =
print_dbg dbg ("[> find_focused_assert_in_current_goal");
let res = find_focused_term_in_current_goal dbg in
print_dbg dbg ("[> Found focused term:\n" ^ term_to_string res.res);
(* Check that it is an assert or an assume, retrieve the assertion *)
let res' =
... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 168,
"start_col": 0,
"start_line": 153
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 | dbg: Prims.bool
-> FStar.Tactics.Effect.Tac
(FStar.InteractiveHelpers.PostProcess.exploration_result FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.InteractiveHelpers.Base.mfail",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"FStar.Stubs.Reflection.Types.term",
"Prims.string",
"Prims.op_Hat",
"FStar.Stubs.Tactics.V1.Builtins.term_to_string",
"FStar.InteractiveHelpers.PostProcess.__proj__Mkexploration_result__ite... | [] | false | true | false | false | false | let find_focused_assert_in_current_goal dbg =
| print_dbg dbg ("[> find_focused_assert_in_current_goal");
let res = find_focused_term_in_current_goal dbg in
print_dbg dbg ("[> Found focused term:\n" ^ term_to_string res.res);
let res' =
match inspect res.res with
| Tv_Let _ _ bv0 ty fterm _ ->
let ge' = genv_push_bv res.ge bv0 ty false None in
({ res wit... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.is_conjunction | val is_conjunction : term -> Tac (option (term & term)) | val is_conjunction : term -> Tac (option (term & term)) | let is_conjunction t =
let t = remove_b2t t in
let hd, params = collect_app t in
match params with
| [(x,Q_Explicit);(y,Q_Explicit)] ->
begin match inspect hd with
| Tv_FVar fv ->
let fvn = inspect_fv fv in
if fvn = and_qn || fvn = ["Prims"; "op_AmpAmp"]
then Some (x, y) else None
... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 290,
"start_col": 0,
"start_line": 278
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.Native.option (FStar.Stubs.Reflection.Types.term *
FStar.Stubs.Reflection.Types.term)) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Stubs.Reflection.V1.Data.argv",
"FStar.Stubs.Reflection.Types.fv",
"Prims.op_BarBar",
"Prims.op_Equality",
"Prims.string",
"FStar.Reflection.Const.and_qn",
"Prims.Cons",
"Prims.Nil",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Nat... | [] | false | true | false | false | false | let is_conjunction t =
| let t = remove_b2t t in
let hd, params = collect_app t in
match params with
| [x, Q_Explicit ; y, Q_Explicit] ->
(match inspect hd with
| Tv_FVar fv ->
let fvn = inspect_fv fv in
if fvn = and_qn || fvn = ["Prims"; "op_AmpAmp"] then Some (x, y) else None
| _ -> None)
| _ -> None | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.formula_construct | val formula_construct (f: formula) : Tac string | val formula_construct (f: formula) : Tac string | let formula_construct (f : formula) : Tac string =
match f with
| True_ -> "True_"
| False_ -> "False_"
| Comp _ _ _ -> "Comp"
| And _ _ -> "And"
| Or _ _ -> "Or"
| Not _ -> "Not"
| Implies _ _ -> "Implies"
| Iff _ _ -> "Iff"
| Forall _ _ _ -> "Forall"
| Exists _ _ _... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 421,
"start_col": 0,
"start_line": 405
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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: FStar.Reflection.V1.Formula.formula -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Reflection.V1.Formula.formula",
"FStar.Reflection.V1.Formula.comparison",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.fv",
"Prims.int",
"Prims.string"
] | [] | false | true | false | false | false | let formula_construct (f: formula) : Tac string =
| match f with
| True_ -> "True_"
| False_ -> "False_"
| Comp _ _ _ -> "Comp"
| And _ _ -> "And"
| Or _ _ -> "Or"
| Not _ -> "Not"
| Implies _ _ -> "Implies"
| Iff _ _ -> "Iff"
| Forall _ _ _ -> "Forall"
| Exists _ _ _ -> "Exists"
| App _ _ -> "Apply"
| Name _ -> "Name"
| FV _ -> "FV"
| IntLit _ -> "IntLit"
| F_Unknown -... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.mk_eq | val mk_eq : eq_kind -> term -> term -> Tot term | val mk_eq : eq_kind -> term -> term -> Tot term | let mk_eq k t1 t2 =
match k with
| Eq_Dec ty ->
mk_app (`Prims.op_Equality) [(ty, Q_Implicit); (t1, Q_Explicit); (t2, Q_Explicit)]
| Eq_Undec ty ->
mk_app (`Prims.eq2) [(ty, Q_Implicit); (t1, Q_Explicit); (t2, Q_Explicit)]
| Eq_Hetero ty1 ty2 ->
mk_app Prims.(`( === )) [(ty1, Q_Implicit); (ty2, Q_Im... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 64,
"end_line": 403,
"start_col": 0,
"start_line": 395
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 |
k: FStar.InteractiveHelpers.PostProcess.eq_kind ->
t1: FStar.Stubs.Reflection.Types.term ->
t2: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.PostProcess.eq_kind",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Reflection.V1.Derived.mk_app",
"Prims.Cons",
"FStar.Stubs.Reflection.V1.Data.argv",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V1.Data.aqualv",
"FStar.Stub... | [] | false | false | false | true | false | let mk_eq k t1 t2 =
| match k with
| Eq_Dec ty -> mk_app (`Prims.op_Equality) [(ty, Q_Implicit); (t1, Q_Explicit); (t2, Q_Explicit)]
| Eq_Undec ty -> mk_app (`Prims.eq2) [(ty, Q_Implicit); (t1, Q_Explicit); (t2, Q_Explicit)]
| Eq_Hetero ty1 ty2 ->
mk_app Prims.(`( === )) [(ty1, Q_Implicit); (ty2, Q_Implicit); (t1, Q_Explicit); (t2, Q_Expl... | false |
FStar.InteractiveHelpers.PostProcess.fst | FStar.InteractiveHelpers.PostProcess.analyze_effectful_term | val analyze_effectful_term :
dbg:bool
-> with_gpre:bool
-> with_gpost:bool
-> res:exploration_result term
-> Tac unit | val analyze_effectful_term :
dbg:bool
-> with_gpre:bool
-> with_gpost:bool
-> res:exploration_result term
-> Tac unit | let analyze_effectful_term dbg with_gpre with_gpost res =
let ge = res.ge in
let opt_c = res.tgt_comp in
(* Analyze the effectful term and check whether it is a 'let' or not *)
let ge1, studied_term, info, ret_bv, shadowed_bv, is_let =
begin match inspect res.res with
| Tv_Let _ _ bv0 ty fterm _ ->
... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 241,
"start_col": 0,
"start_line": 183
} | module FStar.InteractiveHelpers.PostProcess
open FStar.List
open FStar.Tactics
open FStar.Mul
open FStar.InteractiveHelpers.Base
open FStar.InteractiveHelpers.ExploreTerm
open FStar.InteractiveHelpers.Propositions
open FStar.InteractiveHelpers.Effectful
open FStar.InteractiveHelpers.Output
/// The high-level post-pro... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.InteractiveHelpers.Propositions.f... | [
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Output",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Effectful",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.InteractiveHelpers.Propositions",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 |
dbg: Prims.bool ->
with_gpre: Prims.bool ->
with_gpost: Prims.bool ->
res: FStar.InteractiveHelpers.PostProcess.exploration_result FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.InteractiveHelpers.PostProcess.exploration_result",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Base.genv",
"FStar.InteractiveHelpers.Effectful.eterm_info",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.bv",
"FStar.InteractiveHelpers.Propositio... | [] | false | true | false | false | false | let analyze_effectful_term dbg with_gpre with_gpost res =
| let ge = res.ge in
let opt_c = res.tgt_comp in
let ge1, studied_term, info, ret_bv, shadowed_bv, is_let =
match inspect res.res with
| Tv_Let _ _ bv0 ty fterm _ ->
print_dbg dbg ("Restraining to: " ^ term_to_string fterm);
let shadowed_bv:option bv =
match genv_get_from_name ge (name_of_bv bv0) with
... | false |
Vale.Transformers.Locations.fsti | Vale.Transformers.Locations.location_eq | val location_eq : Type0 | let location_eq = l:location{location_val_t l == FStar.Universe.raise_t (location_val_eqt l)} | {
"file_name": "vale/code/lib/transformers/Vale.Transformers.Locations.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 93,
"end_line": 74,
"start_col": 0,
"start_line": 74
} | module Vale.Transformers.Locations
open Vale.X64.Bytes_Code_s
open Vale.X64.Instruction_s
open Vale.X64.Instructions_s
open Vale.X64.Machine_Semantics_s
open Vale.X64.Machine_s
open Vale.X64.Print_s
open Vale.Def.PossiblyMonad
module L = FStar.List.Tot
(** An [location] is a portion of the [machine_state] that may ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Print_s.fst.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instructions_s.fsti.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Bytes_Code_s.fst.checked",
"Vale.Def.PossiblyMon... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Vale.Def.PossiblyMonad",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Print_s",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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.Transformers.Locations.location",
"Prims.eq2",
"Vale.Transformers.Locations.location_val_t",
"FStar.Universe.raise_t",
"Vale.Transformers.Locations.location_val_eqt"
] | [] | false | false | false | true | true | let location_eq =
| l: location{location_val_t l == FStar.Universe.raise_t (location_val_eqt l)} | false | |
Vale.Transformers.Locations.fsti | Vale.Transformers.Locations.disjoint_location_from_locations | val disjoint_location_from_locations (a: location) (l: locations) : pbool | val disjoint_location_from_locations (a: location) (l: locations) : pbool | let disjoint_location_from_locations (a:location) (l:locations) : pbool =
for_all (fun b ->
disjoint_location a b
) l | {
"file_name": "vale/code/lib/transformers/Vale.Transformers.Locations.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 36,
"start_col": 0,
"start_line": 33
} | module Vale.Transformers.Locations
open Vale.X64.Bytes_Code_s
open Vale.X64.Instruction_s
open Vale.X64.Instructions_s
open Vale.X64.Machine_Semantics_s
open Vale.X64.Machine_s
open Vale.X64.Print_s
open Vale.Def.PossiblyMonad
module L = FStar.List.Tot
(** An [location] is a portion of the [machine_state] that may ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Print_s.fst.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instructions_s.fsti.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Bytes_Code_s.fst.checked",
"Vale.Def.PossiblyMon... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Vale.Def.PossiblyMonad",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Print_s",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | a: Vale.Transformers.Locations.location -> l: Vale.Transformers.Locations.locations
-> Vale.Def.PossiblyMonad.pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.Transformers.Locations.location",
"Vale.Transformers.Locations.locations",
"Vale.Def.PossiblyMonad.for_all",
"Vale.Transformers.Locations.disjoint_location",
"Vale.Def.PossiblyMonad.pbool"
] | [] | false | false | false | true | false | let disjoint_location_from_locations (a: location) (l: locations) : pbool =
| for_all (fun b -> disjoint_location a b) l | false |
Vale.Transformers.Locations.fsti | Vale.Transformers.Locations.disjoint_locations | val disjoint_locations (l1 l2: locations) : pbool | val disjoint_locations (l1 l2: locations) : pbool | let disjoint_locations (l1 l2:locations) : pbool =
for_all (fun x ->
disjoint_location_from_locations x l2
) l1 | {
"file_name": "vale/code/lib/transformers/Vale.Transformers.Locations.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 42,
"start_col": 0,
"start_line": 39
} | module Vale.Transformers.Locations
open Vale.X64.Bytes_Code_s
open Vale.X64.Instruction_s
open Vale.X64.Instructions_s
open Vale.X64.Machine_Semantics_s
open Vale.X64.Machine_s
open Vale.X64.Print_s
open Vale.Def.PossiblyMonad
module L = FStar.List.Tot
(** An [location] is a portion of the [machine_state] that may ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Print_s.fst.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instructions_s.fsti.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Bytes_Code_s.fst.checked",
"Vale.Def.PossiblyMon... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Vale.Def.PossiblyMonad",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Print_s",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | l1: Vale.Transformers.Locations.locations -> l2: Vale.Transformers.Locations.locations
-> Vale.Def.PossiblyMonad.pbool | Prims.Tot | [
"total"
] | [] | [
"Vale.Transformers.Locations.locations",
"Vale.Def.PossiblyMonad.for_all",
"Vale.Transformers.Locations.location",
"Vale.Transformers.Locations.disjoint_location_from_locations",
"Vale.Def.PossiblyMonad.pbool"
] | [] | false | false | false | true | false | let disjoint_locations (l1 l2: locations) : pbool =
| for_all (fun x -> disjoint_location_from_locations x l2) l1 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.