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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID2.fst | ID2.sat | val sat (w: pure_wp 'a) : Type0 | val sat (w: pure_wp 'a) : Type0 | let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True) | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 4,
"start_col": 0,
"start_line": 4
} | module ID2 | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"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 | w: Prims.pure_wp 'a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"Prims.l_True"
] | [] | false | false | false | true | true | let sat (w: pure_wp 'a) : Type0 =
| w (fun _ -> True) | false |
ID2.fst | ID2.repr | val repr (a: Type u#aa) (wp: pure_wp a) : Type u#aa | val repr (a: Type u#aa) (wp: pure_wp a) : Type u#aa | let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v} | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 9,
"start_col": 0,
"start_line": 8
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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: Type -> wp: Prims.pure_wp a -> Type | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"Prims.squash",
"ID2.sat",
"Prims.l_Forall",
"Prims.l_imp"
] | [] | false | false | false | true | true | let repr (a: Type u#aa) (wp: pure_wp a) : Type u#aa =
| squash (sat wp) -> v: a{forall p. wp p ==> p v} | false |
LowParse.Spec.Tac.Combinators.fst | LowParse.Spec.Tac.Combinators.destruct_lhs_pairs | val destruct_lhs_pairs (t: FStar.Tactics.term) (n: nat) : FStar.Tactics.Tac unit | val destruct_lhs_pairs (t: FStar.Tactics.term) (n: nat) : FStar.Tactics.Tac unit | let rec destruct_lhs_pairs (t: FStar.Tactics.term) (n: nat) : FStar.Tactics.Tac unit =
if n = 0
then trefl ()
else begin
destruct t;
let a = intro () in
let b = intro () in
let abeq = intro () in
rewrite abeq;
destruct_lhs_pairs (binder_to_term a) (n - 1)
end | {
"file_name": "src/lowparse/LowParse.Spec.Tac.Combinators.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 18,
"start_col": 0,
"start_line": 8
} | module LowParse.Spec.Tac.Combinators
include LowParse.Spec.Combinators
open LowParse.TacLib
(* for structs *) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.TacLib.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.Spec.Tac.Combinators.fst"
} | [
{
"abbrev": false,
"full_module": "LowParse.TacLib",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Tac",
"short_module": null
},
{
"abbrev": false,
... | {
"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: FStar.Stubs.Reflection.Types.term -> n: Prims.nat -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"FStar.Tactics.V1.Derived.trefl",
"Prims.unit",
"Prims.bool",
"LowParse.Spec.Tac.Combinators.destruct_lhs_pairs",
"Prims.op_Subtraction",
"FStar.Tactics.V1.Derived.binder_to_term",
"FStar.Stubs.Tactics.V1.Builtin... | [
"recursion"
] | false | true | false | false | false | let rec destruct_lhs_pairs (t: FStar.Tactics.term) (n: nat) : FStar.Tactics.Tac unit =
| if n = 0
then trefl ()
else
(destruct t;
let a = intro () in
let b = intro () in
let abeq = intro () in
rewrite abeq;
destruct_lhs_pairs (binder_to_term a) (n - 1)) | false |
ID2.fst | ID2.l | val l: Prims.unit -> int | val l: Prims.unit -> int | let l () : int = reify (test_f ()) () | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 76,
"start_col": 0,
"start_line": 76
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 | _: Prims.unit -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"ID2.test_f",
"Prims.int"
] | [] | false | false | false | true | false | let l () : int =
| reify (test_f ()) () | false |
LowParse.Spec.Sum.fst | LowParse.Spec.Sum.serialize_dsum | val serialize_dsum
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
... | val serialize_dsum
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
... | let serialize_dsum
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))
(sr: (x: dsum_known_key s) -> Tot (serializer (dsnd (f x))))
(#k: parser_kind)
(g: parser k (dsum_type_of_u... | {
"file_name": "src/lowparse/LowParse.Spec.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 86,
"end_line": 921,
"start_col": 0,
"start_line": 908
} | module LowParse.Spec.Sum
include LowParse.Spec.Enum
module Seq = FStar.Seq
let synth_case_recip'
(#key: eqtype)
(#repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (enum_key e)))
(type_of_tag: (enum_key e -> Tot Type))
(synth_case_recip: ((k: enum_key e) -> (x: refi... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Enum.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Enum",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"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 |
s: LowParse.Spec.Sum.dsum ->
st: LowParse.Spec.Base.serializer pt ->
f:
(x: LowParse.Spec.Sum.dsum_known_key s
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) ->
sr:
(x: LowParse.S... | Prims.Pure | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"Prims.__proj__Mkdtuple2__item___1",
"FStar... | [] | false | false | false | false | false | let serialize_dsum
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
... | serialize_dsum' s st #_ #(parse_dsum_cases s f g) (serialize_dsum_cases s f sr g sg) | false |
CSL.Semantics.fst | CSL.Semantics.step_req | val step_req:
#st: st ->
#a: Type u#a ->
#pre: st.hprop ->
#post: post_t st a ->
f: m st a pre post ->
st.mem
-> Type0 | val step_req:
#st: st ->
#a: Type u#a ->
#pre: st.hprop ->
#post: post_t st a ->
f: m st a pre post ->
st.mem
-> Type0 | let step_req (#st:st) (#a:Type u#a) (#pre:st.hprop) (#post:post_t st a) (f:m st a pre post)
: st.mem -> Type0
= fun m0 -> st.interp (pre `st.star` st.invariant m0) m0 | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 261,
"start_col": 0,
"start_line": 259
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 | f: CSL.Semantics.m st a pre post -> _: Mkst0?.mem st -> Type0 | Prims.Tot | [
"total"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.post_t",
"CSL.Semantics.m",
"CSL.Semantics.__proj__Mkst0__item__mem",
"CSL.Semantics.__proj__Mkst0__item__interp",
"CSL.Semantics.__proj__Mkst0__item__star",
"CSL.Semantics.__proj__Mkst0__item__invariant"
] | [] | false | false | false | false | true | let step_req (#st: st) (#a: Type u#a) (#pre: st.hprop) (#post: post_t st a) (f: m st a pre post)
: st.mem -> Type0 =
| fun m0 -> st.interp (pre `st.star` (st.invariant m0)) m0 | false |
LowParse.Spec.Sum.fst | LowParse.Spec.Sum.synth_dsum_case_recip_synth_case_known_post | val synth_dsum_case_recip_synth_case_known_post
(#key #repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (maybe_enum_key e)))
(type_of_known_tag: (enum_key e -> Tot Type))
(type_of_unknown_tag: Type)
(synth_case:
(x: maybe_enum_key e -> y: dsum... | val synth_dsum_case_recip_synth_case_known_post
(#key #repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (maybe_enum_key e)))
(type_of_known_tag: (enum_key e -> Tot Type))
(type_of_unknown_tag: Type)
(synth_case:
(x: maybe_enum_key e -> y: dsum... | let synth_dsum_case_recip_synth_case_known_post
(#key #repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (maybe_enum_key e)))
(type_of_known_tag: (enum_key e -> Tot Type))
(type_of_unknown_tag: Type)
(synth_case: ((x: maybe_enum_key e) -> (y: dsum_type_of_tag' e type_of_known_tag t... | {
"file_name": "src/lowparse/LowParse.Spec.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 938,
"start_col": 0,
"start_line": 923
} | module LowParse.Spec.Sum
include LowParse.Spec.Enum
module Seq = FStar.Seq
let synth_case_recip'
(#key: eqtype)
(#repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (enum_key e)))
(type_of_tag: (enum_key e -> Tot Type))
(synth_case_recip: ((k: enum_key e) -> (x: refi... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Enum.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Enum",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"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 |
e: LowParse.Spec.Enum.enum key repr ->
tag_of_data: (_: data -> LowParse.Spec.Enum.maybe_enum_key e) ->
type_of_known_tag: (_: LowParse.Spec.Enum.enum_key e -> Type) ->
type_of_unknown_tag: Type ->
synth_case:
(
x: LowParse.Spec.Enum.maybe_enum_key e ->
y: LowParse.Spe... | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.eqtype",
"LowParse.Spec.Enum.enum",
"LowParse.Spec.Enum.maybe_enum_key",
"LowParse.Spec.Enum.enum_key",
"LowParse.Spec.Sum.dsum_type_of_tag'",
"LowParse.Spec.Base.refine_with_tag",
"Prims.l_imp",
"Prims.b2t",
"LowParse.Spec.Enum.list_mem",
"LowParse.Spec.Enum.list_map",
"FStar.Pervasives.... | [] | false | false | false | false | true | let synth_dsum_case_recip_synth_case_known_post
(#key #repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (maybe_enum_key e)))
(type_of_known_tag: (enum_key e -> Tot Type))
(type_of_unknown_tag: Type)
(synth_case:
(x: maybe_enum_key e -> y: dsum... | list_mem x (list_map fst e) ==>
(forall (y: type_of_known_tag x). {:pattern (synth_case_recip (Known x) (synth_case (Known x) y))}
synth_case_recip (Known x) (synth_case (Known x) y) == y) | false |
ID2.fst | ID2.subcomp | val subcomp (a: Type) (wp1 wp2: pure_wp a) (f: repr a wp1)
: Pure (repr a wp2) (requires (forall p. wp2 p ==> wp1 p)) (ensures fun _ -> True) | val subcomp (a: Type) (wp1 wp2: pure_wp a) (f: repr a wp1)
: Pure (repr a wp2) (requires (forall p. wp2 p ==> wp1 p)) (ensures fun _ -> True) | let subcomp (a:Type)
(wp1 wp2: pure_wp a)
(f : repr a wp1)
: Pure (repr a wp2)
(requires (forall p. wp2 p ==> wp1 p))
(ensures fun _ -> True)
= f | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 31,
"start_col": 0,
"start_line": 25
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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: Type -> wp1: Prims.pure_wp a -> wp2: Prims.pure_wp a -> f: ID2.repr a wp1
-> Prims.Pure (ID2.repr a wp2) | Prims.Pure | [] | [] | [
"Prims.pure_wp",
"ID2.repr",
"Prims.l_Forall",
"Prims.pure_post",
"Prims.l_imp",
"Prims.l_True"
] | [] | false | false | false | false | false | let subcomp (a: Type) (wp1 wp2: pure_wp a) (f: repr a wp1)
: Pure (repr a wp2) (requires (forall p. wp2 p ==> wp1 p)) (ensures fun _ -> True) =
| f | false |
ID2.fst | ID2.return | val return (a: Type) (x: a) : repr a (pure_return a x) | val return (a: Type) (x: a) : repr a (pure_return a x) | let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 12,
"start_col": 0,
"start_line": 11
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v} | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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: Type -> x: a -> ID2.repr a (FStar.Pervasives.pure_return a x) | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.Pervasives.pure_return",
"ID2.repr"
] | [] | false | false | false | false | false | let return (a: Type) (x: a) : repr a (pure_return a x) =
| fun () -> x | false |
ID2.fst | ID2.if_then_else_wp | val if_then_else_wp (#a: Type) (wp1 wp2: pure_wp a) (p: bool) : pure_wp a | val if_then_else_wp (#a: Type) (wp1 wp2: pure_wp a) (p: bool) : pure_wp a | let if_then_else_wp (#a:Type) (wp1 wp2:pure_wp a) (p:bool) : pure_wp a =
elim_pure_wp_monotonicity_forall ();
as_pure_wp (fun post -> (p ==> wp1 post) /\ ((~p) ==> wp2 post)) | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 36,
"start_col": 0,
"start_line": 34
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 | wp1: Prims.pure_wp a -> wp2: Prims.pure_wp a -> p: Prims.bool -> Prims.pure_wp a | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"Prims.bool",
"FStar.Monotonic.Pure.as_pure_wp",
"Prims.pure_post",
"Prims.l_and",
"Prims.l_imp",
"Prims.b2t",
"Prims.l_not",
"Prims.pure_pre",
"Prims.unit",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall"
] | [] | false | false | false | true | false | let if_then_else_wp (#a: Type) (wp1 wp2: pure_wp a) (p: bool) : pure_wp a =
| elim_pure_wp_monotonicity_forall ();
as_pure_wp (fun post -> (p ==> wp1 post) /\ ((~p) ==> wp2 post)) | false |
ID2.fst | ID2.bind | val bind
(a b: Type)
(wp_v: pure_wp a)
(wp_f: (a -> pure_wp b))
(v: repr a wp_v)
(f: (x: a -> repr b (wp_f x)))
: repr b (pure_bind_wp a b wp_v wp_f) | val bind
(a b: Type)
(wp_v: pure_wp a)
(wp_f: (a -> pure_wp b))
(v: repr a wp_v)
(f: (x: a -> repr b (wp_f x)))
: repr b (pure_bind_wp a b wp_v wp_f) | let bind (a b : Type)
(wp_v : pure_wp a) (wp_f: a -> pure_wp b)
(v : repr a wp_v)
(f : (x:a -> repr b (wp_f x)))
: repr b (pure_bind_wp a b wp_v wp_f)
// Fun fact: using () instead of _ below makes us
// lose the refinement and then this proof fails.
// Keep that in mind all ye who enter here.
= elim... | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 23,
"start_col": 0,
"start_line": 14
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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: Type ->
b: Type ->
wp_v: Prims.pure_wp a ->
wp_f: (_: a -> Prims.pure_wp b) ->
v: ID2.repr a wp_v ->
f: (x: a -> ID2.repr b (wp_f x))
-> ID2.repr b (FStar.Pervasives.pure_bind_wp a b wp_v wp_f) | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"ID2.repr",
"Prims.squash",
"ID2.sat",
"FStar.Pervasives.pure_bind_wp",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.unit",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall"
] | [] | false | false | false | false | false | let bind
(a b: Type)
(wp_v: pure_wp a)
(wp_f: (a -> pure_wp b))
(v: repr a wp_v)
(f: (x: a -> repr b (wp_f x)))
: repr b (pure_bind_wp a b wp_v wp_f) =
| elim_pure_wp_monotonicity_forall ();
fun _ -> f (v ()) () | false |
LowParse.Spec.Sum.fst | LowParse.Spec.Sum.serialize_dsum_type_of_tag | val serialize_dsum_type_of_tag
(s: dsum)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(sg: serializer g)
(x: d... | val serialize_dsum_type_of_tag
(s: dsum)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(sg: serializer g)
(x: d... | let serialize_dsum_type_of_tag
(s: dsum)
(f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))
(sr: (x: dsum_known_key s) -> Tot (serializer (dsnd (f x))))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(sg: serializer g)
(x: dsum_key s)
: Tot (serializer... | {
"file_name": "src/lowparse/LowParse.Spec.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 55,
"end_line": 866,
"start_col": 0,
"start_line": 853
} | module LowParse.Spec.Sum
include LowParse.Spec.Enum
module Seq = FStar.Seq
let synth_case_recip'
(#key: eqtype)
(#repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (enum_key e)))
(type_of_tag: (enum_key e -> Tot Type))
(synth_case_recip: ((k: enum_key e) -> (x: refi... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Enum.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Enum",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"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 |
s: LowParse.Spec.Sum.dsum ->
f:
(x: LowParse.Spec.Sum.dsum_known_key s
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) ->
sr:
(x: LowParse.Spec.Sum.dsum_known_key s
-> LowPar... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Base.serializer",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Su... | [] | false | false | false | false | false | let serialize_dsum_type_of_tag
(s: dsum)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(sg: serializer g)
(x: d... | match x with
| Known x' -> serialize_ext (dsnd (f x')) (sr x') (parse_dsum_type_of_tag s f g x)
| Unknown x' -> serialize_ext g sg (parse_dsum_type_of_tag s f g x) | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_wp_monotonic | val tac_wp_monotonic : wp: FStar.Tactics.Effect.tac_wp_t0 a -> Prims.logical | let tac_wp_monotonic (#a:Type) (wp:tac_wp_t0 a) =
forall (ps:proofstate) (p q:__result a -> Type0).
(forall x. p x ==> q x) ==> (wp ps p ==> wp ps q) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 53,
"end_line": 33,
"start_col": 0,
"start_line": 31
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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 | wp: FStar.Tactics.Effect.tac_wp_t0 a -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.tac_wp_t0",
"Prims.l_Forall",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"Prims.l_imp",
"Prims.logical"
] | [] | false | false | false | true | true | let tac_wp_monotonic (#a: Type) (wp: tac_wp_t0 a) =
| forall (ps: proofstate) (p: (__result a -> Type0)) (q: (__result a -> Type0)).
(forall x. p x ==> q x) ==> (wp ps p ==> wp ps q) | false | |
Spec.Agile.HMAC.fsti | Spec.Agile.HMAC.keysized | val keysized : a: Spec.Hash.Definitions.hash_alg -> l: Prims.nat -> Prims.logical | let keysized (a:hash_alg) (l:nat) =
l `less_than_max_input_length` a /\
l + block_length a < pow2 32 | {
"file_name": "specs/Spec.Agile.HMAC.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 12,
"start_col": 0,
"start_line": 10
} | module Spec.Agile.HMAC
open Spec.Hash.Definitions
open Lib.IntTypes
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 50"
let lbytes (l:nat) = b:bytes {Seq.length b = l} | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Agile.HMAC.fsti"
} | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"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: Spec.Hash.Definitions.hash_alg -> l: Prims.nat -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.hash_alg",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Spec.Hash.Definitions.less_than_max_input_length",
"Prims.op_LessThan",
"Prims.op_Addition",
"Spec.Hash.Definitions.block_length",
"Prims.pow2",
"Prims.logical"
] | [] | false | false | false | true | true | let keysized (a: hash_alg) (l: nat) =
| l `less_than_max_input_length` a /\ l + block_length a < pow2 32 | false | |
ID2.fst | ID2.test_2 | val test_2: Prims.unit -> ID int (as_pure_wp (fun p -> p 5)) | val test_2: Prims.unit -> ID int (as_pure_wp (fun p -> p 5)) | let test_2 () : ID int (as_pure_wp (fun p -> p 5)) = 5 | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 74,
"start_col": 0,
"start_line": 74
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 | _: Prims.unit -> ID2.ID Prims.int | ID2.ID | [] | [] | [
"Prims.unit",
"Prims.int",
"FStar.Monotonic.Pure.as_pure_wp",
"Prims.pure_post",
"Prims.pure_pre"
] | [] | false | true | false | false | false | let test_2 () : ID int (as_pure_wp (fun p -> p 5)) =
| 5 | false |
ID2.fst | ID2.count | val count (n: nat) : ID int (as_pure_wp (fun p -> forall r. p r)) | val count (n: nat) : ID int (as_pure_wp (fun p -> forall r. p r)) | let rec count (n:nat) : ID int (as_pure_wp (fun p -> forall r. p r)) =
if n = 0 then 0 else count (n-1) | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 67,
"start_col": 0,
"start_line": 66
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 | n: Prims.nat -> ID2.ID Prims.int | ID2.ID | [] | [] | [
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"ID2.count",
"Prims.op_Subtraction",
"FStar.Monotonic.Pure.as_pure_wp",
"Prims.pure_post",
"Prims.l_Forall",
"Prims.l_True",
"Prims.pure_pre"
] | [
"recursion"
] | false | true | false | false | false | let rec count (n: nat) : ID int (as_pure_wp (fun p -> forall r. p r)) =
| if n = 0 then 0 else count (n - 1) | false |
ID2.fst | ID2.test_f | val test_f : unit -> ID int (as_pure_wp (fun p -> p 5 /\ p 3)) | val test_f : unit -> ID int (as_pure_wp (fun p -> p 5 /\ p 3)) | let test_f () = 5 | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 72,
"start_col": 0,
"start_line": 72
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 | _: Prims.unit -> ID2.ID Prims.int | ID2.ID | [] | [] | [
"Prims.unit",
"Prims.int"
] | [] | false | true | false | false | false | let test_f () =
| 5 | false |
LowParse.Spec.Sum.fst | LowParse.Spec.Sum.parse_dsum_eq'' | val parse_dsum_eq''
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (pa... | val parse_dsum_eq''
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (pa... | let parse_dsum_eq''
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (parse_dsum t p f g) input == (match ... | {
"file_name": "src/lowparse/LowParse.Spec.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 63,
"end_line": 732,
"start_col": 0,
"start_line": 712
} | module LowParse.Spec.Sum
include LowParse.Spec.Enum
module Seq = FStar.Seq
let synth_case_recip'
(#key: eqtype)
(#repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (enum_key e)))
(type_of_tag: (enum_key e -> Tot Type))
(synth_case_recip: ((k: enum_key e) -> (x: refi... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Enum.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Enum",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"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 |
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Bytes.bytes",
"LowPa... | [] | true | false | true | false | false | let parse_dsum_eq''
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (pa... | parse_tagged_union_eq #(kt)
#(dsum_key t)
(parse_maybe_enum_key p (dsum_enum t))
#(dsum_type t)
(dsum_tag_of_data t)
(parse_dsum_cases t f g)
input;
parse_synth_eq p (maybe_enum_key_of_repr (dsum_enum t)) input | false |
LowParse.Spec.Sum.fst | LowParse.Spec.Sum.parse_dsum_eq3 | val parse_dsum_eq3
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (par... | val parse_dsum_eq3
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (par... | let parse_dsum_eq3
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (parse_dsum t p f g) input == (match p... | {
"file_name": "src/lowparse/LowParse.Spec.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 47,
"end_line": 838,
"start_col": 0,
"start_line": 818
} | module LowParse.Spec.Sum
include LowParse.Spec.Enum
module Seq = FStar.Seq
let synth_case_recip'
(#key: eqtype)
(#repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (enum_key e)))
(type_of_tag: (enum_key e -> Tot Type))
(synth_case_recip: ((k: enum_key e) -> (x: refi... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Enum.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Enum",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"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 |
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Bytes.bytes",
"LowPa... | [] | true | false | true | false | false | let parse_dsum_eq3
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (par... | parse_dsum_eq t p f g input;
parse_maybe_enum_key_eq p (dsum_enum t) input | false |
LowParse.Spec.Sum.fst | LowParse.Spec.Sum.serialize_dsum_eq | val serialize_dsum_eq
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
... | val serialize_dsum_eq
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
... | let serialize_dsum_eq
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))
(sr: (x: dsum_known_key s) -> Tot (serializer (dsnd (f x))))
(#k: parser_kind)
(g: parser k (dsum_type_o... | {
"file_name": "src/lowparse/LowParse.Spec.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 1073,
"start_col": 0,
"start_line": 1042
} | module LowParse.Spec.Sum
include LowParse.Spec.Enum
module Seq = FStar.Seq
let synth_case_recip'
(#key: eqtype)
(#repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (enum_key e)))
(type_of_tag: (enum_key e -> Tot Type))
(synth_case_recip: ((k: enum_key e) -> (x: refi... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Enum.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Enum",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"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 |
s: LowParse.Spec.Sum.dsum ->
st: LowParse.Spec.Base.serializer pt ->
f:
(x: LowParse.Spec.Sum.dsum_known_key s
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) ->
sr:
(x: LowParse.S... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"Prims.__proj__Mkdtuple2__item___1",
"FStar... | [] | true | false | true | false | false | let serialize_dsum_eq
(#kt: parser_kind)
(s: dsum)
(#pt: parser kt (dsum_repr_type s))
(st: serializer pt)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x)))))
(#k: parser_kind)
... | serialize_dsum_eq' s st f sr g sg x;
let tg = dsum_tag_of_data s x in
synth_dsum_case_injective s tg;
synth_dsum_case_inverse s tg;
serialize_synth_eq _
(synth_dsum_case s tg)
(serialize_dsum_type_of_tag s f sr g sg tg)
(synth_dsum_case_recip s tg)
()
x | false |
ID2.fst | ID2.lift_pure_nd | val lift_pure_nd (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : repr a wp | val lift_pure_nd (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : repr a wp | let lift_pure_nd (a:Type) (wp:pure_wp a) (f:unit -> PURE a wp)
: repr a wp
= elim_pure_wp_monotonicity wp;
fun _ -> f () | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 61,
"start_col": 0,
"start_line": 58
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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: Type -> wp: Prims.pure_wp a -> f: (_: Prims.unit -> Prims.PURE a) -> ID2.repr a wp | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"Prims.unit",
"Prims.squash",
"ID2.sat",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity",
"ID2.repr"
] | [] | false | false | false | false | false | let lift_pure_nd (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : repr a wp =
| elim_pure_wp_monotonicity wp;
fun _ -> f () | false |
ID2.fst | ID2.sum | val sum (l: list int) : IdT int | val sum (l: list int) : IdT int | let rec sum (l : list int) : IdT int =
match l with
| [] -> 0
| x::xs -> x + sum xs | {
"file_name": "examples/layeredeffects/ID2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 86,
"start_col": 0,
"start_line": 83
} | module ID2
unfold
let sat (w : pure_wp 'a) : Type0 = w (fun _ -> True)
open FStar.Monotonic.Pure
let repr (a : Type u#aa) (wp : pure_wp a) : Type u#aa =
squash (sat wp) -> v:a{forall p. wp p ==> p v}
let return (a : Type) (x : a) : repr a (pure_return a x) =
fun () -> x
let bind (a b : Type)
(wp_v : pure_wp ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID2.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 | l: Prims.list Prims.int -> ID2.IdT Prims.int | ID2.IdT | [] | [] | [
"Prims.list",
"Prims.int",
"Prims.op_Addition",
"ID2.sum"
] | [
"recursion"
] | false | true | false | false | false | let rec sum (l: list int) : IdT int =
| match l with
| [] -> 0
| x :: xs -> x + sum xs | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac | val tac : a: Type -> b: Type -> Type | let tac a b = a -> Tac b | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 223,
"start_col": 8,
"start_line": 223
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type -> b: Type -> Type | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | true | let tac a b =
| a -> Tac b | false | |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tactic | val tactic : a: Type -> Type0 | let tactic a = tac unit a | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 224,
"start_col": 8,
"start_line": 224
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.tac",
"Prims.unit"
] | [] | false | false | false | true | true | let tactic a =
| tac unit a | false | |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.lemma_aff_is_point_at_inf | val lemma_aff_is_point_at_inf: p:proj_point ->
Lemma (let px, py, pz = p in
is_aff_point_at_inf (to_aff_point p) == (pz = 0 || (px = 0 && py = 0))) | val lemma_aff_is_point_at_inf: p:proj_point ->
Lemma (let px, py, pz = p in
is_aff_point_at_inf (to_aff_point p) == (pz = 0 || (px = 0 && py = 0))) | let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lemma_div_mod_prime_is_zero #prime px pz;
M.lemma_div_mod_prime_is_zero #prime py pz | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 44,
"end_line": 18,
"start_col": 0,
"start_line": 14
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime) | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "LM"
},
{
"abbrev": false,
"full_module": "Sp... | {
"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 | p: Spec.K256.PointOps.proj_point
-> FStar.Pervasives.Lemma
(ensures
(let _ = p in
(let FStar.Pervasives.Native.Mktuple3 #_ #_ #_ px py pz = _ in
Spec.K256.PointOps.is_aff_point_at_inf (Spec.K256.PointOps.to_aff_point p) ==
(pz = 0 || px = 0 && py = 0))
<:
Type0)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.K256.PointOps.proj_point",
"Spec.K256.PointOps.felem",
"Lib.NatMod.lemma_div_mod_prime_is_zero",
"Spec.K256.PointOps.prime",
"Prims.unit",
"Spec.K256.Lemmas.prime_lemma"
] | [] | false | false | true | false | false | let lemma_aff_is_point_at_inf p =
| prime_lemma ();
let px, py, pz = p in
M.lemma_div_mod_prime_is_zero #prime px pz;
M.lemma_div_mod_prime_is_zero #prime py pz | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_bind_wp | val tac_bind_wp (#a #b: Type) (wp_f: tac_wp_t a) (wp_g: (a -> tac_wp_t b)) : tac_wp_t b | val tac_bind_wp (#a #b: Type) (wp_f: tac_wp_t a) (wp_g: (a -> tac_wp_t b)) : tac_wp_t b | let tac_bind_wp (#a #b:Type) (wp_f:tac_wp_t a) (wp_g:a -> tac_wp_t b) : tac_wp_t b =
fun ps post ->
wp_f ps (fun r ->
match r with
| Success x ps -> wp_g x ps post
| Failed ex ps -> post (Failed ex ps)) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 54,
"start_col": 0,
"start_line": 49
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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 | wp_f: FStar.Tactics.Effect.tac_wp_t a -> wp_g: (_: a -> FStar.Tactics.Effect.tac_wp_t b)
-> FStar.Tactics.Effect.tac_wp_t b | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.tac_wp_t",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"Prims.exn",
"FStar.Stubs.Tactics.Result.Failed"
] | [] | false | false | false | true | false | let tac_bind_wp (#a #b: Type) (wp_f: tac_wp_t a) (wp_g: (a -> tac_wp_t b)) : tac_wp_t b =
| fun ps post ->
wp_f ps
(function
| Success x ps -> wp_g x ps post
| Failed ex ps -> post (Failed ex ps)) | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_return_wp | val tac_return_wp (#a: Type) (x: a) : tac_wp_t a | val tac_return_wp (#a: Type) (x: a) : tac_wp_t a | let tac_return_wp (#a:Type) (x:a) : tac_wp_t a =
fun ps post -> post (Success x ps) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 42,
"start_col": 0,
"start_line": 41
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> FStar.Tactics.Effect.tac_wp_t a | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"FStar.Stubs.Tactics.Result.Success",
"FStar.Tactics.Effect.tac_wp_t"
] | [] | false | false | false | true | false | let tac_return_wp (#a: Type) (x: a) : tac_wp_t a =
| fun ps post -> post (Success x ps) | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_wp_compact | val tac_wp_compact (a: Type) (wp: tac_wp_t a) : tac_wp_t a | val tac_wp_compact (a: Type) (wp: tac_wp_t a) : tac_wp_t a | let tac_wp_compact (a:Type) (wp:tac_wp_t a) : tac_wp_t a =
fun ps post ->
forall (k:__result a -> Type0). (forall (r:__result a).{:pattern (guard_free (k r))} post r ==> k r) ==> wp ps k | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 114,
"end_line": 61,
"start_col": 0,
"start_line": 59
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type -> wp: FStar.Tactics.Effect.tac_wp_t a -> FStar.Tactics.Effect.tac_wp_t a | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.tac_wp_t",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"Prims.logical",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.guard_free"
] | [] | false | false | false | true | false | let tac_wp_compact (a: Type) (wp: tac_wp_t a) : tac_wp_t a =
| fun ps post ->
forall (k: (__result a -> Type0)).
(forall (r: __result a). {:pattern (guard_free (k r))} post r ==> k r) ==> wp ps k | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_subcomp | val tac_subcomp (a: Type) (wp_f wp_g: tac_wp_t a) (f: tac_repr a wp_f)
: Pure (tac_repr a wp_g) (requires forall ps p. wp_g ps p ==> wp_f ps p) (ensures fun _ -> True) | val tac_subcomp (a: Type) (wp_f wp_g: tac_wp_t a) (f: tac_repr a wp_f)
: Pure (tac_repr a wp_g) (requires forall ps p. wp_g ps p ==> wp_f ps p) (ensures fun _ -> True) | let tac_subcomp (a:Type)
(wp_f:tac_wp_t a)
(wp_g:tac_wp_t a)
(f:tac_repr a wp_f)
: Pure (tac_repr a wp_g)
(requires forall ps p. wp_g ps p ==> wp_f ps p)
(ensures fun _ -> True)
= f | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 131,
"start_col": 0,
"start_line": 124
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type ->
wp_f: FStar.Tactics.Effect.tac_wp_t a ->
wp_g: FStar.Tactics.Effect.tac_wp_t a ->
f: FStar.Tactics.Effect.tac_repr a wp_f
-> Prims.Pure (FStar.Tactics.Effect.tac_repr a wp_g) | Prims.Pure | [] | [] | [
"FStar.Tactics.Effect.tac_wp_t",
"FStar.Tactics.Effect.tac_repr",
"Prims.l_Forall",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"Prims.l_imp",
"Prims.l_True"
] | [] | false | false | false | false | false | let tac_subcomp (a: Type) (wp_f wp_g: tac_wp_t a) (f: tac_repr a wp_f)
: Pure (tac_repr a wp_g) (requires forall ps p. wp_g ps p ==> wp_f ps p) (ensures fun _ -> True) =
| f | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_repr | val tac_repr : a: Type -> wp: FStar.Tactics.Effect.tac_wp_t a -> Type0 | let tac_repr (a:Type) (wp:tac_wp_t a) =
ps0:proofstate -> DIV (__result a) (as_pure_wp (wp ps0)) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 38,
"start_col": 0,
"start_line": 37
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type -> wp: FStar.Tactics.Effect.tac_wp_t a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.tac_wp_t",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"FStar.Monotonic.Pure.as_pure_wp"
] | [] | false | false | false | true | true | let tac_repr (a: Type) (wp: tac_wp_t a) =
| ps0: proofstate -> DIV (__result a) (as_pure_wp (wp ps0)) | false | |
CSL.Semantics.fst | CSL.Semantics.assoc_star_right | val assoc_star_right (#st: st) (p q r s: st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s))
`st.equals`
(p `st.star` (q `st.star` (r `st.star` s)))) | val assoc_star_right (#st: st) (p q r s: st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s))
`st.equals`
(p `st.star` (q `st.star` (r `st.star` s)))) | let assoc_star_right (#st:st) (p q r s:st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s)) `st.equals`
(p `st.star` (q `st.star` (r `st.star` s))))
= calc (st.equals) {
p `st.star` ((q `st.star` r) `st.star` s);
(st.equals) { equals_ext_right p ((q `st.star` r) `st.star` s)
... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 324,
"start_col": 0,
"start_line": 315
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 | p: Mkst0?.hprop st -> q: Mkst0?.hprop st -> r: Mkst0?.hprop st -> s: Mkst0?.hprop st
-> FStar.Pervasives.Lemma
(ensures
Mkst0?.equals st
(Mkst0?.star st p (Mkst0?.star st (Mkst0?.star st q r) s))
(Mkst0?.star st p (Mkst0?.star st q (Mkst0?.star st r s)))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"FStar.Calc.calc_finish",
"CSL.Semantics.__proj__Mkst0__item__equals",
"CSL.Semantics.__proj__Mkst0__item__star",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
... | [] | false | false | true | false | false | let assoc_star_right (#st: st) (p q r s: st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s))
`st.equals`
(p `st.star` (q `st.star` (r `st.star` s)))) =
| calc (st.equals) {
p `st.star` ((q `st.star` r) `st.star` s);
(st.equals) { equals_ext_right p ((q `st.star` r) `st.star` s) (q `st.star` (r `st.star` s)) }
p `st.star` (q `st.star` (r `st.star` s));
} | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_return | val tac_return (a: Type) (x: a) : tac_repr a (tac_return_wp x) | val tac_return (a: Type) (x: a) : tac_repr a (tac_return_wp x) | let tac_return (a:Type) (x:a) : tac_repr a (tac_return_wp x) =
fun (s:proofstate) -> Success x s | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 46,
"start_col": 0,
"start_line": 45
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type -> x: a -> FStar.Tactics.Effect.tac_repr a (FStar.Tactics.Effect.tac_return_wp x) | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.Success",
"FStar.Stubs.Tactics.Result.__result",
"FStar.Tactics.Effect.tac_repr",
"FStar.Tactics.Effect.tac_return_wp"
] | [] | false | false | false | false | false | let tac_return (a: Type) (x: a) : tac_repr a (tac_return_wp x) =
| fun (s: proofstate) -> Success x s | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_close | val tac_close : a: Type ->
b: Type ->
wp_f: (_: b -> FStar.Tactics.Effect.tac_wp_t a) ->
f: (x: b -> FStar.Tactics.Effect.tac_repr a (wp_f x))
-> Type0 | let tac_close (a b:Type)
(wp_f:b -> tac_wp_t a)
(f:(x:b -> tac_repr a (wp_f x))) =
tac_repr a (fun ps post -> forall (x:b). wp_f x ps post) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 137,
"start_col": 0,
"start_line": 133
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type ->
b: Type ->
wp_f: (_: b -> FStar.Tactics.Effect.tac_wp_t a) ->
f: (x: b -> FStar.Tactics.Effect.tac_repr a (wp_f x))
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.tac_wp_t",
"FStar.Tactics.Effect.tac_repr",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"Prims.l_Forall",
"Prims.logical"
] | [] | false | false | false | false | true | let tac_close (a b: Type) (wp_f: (b -> tac_wp_t a)) (f: (x: b -> tac_repr a (wp_f x))) =
| tac_repr a (fun ps post -> forall (x: b). wp_f x ps post) | false | |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.tac_if_then_else_wp | val tac_if_then_else_wp (#a: Type) (wp_then wp_else: tac_wp_t a) (b: bool) : tac_wp_t a | val tac_if_then_else_wp (#a: Type) (wp_then wp_else: tac_wp_t a) (b: bool) : tac_wp_t a | let tac_if_then_else_wp (#a:Type) (wp_then:tac_wp_t a) (wp_else:tac_wp_t a) (b:bool)
: tac_wp_t a
= fun ps post -> (b ==> wp_then ps post) /\
((~ b) ==> wp_else ps post) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 113,
"start_col": 0,
"start_line": 110
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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 |
wp_then: FStar.Tactics.Effect.tac_wp_t a ->
wp_else: FStar.Tactics.Effect.tac_wp_t a ->
b: Prims.bool
-> FStar.Tactics.Effect.tac_wp_t a | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.tac_wp_t",
"Prims.bool",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"Prims.l_and",
"Prims.l_imp",
"Prims.b2t",
"Prims.l_not",
"Prims.logical"
] | [] | false | false | false | true | false | let tac_if_then_else_wp (#a: Type) (wp_then wp_else: tac_wp_t a) (b: bool) : tac_wp_t a =
| fun ps post -> (b ==> wp_then ps post) /\ ((~b) ==> wp_else ps post) | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.raise | val raise (#a: Type) (e: exn) : TAC a (fun ps post -> post (Failed e ps)) | val raise (#a: Type) (e: exn) : TAC a (fun ps post -> post (Failed e ps)) | let raise (#a:Type) (e:exn)
: TAC a (fun ps post -> post (Failed e ps))
= TAC?.reflect (fun ps -> Failed #a e ps) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 188,
"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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Prims.exn -> FStar.Tactics.Effect.TAC a | FStar.Tactics.Effect.TAC | [] | [] | [
"Prims.exn",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.Failed",
"FStar.Stubs.Tactics.Result.__result"
] | [] | false | true | false | false | false | let raise (#a: Type) (e: exn) : TAC a (fun ps post -> post (Failed e ps)) =
| TAC?.reflect (fun ps -> Failed #a e ps) | false |
CSL.Semantics.fst | CSL.Semantics.equals_ext_right | val equals_ext_right (#st: st) (p q r: st.hprop)
: Lemma (requires q `st.equals` r) (ensures (p `st.star` q) `st.equals` (p `st.star` r)) | val equals_ext_right (#st: st) (p q r: st.hprop)
: Lemma (requires q `st.equals` r) (ensures (p `st.star` q) `st.equals` (p `st.star` r)) | let equals_ext_right (#st:st) (p q r:st.hprop)
: Lemma
(requires q `st.equals` r)
(ensures (p `st.star` q) `st.equals` (p `st.star` r))
= calc (st.equals) {
p `st.star` q;
(st.equals) { }
q `st.star` p;
(st.equals) { }
r `st.star` p;
(st.equals) { }
p `st.star` r;
} | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 305,
"start_col": 0,
"start_line": 293
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 | p: Mkst0?.hprop st -> q: Mkst0?.hprop st -> r: Mkst0?.hprop st
-> FStar.Pervasives.Lemma (requires Mkst0?.equals st q r)
(ensures Mkst0?.equals st (Mkst0?.star st p q) (Mkst0?.star st p r)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"FStar.Calc.calc_finish",
"CSL.Semantics.__proj__Mkst0__item__equals",
"CSL.Semantics.__proj__Mkst0__item__star",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
... | [] | false | false | true | false | false | let equals_ext_right (#st: st) (p q r: st.hprop)
: Lemma (requires q `st.equals` r) (ensures (p `st.star` q) `st.equals` (p `st.star` r)) =
| calc (st.equals) {
p `st.star` q;
(st.equals) { () }
q `st.star` p;
(st.equals) { () }
r `st.star` p;
(st.equals) { () }
p `st.star` r;
} | false |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.lemma_proj_aff_id | val lemma_proj_aff_id (p:aff_point) :
Lemma (to_aff_point (to_proj_point p) == p) | val lemma_proj_aff_id (p:aff_point) :
Lemma (to_aff_point (to_proj_point p) == p) | let lemma_proj_aff_id p =
let (px, py) = p in
let (pX, pY, pZ) = to_proj_point p in
assert (pX = px /\ pY = pY /\ pZ = one);
let (rx, ry) = to_aff_point (pX, pY, pZ) in
assert (rx = (pX /% pZ) /\ ry = (pY /% pZ));
M.lemma_div_mod_prime_one #prime pX;
M.lemma_div_mod_prime_one #prime pY;
assert (rx = pX ... | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 29,
"start_col": 0,
"start_line": 21
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime)
let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "LM"
},
{
"abbrev": false,
"full_module": "Sp... | {
"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 | p: Spec.K256.PointOps.aff_point
-> FStar.Pervasives.Lemma
(ensures Spec.K256.PointOps.to_aff_point (Spec.K256.PointOps.to_proj_point p) == p) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.K256.PointOps.aff_point",
"Spec.K256.PointOps.felem",
"Prims._assert",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.unit",
"Lib.NatMod.lemma_div_mod_prime_one",
"Spec.K256.PointOps.prime",
"Spec.K256.PointOps.op_Slash_Percent",
"Spec.K256.PointOps.to_aff_point",
"FStar.Pervasi... | [] | false | false | true | false | false | let lemma_proj_aff_id p =
| let px, py = p in
let pX, pY, pZ = to_proj_point p in
assert (pX = px /\ pY = pY /\ pZ = one);
let rx, ry = to_aff_point (pX, pY, pZ) in
assert (rx = (pX /% pZ) /\ ry = (pY /% pZ));
M.lemma_div_mod_prime_one #prime pX;
M.lemma_div_mod_prime_one #prime pY;
assert (rx = pX /\ ry = pY) | false |
CSL.Semantics.fst | CSL.Semantics.commute_star_right | val commute_star_right (#st: st) (p q r: st.hprop)
: Lemma ((p `st.star` (q `st.star` r)) `st.equals` (p `st.star` (r `st.star` q))) | val commute_star_right (#st: st) (p q r: st.hprop)
: Lemma ((p `st.star` (q `st.star` r)) `st.equals` (p `st.star` (r `st.star` q))) | let commute_star_right (#st:st) (p q r:st.hprop)
: Lemma ((p `st.star` (q `st.star` r)) `st.equals` (p `st.star` (r `st.star` q)))
= calc (st.equals) {
p `st.star` (q `st.star` r);
(st.equals) { equals_ext_right p (q `st.star` r) (r `st.star` q) }
p `st.star` (r `st.star` q);
} | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 313,
"start_col": 0,
"start_line": 307
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 | p: Mkst0?.hprop st -> q: Mkst0?.hprop st -> r: Mkst0?.hprop st
-> FStar.Pervasives.Lemma
(ensures
Mkst0?.equals st
(Mkst0?.star st p (Mkst0?.star st q r))
(Mkst0?.star st p (Mkst0?.star st r q))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"FStar.Calc.calc_finish",
"CSL.Semantics.__proj__Mkst0__item__equals",
"CSL.Semantics.__proj__Mkst0__item__star",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
... | [] | false | false | true | false | false | let commute_star_right (#st: st) (p q r: st.hprop)
: Lemma ((p `st.star` (q `st.star` r)) `st.equals` (p `st.star` (r `st.star` q))) =
| calc (st.equals) {
p `st.star` (q `st.star` r);
(st.equals) { equals_ext_right p (q `st.star` r) (r `st.star` q) }
p `st.star` (r `st.star` q);
} | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.lift_div_tac | val lift_div_tac (a: Type) (wp: pure_wp a) (f: (eqtype_as_type unit -> DIV a wp))
: tac_repr a (lift_div_tac_wp wp) | val lift_div_tac (a: Type) (wp: pure_wp a) (f: (eqtype_as_type unit -> DIV a wp))
: tac_repr a (lift_div_tac_wp wp) | let lift_div_tac (a:Type) (wp:pure_wp a) (f:eqtype_as_type unit -> DIV a wp)
: tac_repr a (lift_div_tac_wp wp)
= elim_pure_wp_monotonicity wp;
fun ps -> Success (f ()) ps | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 178,
"start_col": 0,
"start_line": 175
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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: Type ->
wp: Prims.pure_wp a ->
f: (_: FStar.Pervasives.eqtype_as_type Prims.unit -> FStar.Pervasives.DIV a)
-> FStar.Tactics.Effect.tac_repr a (FStar.Tactics.Effect.lift_div_tac_wp wp) | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"FStar.Pervasives.eqtype_as_type",
"Prims.unit",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.Success",
"FStar.Stubs.Tactics.Result.__result",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity",
"FStar.Tactics.Effect.tac_repr",
"FStar.Tactics.Effect.lift_div_tac... | [] | false | false | false | false | false | let lift_div_tac (a: Type) (wp: pure_wp a) (f: (eqtype_as_type unit -> DIV a wp))
: tac_repr a (lift_div_tac_wp wp) =
| elim_pure_wp_monotonicity wp;
fun ps -> Success (f ()) ps | false |
CSL.Semantics.fst | CSL.Semantics.preserves_frame_star_left | val preserves_frame_star_left (#st: st) (pre post: st.hprop) (m0 m1: st.mem) (frame: st.hprop)
: Lemma (requires preserves_frame pre post m0 m1)
(ensures preserves_frame (frame `st.star` pre) (frame `st.star` post) m0 m1) | val preserves_frame_star_left (#st: st) (pre post: st.hprop) (m0 m1: st.mem) (frame: st.hprop)
: Lemma (requires preserves_frame pre post m0 m1)
(ensures preserves_frame (frame `st.star` pre) (frame `st.star` post) m0 m1) | let preserves_frame_star_left (#st:st) (pre post:st.hprop) (m0 m1:st.mem) (frame:st.hprop)
: Lemma
(requires preserves_frame pre post m0 m1)
(ensures preserves_frame (frame `st.star` pre) (frame `st.star` post) m0 m1)
= let aux (frame':st.hprop)
: Lemma
(requires
st.interp (st.invariant m0 `st.sta... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 443,
"start_col": 0,
"start_line": 421
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 |
pre: Mkst0?.hprop st ->
post: Mkst0?.hprop st ->
m0: Mkst0?.mem st ->
m1: Mkst0?.mem st ->
frame: Mkst0?.hprop st
-> FStar.Pervasives.Lemma (requires CSL.Semantics.preserves_frame pre post m0 m1)
(ensures
CSL.Semantics.preserves_frame (Mkst0?.star st frame pre) (Mkst0?.star st frame... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.__proj__Mkst0__item__mem",
"Prims.unit",
"CSL.Semantics.__proj__Mkst0__item__interp",
"CSL.Semantics.__proj__Mkst0__item__star",
"CSL.Semantics.__proj__Mkst0__item__invariant",
"Prims.squash",
"Prims.Cons",
"FStar.Perva... | [] | false | false | true | false | false | let preserves_frame_star_left (#st: st) (pre post: st.hprop) (m0 m1: st.mem) (frame: st.hprop)
: Lemma (requires preserves_frame pre post m0 m1)
(ensures preserves_frame (frame `st.star` pre) (frame `st.star` post) m0 m1) =
| let aux (frame': st.hprop)
: Lemma
(requires st.interp ((st.invariant m0) `st.star` ((frame `st.star` pre) `st.star` frame')) m0)
(ensures st.interp ((st.invariant m1) `st.star` ((frame `st.star` post) `st.star` frame')) m1)
[SMTPat ()] =
commute_assoc_star_right (st.invariant m0) frame pre fram... | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.lift_div_tac_wp | val lift_div_tac_wp (#a: Type) (wp: pure_wp a) : tac_wp_t a | val lift_div_tac_wp (#a: Type) (wp: pure_wp a) : tac_wp_t a | let lift_div_tac_wp (#a:Type) (wp:pure_wp a) : tac_wp_t a =
elim_pure_wp_monotonicity wp;
fun ps p -> wp (fun x -> p (Success x ps)) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 173,
"start_col": 0,
"start_line": 171
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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 | wp: Prims.pure_wp a -> FStar.Tactics.Effect.tac_wp_t a | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.__result",
"Prims.l_True",
"FStar.Stubs.Tactics.Result.Success",
"Prims.pure_pre",
"Prims.unit",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity",
"FStar.Tactics.Effect.tac_wp_t"
] | [] | false | false | false | true | false | let lift_div_tac_wp (#a: Type) (wp: pure_wp a) : tac_wp_t a =
| elim_pure_wp_monotonicity wp;
fun ps p -> wp (fun x -> p (Success x ps)) | false |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.aff_point_negate_lemma | val aff_point_negate_lemma (p:aff_point) :
Lemma (aff_point_add (aff_point_negate p) p == aff_point_at_inf) | val aff_point_negate_lemma (p:aff_point) :
Lemma (aff_point_add (aff_point_negate p) p == aff_point_at_inf) | let aff_point_negate_lemma p =
let p_neg = aff_point_negate p in
let px, py = p in
let qx, qy = p_neg in
assert (qx = px /\ qy = (-py) % prime);
assert (aff_point_add p_neg p == aff_point_at_inf) | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 42,
"start_col": 0,
"start_line": 37
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime)
let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "LM"
},
{
"abbrev": false,
"full_module": "Sp... | {
"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 | p: Spec.K256.PointOps.aff_point
-> FStar.Pervasives.Lemma
(ensures
Spec.K256.PointOps.aff_point_add (Spec.K256.PointOps.aff_point_negate p) p ==
Spec.K256.PointOps.aff_point_at_inf) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.K256.PointOps.aff_point",
"Spec.K256.PointOps.felem",
"Prims._assert",
"Prims.eq2",
"Spec.K256.PointOps.aff_point_add",
"Spec.K256.PointOps.aff_point_at_inf",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Minus",
"Spec.K256.... | [] | false | false | true | false | false | let aff_point_negate_lemma p =
| let p_neg = aff_point_negate p in
let px, py = p in
let qx, qy = p_neg in
assert (qx = px /\ qy = (- py) % prime);
assert (aff_point_add p_neg p == aff_point_at_inf) | false |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.ecdsa_verify_avoid_finv | val ecdsa_verify_avoid_finv: p:proj_point{not (is_proj_point_at_inf p)} -> r:nat{0 < r /\ r < q} ->
Lemma (let _X, _Y, _Z = p in
(_X /% _Z % q = r) <==> ((r *% _Z = _X) || (r + q < prime && (r + q) *% _Z = _X))) | val ecdsa_verify_avoid_finv: p:proj_point{not (is_proj_point_at_inf p)} -> r:nat{0 < r /\ r < q} ->
Lemma (let _X, _Y, _Z = p in
(_X /% _Z % q = r) <==> ((r *% _Z = _X) || (r + q < prime && (r + q) *% _Z = _X))) | let ecdsa_verify_avoid_finv p r =
ecdsa_verify_avoid_finv1 p r;
ecdsa_verify_avoid_finv2 p r | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 143,
"start_col": 0,
"start_line": 141
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime)
let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "LM"
},
{
"abbrev": false,
"full_module": "Sp... | {
"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 |
p: Spec.K256.PointOps.proj_point{Prims.op_Negation (Spec.K256.PointOps.is_proj_point_at_inf p)} ->
r: Prims.nat{0 < r /\ r < Spec.K256.PointOps.q}
-> FStar.Pervasives.Lemma
(ensures
(let _ = p in
(let FStar.Pervasives.Native.Mktuple3 #_ #_ #_ _X _ _Z = _ in
_X /% _Z % Spec.K256.Po... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.K256.PointOps.proj_point",
"Prims.b2t",
"Prims.op_Negation",
"Spec.K256.PointOps.is_proj_point_at_inf",
"Prims.nat",
"Prims.l_and",
"Prims.op_LessThan",
"Spec.K256.PointOps.q",
"Spec.K256.Lemmas.ecdsa_verify_avoid_finv2",
"Prims.unit",
"Spec.K256.Lemmas.ecdsa_verify_avoid_finv1"
] | [] | true | false | true | false | false | let ecdsa_verify_avoid_finv p r =
| ecdsa_verify_avoid_finv1 p r;
ecdsa_verify_avoid_finv2 p r | false |
FStar.Tactics.Effect.fsti | FStar.Tactics.Effect.get | val get: Prims.unit -> TAC proofstate (fun ps post -> post (Success ps ps)) | val get: Prims.unit -> TAC proofstate (fun ps post -> post (Success ps ps)) | let get ()
: TAC proofstate (fun ps post -> post (Success ps ps))
= TAC?.reflect (fun ps -> Success ps ps) | {
"file_name": "ulib/FStar.Tactics.Effect.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 184,
"start_col": 0,
"start_line": 182
} | (*
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",
"FStar.Stubs.Tactics.Types.fsti.checked",
"FStar.Stubs.Tactics.Result.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
... | [
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Result",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.Types",
"short_module": null
},
{
... | {
"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.unit -> FStar.Tactics.Effect.TAC FStar.Stubs.Tactics.Types.proofstate | FStar.Tactics.Effect.TAC | [] | [] | [
"Prims.unit",
"FStar.Stubs.Tactics.Types.proofstate",
"FStar.Stubs.Tactics.Result.Success",
"FStar.Stubs.Tactics.Result.__result"
] | [] | false | true | false | false | false | let get () : TAC proofstate (fun ps post -> post (Success ps ps)) =
| TAC?.reflect (fun ps -> Success ps ps) | false |
CSL.Semantics.fst | CSL.Semantics.commute_assoc_star_right | val commute_assoc_star_right (#st: st) (p q r s: st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s))
`st.equals`
(p `st.star` (r `st.star` (q `st.star` s)))) | val commute_assoc_star_right (#st: st) (p q r s: st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s))
`st.equals`
(p `st.star` (r `st.star` (q `st.star` s)))) | let commute_assoc_star_right (#st:st) (p q r s:st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s)) `st.equals`
(p `st.star` (r `st.star` (q `st.star` s))))
= calc (st.equals) {
p `st.star` ((q `st.star` r) `st.star` s);
(st.equals) { equals_ext_right p
((q `st.star` r) ... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 338,
"start_col": 0,
"start_line": 326
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 | p: Mkst0?.hprop st -> q: Mkst0?.hprop st -> r: Mkst0?.hprop st -> s: Mkst0?.hprop st
-> FStar.Pervasives.Lemma
(ensures
Mkst0?.equals st
(Mkst0?.star st p (Mkst0?.star st (Mkst0?.star st q r) s))
(Mkst0?.star st p (Mkst0?.star st r (Mkst0?.star st q s)))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"FStar.Calc.calc_finish",
"CSL.Semantics.__proj__Mkst0__item__equals",
"CSL.Semantics.__proj__Mkst0__item__star",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
... | [] | false | false | true | false | false | let commute_assoc_star_right (#st: st) (p q r s: st.hprop)
: Lemma
((p `st.star` ((q `st.star` r) `st.star` s))
`st.equals`
(p `st.star` (r `st.star` (q `st.star` s)))) =
| calc (st.equals) {
p `st.star` ((q `st.star` r) `st.star` s);
(st.equals) { equals_ext_right p ((q `st.star` r) `st.star` s) ((r `st.star` q) `st.star` s) }
p `st.star` ((r `st.star` q) `st.star` s);
(st.equals) { assoc_star_right p r q s }
p `st.star` (r `st.star` (q `st.star` s));
} | false |
CSL.Semantics.fst | CSL.Semantics.stronger_post_par_r | val stronger_post_par_r
(#st: st)
(#aL #aR: Type u#a)
(postL: post_t st aL)
(postR next_postR: post_t st aR)
: Lemma (requires stronger_post postR next_postR)
(ensures
forall xL xR frame h.
st.interp (((postL xL) `st.star` (next_postR xR)) `st.star` frame) h ==>
... | val stronger_post_par_r
(#st: st)
(#aL #aR: Type u#a)
(postL: post_t st aL)
(postR next_postR: post_t st aR)
: Lemma (requires stronger_post postR next_postR)
(ensures
forall xL xR frame h.
st.interp (((postL xL) `st.star` (next_postR xR)) `st.star` frame) h ==>
... | let stronger_post_par_r (#st:st) (#aL #aR:Type u#a)
(postL:post_t st aL) (postR:post_t st aR) (next_postR:post_t st aR)
: Lemma
(requires stronger_post postR next_postR)
(ensures
forall xL xR frame h.
st.interp ((postL xL `st.star` next_postR xR) `st.star` frame) h ==>
st.interp ((postL xL `st.sta... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 503,
"start_col": 0,
"start_line": 473
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 |
postL: CSL.Semantics.post_t st aL ->
postR: CSL.Semantics.post_t st aR ->
next_postR: CSL.Semantics.post_t st aR
-> FStar.Pervasives.Lemma (requires CSL.Semantics.stronger_post postR next_postR)
(ensures
forall (xL: aL) (xR: aR) (frame: Mkst0?.hprop st) (h: Mkst0?.mem st).
Mkst0?.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.post_t",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.__proj__Mkst0__item__mem",
"Prims.unit",
"CSL.Semantics.__proj__Mkst0__item__interp",
"CSL.Semantics.__proj__Mkst0__item__star",
"Prims.squash",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar... | [] | false | false | true | false | false | let stronger_post_par_r
(#st: st)
(#aL #aR: Type u#a)
(postL: post_t st aL)
(postR next_postR: post_t st aR)
: Lemma (requires stronger_post postR next_postR)
(ensures
forall xL xR frame h.
st.interp (((postL xL) `st.star` (next_postR xR)) `st.star` frame) h ==>
... | let aux xL xR frame h
: Lemma (requires st.interp (((postL xL) `st.star` (next_postR xR)) `st.star` frame) h)
(ensures st.interp (((postL xL) `st.star` (postR xR)) `st.star` frame) h)
[SMTPat ()] =
calc (st.equals) {
((postL xL) `st.star` (next_postR xR)) `st.star` frame;
(st.equals) { () }
... | false |
CSL.Semantics.fst | CSL.Semantics.preserves_frame_star | val preserves_frame_star (#st: st) (pre post: st.hprop) (m0 m1: st.mem) (frame: st.hprop)
: Lemma (requires preserves_frame pre post m0 m1)
(ensures preserves_frame (pre `st.star` frame) (post `st.star` frame) m0 m1) | val preserves_frame_star (#st: st) (pre post: st.hprop) (m0 m1: st.mem) (frame: st.hprop)
: Lemma (requires preserves_frame pre post m0 m1)
(ensures preserves_frame (pre `st.star` frame) (post `st.star` frame) m0 m1) | let preserves_frame_star (#st:st) (pre post:st.hprop) (m0 m1:st.mem) (frame:st.hprop)
: Lemma
(requires preserves_frame pre post m0 m1)
(ensures preserves_frame (pre `st.star` frame) (post `st.star` frame) m0 m1)
= let aux (frame':st.hprop)
: Lemma
(requires
st.interp (st.invariant m0 `st.star` ((... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 419,
"start_col": 0,
"start_line": 397
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 |
pre: Mkst0?.hprop st ->
post: Mkst0?.hprop st ->
m0: Mkst0?.mem st ->
m1: Mkst0?.mem st ->
frame: Mkst0?.hprop st
-> FStar.Pervasives.Lemma (requires CSL.Semantics.preserves_frame pre post m0 m1)
(ensures
CSL.Semantics.preserves_frame (Mkst0?.star st pre frame) (Mkst0?.star st post ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.__proj__Mkst0__item__mem",
"Prims.unit",
"CSL.Semantics.__proj__Mkst0__item__interp",
"CSL.Semantics.__proj__Mkst0__item__star",
"CSL.Semantics.__proj__Mkst0__item__invariant",
"Prims.squash",
"Prims.Cons",
"FStar.Perva... | [] | false | false | true | false | false | let preserves_frame_star (#st: st) (pre post: st.hprop) (m0 m1: st.mem) (frame: st.hprop)
: Lemma (requires preserves_frame pre post m0 m1)
(ensures preserves_frame (pre `st.star` frame) (post `st.star` frame) m0 m1) =
| let aux (frame': st.hprop)
: Lemma
(requires st.interp ((st.invariant m0) `st.star` ((pre `st.star` frame) `st.star` frame')) m0)
(ensures st.interp ((st.invariant m1) `st.star` ((post `st.star` frame) `st.star` frame')) m1)
[SMTPat ()] =
assoc_star_right (st.invariant m0) pre frame frame';
ap... | false |
Spec.Agile.HMAC.fsti | Spec.Agile.HMAC.lbytes | val lbytes : l: Prims.nat -> Type0 | let lbytes (l:nat) = b:bytes {Seq.length b = l} | {
"file_name": "specs/Spec.Agile.HMAC.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 8,
"start_col": 0,
"start_line": 8
} | module Spec.Agile.HMAC
open Spec.Hash.Definitions
open Lib.IntTypes
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 50" | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Agile.HMAC.fsti"
} | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"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 | l: Prims.nat -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Spec.Hash.Definitions.bytes",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Lib.IntTypes.uint8"
] | [] | false | false | false | true | true | let lbytes (l: nat) =
| b: bytes{Seq.length b = l} | false | |
CSL.Semantics.fst | CSL.Semantics.step_bind_ret_aux | val step_bind_ret_aux
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Bind? f /\ Ret? (Bind?.f f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f) | val step_bind_ret_aux
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Bind? f /\ Ret? (Bind?.f f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f) | let step_bind_ret_aux (#st:st) (#a:Type) (#pre:st.hprop) (#post:post_t st a)
(f:m st a pre post{Bind? f /\ Ret? (Bind?.f f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f)
= M.MSTATE?.reflect (fun m0 ->
match f with
| Bind (Ret p x) g -> Step (g x), m0) | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 41,
"end_line": 529,
"start_col": 0,
"start_line": 524
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.MST",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preo... | {
"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 | f: CSL.Semantics.m st a pre post {Bind? f /\ Ret? (Bind?.f f)}
-> FStar.MST.MSTATE (CSL.Semantics.step_result st a) | FStar.MST.MSTATE | [] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.post_t",
"CSL.Semantics.m",
"Prims.l_and",
"Prims.b2t",
"CSL.Semantics.uu___is_Bind",
"CSL.Semantics.uu___is_Ret",
"CSL.Semantics.__proj__Bind__item__a",
"CSL.Semantics.__proj__Bind__item__pre",
"CSL.Semantics.__proj_... | [] | false | true | false | false | false | let step_bind_ret_aux
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Bind? f /\ Ret? (Bind?.f f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f) =
| M.MSTATE?.reflect (fun m0 -> match f with | Bind (Ret p x) g -> Step (g x), m0) | false |
LowParse.Spec.Sum.fst | LowParse.Spec.Sum.parse_dsum_eq | val parse_dsum_eq
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (pars... | val parse_dsum_eq
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (pars... | let parse_dsum_eq
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (parse_dsum t p f g) input == (match pa... | {
"file_name": "src/lowparse/LowParse.Spec.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 816,
"start_col": 0,
"start_line": 776
} | module LowParse.Spec.Sum
include LowParse.Spec.Enum
module Seq = FStar.Seq
let synth_case_recip'
(#key: eqtype)
(#repr: eqtype)
(e: enum key repr)
(#data: Type)
(tag_of_data: (data -> Tot (enum_key e)))
(type_of_tag: (enum_key e -> Tot Type))
(synth_case_recip: ((k: enum_key e) -> (x: refi... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Enum.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Enum",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"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 |
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Bytes.bytes",
"LowPa... | [] | false | false | true | false | false | let parse_dsum_eq
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#k': parser_kind)
(g: parser k' (dsum_type_of_unknown_tag t))
(input: bytes)
: Lemma
(parse (pars... | parse_dsum_eq_ t p f g input;
let j = parse (parse_maybe_enum_key p (dsum_enum t)) input in
match j with
| None -> ()
| Some (k, consumed_k) ->
let input_k = Seq.slice input consumed_k (Seq.length input) in
synth_dsum_case_injective t k;
match k with
| Known k_ ->
parse_synth_eq (dsnd (f k_)) (synth_dsum_ca... | false |
CSL.Semantics.fst | CSL.Semantics.step_par_ret | val step_par_ret
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: Mst (step_result st a) (step_req f) (step_ens f) | val step_par_ret
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: Mst (step_result st a) (step_req f) (step_ens f) | let step_par_ret (#st:st) (#a:Type) (#pre:st.hprop) (#post:post_t st a)
(f:m st a pre post{Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: Mst (step_result st a) (step_req f) (step_ens f)
= NMSTATE?.reflect (fun (_, n) -> step_par_ret_aux f, n) | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 583,
"start_col": 0,
"start_line": 580
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.MST",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preo... | {
"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 | f: CSL.Semantics.m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)}
-> CSL.Semantics.Mst (CSL.Semantics.step_result st a) | CSL.Semantics.Mst | [] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.post_t",
"CSL.Semantics.m",
"Prims.l_and",
"Prims.b2t",
"CSL.Semantics.uu___is_Par",
"CSL.Semantics.uu___is_Ret",
"CSL.Semantics.__proj__Par__item__aL",
"CSL.Semantics.__proj__Par__item__preL",
"CSL.Semantics.__proj__... | [] | false | true | false | false | false | let step_par_ret
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: Mst (step_result st a) (step_req f) (step_ens f) =
| NMSTATE?.reflect (fun (_, n) -> step_par_ret_aux f, n) | false |
CSL.Semantics.fst | CSL.Semantics.step_bind_ret | val step_bind_ret
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Bind? f /\ Ret? (Bind?.f f)})
: Mst (step_result st a) (step_req f) (step_ens f) | val step_bind_ret
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Bind? f /\ Ret? (Bind?.f f)})
: Mst (step_result st a) (step_req f) (step_ens f) | let step_bind_ret (#st:st) (#a:Type) (#pre:st.hprop) (#post:post_t st a)
(f:m st a pre post{Bind? f /\ Ret? (Bind?.f f)})
: Mst (step_result st a) (step_req f) (step_ens f)
= NMSTATE?.reflect (fun (_, n) -> step_bind_ret_aux f, n) | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 57,
"end_line": 534,
"start_col": 0,
"start_line": 531
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.MST",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preo... | {
"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 | f: CSL.Semantics.m st a pre post {Bind? f /\ Ret? (Bind?.f f)}
-> CSL.Semantics.Mst (CSL.Semantics.step_result st a) | CSL.Semantics.Mst | [] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.post_t",
"CSL.Semantics.m",
"Prims.l_and",
"Prims.b2t",
"CSL.Semantics.uu___is_Bind",
"CSL.Semantics.uu___is_Ret",
"CSL.Semantics.__proj__Bind__item__a",
"CSL.Semantics.__proj__Bind__item__pre",
"CSL.Semantics.__proj_... | [] | false | true | false | false | false | let step_bind_ret
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Bind? f /\ Ret? (Bind?.f f)})
: Mst (step_result st a) (step_req f) (step_ens f) =
| NMSTATE?.reflect (fun (_, n) -> step_bind_ret_aux f, n) | false |
Hacl.HPKE.P256_CP32_SHA256.fsti | Hacl.HPKE.P256_CP32_SHA256.cs | val cs:S.ciphersuite | val cs:S.ciphersuite | let cs:S.ciphersuite = (DH.DH_P256, Hash.SHA2_256, S.Seal AEAD.CHACHA20_POLY1305, Hash.SHA2_256) | {
"file_name": "code/hpke/Hacl.HPKE.P256_CP32_SHA256.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 96,
"end_line": 10,
"start_col": 0,
"start_line": 10
} | module Hacl.HPKE.P256_CP32_SHA256
open Hacl.Impl.HPKE
module S = Spec.Agile.HPKE
module DH = Spec.Agile.DH
module AEAD = Spec.Agile.AEAD
module Hash = Spec.Agile.Hash | {
"checked_file": "/",
"dependencies": [
"Spec.Agile.HPKE.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"Spec.Agile.DH.fst.checked",
"Spec.Agile.AEAD.fsti.checked",
"prims.fst.checked",
"Hacl.Impl.HPKE.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.chec... | [
{
"abbrev": true,
"full_module": "Spec.Agile.Hash",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Spec.Agile.AEAD",
"short_module": "AEAD"
},
{
"abbrev": true,
"full_module": "Spec.Agile.DH",
"short_module": "DH"
},
{
"abbrev": true,
"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 | Spec.Agile.HPKE.ciphersuite | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.Mktuple4",
"Spec.Agile.DH.algorithm",
"Spec.Agile.HPKE.hash_algorithm",
"Spec.Agile.HPKE.aead",
"Spec.Hash.Definitions.hash_alg",
"Spec.Agile.DH.DH_P256",
"Spec.Hash.Definitions.SHA2_256",
"Spec.Agile.HPKE.Seal",
"Spec.Agile.AEAD.CHACHA20_POLY1305"
] | [] | false | false | false | true | false | let cs:S.ciphersuite =
| (DH.DH_P256, Hash.SHA2_256, S.Seal AEAD.CHACHA20_POLY1305, Hash.SHA2_256) | false |
CSL.Semantics.fst | CSL.Semantics.par_weaker_lpre_and_stronger_lpost_r | val par_weaker_lpre_and_stronger_lpost_r
(#st: st)
(preL: st.hprop)
(#aL: Type)
(postL: post_t st aL)
(preR: st.hprop)
(#aR: Type)
(postR: post_t st aR)
(next_preR: st.hprop)
(next_postR: post_t st aR)
(state next_state: st.mem)
: Lemma
(requires
... | val par_weaker_lpre_and_stronger_lpost_r
(#st: st)
(preL: st.hprop)
(#aL: Type)
(postL: post_t st aL)
(preR: st.hprop)
(#aR: Type)
(postR: post_t st aR)
(next_preR: st.hprop)
(next_postR: post_t st aR)
(state next_state: st.mem)
: Lemma
(requires
... | let par_weaker_lpre_and_stronger_lpost_r (#st:st)
(preL:st.hprop) (#aL:Type) (postL:post_t st aL)
(preR:st.hprop) (#aR:Type) (postR:post_t st aR)
(next_preR:st.hprop) (next_postR:post_t st aR)
(state next_state:st.mem)
: Lemma
(requires
preserves_frame preR next_preR state next_state /\
st.interp ((pr... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 470,
"start_col": 0,
"start_line": 450
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 |
preL: Mkst0?.hprop st ->
postL: CSL.Semantics.post_t st aL ->
preR: Mkst0?.hprop st ->
postR: CSL.Semantics.post_t st aR ->
next_preR: Mkst0?.hprop st ->
next_postR: CSL.Semantics.post_t st aR ->
state: Mkst0?.mem st ->
next_state: Mkst0?.mem st
-> FStar.Pervasives.Lemma
(requir... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.post_t",
"CSL.Semantics.__proj__Mkst0__item__mem",
"CSL.Semantics.apply_interp_ext",
"CSL.Semantics.__proj__Mkst0__item__star",
"CSL.Semantics.__proj__Mkst0__item__invariant",
"Prims.unit",
"CSL.Semantics.commute_star_rig... | [] | true | false | true | false | false | let par_weaker_lpre_and_stronger_lpost_r
(#st: st)
(preL: st.hprop)
(#aL: Type)
(postL: post_t st aL)
(preR: st.hprop)
(#aR: Type)
(postR: post_t st aR)
(next_preR: st.hprop)
(next_postR: post_t st aR)
(state next_state: st.mem)
: Lemma
(requires
... | commute_star_right (st.invariant state) preL preR;
apply_interp_ext ((st.invariant state) `st.star` (preL `st.star` preR))
((st.invariant state) `st.star` (preR `st.star` preL))
state;
commute_star_right (st.invariant next_state) next_preR preL;
apply_interp_ext ((st.invariant next_state) `st.star` (next_preR `st.s... | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_code_ShiftKey1_128 | val va_code_ShiftKey1_128 : va_dummy:unit -> Tot va_code | val va_code_ShiftKey1_128 : va_dummy:unit -> Tot va_code | let va_code_ShiftKey1_128 () =
(va_Block (va_CCons (va_code_Mov128 (va_op_xmm_xmm 1) (va_op_xmm_xmm 3)) (va_CCons
(va_code_ShiftLeft128_1 ()) (va_CCons (va_code_PolyAnd (va_op_xmm_xmm 3) (va_op_xmm_xmm 5))
(va_CCons (va_code_Pcmpeqd (va_op_xmm_xmm 3) (va_op_xmm_xmm 5)) (va_CCons (va_code_Pshufd
(va_op_xmm... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 44,
"start_col": 0,
"start_line": 38
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | va_dummy: Prims.unit -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Mov128",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.AES.X64.GF128_Mul.va_code_ShiftLeft128_1",
"Vale.AES.X64.PolyOps.va_code_PolyAnd",
"Vale.X64.InsVector.va_code_Pcmpeqd",
"Vale.X64.InsVector.va_code_Pshufd",... | [] | false | false | false | true | false | let va_code_ShiftKey1_128 () =
| (va_Block (va_CCons (va_code_Mov128 (va_op_xmm_xmm 1) (va_op_xmm_xmm 3))
(va_CCons (va_code_ShiftLeft128_1 ())
(va_CCons (va_code_PolyAnd (va_op_xmm_xmm 3) (va_op_xmm_xmm 5))
(va_CCons (va_code_Pcmpeqd (va_op_xmm_xmm 3) (va_op_xmm_xmm 5))
(va_CCons (va_code_Pshufd... | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_code_ShiftKey1_gf128_power | val va_code_ShiftKey1_gf128_power : va_dummy:unit -> Tot va_code | val va_code_ShiftKey1_gf128_power : va_dummy:unit -> Tot va_code | let va_code_ShiftKey1_gf128_power () =
(va_Block (va_CCons (va_code_ZeroXmm (va_op_xmm_xmm 4)) (va_CCons (va_code_ZeroXmm (va_op_xmm_xmm
5)) (va_CCons (va_code_PinsrdImm (va_op_xmm_xmm 4) 3254779904 3 (va_op_reg_opr64_reg64 rR12))
(va_CCons (va_code_PinsrdImm (va_op_xmm_xmm 4) 1 0 (va_op_reg_opr64_reg64 rR12)... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 178,
"start_col": 0,
"start_line": 173
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | va_dummy: Prims.unit -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_ZeroXmm",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_code_PinsrdImm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR12",
"Vale.AES.X64.GF128_Init.va_code_ShiftKey1_128",
"Val... | [] | false | false | false | true | false | let va_code_ShiftKey1_gf128_power () =
| (va_Block (va_CCons (va_code_ZeroXmm (va_op_xmm_xmm 4))
(va_CCons (va_code_ZeroXmm (va_op_xmm_xmm 5))
(va_CCons (va_code_PinsrdImm (va_op_xmm_xmm 4) 3254779904 3 (va_op_reg_opr64_reg64 rR12)
)
(va_CCons (va_code_PinsrdImm (va_op_xmm_xmm 4) 1 0 (va_op_reg_opr64_reg64 r... | false |
CSL.Semantics.fst | CSL.Semantics.preserves_frame_stronger_post | val preserves_frame_stronger_post
(#st: st)
(#a: Type)
(pre: st.hprop)
(post post_s: post_t st a)
(x: a)
(m1 m2: st.mem)
: Lemma (requires preserves_frame pre (post_s x) m1 m2 /\ stronger_post post post_s)
(ensures preserves_frame pre (post x) m1 m2) | val preserves_frame_stronger_post
(#st: st)
(#a: Type)
(pre: st.hprop)
(post post_s: post_t st a)
(x: a)
(m1 m2: st.mem)
: Lemma (requires preserves_frame pre (post_s x) m1 m2 /\ stronger_post post post_s)
(ensures preserves_frame pre (post x) m1 m2) | let preserves_frame_stronger_post (#st:st) (#a:Type)
(pre:st.hprop) (post post_s:post_t st a) (x:a)
(m1 m2:st.mem)
: Lemma
(requires preserves_frame pre (post_s x) m1 m2 /\ stronger_post post post_s)
(ensures preserves_frame pre (post x) m1 m2)
= let aux (frame:st.hprop)
: Lemma
(requires st.interp (s... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 393,
"start_col": 0,
"start_line": 359
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "CSL"... | {
"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 |
pre: Mkst0?.hprop st ->
post: CSL.Semantics.post_t st a ->
post_s: CSL.Semantics.post_t st a ->
x: a ->
m1: Mkst0?.mem st ->
m2: Mkst0?.mem st
-> FStar.Pervasives.Lemma
(requires
CSL.Semantics.preserves_frame pre (post_s x) m1 m2 /\
CSL.Semantics.stronger_post post post_... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.post_t",
"CSL.Semantics.__proj__Mkst0__item__mem",
"Prims.unit",
"CSL.Semantics.__proj__Mkst0__item__interp",
"CSL.Semantics.__proj__Mkst0__item__star",
"CSL.Semantics.__proj__Mkst0__item__invariant",
"Prims.squash",
"P... | [] | false | false | true | false | false | let preserves_frame_stronger_post
(#st: st)
(#a: Type)
(pre: st.hprop)
(post post_s: post_t st a)
(x: a)
(m1 m2: st.mem)
: Lemma (requires preserves_frame pre (post_s x) m1 m2 /\ stronger_post post post_s)
(ensures preserves_frame pre (post x) m1 m2) =
| let aux (frame: st.hprop)
: Lemma (requires st.interp ((st.invariant m1) `st.star` (pre `st.star` frame)) m1)
(ensures st.interp ((st.invariant m2) `st.star` ((post x) `st.star` frame)) m2)
[SMTPat ()] =
assert (st.interp ((st.invariant m2) `st.star` ((post_s x) `st.star` frame)) m2);
calc (st.equal... | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_wp_ShiftKey1_128 | val va_wp_ShiftKey1_128 (f: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | val va_wp_ShiftKey1_128 (f: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | let va_wp_ShiftKey1_128 (f:poly) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (let (h:Vale.Math.Poly2_s.poly) = Vale.Math.Poly2.Bits_s.of_quad32
(va_get_xmm 3 va_s0) in let (h1:Vale.Math.Poly2_s.poly) = Vale.Math.Poly2_s.shift h 1 in let
(offset:Vale.Math.Poly2_s.poly) = V... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 85,
"end_line": 146,
"start_col": 0,
"start_line": 133
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 |
f: Vale.Math.Poly2_s.poly ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.avx_enabled",
"Vale.X64.CPU_Features_s.sse_enabled",
"Prims.eq2",
"Vale.Math.Poly2.Bits_s.of_quad32",
"Vale.X64.Decls.va_get_xmm",
"Vale.Math.Poly... | [] | false | false | false | true | true | let va_wp_ShiftKey1_128 (f: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
| (va_get_ok va_s0 /\
(let h:Vale.Math.Poly2_s.poly = Vale.Math.Poly2.Bits_s.of_quad32 (va_get_xmm 3 va_s0) in
let h1:Vale.Math.Poly2_s.poly = Vale.Math.Poly2_s.shift h 1 in
let offset:Vale.Math.Poly2_s.poly = Vale.Math.Poly2.Bits_s.of_quad32 (va_get_xmm 4 va_s0) in
avx_enabled /\ sse_enabled /\
Vale.Ma... | false |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.ecdsa_verify_avoid_finv1 | val ecdsa_verify_avoid_finv1:
p:proj_point{not (is_proj_point_at_inf p)} -> r:nat{0 < r /\ r < q} ->
Lemma (let _X, _Y, _Z = p in
(_X /% _Z % q = r) ==> ((r *% _Z = _X) || (r + q < prime && (r + q) *% _Z = _X))) | val ecdsa_verify_avoid_finv1:
p:proj_point{not (is_proj_point_at_inf p)} -> r:nat{0 < r /\ r < q} ->
Lemma (let _X, _Y, _Z = p in
(_X /% _Z % q = r) ==> ((r *% _Z = _X) || (r + q < prime && (r + q) *% _Z = _X))) | let ecdsa_verify_avoid_finv1 p r =
let _X, _Y, _Z = p in
let x = _X /% _Z in
assert_norm (prime < 2 * q);
assert_norm (q < prime);
if x < q then begin
Math.Lemmas.small_mod x q;
assert ((x % q = r) == (x = r));
assert (r < prime /\ _X < prime /\ _Z < prime /\ _Z <> 0);
lemma_div_mod_eq_mul_mo... | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 113,
"start_col": 0,
"start_line": 92
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime)
let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": false,
"full_module": "Spec.K256.PointOps",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"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 |
p: Spec.K256.PointOps.proj_point{Prims.op_Negation (Spec.K256.PointOps.is_proj_point_at_inf p)} ->
r: Prims.nat{0 < r /\ r < Spec.K256.PointOps.q}
-> FStar.Pervasives.Lemma
(ensures
(let _ = p in
(let FStar.Pervasives.Native.Mktuple3 #_ #_ #_ _X _ _Z = _ in
_X /% _Z % Spec.K256.Po... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.K256.PointOps.proj_point",
"Prims.b2t",
"Prims.op_Negation",
"Spec.K256.PointOps.is_proj_point_at_inf",
"Prims.nat",
"Prims.l_and",
"Prims.op_LessThan",
"Spec.K256.PointOps.q",
"Spec.K256.PointOps.felem",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.bool",
"Prims.op_Equality",
... | [] | false | false | true | false | false | let ecdsa_verify_avoid_finv1 p r =
| let _X, _Y, _Z = p in
let x = _X /% _Z in
assert_norm (prime < 2 * q);
assert_norm (q < prime);
if x < q
then
(Math.Lemmas.small_mod x q;
assert ((x % q = r) == (x = r));
assert (r < prime /\ _X < prime /\ _Z < prime /\ _Z <> 0);
lemma_div_mod_eq_mul_mod _X _Z r;
assert ((x % q = r) == (r *% _Z = _X))... | false |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.lemma_div_mod_eq_mul_mod | val lemma_div_mod_eq_mul_mod (a b c:felem) : Lemma
(requires b <> 0)
(ensures (a *% finv b = c) == (a = c *% b)) | val lemma_div_mod_eq_mul_mod (a b c:felem) : Lemma
(requires b <> 0)
(ensures (a *% finv b = c) == (a = c *% b)) | let lemma_div_mod_eq_mul_mod a b c =
prime_lemma ();
M.lemma_div_mod_eq_mul_mod #prime a b c | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 84,
"start_col": 0,
"start_line": 82
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime)
let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": false,
"full_module": "Spec.K256.PointOps",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"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 | a: Spec.K256.PointOps.felem -> b: Spec.K256.PointOps.felem -> c: Spec.K256.PointOps.felem
-> FStar.Pervasives.Lemma (requires b <> 0)
(ensures a *% Spec.K256.PointOps.finv b = c == (a = c *% b)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.K256.PointOps.felem",
"Lib.NatMod.lemma_div_mod_eq_mul_mod",
"Spec.K256.PointOps.prime",
"Prims.unit",
"Spec.K256.Lemmas.prime_lemma"
] | [] | true | false | true | false | false | let lemma_div_mod_eq_mul_mod a b c =
| prime_lemma ();
M.lemma_div_mod_eq_mul_mod #prime a b c | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_codegen_success_ShiftKey1_128 | val va_codegen_success_ShiftKey1_128 : va_dummy:unit -> Tot va_pbool | val va_codegen_success_ShiftKey1_128 : va_dummy:unit -> Tot va_pbool | let va_codegen_success_ShiftKey1_128 () =
(va_pbool_and (va_codegen_success_Mov128 (va_op_xmm_xmm 1) (va_op_xmm_xmm 3)) (va_pbool_and
(va_codegen_success_ShiftLeft128_1 ()) (va_pbool_and (va_codegen_success_PolyAnd (va_op_xmm_xmm
3) (va_op_xmm_xmm 5)) (va_pbool_and (va_codegen_success_Pcmpeqd (va_op_xmm_xmm 3... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 55,
"start_col": 0,
"start_line": 48
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | va_dummy: Prims.unit -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Mov128",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.AES.X64.GF128_Mul.va_codegen_success_ShiftLeft128_1",
"Vale.AES.X64.PolyOps.va_codegen_success_PolyAnd",
"Vale.X64.InsVector.va_codegen_success_Pcmpeqd",
"Vale.X64.InsVect... | [] | false | false | false | true | false | let va_codegen_success_ShiftKey1_128 () =
| (va_pbool_and (va_codegen_success_Mov128 (va_op_xmm_xmm 1) (va_op_xmm_xmm 3))
(va_pbool_and (va_codegen_success_ShiftLeft128_1 ())
(va_pbool_and (va_codegen_success_PolyAnd (va_op_xmm_xmm 3) (va_op_xmm_xmm 5))
(va_pbool_and (va_codegen_success_Pcmpeqd (va_op_xmm_xmm 3) (va_op_xmm_xmm 5))
... | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_codegen_success_ShiftKey1_gf128_power | val va_codegen_success_ShiftKey1_gf128_power : va_dummy:unit -> Tot va_pbool | val va_codegen_success_ShiftKey1_gf128_power : va_dummy:unit -> Tot va_pbool | let va_codegen_success_ShiftKey1_gf128_power () =
(va_pbool_and (va_codegen_success_ZeroXmm (va_op_xmm_xmm 4)) (va_pbool_and
(va_codegen_success_ZeroXmm (va_op_xmm_xmm 5)) (va_pbool_and (va_codegen_success_PinsrdImm
(va_op_xmm_xmm 4) 3254779904 3 (va_op_reg_opr64_reg64 rR12)) (va_pbool_and
(va_codegen_suc... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 75,
"end_line": 188,
"start_col": 0,
"start_line": 182
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | va_dummy: Prims.unit -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_ZeroXmm",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsVector.va_codegen_success_PinsrdImm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR12",
"Vale.AES.X64.GF128_Init.va_codegen_success_ShiftKey1_128"... | [] | false | false | false | true | false | let va_codegen_success_ShiftKey1_gf128_power () =
| (va_pbool_and (va_codegen_success_ZeroXmm (va_op_xmm_xmm 4))
(va_pbool_and (va_codegen_success_ZeroXmm (va_op_xmm_xmm 5))
(va_pbool_and (va_codegen_success_PinsrdImm (va_op_xmm_xmm 4)
3254779904
3
(va_op_reg_opr64_reg64 rR12))
(va_pbool_and (va_cod... | false |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.to_aff_point_at_infinity_lemma | val to_aff_point_at_infinity_lemma: unit ->
Lemma (to_aff_point point_at_inf == aff_point_at_inf) | val to_aff_point_at_infinity_lemma: unit ->
Lemma (to_aff_point point_at_inf == aff_point_at_inf) | let to_aff_point_at_infinity_lemma () =
let px, py = to_aff_point point_at_inf in
assert (px == zero /% zero /\ py == one /% zero);
assert (px == zero *% M.pow_mod #prime zero (prime - 2));
M.lemma_pow_mod #prime zero (prime - 2);
assert (px == zero *% (M.pow zero (prime - 2) % prime));
M.lemma_pow_zero (pr... | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 52,
"start_col": 0,
"start_line": 45
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime)
let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "LM"
},
{
"abbrev": false,
"full_module": "Sp... | {
"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 | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Spec.K256.PointOps.to_aff_point Spec.K256.PointOps.point_at_inf ==
Spec.K256.PointOps.aff_point_at_inf) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.unit",
"Spec.K256.PointOps.felem",
"Prims._assert",
"Prims.l_and",
"Prims.eq2",
"Spec.K256.PointOps.zero",
"Lib.NatMod.lemma_pow_zero",
"Prims.op_Subtraction",
"Spec.K256.PointOps.prime",
"Spec.K256.PointOps.op_Star_Percent",
"Prims.op_Modulus",
"Lib.NatMod.pow",
"Lib.NatMod.lemma_pow... | [] | false | false | true | false | false | let to_aff_point_at_infinity_lemma () =
| let px, py = to_aff_point point_at_inf in
assert (px == zero /% zero /\ py == one /% zero);
assert (px == zero *% M.pow_mod #prime zero (prime - 2));
M.lemma_pow_mod #prime zero (prime - 2);
assert (px == zero *% (M.pow zero (prime - 2) % prime));
M.lemma_pow_zero (prime - 2);
assert (px == zero /\ py == zero) | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_code_Gf128_powers | val va_code_Gf128_powers : va_dummy:unit -> Tot va_code | val va_code_Gf128_powers : va_dummy:unit -> Tot va_code | let va_code_Gf128_powers () =
(va_Block (va_CCons (va_code_Mov128 (va_op_xmm_xmm 0) (va_op_xmm_xmm 6)) (va_CCons (va_code_Mov64
(va_op_dst_opr64_reg64 rRax) (va_op_opr64_reg64 rR12)) (va_CCons (va_code_Load128_buffer
(va_op_heaplet_mem_heaplet 1) (va_op_xmm_xmm 1) (va_op_reg_opr64_reg64 rRcx) 32 Secret)
(... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 331,
"start_col": 0,
"start_line": 292
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | va_dummy: Prims.unit -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Mov128",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsBasic.va_code_Mov64",
"Vale.X64.Decls.va_op_dst_opr64_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.Decls.va_op_opr64_reg64",
"Vale.X64.Machine_s.rR1... | [] | false | false | false | true | false | let va_code_Gf128_powers () =
| (va_Block (va_CCons (va_code_Mov128 (va_op_xmm_xmm 0) (va_op_xmm_xmm 6))
(va_CCons (va_code_Mov64 (va_op_dst_opr64_reg64 rRax) (va_op_opr64_reg64 rR12))
(va_CCons (va_code_Load128_buffer (va_op_heaplet_mem_heaplet 1)
(va_op_xmm_xmm 1)
(va_op_reg_opr64_reg64 rR... | false |
Spec.K256.Lemmas.fst | Spec.K256.Lemmas.ecdsa_verify_avoid_finv2 | val ecdsa_verify_avoid_finv2:
p:proj_point{not (is_proj_point_at_inf p)} -> r:nat{0 < r /\ r < q} ->
Lemma (let _X, _Y, _Z = p in
((r *% _Z = _X) || (r + q < prime && (r + q) *% _Z = _X)) ==> (_X /% _Z % q = r)) | val ecdsa_verify_avoid_finv2:
p:proj_point{not (is_proj_point_at_inf p)} -> r:nat{0 < r /\ r < q} ->
Lemma (let _X, _Y, _Z = p in
((r *% _Z = _X) || (r + q < prime && (r + q) *% _Z = _X)) ==> (_X /% _Z % q = r)) | let ecdsa_verify_avoid_finv2 p r =
let _X, _Y, _Z = p in
let x = _X /% _Z in
assert_norm (prime < 2 * q);
assert_norm (q < prime);
if r *% _Z = _X then begin
lemma_div_mod_eq_mul_mod _X _Z r;
Math.Lemmas.small_mod x q;
assert (r = x % q) end
else begin
if r + q < prime && (r + q) *% _Z = _X... | {
"file_name": "specs/lemmas/Spec.K256.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 138,
"start_col": 0,
"start_line": 121
} | module Spec.K256.Lemmas
open FStar.Mul
open Spec.K256.PointOps
module Euclid = FStar.Math.Euclid
module M = Lib.NatMod
#set-options "--z3rlimit 50 --ifuel 0 --fuel 0"
assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime)
let lemma_aff_is_point_at_inf p =
prime_lemma ();
let (px, py, pz) = p in
M.lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.PointOps.fst.checked",
"prims.fst.checked",
"Lib.NatMod.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Euclid.fsti.checked... | [
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": false,
"full_module": "Spec.K256.PointOps",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"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 |
p: Spec.K256.PointOps.proj_point{Prims.op_Negation (Spec.K256.PointOps.is_proj_point_at_inf p)} ->
r: Prims.nat{0 < r /\ r < Spec.K256.PointOps.q}
-> FStar.Pervasives.Lemma
(ensures
(let _ = p in
(let FStar.Pervasives.Native.Mktuple3 #_ #_ #_ _X _ _Z = _ in
r *% _Z = _X ||
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.K256.PointOps.proj_point",
"Prims.b2t",
"Prims.op_Negation",
"Spec.K256.PointOps.is_proj_point_at_inf",
"Prims.nat",
"Prims.l_and",
"Prims.op_LessThan",
"Spec.K256.PointOps.q",
"Spec.K256.PointOps.felem",
"Prims.op_Equality",
"Spec.K256.PointOps.op_Star_Percent",
"Prims._assert",
"Prim... | [] | false | false | true | false | false | let ecdsa_verify_avoid_finv2 p r =
| let _X, _Y, _Z = p in
let x = _X /% _Z in
assert_norm (prime < 2 * q);
assert_norm (q < prime);
if r *% _Z = _X
then
(lemma_div_mod_eq_mul_mod _X _Z r;
Math.Lemmas.small_mod x q;
assert (r = x % q))
else
if r + q < prime && (r + q) *% _Z = _X
then
(lemma_div_mod_eq_mul_mod _X _Z (r + q);
assert ... | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_wp_Gf128_powers | val va_wp_Gf128_powers
(h: poly)
(hkeys_b: buffer128)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_Gf128_powers
(h: poly)
(hkeys_b: buffer128)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_Gf128_powers (h:poly) (hkeys_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit ->
Type0)) : Type0 =
(va_get_ok va_s0 /\ (pclmulqdq_enabled /\ avx_enabled /\ sse_enabled) /\
Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0) (va_get_reg64 rRcx va_s0) hkeys_b
8 (va_get_mem_layout va_s0... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 611,
"start_col": 0,
"start_line": 583
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 |
h: Vale.Math.Poly2_s.poly ->
hkeys_b: Vale.X64.Memory.buffer128 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Vale.X64.Memory.buffer128",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.pclmulqdq_enabled",
"Vale.X64.CPU_Features_s.avx_enabled",
"Vale.X64.CPU_Features_s.sse_enabled",
"Vale.X64.Decls.valid... | [] | false | false | false | true | true | let va_wp_Gf128_powers
(h: poly)
(hkeys_b: buffer128)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\ (pclmulqdq_enabled /\ avx_enabled /\ sse_enabled) /\
Vale.X64.Decls.validDstAddrs128 (va_get_mem_heaplet 1 va_s0)
(va_get_reg64 rRcx va_s0)
hkeys_b
8
(va_get_mem_layout va_s0)
Secret /\
Vale.Math.Poly2.Bits_s.of_quad32 (Vale.X64.Decls.buffer128_read hkeys_b
2
... | false |
HoareSTPolyBind.fst | HoareSTPolyBind.returnc | val returnc (a: Type) (x: a) : repr a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1) | val returnc (a: Type) (x: a) : repr a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1) | let returnc (a:Type) (x:a)
: repr a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1)
= fun _ -> x | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 46,
"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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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: Type -> x: a
-> HoareSTPolyBind.repr a (fun _ -> Prims.l_True) (fun h0 r h1 -> r == x /\ h0 == h1) | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"HoareSTPolyBind.repr",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2"
] | [] | false | false | false | false | false | let returnc (a: Type) (x: a) : repr a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1) =
| fun _ -> x | false |
CSL.Semantics.fst | CSL.Semantics.step_par_ret_aux | val step_par_ret_aux
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f) | val step_par_ret_aux
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f) | let step_par_ret_aux (#st:st) (#a:Type) (#pre:st.hprop) (#post:post_t st a)
(f:m st a pre post{Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f)
= M.MSTATE?.reflect (fun m0 ->
let Par (Ret pL xL) (Ret pR xR) = f in
Step (Ret (fun (xL, xR... | {
"file_name": "share/steel/examples/steel/CSL.Semantics.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 68,
"end_line": 578,
"start_col": 0,
"start_line": 573
} | (*
Copyright 2020 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": [
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMST.fst.checked",
"FStar.MST.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.MST",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "FStar.NMST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preo... | {
"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 | f: CSL.Semantics.m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)}
-> FStar.MST.MSTATE (CSL.Semantics.step_result st a) | FStar.MST.MSTATE | [] | [] | [
"CSL.Semantics.st",
"CSL.Semantics.__proj__Mkst0__item__hprop",
"CSL.Semantics.post_t",
"CSL.Semantics.m",
"Prims.l_and",
"Prims.b2t",
"CSL.Semantics.uu___is_Par",
"CSL.Semantics.uu___is_Ret",
"CSL.Semantics.__proj__Par__item__aL",
"CSL.Semantics.__proj__Par__item__preL",
"CSL.Semantics.__proj__... | [] | false | true | false | false | false | let step_par_ret_aux
(#st: st)
(#a: Type)
(#pre: st.hprop)
(#post: post_t st a)
(f: m st a pre post {Par? f /\ Ret? (Par?.mL f) /\ Ret? (Par?.mR f)})
: M.MSTATE (step_result st a) st.mem st.evolves (step_req f) (step_ens f) =
| M.MSTATE?.reflect (fun m0 ->
let Par (Ret pL xL) (Ret pR xR) = f in
Step (Ret (fun (xL, xR) -> (pL xL) `st.star` (pR xR)) (xL, xR)), m0) | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_codegen_success_Gf128_powers | val va_codegen_success_Gf128_powers : va_dummy:unit -> Tot va_pbool | val va_codegen_success_Gf128_powers : va_dummy:unit -> Tot va_pbool | let va_codegen_success_Gf128_powers () =
(va_pbool_and (va_codegen_success_Mov128 (va_op_xmm_xmm 0) (va_op_xmm_xmm 6)) (va_pbool_and
(va_codegen_success_Mov64 (va_op_dst_opr64_reg64 rRax) (va_op_opr64_reg64 rR12)) (va_pbool_and
(va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 1) (va_op_xmm_xmm 1)... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 380,
"start_col": 0,
"start_line": 335
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | va_dummy: Prims.unit -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Mov128",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.InsBasic.va_codegen_success_Mov64",
"Vale.X64.Decls.va_op_dst_opr64_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.Decls.va_op_opr64_reg64",
"Vale.X64.Machine_s.rR12",... | [] | false | false | false | true | false | let va_codegen_success_Gf128_powers () =
| (va_pbool_and (va_codegen_success_Mov128 (va_op_xmm_xmm 0) (va_op_xmm_xmm 6))
(va_pbool_and (va_codegen_success_Mov64 (va_op_dst_opr64_reg64 rRax) (va_op_opr64_reg64 rR12))
(va_pbool_and (va_codegen_success_Load128_buffer (va_op_heaplet_mem_heaplet 1)
(va_op_xmm_xmm 1)
(va_op... | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_wp_ShiftKey1_gf128_power | val va_wp_ShiftKey1_gf128_power
(h: poly)
(n: nat)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_ShiftKey1_gf128_power
(h: poly)
(n: nat)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_ShiftKey1_gf128_power (h:poly) (n:nat) (va_s0:va_state) (va_k:(va_state -> unit ->
Type0)) : Type0 =
(va_get_ok va_s0 /\ (let (hn:Vale.Math.Poly2_s.poly) = Vale.Math.Poly2.Bits_s.of_quad32
(va_get_xmm 3 va_s0) in avx_enabled /\ sse_enabled /\ hn == Vale.AES.GHash.g_power h n) /\
(forall (va_x_efl:... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 258,
"start_col": 0,
"start_line": 248
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 |
h: Vale.Math.Poly2_s.poly ->
n: Prims.nat ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Prims.nat",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.avx_enabled",
"Vale.X64.CPU_Features_s.sse_enabled",
"Prims.eq2",
"Vale.AES.GHash.g_power",
"Vale.Math.Poly2.Bits_s.of_quad32",
"Va... | [] | false | false | false | true | true | let va_wp_ShiftKey1_gf128_power
(h: poly)
(n: nat)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\
(let hn:Vale.Math.Poly2_s.poly = Vale.Math.Poly2.Bits_s.of_quad32 (va_get_xmm 3 va_s0) in
avx_enabled /\ sse_enabled /\ hn == Vale.AES.GHash.g_power h n) /\
(forall (va_x_efl: Vale.X64.Flags.t)
(va_x_r12: nat64)
(va_x_xmm1: quad32)
(va_x_xmm2: quad32)
(va_x_xmm3: quad... | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_code_Keyhash_init | val va_code_Keyhash_init : win:bool -> alg:algorithm -> Tot va_code | val va_code_Keyhash_init : win:bool -> alg:algorithm -> Tot va_code | let va_code_Keyhash_init win alg =
(va_Block (va_CCons (va_code_CreateHeaplets ()) (va_CCons (va_code_InitPshufbMask (va_op_xmm_xmm
4) (va_op_reg_opr64_reg64 rR8)) (va_CCons (va_code_ZeroXmm (va_op_xmm_xmm 0)) (va_CCons (if win
then va_Block (va_CCons (va_code_Store128_buffer (va_op_heaplet_mem_heaplet 1)
... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 662,
"start_col": 0,
"start_line": 647
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | win: Prims.bool -> alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsMem.va_code_CreateHeaplets",
"Vale.X64.InsVector.va_code_InitPshufbMask",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR8",
"Vale.X64.... | [] | false | false | false | true | false | let va_code_Keyhash_init win alg =
| (va_Block (va_CCons (va_code_CreateHeaplets ())
(va_CCons (va_code_InitPshufbMask (va_op_xmm_xmm 4) (va_op_reg_opr64_reg64 rR8))
(va_CCons (va_code_ZeroXmm (va_op_xmm_xmm 0))
(va_CCons (if win
then
va_Block (va_CCons (va_code_Store128_buf... | false |
HoareSTPolyBind.fst | HoareSTPolyBind.get | val get: Prims.unit -> HoareST heap (fun _ -> True) (fun h0 h h1 -> h0 == h1 /\ h == h1) | val get: Prims.unit -> HoareST heap (fun _ -> True) (fun h0 h h1 -> h0 == h1 /\ h == h1) | let get ()
: HoareST heap
(fun _ -> True)
(fun h0 h h1 -> h0 == h1 /\ h == h1)
= HoareST?.reflect get | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 137,
"start_col": 0,
"start_line": 133
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | _: Prims.unit -> HoareSTPolyBind.HoareST FStar.Monotonic.Heap.heap | HoareSTPolyBind.HoareST | [] | [] | [
"Prims.unit",
"FStar.ST.get",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2"
] | [] | false | true | false | false | false | let get () : HoareST heap (fun _ -> True) (fun h0 h h1 -> h0 == h1 /\ h == h1) =
| HoareST?.reflect get | false |
HoareSTPolyBind.fst | HoareSTPolyBind.test | val test: Prims.unit -> HoareST int (fun _ -> True) (fun _ r _ -> r == 1) | val test: Prims.unit -> HoareST int (fun _ -> True) (fun _ r _ -> r == 1) | let test () : HoareST int (fun _ -> True) (fun _ r _ -> r == 1)
= f 0 | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 200,
"start_col": 0,
"start_line": 199
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | _: Prims.unit -> HoareSTPolyBind.HoareST Prims.int | HoareSTPolyBind.HoareST | [] | [] | [
"Prims.unit",
"HoareSTPolyBind.f",
"Prims.int",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.eq2"
] | [] | false | true | false | false | false | let test () : HoareST int (fun _ -> True) (fun _ r _ -> r == 1) =
| f 0 | false |
HoareSTPolyBind.fst | HoareSTPolyBind.test2 | val test2: Prims.unit -> HoareST int (fun _ -> True) (fun _ _ _ -> True) | val test2: Prims.unit -> HoareST int (fun _ -> True) (fun _ _ _ -> True) | let test2 () : HoareST int (fun _ -> True) (fun _ _ _ -> True)
= g 2 (f 0) | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 207,
"start_col": 0,
"start_line": 206
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "... | {
"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 | _: Prims.unit -> HoareSTPolyBind.HoareST Prims.int | HoareSTPolyBind.HoareST | [] | [] | [
"Prims.unit",
"HoareSTPolyBind.g",
"Prims.int",
"HoareSTPolyBind.f",
"FStar.Monotonic.Heap.heap",
"Prims.l_True"
] | [] | false | true | false | false | false | let test2 () : HoareST int (fun _ -> True) (fun _ _ _ -> True) =
| g 2 (f 0) | false |
HoareSTPolyBind.fst | HoareSTPolyBind.bind | val bind
(a b: Type)
(#pre_f: pre_t)
(#post_f: post_t a)
(#pre_g: (a -> pre_t))
(#post_g: (a -> post_t b))
(f: repr a pre_f post_f)
(g: (x: a -> repr b (pre_g x) (post_g x)))
: repr b
(fun h0 -> pre_f h0 /\ (forall (x: a) (h1: heap). post_f h0 x h1 ==> pre_g x h1))
... | val bind
(a b: Type)
(#pre_f: pre_t)
(#post_f: post_t a)
(#pre_g: (a -> pre_t))
(#post_g: (a -> post_t b))
(f: repr a pre_f post_f)
(g: (x: a -> repr b (pre_g x) (post_g x)))
: repr b
(fun h0 -> pre_f h0 /\ (forall (x: a) (h1: heap). post_f h0 x h1 ==> pre_g x h1))
... | let bind (a:Type) (b:Type)
(#pre_f:pre_t) (#post_f:post_t a) (#pre_g:a -> pre_t) (#post_g:a -> post_t b)
(f:repr a pre_f post_f) (g:(x:a -> repr b (pre_g x) (post_g x)))
: repr b
(fun h0 -> pre_f h0 /\ (forall (x:a) (h1:heap). post_f h0 x h1 ==> pre_g x h1))
(fun h0 y h2 -> exists (x:a) (h1:heap). pre_f h0 /\ p... | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 59,
"start_col": 0,
"start_line": 51
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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: Type ->
b: Type ->
f: HoareSTPolyBind.repr a pre_f post_f ->
g: (x: a -> HoareSTPolyBind.repr b (pre_g x) (post_g x))
-> HoareSTPolyBind.repr b
(fun h0 ->
pre_f h0 /\ (forall (x: a) (h1: FStar.Monotonic.Heap.heap). post_f h0 x h1 ==> pre_g x h1)
)
(fun h0 y h2 ->
... | Prims.Tot | [
"total"
] | [] | [
"HoareSTPolyBind.pre_t",
"HoareSTPolyBind.post_t",
"HoareSTPolyBind.repr",
"Prims.unit",
"FStar.Monotonic.Heap.heap",
"Prims.l_and",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.l_Exists"
] | [] | false | false | false | false | false | let bind
(a b: Type)
(#pre_f: pre_t)
(#post_f: post_t a)
(#pre_g: (a -> pre_t))
(#post_g: (a -> post_t b))
(f: repr a pre_f post_f)
(g: (x: a -> repr b (pre_g x) (post_g x)))
: repr b
(fun h0 -> pre_f h0 /\ (forall (x: a) (h1: heap). post_f h0 x h1 ==> pre_g x h1))
... | fun _ ->
let x = f () in
g x () | false |
HoareSTPolyBind.fst | HoareSTPolyBind.test_dep_f | val test_dep_f: Prims.unit -> HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) | val test_dep_f: Prims.unit -> HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) | let test_dep_f () : HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) =
dep_f (pure_g ()) | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 229,
"start_col": 0,
"start_line": 228
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "... | {
"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 | _: Prims.unit -> HoareSTPolyBind.HoareST (HoareSTPolyBind.t_int (HoareSTPolyBind.pure_g ())) | HoareSTPolyBind.HoareST | [] | [] | [
"Prims.unit",
"HoareSTPolyBind.dep_f",
"HoareSTPolyBind.pure_g",
"HoareSTPolyBind.t_int",
"FStar.Monotonic.Heap.heap",
"Prims.l_True"
] | [] | false | true | false | false | false | let test_dep_f () : HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) =
| dep_f (pure_g ()) | false |
HoareSTPolyBind.fst | HoareSTPolyBind.test_dep_f2 | val test_dep_f2: Prims.unit -> HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) | val test_dep_f2: Prims.unit -> HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) | let test_dep_f2 () : HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) =
let x = pure_g () in
dep_f x | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 247,
"start_col": 0,
"start_line": 245
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "... | {
"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 | _: Prims.unit -> HoareSTPolyBind.HoareST (HoareSTPolyBind.t_int (HoareSTPolyBind.pure_g ())) | HoareSTPolyBind.HoareST | [] | [] | [
"Prims.unit",
"HoareSTPolyBind.dep_f",
"HoareSTPolyBind.t_int",
"Prims.int",
"HoareSTPolyBind.pure_g",
"FStar.Monotonic.Heap.heap",
"Prims.l_True"
] | [] | false | true | false | false | false | let test_dep_f2 () : HoareST (t_int (pure_g ())) (fun _ -> True) (fun _ _ _ -> True) =
| let x = pure_g () in
dep_f x | false |
HoareSTPolyBind.fst | HoareSTPolyBind.recall | val recall (#a: Type) (#rel: P.preorder a) (r: mref a rel)
: HoareST unit (fun _ -> True) (fun h0 _ h1 -> h0 == h1 /\ h1 `Heap.contains` r) | val recall (#a: Type) (#rel: P.preorder a) (r: mref a rel)
: HoareST unit (fun _ -> True) (fun h0 _ h1 -> h0 == h1 /\ h1 `Heap.contains` r) | let recall (#a:Type) (#rel:P.preorder a) (r:mref a rel)
: HoareST unit
(fun _ -> True)
(fun h0 _ h1 ->
h0 == h1 /\
h1 `Heap.contains` r)
= HoareST?.reflect (fun _ -> recall r) | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 105,
"start_col": 0,
"start_line": 99
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | r: FStar.ST.mref a rel -> HoareSTPolyBind.HoareST Prims.unit | HoareSTPolyBind.HoareST | [] | [] | [
"FStar.Preorder.preorder",
"FStar.ST.mref",
"Prims.unit",
"FStar.ST.recall",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.Heap.contains"
] | [] | false | true | false | false | false | let recall (#a: Type) (#rel: P.preorder a) (r: mref a rel)
: HoareST unit (fun _ -> True) (fun h0 _ h1 -> h0 == h1 /\ h1 `Heap.contains` r) =
| HoareST?.reflect (fun _ -> recall r) | false |
HoareSTPolyBind.fst | HoareSTPolyBind.return | val return (#a: Type) (x: a) : HoareST a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1) | val return (#a: Type) (x: a) : HoareST a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1) | let return (#a:Type) (x:a)
: HoareST a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1)
= HoareST?.reflect (returnc a x) | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 324,
"start_col": 0,
"start_line": 322
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: a -> HoareSTPolyBind.HoareST a | HoareSTPolyBind.HoareST | [] | [] | [
"HoareSTPolyBind.returnc",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2"
] | [] | false | true | false | false | false | let return (#a: Type) (x: a) : HoareST a (fun _ -> True) (fun h0 r h1 -> r == x /\ h0 == h1) =
| HoareST?.reflect (returnc a x) | false |
Vale.AES.GHash_s.fst | Vale.AES.GHash_s.gf128_mul_LE | val gf128_mul_LE (a_LE b_LE: quad32) : quad32 | val gf128_mul_LE (a_LE b_LE: quad32) : quad32 | let gf128_mul_LE (a_LE b_LE:quad32) : quad32 =
let a_BE = reverse_bytes_quad32 a_LE in
let b_BE = reverse_bytes_quad32 b_LE in
let ab_BE = gf128_to_quad32 (gf128_mul (gf128_of_quad32 a_BE) (gf128_of_quad32 b_BE)) in
reverse_bytes_quad32 ab_BE | {
"file_name": "vale/specs/crypto/Vale.AES.GHash_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 17,
"start_col": 0,
"start_line": 13
} | module Vale.AES.GHash_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.AES.GF128_s
open Vale.Lib.Seqs_s
open FStar.Mul
open FStar.Seq
type ghash_plain_LE:eqtype = s:seq quad32 { length s > 0 } | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.AES.GF128_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.A... | {
"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_LE: Vale.Def.Types_s.quad32 -> b_LE: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.reverse_bytes_quad32",
"Vale.AES.GF128_s.gf128_to_quad32",
"Vale.AES.GF128_s.gf128_mul",
"Vale.AES.GF128_s.gf128_of_quad32"
] | [] | false | false | false | true | false | let gf128_mul_LE (a_LE b_LE: quad32) : quad32 =
| let a_BE = reverse_bytes_quad32 a_LE in
let b_BE = reverse_bytes_quad32 b_LE in
let ab_BE = gf128_to_quad32 (gf128_mul (gf128_of_quad32 a_BE) (gf128_of_quad32 b_BE)) in
reverse_bytes_quad32 ab_BE | false |
Vale.AES.GHash_s.fst | Vale.AES.GHash_s.ghash_LE | val ghash_LE : _: Vale.Def.Types_s.quad32 -> _: Vale.AES.GHash_s.ghash_plain_LE
-> Prims.Tot Vale.Def.Types_s.quad32 | let ghash_LE = opaque_make ghash_LE_def | {
"file_name": "vale/specs/crypto/Vale.AES.GHash_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 28,
"start_col": 19,
"start_line": 28
} | module Vale.AES.GHash_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.AES.GF128_s
open Vale.Lib.Seqs_s
open FStar.Mul
open FStar.Seq
type ghash_plain_LE:eqtype = s:seq quad32 { length s > 0 }
let gf128_mul_LE (a_LE b_LE:quad32) : quad32 =
let a_BE = reverse_bytes_quad32 a_LE in
let... | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.AES.GF128_s.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.A... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Vale.Def.Types_s.quad32 -> _: Vale.AES.GHash_s.ghash_plain_LE
-> Prims.Tot Vale.Def.Types_s.quad32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.Def.Types_s.quad32",
"Vale.AES.GHash_s.ghash_plain_LE",
"Vale.AES.GHash_s.ghash_LE_def"
] | [] | false | false | false | true | false | let ghash_LE =
| opaque_make ghash_LE_def | false | |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_codegen_success_Keyhash_init | val va_codegen_success_Keyhash_init : win:bool -> alg:algorithm -> Tot va_pbool | val va_codegen_success_Keyhash_init : win:bool -> alg:algorithm -> Tot va_pbool | let va_codegen_success_Keyhash_init win alg =
(va_pbool_and (va_codegen_success_CreateHeaplets ()) (va_pbool_and
(va_codegen_success_InitPshufbMask (va_op_xmm_xmm 4) (va_op_reg_opr64_reg64 rR8)) (va_pbool_and
(va_codegen_success_ZeroXmm (va_op_xmm_xmm 0)) (va_pbool_and (if win then va_pbool_and
(va_codege... | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 67,
"end_line": 682,
"start_col": 0,
"start_line": 665
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | win: Prims.bool -> alg: Vale.AES.AES_common_s.algorithm -> Vale.X64.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsMem.va_codegen_success_CreateHeaplets",
"Vale.X64.InsVector.va_codegen_success_InitPshufbMask",
"Vale.X64.Decls.va_op_xmm_xmm",
"Vale.X64.Decls.va_op_reg_opr64_reg64",
"Vale.X64.Machine_s.rR8",
"Vale.X64.Ins... | [] | false | false | false | true | false | let va_codegen_success_Keyhash_init win alg =
| (va_pbool_and (va_codegen_success_CreateHeaplets ())
(va_pbool_and (va_codegen_success_InitPshufbMask (va_op_xmm_xmm 4) (va_op_reg_opr64_reg64 rR8))
(va_pbool_and (va_codegen_success_ZeroXmm (va_op_xmm_xmm 0))
(va_pbool_and (if win
then
va_pbool_and (va_code... | false |
Pulse.Checker.Prover.Substs.fsti | Pulse.Checker.Prover.Substs.nt_subst_st_term | val nt_subst_st_term (t: st_term) (ss: nt_substs) : st_term | val nt_subst_st_term (t: st_term) (ss: nt_substs) : st_term | let nt_subst_st_term (t:st_term) (ss:nt_substs) : st_term =
L.fold_left (fun t elt -> subst_st_term t [elt]) t ss | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 55,
"end_line": 90,
"start_col": 0,
"start_line": 89
} | (*
Copyright 2023 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": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"F... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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: Pulse.Syntax.Base.st_term -> ss: Pulse.Checker.Prover.Substs.nt_substs
-> Pulse.Syntax.Base.st_term | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.st_term",
"Pulse.Checker.Prover.Substs.nt_substs",
"FStar.List.Tot.Base.fold_left",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Syntax.Naming.subst_st_term",
"Prims.Cons",
"Prims.Nil"
] | [] | false | false | false | true | false | let nt_subst_st_term (t: st_term) (ss: nt_substs) : st_term =
| L.fold_left (fun t elt -> subst_st_term t [elt]) t ss | false |
HoareSTPolyBind.fst | HoareSTPolyBind.subcomp | val subcomp
(a: Type)
(#pre_f: pre_t)
(#post_f: post_t a)
(#pre_g: pre_t)
(#post_g: post_t a)
(f: repr a pre_f post_f)
: Pure (repr a pre_g post_g)
(requires
(forall (h: heap). pre_g h ==> pre_f h) /\
(forall (h0: heap) (h1: heap) (x: a). (pre_g h0 /\ post_f... | val subcomp
(a: Type)
(#pre_f: pre_t)
(#post_f: post_t a)
(#pre_g: pre_t)
(#post_g: post_t a)
(f: repr a pre_f post_f)
: Pure (repr a pre_g post_g)
(requires
(forall (h: heap). pre_g h ==> pre_f h) /\
(forall (h0: heap) (h1: heap) (x: a). (pre_g h0 /\ post_f... | let subcomp (a:Type)
(#pre_f:pre_t) (#post_f:post_t a)
(#pre_g:pre_t) (#post_g:post_t a)
(f:repr a pre_f post_f)
: Pure (repr a pre_g post_g)
(requires
(forall (h:heap). pre_g h ==> pre_f h) /\
(forall (h0 h1:heap) (x:a). (pre_g h0 /\ post_f h0 x h1) ==> post_g h0 x h1))
(ensures fun _ -> True)
= f | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 73,
"start_col": 0,
"start_line": 64
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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: Type -> f: HoareSTPolyBind.repr a pre_f post_f
-> Prims.Pure (HoareSTPolyBind.repr a pre_g post_g) | Prims.Pure | [] | [] | [
"HoareSTPolyBind.pre_t",
"HoareSTPolyBind.post_t",
"HoareSTPolyBind.repr",
"Prims.l_and",
"Prims.l_Forall",
"FStar.Monotonic.Heap.heap",
"Prims.l_imp",
"Prims.l_True"
] | [] | false | false | false | false | false | let subcomp
(a: Type)
(#pre_f: pre_t)
(#post_f: post_t a)
(#pre_g: pre_t)
(#post_g: post_t a)
(f: repr a pre_f post_f)
: Pure (repr a pre_g post_g)
(requires
(forall (h: heap). pre_g h ==> pre_f h) /\
(forall (h0: heap) (h1: heap) (x: a). (pre_g h0 /\ post_f... | f | false |
HoareSTPolyBind.fst | HoareSTPolyBind.op_Bang | val ( ! ) (#a: Type) (#rel: P.preorder a) (r: mref a rel)
: HoareST a (fun _ -> True) (fun h0 x h1 -> h0 == h1 /\ x == sel h1 r) | val ( ! ) (#a: Type) (#rel: P.preorder a) (r: mref a rel)
: HoareST a (fun _ -> True) (fun h0 x h1 -> h0 == h1 /\ x == sel h1 r) | let op_Bang (#a:Type) (#rel:P.preorder a) (r:mref a rel)
: HoareST a
(fun _ -> True)
(fun h0 x h1 ->
h0 == h1 /\
x == sel h1 r)
= HoareST?.reflect (fun _ -> read r) | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 122,
"start_col": 0,
"start_line": 116
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | r: FStar.ST.mref a rel -> HoareSTPolyBind.HoareST a | HoareSTPolyBind.HoareST | [] | [] | [
"FStar.Preorder.preorder",
"FStar.ST.mref",
"Prims.unit",
"FStar.ST.read",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.Heap.sel"
] | [] | false | true | false | false | false | let ( ! ) (#a: Type) (#rel: P.preorder a) (r: mref a rel)
: HoareST a (fun _ -> True) (fun h0 x h1 -> h0 == h1 /\ x == sel h1 r) =
| HoareST?.reflect (fun _ -> read r) | false |
Pulse.Checker.Prover.Substs.fsti | Pulse.Checker.Prover.Substs.nt_subst_st_comp | val nt_subst_st_comp (s: st_comp) (ss: nt_substs) : st_comp | val nt_subst_st_comp (s: st_comp) (ss: nt_substs) : st_comp | let nt_subst_st_comp (s:st_comp) (ss:nt_substs) : st_comp =
L.fold_left (fun s elt -> subst_st_comp s [elt]) s ss | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 55,
"end_line": 93,
"start_col": 0,
"start_line": 92
} | (*
Copyright 2023 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": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"F... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Pulse.Syntax.Base.st_comp -> ss: Pulse.Checker.Prover.Substs.nt_substs
-> Pulse.Syntax.Base.st_comp | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.st_comp",
"Pulse.Checker.Prover.Substs.nt_substs",
"FStar.List.Tot.Base.fold_left",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Syntax.Naming.subst_st_comp",
"Prims.Cons",
"Prims.Nil"
] | [] | false | false | false | true | false | let nt_subst_st_comp (s: st_comp) (ss: nt_substs) : st_comp =
| L.fold_left (fun s elt -> subst_st_comp s [elt]) s ss | false |
HoareSTPolyBind.fst | HoareSTPolyBind.bind_hoarest_pure | val bind_hoarest_pure
(a b: Type)
(req: pre_t)
(ens: post_t a)
(wp: (a -> pure_wp b))
(f: repr a req ens)
(g: (x: a -> unit -> PURE b (wp x)))
: repr b
(fun h -> req h /\ (forall x h1. ens h x h1 ==> (wp x) (fun _ -> True)))
(fun h0 r h1 -> exists x. ens h0 x h1 /\ (~... | val bind_hoarest_pure
(a b: Type)
(req: pre_t)
(ens: post_t a)
(wp: (a -> pure_wp b))
(f: repr a req ens)
(g: (x: a -> unit -> PURE b (wp x)))
: repr b
(fun h -> req h /\ (forall x h1. ens h x h1 ==> (wp x) (fun _ -> True)))
(fun h0 r h1 -> exists x. ens h0 x h1 /\ (~... | let bind_hoarest_pure (a:Type) (b:Type) (req:pre_t) (ens:post_t a) (wp:a -> pure_wp b)
(f:repr a req ens) (g:(x:a -> unit -> PURE b (wp x)))
: repr b
(fun h -> req h /\ (forall x h1. ens h x h1 ==> (wp x) (fun _ -> True)))
(fun h0 r h1 -> exists x. ens h0 x h1 /\ (~ ((wp x) (fun y -> y =!= r))))
= FStar.Monotonic... | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 10,
"end_line": 166,
"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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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: Type ->
b: Type ->
req: HoareSTPolyBind.pre_t ->
ens: HoareSTPolyBind.post_t a ->
wp: (_: a -> Prims.pure_wp b) ->
f: HoareSTPolyBind.repr a req ens ->
g: (x: a -> _: Prims.unit -> Prims.PURE b)
-> HoareSTPolyBind.repr b
(fun h ->
req h /\
(forall (x: a) (h1: ... | Prims.Tot | [
"total"
] | [] | [
"HoareSTPolyBind.pre_t",
"HoareSTPolyBind.post_t",
"Prims.pure_wp",
"HoareSTPolyBind.repr",
"Prims.unit",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall",
"FStar.Monotonic.Heap.heap",
"Prims.l_and",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.l_True",
"Prims.l_Exists",
"Prims.l_not",
"... | [] | false | false | false | false | false | let bind_hoarest_pure
(a b: Type)
(req: pre_t)
(ens: post_t a)
(wp: (a -> pure_wp b))
(f: repr a req ens)
(g: (x: a -> unit -> PURE b (wp x)))
: repr b
(fun h -> req h /\ (forall x h1. ens h x h1 ==> (wp x) (fun _ -> True)))
(fun h0 r h1 -> exists x. ens h0 x h1 /\ (~... | FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall ();
fun _ ->
let x = f () in
(g x) () | false |
HoareSTPolyBind.fst | HoareSTPolyBind.test_subcomp3 | val test_subcomp3 (n: int) : HoareST int (fun _ -> n > 2) (fun _ _ _ -> True) | val test_subcomp3 (n: int) : HoareST int (fun _ -> n > 2) (fun _ _ _ -> True) | let test_subcomp3 (n:int) : HoareST int (fun _ -> n > 2) (fun _ _ _ -> True) = f_test_subcomp n | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 95,
"end_line": 194,
"start_col": 0,
"start_line": 194
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | n: Prims.int -> HoareSTPolyBind.HoareST Prims.int | HoareSTPolyBind.HoareST | [] | [] | [
"Prims.int",
"HoareSTPolyBind.f_test_subcomp",
"FStar.Monotonic.Heap.heap",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.l_True"
] | [] | false | true | false | false | false | let test_subcomp3 (n: int) : HoareST int (fun _ -> n > 2) (fun _ _ _ -> True) =
| f_test_subcomp n | false |
Hacl.Bignum256_32.fsti | Hacl.Bignum256_32.t_limbs | val t_limbs:Hacl.Bignum.Definitions.limb_t | val t_limbs:Hacl.Bignum.Definitions.limb_t | let t_limbs: Hacl.Bignum.Definitions.limb_t = Lib.IntTypes.U32 | {
"file_name": "code/bignum/Hacl.Bignum256_32.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 12,
"start_col": 0,
"start_line": 12
} | module Hacl.Bignum256_32
open FStar.Mul
module BN = Hacl.Bignum
module BS = Hacl.Bignum.SafeAPI
module MA = Hacl.Bignum.MontArithmetic
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Bignum.SafeAPI.fst.checked",
"Hacl.Bignum.MontArithmetic.fsti.checked",
"Hacl.Bignum.Definitions.fst.checked",
"Hacl.Bignum.Convert.fst.checked",
"Hacl.Bignum.fsti.checked",
"FStar.UInt32... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.MontArithmetic",
"short_module": "MA"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.SafeAPI",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": false,
"f... | {
"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.Bignum.Definitions.limb_t | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.U32"
] | [] | false | false | false | true | false | let t_limbs:Hacl.Bignum.Definitions.limb_t =
| Lib.IntTypes.U32 | false |
Pulse.Checker.Prover.Substs.fsti | Pulse.Checker.Prover.Substs.nt_subst_binder | val nt_subst_binder (b: binder) (ss: nt_substs) : binder | val nt_subst_binder (b: binder) (ss: nt_substs) : binder | let nt_subst_binder (b:binder) (ss:nt_substs) : binder =
L.fold_left (fun b elt -> subst_binder b [elt]) b ss | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 54,
"end_line": 87,
"start_col": 0,
"start_line": 86
} | (*
Copyright 2023 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": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"F... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | b: Pulse.Syntax.Base.binder -> ss: Pulse.Checker.Prover.Substs.nt_substs -> Pulse.Syntax.Base.binder | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.binder",
"Pulse.Checker.Prover.Substs.nt_substs",
"FStar.List.Tot.Base.fold_left",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Syntax.Naming.subst_binder",
"Prims.Cons",
"Prims.Nil"
] | [] | false | false | false | true | false | let nt_subst_binder (b: binder) (ss: nt_substs) : binder =
| L.fold_left (fun b elt -> subst_binder b [elt]) b ss | false |
HoareSTPolyBind.fst | HoareSTPolyBind.bind_pure_hoarest | val bind_pure_hoarest
(a b: Type)
(wp: pure_wp a)
(req: (a -> pre_t))
(ens: (a -> post_t b))
(f: (unit -> PURE a wp))
(g: (x: a -> repr b (req x) (ens x)))
: repr b
(fun h -> wp (fun x -> req x h))
(fun h0 r h1 -> exists x. (~(wp (fun r -> r =!= x))) /\ ens x h0 r h1) | val bind_pure_hoarest
(a b: Type)
(wp: pure_wp a)
(req: (a -> pre_t))
(ens: (a -> post_t b))
(f: (unit -> PURE a wp))
(g: (x: a -> repr b (req x) (ens x)))
: repr b
(fun h -> wp (fun x -> req x h))
(fun h0 r h1 -> exists x. (~(wp (fun r -> r =!= x))) /\ ens x h0 r h1) | let bind_pure_hoarest (a:Type) (b:Type) (wp:pure_wp a) (req:a -> pre_t) (ens:a -> post_t b)
(f:unit -> PURE a wp) (g:(x:a -> repr b (req x) (ens x)))
: repr b
(fun h -> wp (fun x -> req x h))
(fun h0 r h1 -> exists x. (~ (wp (fun r -> r =!= x))) /\ ens x h0 r h1)
= FStar.Monotonic.Pure.elim_pure_wp_monotonicity w... | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 152,
"start_col": 0,
"start_line": 144
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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: Type ->
b: Type ->
wp: Prims.pure_wp a ->
req: (_: a -> HoareSTPolyBind.pre_t) ->
ens: (_: a -> HoareSTPolyBind.post_t b) ->
f: (_: Prims.unit -> Prims.PURE a) ->
g: (x: a -> HoareSTPolyBind.repr b (req x) (ens x))
-> HoareSTPolyBind.repr b
(fun h -> wp (fun x -> req x h))
... | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_wp",
"HoareSTPolyBind.pre_t",
"HoareSTPolyBind.post_t",
"Prims.unit",
"HoareSTPolyBind.repr",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_Exists",
"Prims.l_and",
"Prims.l_not",
"Prims.eq2"
] | [] | false | false | false | false | false | let bind_pure_hoarest
(a b: Type)
(wp: pure_wp a)
(req: (a -> pre_t))
(ens: (a -> post_t b))
(f: (unit -> PURE a wp))
(g: (x: a -> repr b (req x) (ens x)))
: repr b
(fun h -> wp (fun x -> req x h))
(fun h0 r h1 -> exists x. (~(wp (fun r -> r =!= x))) /\ ens x h0 r h1)... | FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp;
fun _ ->
let x = f () in
g x () | false |
HoareSTPolyBind.fst | HoareSTPolyBind.op_Colon_Equals | val ( := ) (#a: Type) (#rel: P.preorder a) (r: mref a rel) (x: a)
: HoareST unit
(fun h -> rel (sel h r) x)
(fun h0 _ h1 -> modifies (Set.singleton (addr_of r)) h0 h1 /\ equal_dom h0 h1 /\ sel h1 r == x
) | val ( := ) (#a: Type) (#rel: P.preorder a) (r: mref a rel) (x: a)
: HoareST unit
(fun h -> rel (sel h r) x)
(fun h0 _ h1 -> modifies (Set.singleton (addr_of r)) h0 h1 /\ equal_dom h0 h1 /\ sel h1 r == x
) | let op_Colon_Equals (#a:Type) (#rel:P.preorder a) (r:mref a rel) (x:a)
: HoareST unit
(fun h -> rel (sel h r) x)
(fun h0 _ h1 ->
modifies (Set.singleton (addr_of r)) h0 h1 /\
equal_dom h0 h1 /\
sel h1 r == x)
= HoareST?.reflect (fun _ -> write r x) | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 131,
"start_col": 0,
"start_line": 124
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | r: FStar.ST.mref a rel -> x: a -> HoareSTPolyBind.HoareST Prims.unit | HoareSTPolyBind.HoareST | [] | [] | [
"FStar.Preorder.preorder",
"FStar.ST.mref",
"Prims.unit",
"FStar.ST.write",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.sel",
"Prims.l_and",
"FStar.Monotonic.Heap.modifies",
"FStar.Set.singleton",
"Prims.nat",
"FStar.Monotonic.Heap.addr_of",
"FStar.Monotonic.Heap.equal_dom",
"Prims.eq... | [] | false | true | false | false | false | let ( := ) (#a: Type) (#rel: P.preorder a) (r: mref a rel) (x: a)
: HoareST unit
(fun h -> rel (sel h r) x)
(fun h0 _ h1 -> modifies (Set.singleton (addr_of r)) h0 h1 /\ equal_dom h0 h1 /\ sel h1 r == x
) =
| HoareST?.reflect (fun _ -> write r x) | false |
HoareSTPolyBind.fst | HoareSTPolyBind.test_subcomp | val test_subcomp: Prims.unit -> HoareST int (fun _ -> True) (fun _ r _ -> r == 0) | val test_subcomp: Prims.unit -> HoareST int (fun _ -> True) (fun _ r _ -> r == 0) | let test_subcomp () : HoareST int (fun _ -> True) (fun _ r _ -> r == 0) = 0 | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 75,
"end_line": 187,
"start_col": 0,
"start_line": 187
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | _: Prims.unit -> HoareSTPolyBind.HoareST Prims.int | HoareSTPolyBind.HoareST | [] | [] | [
"Prims.unit",
"Prims.int",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.eq2"
] | [] | false | true | false | false | false | let test_subcomp () : HoareST int (fun _ -> True) (fun _ r _ -> r == 0) =
| 0 | false |
Pulse.Checker.Prover.Substs.fsti | Pulse.Checker.Prover.Substs.nt_subst_comp | val nt_subst_comp (c: comp) (ss: nt_substs) : comp | val nt_subst_comp (c: comp) (ss: nt_substs) : comp | let nt_subst_comp (c:comp) (ss:nt_substs) : comp =
L.fold_left (fun c elt -> subst_comp c [elt]) c ss | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 52,
"end_line": 96,
"start_col": 0,
"start_line": 95
} | (*
Copyright 2023 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": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"F... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | c: Pulse.Syntax.Base.comp -> ss: Pulse.Checker.Prover.Substs.nt_substs -> Pulse.Syntax.Base.comp | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.comp",
"Pulse.Checker.Prover.Substs.nt_substs",
"FStar.List.Tot.Base.fold_left",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Syntax.Naming.subst_comp",
"Prims.Cons",
"Prims.Nil"
] | [] | false | false | false | true | false | let nt_subst_comp (c: comp) (ss: nt_substs) : comp =
| L.fold_left (fun c elt -> subst_comp c [elt]) c ss | false |
HoareSTPolyBind.fst | HoareSTPolyBind.alloc | val alloc (#a: Type) (#rel: P.preorder a) (init: a)
: HoareST (mref a rel)
(fun _ -> True)
(fun h0 r h1 -> fresh r h0 h1 /\ modifies Set.empty h0 h1 /\ sel h1 r == init) | val alloc (#a: Type) (#rel: P.preorder a) (init: a)
: HoareST (mref a rel)
(fun _ -> True)
(fun h0 r h1 -> fresh r h0 h1 /\ modifies Set.empty h0 h1 /\ sel h1 r == init) | let alloc (#a:Type) (#rel:P.preorder a) (init:a)
: HoareST (mref a rel)
(fun _ -> True)
(fun h0 r h1 ->
fresh r h0 h1 /\
modifies Set.empty h0 h1 /\
sel h1 r == init)
= HoareST?.reflect (fun _ -> alloc init) | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 114,
"start_col": 0,
"start_line": 107
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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 | init: a -> HoareSTPolyBind.HoareST (FStar.ST.mref a rel) | HoareSTPolyBind.HoareST | [] | [] | [
"FStar.Preorder.preorder",
"Prims.unit",
"FStar.ST.alloc",
"FStar.ST.mref",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_and",
"FStar.Monotonic.Heap.fresh",
"FStar.Monotonic.Heap.modifies",
"FStar.Set.empty",
"Prims.nat",
"Prims.eq2",
"FStar.Monotonic.Heap.sel"
] | [] | false | true | false | false | false | let alloc (#a: Type) (#rel: P.preorder a) (init: a)
: HoareST (mref a rel)
(fun _ -> True)
(fun h0 r h1 -> fresh r h0 h1 /\ modifies Set.empty h0 h1 /\ sel h1 r == init) =
| HoareST?.reflect (fun _ -> alloc init) | false |
HoareSTPolyBind.fst | HoareSTPolyBind.subcomp_pure_hoarest | val subcomp_pure_hoarest
(a: Type)
(wp: pure_wp a)
(req: pre_t)
(ens: post_t a)
(f: (unit -> PURE a wp))
: Pure (repr a req ens)
(requires
(forall h. req h ==> wp (fun _ -> True)) /\
(forall h0 r h1. (~(wp (fun x -> x =!= r \/ h0 =!= h1))) ==> ens h0 r h1))
... | val subcomp_pure_hoarest
(a: Type)
(wp: pure_wp a)
(req: pre_t)
(ens: post_t a)
(f: (unit -> PURE a wp))
: Pure (repr a req ens)
(requires
(forall h. req h ==> wp (fun _ -> True)) /\
(forall h0 r h1. (~(wp (fun x -> x =!= r \/ h0 =!= h1))) ==> ens h0 r h1))
... | let subcomp_pure_hoarest (a:Type) (wp:pure_wp a) (req:pre_t) (ens:post_t a)
(f:unit -> PURE a wp)
: Pure (repr a req ens)
(requires
(forall h. req h ==> wp (fun _ -> True)) /\
(forall h0 r h1. (~ (wp (fun x -> x =!= r \/ h0 =!= h1))) ==> ens h0 r h1))
(ensures fun _ -> True)
= FStar.Monotonic.Pure.elim_... | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 183,
"start_col": 0,
"start_line": 175
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Heap",... | {
"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: Type ->
wp: Prims.pure_wp a ->
req: HoareSTPolyBind.pre_t ->
ens: HoareSTPolyBind.post_t a ->
f: (_: Prims.unit -> Prims.PURE a)
-> Prims.Pure (HoareSTPolyBind.repr a req ens) | Prims.Pure | [] | [] | [
"Prims.pure_wp",
"HoareSTPolyBind.pre_t",
"HoareSTPolyBind.post_t",
"Prims.unit",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall",
"HoareSTPolyBind.repr",
"Prims.l_and",
"Prims.l_Forall",
"FStar.Monotonic.Heap.heap",
"Prims.l_imp",
"Prims.l_True",
"Prims.l_not",
"Prims.l_or",
"Prim... | [] | false | false | false | false | false | let subcomp_pure_hoarest
(a: Type)
(wp: pure_wp a)
(req: pre_t)
(ens: post_t a)
(f: (unit -> PURE a wp))
: Pure (repr a req ens)
(requires
(forall h. req h ==> wp (fun _ -> True)) /\
(forall h0 r h1. (~(wp (fun x -> x =!= r \/ h0 =!= h1))) ==> ens h0 r h1))
... | FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall ();
fun _ -> f () | false |
Vale.AES.X64.GF128_Init.fst | Vale.AES.X64.GF128_Init.va_quick_ShiftKey1_128 | val va_quick_ShiftKey1_128 (f: poly) : (va_quickCode unit (va_code_ShiftKey1_128 ())) | val va_quick_ShiftKey1_128 (f: poly) : (va_quickCode unit (va_code_ShiftKey1_128 ())) | let va_quick_ShiftKey1_128 (f:poly) : (va_quickCode unit (va_code_ShiftKey1_128 ())) =
(va_QProc (va_code_ShiftKey1_128 ()) ([va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1; va_Mod_flags])
(va_wp_ShiftKey1_128 f) (va_wpProof_ShiftKey1_128 f)) | {
"file_name": "obj/Vale.AES.X64.GF128_Init.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 167,
"start_col": 0,
"start_line": 165
} | module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GHash",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GF128_Mul",
"short_module": null
},
{
"abbrev": false,
"... | {
"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 | f: Vale.Math.Poly2_s.poly
-> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.GF128_Init.va_code_ShiftKey1_128 ()) | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.X64.GF128_Init.va_code_ShiftKey1_128",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_xmm",
"Vale.X64.QuickCode.va_Mod_flags",
"Prims.Nil",
"Vale.AES.X64.GF128_Init.va_wp_ShiftKey1_128",
"Vale.... | [] | false | false | false | false | false | let va_quick_ShiftKey1_128 (f: poly) : (va_quickCode unit (va_code_ShiftKey1_128 ())) =
| (va_QProc (va_code_ShiftKey1_128 ())
([va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1; va_Mod_flags])
(va_wp_ShiftKey1_128 f)
(va_wpProof_ShiftKey1_128 f)) | false |
HoareSTPolyBind.fst | HoareSTPolyBind.length | val length (#a: Type0) (x: array a)
: HoareST nat (fun _ -> True) (fun h0 y h1 -> y == Seq.length (sel h0 x) /\ h0 == h1) | val length (#a: Type0) (x: array a)
: HoareST nat (fun _ -> True) (fun h0 y h1 -> y == Seq.length (sel h0 x) /\ h0 == h1) | let length (#a:Type0) (x:array a)
: HoareST nat
(fun _ -> True)
(fun h0 y h1 -> y == Seq.length (sel h0 x) /\ h0 == h1)
= let s = !x in
Seq.length s | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 298,
"start_col": 0,
"start_line": 293
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: HoareSTPolyBind.array a -> HoareSTPolyBind.HoareST Prims.nat | HoareSTPolyBind.HoareST | [] | [] | [
"HoareSTPolyBind.array",
"FStar.Seq.Base.length",
"Prims.nat",
"FStar.Seq.Base.seq",
"HoareSTPolyBind.op_Bang",
"FStar.Heap.trivial_preorder",
"FStar.Monotonic.Heap.heap",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.Heap.sel"
] | [] | false | true | false | false | false | let length (#a: Type0) (x: array a)
: HoareST nat (fun _ -> True) (fun h0 y h1 -> y == Seq.length (sel h0 x) /\ h0 == h1) =
| let s = !x in
Seq.length s | false |
HoareSTPolyBind.fst | HoareSTPolyBind.index | val index (#a: Type0) (x: array a) (i: nat)
: HoareST a
(fun h -> i < Seq.length (sel h x))
(fun h0 v h1 -> i < Seq.length (sel h0 x) /\ h0 == h1 /\ v == Seq.index (sel h0 x) i) | val index (#a: Type0) (x: array a) (i: nat)
: HoareST a
(fun h -> i < Seq.length (sel h x))
(fun h0 v h1 -> i < Seq.length (sel h0 x) /\ h0 == h1 /\ v == Seq.index (sel h0 x) i) | let index (#a:Type0) (x:array a) (i:nat)
: HoareST a
(fun h -> i < Seq.length (sel h x))
(fun h0 v h1 ->
i < Seq.length (sel h0 x) /\
h0 == h1 /\
v == Seq.index (sel h0 x) i)
= let s = !x in
Seq.index s i | {
"file_name": "examples/layeredeffects/HoareSTPolyBind.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 280,
"start_col": 0,
"start_line": 272
} | (*
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",
"FStar.ST.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked",
"FStar.Heap.fst.checked"
],
"interface_file"... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: HoareSTPolyBind.array a -> i: Prims.nat -> HoareSTPolyBind.HoareST a | HoareSTPolyBind.HoareST | [] | [] | [
"HoareSTPolyBind.array",
"Prims.nat",
"FStar.Seq.Base.index",
"FStar.Seq.Base.seq",
"HoareSTPolyBind.op_Bang",
"FStar.Heap.trivial_preorder",
"FStar.Monotonic.Heap.heap",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"FStar.Monotonic.Heap.sel",
"Prims.l_and",
"Prims.eq2"
] | [] | false | true | false | false | false | let index (#a: Type0) (x: array a) (i: nat)
: HoareST a
(fun h -> i < Seq.length (sel h x))
(fun h0 v h1 -> i < Seq.length (sel h0 x) /\ h0 == h1 /\ v == Seq.index (sel h0 x) i) =
| let s = !x in
Seq.index s i | false |
Pulse.Checker.Prover.Substs.fsti | Pulse.Checker.Prover.Substs.nt_subst_term | val nt_subst_term (t: term) (ss: nt_substs) : term | val nt_subst_term (t: term) (ss: nt_substs) : term | let nt_subst_term (t:term) (ss:nt_substs) : term =
L.fold_left (fun t elt -> subst_term t [elt]) t ss | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 52,
"end_line": 84,
"start_col": 0,
"start_line": 83
} | (*
Copyright 2023 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": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"F... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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: Pulse.Syntax.Base.term -> ss: Pulse.Checker.Prover.Substs.nt_substs -> Pulse.Syntax.Base.term | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.term",
"Pulse.Checker.Prover.Substs.nt_substs",
"FStar.List.Tot.Base.fold_left",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Syntax.Naming.subst_term",
"Prims.Cons",
"Prims.Nil"
] | [] | false | false | false | true | false | let nt_subst_term (t: term) (ss: nt_substs) : term =
| L.fold_left (fun t elt -> subst_term t [elt]) t ss | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.