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
Hacl.Impl.Frodo.KEM.KeyGen.fst
Hacl.Impl.Frodo.KEM.KeyGen.crypto_kem_sk
val crypto_kem_sk: a:FP.frodo_alg -> s:lbytes (crypto_bytes a) -> pk:lbytes (crypto_publickeybytes a) -> sk:lbytes (crypto_secretkeybytes a) -> Stack unit (requires fun h -> live h pk /\ live h sk /\ live h s /\ disjoint pk sk /\ disjoint sk s) (ensures fun h0 _ h1 -> modifies (loc sk) ...
val crypto_kem_sk: a:FP.frodo_alg -> s:lbytes (crypto_bytes a) -> pk:lbytes (crypto_publickeybytes a) -> sk:lbytes (crypto_secretkeybytes a) -> Stack unit (requires fun h -> live h pk /\ live h sk /\ live h s /\ disjoint pk sk /\ disjoint sk s) (ensures fun h0 _ h1 -> modifies (loc sk) ...
let crypto_kem_sk a s pk sk = FP.expand_crypto_secretkeybytes a; let slen1 = crypto_secretkeybytes a -! bytes_pkhash a in let sk_p = sub sk 0ul slen1 in crypto_kem_sk1 a s pk sk_p; let h0 = ST.get () in update_sub_f h0 sk slen1 (bytes_pkhash a) (fun h -> FP.frodo_shake a (v (crypto_publickeybytes a)) (as...
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 96, "end_line": 246, "start_col": 0, "start_line": 232 }
module Hacl.Impl.Frodo.KEM.KeyGen open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.Pack open Hacl.Impl.Frodo.Sample open Hacl.Frodo.Random module ST = F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.KeyGen.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl....
[ { "abbrev": true, "full_module": "Spec.Frodo.KEM.KeyGen", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "FP" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> s: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) -> pk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_publickeybytes a) -> sk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_secretkeybytes a) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.crypto_bytes", "Hacl.Impl.Frodo.Params.crypto_publickeybytes", "Hacl.Impl.Frodo.Params.crypto_secretkeybytes", "Lib.Sequence.lemma_concat2", "Lib.IntTypes.uint8", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.P...
[]
false
true
false
false
false
let crypto_kem_sk a s pk sk =
FP.expand_crypto_secretkeybytes a; let slen1 = crypto_secretkeybytes a -! bytes_pkhash a in let sk_p = sub sk 0ul slen1 in crypto_kem_sk1 a s pk sk_p; let h0 = ST.get () in update_sub_f h0 sk slen1 (bytes_pkhash a) (fun h -> FP.frodo_shake a (v (crypto_publickeybytes a)) (as_seq h0 pk) (v (bytes_pkhash a))) (...
false
Hacl.Impl.Frodo.KEM.KeyGen.fst
Hacl.Impl.Frodo.KEM.KeyGen.get_s_e_matrices
val get_s_e_matrices: a:FP.frodo_alg -> seed_se:lbytes (crypto_bytes a) -> s_matrix:matrix_t (params_n a) params_nbar -> e_matrix:matrix_t (params_n a) params_nbar -> Stack unit (requires fun h -> live h seed_se /\ live h s_matrix /\ live h e_matrix /\ disjoint seed_se s_matrix /\ disjoint s...
val get_s_e_matrices: a:FP.frodo_alg -> seed_se:lbytes (crypto_bytes a) -> s_matrix:matrix_t (params_n a) params_nbar -> e_matrix:matrix_t (params_n a) params_nbar -> Stack unit (requires fun h -> live h seed_se /\ live h s_matrix /\ live h e_matrix /\ disjoint seed_se s_matrix /\ disjoint s...
let get_s_e_matrices a seed_se s_matrix e_matrix = push_frame (); [@inline_let] let s_bytes_len = secretmatrixbytes_len a in let r = create (2ul *! s_bytes_len) (u8 0) in frodo_shake_r a (u8 0x5f) seed_se (2ul *! s_bytes_len) r; frodo_sample_matrix a (params_n a) params_nbar (sub r 0ul s_bytes_len) s_matrix; ...
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 130, "start_col": 0, "start_line": 123 }
module Hacl.Impl.Frodo.KEM.KeyGen open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.Pack open Hacl.Impl.Frodo.Sample open Hacl.Frodo.Random module ST = F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.KeyGen.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl....
[ { "abbrev": true, "full_module": "Spec.Frodo.KEM.KeyGen", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "FP" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) -> s_matrix: Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.params_n a) Hacl.Impl.Frodo.Params.params_nbar -> e_matrix: Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.par...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.crypto_bytes", "Hacl.Impl.Matrix.matrix_t", "Hacl.Impl.Frodo.Params.params_n", "Hacl.Impl.Frodo.Params.params_nbar", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.Frodo.Sample.frodo_sample_matrix", "Lib.B...
[]
false
true
false
false
false
let get_s_e_matrices a seed_se s_matrix e_matrix =
push_frame (); [@@ inline_let ]let s_bytes_len = secretmatrixbytes_len a in let r = create (2ul *! s_bytes_len) (u8 0) in frodo_shake_r a (u8 0x5f) seed_se (2ul *! s_bytes_len) r; frodo_sample_matrix a (params_n a) params_nbar (sub r 0ul s_bytes_len) s_matrix; frodo_sample_matrix a (params_n a) params_nbar (sub r s_byt...
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.proj_g_pow2_128_lseq_lemma
val proj_g_pow2_128_lseq_lemma: unit -> Lemma (point_inv_seq proj_g_pow2_128_lseq /\ S.to_aff_point (from_mont_point (as_point_nat_seq proj_g_pow2_128_lseq)) == g_pow2_128)
val proj_g_pow2_128_lseq_lemma: unit -> Lemma (point_inv_seq proj_g_pow2_128_lseq /\ S.to_aff_point (from_mont_point (as_point_nat_seq proj_g_pow2_128_lseq)) == g_pow2_128)
let proj_g_pow2_128_lseq_lemma () = normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_128); proj_g_pow2_128_lemma (); SPTK.proj_point_to_list_lemma proj_g_pow2_128
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 177, "start_col": 0, "start_line": 174 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.PrecompTable", "short_module": "SPTK" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "...
{ "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 Hacl.Impl.P256.Point.point_inv_seq Hacl.P256.PrecompTable.proj_g_pow2_128_lseq /\ Spec.P256.PointOps.to_aff_point (Hacl.Impl.P256.Point.from_mont_point (Hacl.Impl.P256.Point.as_point_nat_seq Hacl.P256.PrecompTable.proj_g_pow2_128_lseq)) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Hacl.Spec.P256.PrecompTable.proj_point_to_list_lemma", "Hacl.P256.PrecompTable.proj_g_pow2_128", "Hacl.P256.PrecompTable.proj_g_pow2_128_lemma", "FStar.Pervasives.normalize_term_spec", "Hacl.Spec.P256.PrecompTable.point_list", "Hacl.Spec.P256.PrecompTable.proj_point_to_list" ]
[]
true
false
true
false
false
let proj_g_pow2_128_lseq_lemma () =
normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_128); proj_g_pow2_128_lemma (); SPTK.proj_point_to_list_lemma proj_g_pow2_128
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.proj_g_pow2_192_lseq_lemma
val proj_g_pow2_192_lseq_lemma: unit -> Lemma (point_inv_seq proj_g_pow2_192_lseq /\ S.to_aff_point (from_mont_point (as_point_nat_seq proj_g_pow2_192_lseq)) == g_pow2_192)
val proj_g_pow2_192_lseq_lemma: unit -> Lemma (point_inv_seq proj_g_pow2_192_lseq /\ S.to_aff_point (from_mont_point (as_point_nat_seq proj_g_pow2_192_lseq)) == g_pow2_192)
let proj_g_pow2_192_lseq_lemma () = normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_192); proj_g_pow2_192_lemma (); SPTK.proj_point_to_list_lemma proj_g_pow2_192
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 183, "start_col": 0, "start_line": 180 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.PrecompTable", "short_module": "SPTK" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "...
{ "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 Hacl.Impl.P256.Point.point_inv_seq Hacl.P256.PrecompTable.proj_g_pow2_192_lseq /\ Spec.P256.PointOps.to_aff_point (Hacl.Impl.P256.Point.from_mont_point (Hacl.Impl.P256.Point.as_point_nat_seq Hacl.P256.PrecompTable.proj_g_pow2_192_lseq)) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Hacl.Spec.P256.PrecompTable.proj_point_to_list_lemma", "Hacl.P256.PrecompTable.proj_g_pow2_192", "Hacl.P256.PrecompTable.proj_g_pow2_192_lemma", "FStar.Pervasives.normalize_term_spec", "Hacl.Spec.P256.PrecompTable.point_list", "Hacl.Spec.P256.PrecompTable.proj_point_to_list" ]
[]
true
false
true
false
false
let proj_g_pow2_192_lseq_lemma () =
normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_192); proj_g_pow2_192_lemma (); SPTK.proj_point_to_list_lemma proj_g_pow2_192
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.proj_g_pow2_128_lemma
val proj_g_pow2_128_lemma: unit -> Lemma (S.to_aff_point proj_g_pow2_128 == pow_point (pow2 128) g_aff)
val proj_g_pow2_128_lemma: unit -> Lemma (S.to_aff_point proj_g_pow2_128 == pow_point (pow2 128) g_aff)
let proj_g_pow2_128_lemma () = lemma_proj_g_pow2_128_eval (); lemma_proj_g_pow2_64_eval (); SPT256.a_pow2_128_lemma S.mk_p256_concrete_ops S.base_point
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 61, "end_line": 155, "start_col": 0, "start_line": 152 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Point", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "...
{ "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.P256.PointOps.to_aff_point Hacl.P256.PrecompTable.proj_g_pow2_128 == Hacl.P256.PrecompTable.pow_point (Prims.pow2 128) Hacl.P256.PrecompTable.g_aff)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Hacl.Spec.PrecompBaseTable256.a_pow2_128_lemma", "Spec.P256.PointOps.proj_point", "Spec.P256.mk_p256_concrete_ops", "Spec.P256.PointOps.base_point", "Hacl.P256.PrecompTable.lemma_proj_g_pow2_64_eval", "Hacl.P256.PrecompTable.lemma_proj_g_pow2_128_eval" ]
[]
true
false
true
false
false
let proj_g_pow2_128_lemma () =
lemma_proj_g_pow2_128_eval (); lemma_proj_g_pow2_64_eval (); SPT256.a_pow2_128_lemma S.mk_p256_concrete_ops S.base_point
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.proj_g_pow2_192_list
val proj_g_pow2_192_list:SPTK.point_list
val proj_g_pow2_192_list:SPTK.point_list
let proj_g_pow2_192_list : SPTK.point_list = normalize_term (SPTK.proj_point_to_list proj_g_pow2_192)
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 125, "start_col": 0, "start_line": 124 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Point", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "...
{ "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.Spec.P256.PrecompTable.point_list
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize_term", "Hacl.Spec.P256.PrecompTable.point_list", "Hacl.Spec.P256.PrecompTable.proj_point_to_list", "Hacl.P256.PrecompTable.proj_g_pow2_192" ]
[]
false
false
false
true
false
let proj_g_pow2_192_list:SPTK.point_list =
normalize_term (SPTK.proj_point_to_list proj_g_pow2_192)
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.proj_g_pow2_64_lseq
val proj_g_pow2_64_lseq : LSeq.lseq uint64 12
val proj_g_pow2_64_lseq : LSeq.lseq uint64 12
let proj_g_pow2_64_lseq : LSeq.lseq uint64 12 = normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_64); Seq.seq_of_list proj_g_pow2_64_list
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 130, "start_col": 0, "start_line": 128 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.PrecompTable", "short_module": "SPTK" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "...
{ "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
Lib.Sequence.lseq Lib.IntTypes.uint64 12
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq_of_list", "Lib.IntTypes.uint64", "Hacl.P256.PrecompTable.proj_g_pow2_64_list", "Prims.unit", "FStar.Pervasives.normalize_term_spec", "Hacl.Spec.P256.PrecompTable.point_list", "Hacl.Spec.P256.PrecompTable.proj_point_to_list", "Hacl.P256.PrecompTable.proj_g_pow2_64", "Lib.Sequence....
[]
false
false
false
false
false
let proj_g_pow2_64_lseq:LSeq.lseq uint64 12 =
normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_64); Seq.seq_of_list proj_g_pow2_64_list
false
Hacl.Impl.Frodo.KEM.KeyGen.fst
Hacl.Impl.Frodo.KEM.KeyGen.crypto_kem_keypair
val crypto_kem_keypair: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> pk:lbytes (crypto_publickeybytes a) -> sk:lbytes (crypto_secretkeybytes a) -> Stack uint32 (requires fun h -> live h pk /\ live h sk /\ disjoint state pk /\ disjoint state sk /\ disjoint pk sk) (ensures...
val crypto_kem_keypair: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> pk:lbytes (crypto_publickeybytes a) -> sk:lbytes (crypto_secretkeybytes a) -> Stack uint32 (requires fun h -> live h pk /\ live h sk /\ disjoint state pk /\ disjoint state sk /\ disjoint pk sk) (ensures...
let crypto_kem_keypair a gen_a pk sk = recall state; push_frame(); let coins = create (size 2 *! crypto_bytes a +! bytes_seed_a) (u8 0) in randombytes_ (size 2 *! crypto_bytes a +! bytes_seed_a) coins; crypto_kem_keypair_ a gen_a coins pk sk; clear_words_u8 coins; pop_frame(); u32 0
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 304, "start_col": 0, "start_line": 296 }
module Hacl.Impl.Frodo.KEM.KeyGen open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.Pack open Hacl.Impl.Frodo.Sample open Hacl.Frodo.Random module ST = F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.KeyGen.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl....
[ { "abbrev": true, "full_module": "Spec.Frodo.KEM.KeyGen", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "FP" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> pk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_publickeybytes a) -> sk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_secretkeybytes a) -> FStar.HyperStack.ST.Stac...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.crypto_publickeybytes", "Hacl.Impl.Frodo.Params.crypto_secretkeybytes", "Lib.IntTypes.u32", "Lib.IntTypes.uint32", "Prims.unit", ...
[]
false
true
false
false
false
let crypto_kem_keypair a gen_a pk sk =
recall state; push_frame (); let coins = create (size 2 *! crypto_bytes a +! bytes_seed_a) (u8 0) in randombytes_ (size 2 *! crypto_bytes a +! bytes_seed_a) coins; crypto_kem_keypair_ a gen_a coins pk sk; clear_words_u8 coins; pop_frame (); u32 0
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.to_id
val to_id (n:nat{n < size}) : id
val to_id (n:nat{n < size}) : id
let to_id (n:nat{n < size}) : id = n
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 29, "start_col": 0, "start_line": 29 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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{n < FStar.DM4F.OTP.Heap.size} -> FStar.DM4F.OTP.Heap.id
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.DM4F.OTP.Heap.size", "FStar.DM4F.OTP.Heap.id" ]
[]
false
false
false
false
false
let to_id (n: nat{n < size}) : id =
n
false
Hacl.Impl.Frodo.KEM.KeyGen.fst
Hacl.Impl.Frodo.KEM.KeyGen.frodo_mul_add_as_plus_e_pack_shake
val frodo_mul_add_as_plus_e_pack_shake: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> seed_a:lbytes bytes_seed_a -> seed_se:lbytes (crypto_bytes a) -> b:lbytes (publicmatrixbytes_len a) -> s:lbytes (secretmatrixbytes_len a) -> Stack unit (requires fun h -> live h seed_a /\ live...
val frodo_mul_add_as_plus_e_pack_shake: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> seed_a:lbytes bytes_seed_a -> seed_se:lbytes (crypto_bytes a) -> b:lbytes (publicmatrixbytes_len a) -> s:lbytes (secretmatrixbytes_len a) -> Stack unit (requires fun h -> live h seed_a /\ live...
let frodo_mul_add_as_plus_e_pack_shake a gen_a seed_a seed_se b s = push_frame (); let s_matrix = matrix_create (params_n a) params_nbar in let e_matrix = matrix_create (params_n a) params_nbar in get_s_e_matrices a seed_se s_matrix e_matrix; frodo_mul_add_as_plus_e_pack a gen_a seed_a s_matrix e_matrix b; ...
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 177, "start_col": 0, "start_line": 167 }
module Hacl.Impl.Frodo.KEM.KeyGen open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.Pack open Hacl.Impl.Frodo.Sample open Hacl.Frodo.Random module ST = F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.KeyGen.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl....
[ { "abbrev": true, "full_module": "Spec.Frodo.KEM.KeyGen", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "FP" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> seed_a: Hacl.Impl.Matrix.lbytes Hacl.Impl.Frodo.Params.bytes_seed_a -> seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) -> b: Hacl.Impl.Matrix.lbytes (Hacl.Im...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.bytes_seed_a", "Hacl.Impl.Frodo.Params.crypto_bytes", "Hacl.Impl.Frodo.Params.publicmatrixbytes_len", "Hacl.Impl.Frodo.Params.secretm...
[]
false
true
false
false
false
let frodo_mul_add_as_plus_e_pack_shake a gen_a seed_a seed_se b s =
push_frame (); let s_matrix = matrix_create (params_n a) params_nbar in let e_matrix = matrix_create (params_n a) params_nbar in get_s_e_matrices a seed_se s_matrix e_matrix; frodo_mul_add_as_plus_e_pack a gen_a seed_a s_matrix e_matrix b; matrix_to_lbytes s_matrix s; clear_matrix2 a s_matrix e_matrix; pop_frame ()
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.incrementable
val incrementable: id -> bool
val incrementable: id -> bool
let incrementable (i:id) = i + 1 < size
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 31, "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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
i: FStar.DM4F.OTP.Heap.id -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.OTP.Heap.id", "Prims.op_LessThan", "Prims.op_Addition", "FStar.DM4F.OTP.Heap.size", "Prims.bool" ]
[]
false
false
false
true
false
let incrementable (i: id) =
i + 1 < size
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.equal
val equal: tape -> tape -> GTot Type0
val equal: tape -> tape -> GTot Type0
let equal (t1:tape) (t2:tape) = Seq.equal t1 t2
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 41, "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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
t1: FStar.DM4F.OTP.Heap.tape -> t2: FStar.DM4F.OTP.Heap.tape -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.DM4F.OTP.Heap.tape", "FStar.Seq.Base.equal", "FStar.DM4F.OTP.Heap.elem" ]
[]
false
false
false
false
true
let equal (t1 t2: tape) =
Seq.equal t1 t2
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.upd
val upd (h:tape) (i:id) (x:elem) : Tot tape
val upd (h:tape) (i:id) (x:elem) : Tot tape
let upd (h:tape) (i:id) (x:elem) : Tot tape = upd h i x
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 55, "end_line": 37, "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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
h: FStar.DM4F.OTP.Heap.tape -> i: FStar.DM4F.OTP.Heap.id -> x: FStar.DM4F.OTP.Heap.elem -> FStar.DM4F.OTP.Heap.tape
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.OTP.Heap.tape", "FStar.DM4F.OTP.Heap.id", "FStar.DM4F.OTP.Heap.elem", "FStar.Seq.Base.upd" ]
[]
false
false
false
true
false
let upd (h: tape) (i: id) (x: elem) : Tot tape =
upd h i x
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.proj_g_pow2_128_lseq
val proj_g_pow2_128_lseq : LSeq.lseq uint64 12
val proj_g_pow2_128_lseq : LSeq.lseq uint64 12
let proj_g_pow2_128_lseq : LSeq.lseq uint64 12 = normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_128); Seq.seq_of_list proj_g_pow2_128_list
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 134, "start_col": 0, "start_line": 132 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.PrecompTable", "short_module": "SPTK" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "...
{ "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
Lib.Sequence.lseq Lib.IntTypes.uint64 12
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq_of_list", "Lib.IntTypes.uint64", "Hacl.P256.PrecompTable.proj_g_pow2_128_list", "Prims.unit", "FStar.Pervasives.normalize_term_spec", "Hacl.Spec.P256.PrecompTable.point_list", "Hacl.Spec.P256.PrecompTable.proj_point_to_list", "Hacl.P256.PrecompTable.proj_g_pow2_128", "Lib.Sequenc...
[]
false
false
false
false
false
let proj_g_pow2_128_lseq:LSeq.lseq uint64 12 =
normalize_term_spec (SPTK.proj_point_to_list proj_g_pow2_128); Seq.seq_of_list proj_g_pow2_128_list
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.index
val index (h:tape) (i:id) : Tot elem
val index (h:tape) (i:id) : Tot elem
let index (h:tape) (i:id) : Tot elem = index h i
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 35, "start_col": 0, "start_line": 35 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
h: FStar.DM4F.OTP.Heap.tape -> i: FStar.DM4F.OTP.Heap.id -> FStar.DM4F.OTP.Heap.elem
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.OTP.Heap.tape", "FStar.DM4F.OTP.Heap.id", "FStar.Seq.Base.index", "FStar.DM4F.OTP.Heap.elem" ]
[]
false
false
false
true
false
let index (h: tape) (i: id) : Tot elem =
index h i
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.incr
val incr (i:id{incrementable i}) : id
val incr (i:id{incrementable i}) : id
let incr (i:id{incrementable i}) : id = to_id (i + 1)
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "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": 33 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
i: FStar.DM4F.OTP.Heap.id{FStar.DM4F.OTP.Heap.incrementable i} -> FStar.DM4F.OTP.Heap.id
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.OTP.Heap.id", "Prims.b2t", "FStar.DM4F.OTP.Heap.incrementable", "FStar.DM4F.OTP.Heap.to_id", "Prims.op_Addition" ]
[]
false
false
false
false
false
let incr (i: id{incrementable i}) : id =
to_id (i + 1)
false
FStar.DM4F.Heap.fsti
FStar.DM4F.Heap.equal_dom
val equal_dom (h1 h2: heap) : Tot Type0
val equal_dom (h1 h2: heap) : Tot Type0
let equal_dom (h1:heap) (h2:heap) :Tot Type0 = forall (a:Type0) (r:ref a). h1 `contains` r <==> h2 `contains` r
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 66, "end_line": 100, "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.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.fsti" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.Set", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "fu...
{ "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
h1: FStar.DM4F.Heap.heap -> h2: FStar.DM4F.Heap.heap -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Heap.heap", "Prims.l_Forall", "FStar.DM4F.Heap.ref", "Prims.l_iff", "FStar.DM4F.Heap.contains" ]
[]
false
false
false
true
true
let equal_dom (h1 h2: heap) : Tot Type0 =
forall (a: Type0) (r: ref a). h1 `contains` r <==> h2 `contains` r
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.create
val create (x:elem) : Tot tape
val create (x:elem) : Tot tape
let create (x:elem) : Tot tape = create #elem size x
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 52, "end_line": 39, "start_col": 0, "start_line": 39 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: FStar.DM4F.OTP.Heap.elem -> FStar.DM4F.OTP.Heap.tape
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.OTP.Heap.elem", "FStar.Seq.Base.create", "FStar.DM4F.OTP.Heap.size", "FStar.DM4F.OTP.Heap.tape" ]
[]
false
false
false
true
false
let create (x: elem) : Tot tape =
create #elem size x
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.lemma_eq_intro
val lemma_eq_intro: s1:tape -> s2:tape -> Lemma (requires ((forall (i:id).{:pattern (index s1 i); (index s2 i)} index s1 i == index s2 i))) (ensures (equal s1 s2)) [SMTPat (equal s1 s2)]
val lemma_eq_intro: s1:tape -> s2:tape -> Lemma (requires ((forall (i:id).{:pattern (index s1 i); (index s2 i)} index s1 i == index s2 i))) (ensures (equal s1 s2)) [SMTPat (equal s1 s2)]
let lemma_eq_intro s1 s2 = assert (forall (i:id). index s1 i == Seq.index s1 i); assert (forall (i:id). index s2 i == Seq.index s2 i); Seq.lemma_eq_intro #elem s1 s2
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 46, "start_col": 0, "start_line": 43 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
s1: FStar.DM4F.OTP.Heap.tape -> s2: FStar.DM4F.OTP.Heap.tape -> FStar.Pervasives.Lemma (requires forall (i: FStar.DM4F.OTP.Heap.id). {:pattern FStar.DM4F.OTP.Heap.index s1 i; FStar.DM4F.OTP.Heap.index s2 i} FStar.DM4F.OTP.Heap.index s1 i == FStar.DM4F.OTP.Heap.index s2 i) (ensu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.DM4F.OTP.Heap.tape", "FStar.Seq.Base.lemma_eq_intro", "FStar.DM4F.OTP.Heap.elem", "Prims.unit", "Prims._assert", "Prims.l_Forall", "FStar.DM4F.OTP.Heap.id", "Prims.eq2", "FStar.DM4F.OTP.Heap.index", "FStar.Seq.Base.index" ]
[]
false
false
true
false
false
let lemma_eq_intro s1 s2 =
assert (forall (i: id). index s1 i == Seq.index s1 i); assert (forall (i: id). index s2 i == Seq.index s2 i); Seq.lemma_eq_intro #elem s1 s2
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.lemma_index_upd1
val lemma_index_upd1: s:tape -> n:id -> v:elem -> Lemma (requires True) (ensures (index (upd s n v) n == v)) [SMTPat (index (upd s n v) n)]
val lemma_index_upd1: s:tape -> n:id -> v:elem -> Lemma (requires True) (ensures (index (upd s n v) n == v)) [SMTPat (index (upd s n v) n)]
let lemma_index_upd1 s n v = lemma_index_upd1 #elem s n v
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 50, "start_col": 0, "start_line": 50 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: FStar.DM4F.OTP.Heap.tape -> n: FStar.DM4F.OTP.Heap.id -> v: FStar.DM4F.OTP.Heap.elem -> FStar.Pervasives.Lemma (ensures FStar.DM4F.OTP.Heap.index (FStar.DM4F.OTP.Heap.upd s n v) n == v) [SMTPat (FStar.DM4F.OTP.Heap.index (FStar.DM4F.OTP.Heap.upd s n v) n)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.DM4F.OTP.Heap.tape", "FStar.DM4F.OTP.Heap.id", "FStar.DM4F.OTP.Heap.elem", "FStar.Seq.Base.lemma_index_upd1", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_index_upd1 s n v =
lemma_index_upd1 #elem s n v
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.mk_proj_g_pow2_64
val mk_proj_g_pow2_64: unit -> StackInline (lbuffer uint64 12ul) (requires fun _ -> True) (ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 proj_g_pow2_64_lseq)
val mk_proj_g_pow2_64: unit -> StackInline (lbuffer uint64 12ul) (requires fun _ -> True) (ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 proj_g_pow2_64_lseq)
let mk_proj_g_pow2_64 () = createL proj_g_pow2_64_list
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 187, "start_col": 0, "start_line": 186 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.PrecompTable", "short_module": "SPTK" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "...
{ "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.HyperStack.ST.StackInline (Lib.Buffer.lbuffer Lib.IntTypes.uint64 12ul)
FStar.HyperStack.ST.StackInline
[]
[]
[ "Prims.unit", "Lib.Buffer.createL", "Lib.IntTypes.uint64", "Hacl.P256.PrecompTable.proj_g_pow2_64_list", "Lib.Buffer.lbuffer", "Lib.IntTypes.size", "FStar.Pervasives.normalize_term", "Lib.IntTypes.size_nat", "FStar.List.Tot.Base.length", "FStar.UInt32.__uint_to_t" ]
[]
false
true
false
false
false
let mk_proj_g_pow2_64 () =
createL proj_g_pow2_64_list
false
FStar.DM4F.Heap.fsti
FStar.DM4F.Heap.only
val only : x: FStar.DM4F.Heap.ref _ -> FStar.Set.set Prims.nat
let only x = singleton (addr_of x)
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 71, "start_col": 0, "start_line": 71 }
(* 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.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.fsti" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.Set", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "fu...
{ "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: FStar.DM4F.Heap.ref _ -> FStar.Set.set Prims.nat
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Heap.ref", "FStar.Set.singleton", "Prims.nat", "FStar.DM4F.Heap.addr_of", "FStar.Set.set" ]
[]
false
false
false
true
false
let only x =
singleton (addr_of x)
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.lemma_index_upd2
val lemma_index_upd2: s:tape -> n:id -> v:elem -> i:id{i<>n} -> Lemma (requires True) (ensures (index (upd s n v) i == index s i)) [SMTPat (index (upd s n v) i)]
val lemma_index_upd2: s:tape -> n:id -> v:elem -> i:id{i<>n} -> Lemma (requires True) (ensures (index (upd s n v) i == index s i)) [SMTPat (index (upd s n v) i)]
let lemma_index_upd2 s n v i = lemma_index_upd2 #elem s n v i
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 52, "start_col": 0, "start_line": 52 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: FStar.DM4F.OTP.Heap.tape -> n: FStar.DM4F.OTP.Heap.id -> v: FStar.DM4F.OTP.Heap.elem -> i: FStar.DM4F.OTP.Heap.id{i <> n} -> FStar.Pervasives.Lemma (ensures FStar.DM4F.OTP.Heap.index (FStar.DM4F.OTP.Heap.upd s n v) i == FStar.DM4F.OTP.Heap.index s i ) [SMTPat (FStar.DM4F.OTP.He...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.DM4F.OTP.Heap.tape", "FStar.DM4F.OTP.Heap.id", "FStar.DM4F.OTP.Heap.elem", "Prims.b2t", "Prims.op_disEquality", "FStar.Seq.Base.lemma_index_upd2", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_index_upd2 s n v i =
lemma_index_upd2 #elem s n v i
false
FStar.DM4F.Heap.fsti
FStar.DM4F.Heap.fresh
val fresh : s: FStar.Set.set Prims.nat -> h0: FStar.DM4F.Heap.heap -> h1: FStar.DM4F.Heap.heap -> Prims.logical
let fresh (s:set nat) (h0:heap) (h1:heap) = forall (a:Type) (r:ref a).{:pattern (h0 `contains` r)} mem (addr_of r) s ==> ~ (h0 `contains` r) /\ (h1 `contains` r)
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 85, "end_line": 69, "start_col": 0, "start_line": 67 }
(* 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.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.fsti" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.Set", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "fu...
{ "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: FStar.Set.set Prims.nat -> h0: FStar.DM4F.Heap.heap -> h1: FStar.DM4F.Heap.heap -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Set.set", "Prims.nat", "FStar.DM4F.Heap.heap", "Prims.l_Forall", "FStar.DM4F.Heap.ref", "Prims.l_imp", "Prims.b2t", "FStar.Set.mem", "FStar.DM4F.Heap.addr_of", "Prims.l_and", "Prims.l_not", "FStar.DM4F.Heap.contains", "Prims.logical" ]
[]
false
false
false
true
true
let fresh (s: set nat) (h0 h1: heap) =
forall (a: Type) (r: ref a). {:pattern (h0 `contains` r)} mem (addr_of r) s ==> ~(h0 `contains` r) /\ (h1 `contains` r)
false
FStar.DM4F.Heap.fsti
FStar.DM4F.Heap.op_Plus_Plus_Hat
val ( ++^ ) (#a: Type) (s: set nat) (r: ref a) : Tot (set nat)
val ( ++^ ) (#a: Type) (s: set nat) (r: ref a) : Tot (set nat)
let op_Plus_Plus_Hat (#a:Type) (s:set nat) (r:ref a): Tot (set nat) = union s (only r)
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 86, "end_line": 170, "start_col": 0, "start_line": 170 }
(* 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.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.fsti" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.Set", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "fu...
{ "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: FStar.Set.set Prims.nat -> r: FStar.DM4F.Heap.ref a -> FStar.Set.set Prims.nat
Prims.Tot
[ "total" ]
[]
[ "FStar.Set.set", "Prims.nat", "FStar.DM4F.Heap.ref", "FStar.Set.union", "FStar.DM4F.Heap.only" ]
[]
false
false
false
true
false
let ( ++^ ) (#a: Type) (s: set nat) (r: ref a) : Tot (set nat) =
union s (only r)
false
FStar.DM4F.Heap.fsti
FStar.DM4F.Heap.op_Hat_Plus_Plus
val ( ^++ ) (#a: Type) (r: ref a) (s: set nat) : Tot (set nat)
val ( ^++ ) (#a: Type) (r: ref a) (s: set nat) : Tot (set nat)
let op_Hat_Plus_Plus (#a:Type) (r:ref a) (s:set nat) : Tot (set nat) = union (only r) s
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 168, "start_col": 0, "start_line": 167 }
(* 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.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.fsti" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.Set", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.DM4F.Heap.ref a -> s: FStar.Set.set Prims.nat -> FStar.Set.set Prims.nat
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Heap.ref", "FStar.Set.set", "Prims.nat", "FStar.Set.union", "FStar.DM4F.Heap.only" ]
[]
false
false
false
true
false
let ( ^++ ) (#a: Type) (r: ref a) (s: set nat) : Tot (set nat) =
union (only r) s
false
FStar.DM4F.Heap.fsti
FStar.DM4F.Heap.modifies
val modifies : s: FStar.Set.set Prims.nat -> h0: FStar.DM4F.Heap.heap -> h1: FStar.DM4F.Heap.heap -> Prims.logical
let modifies (s:set nat) (h0:heap) (h1:heap) = (forall (a:Type) (r:ref a).{:pattern (sel h1 r)} ~ (mem (addr_of r) s) /\ h0 `contains` r ==> sel h1 r == sel h0 r) /\ (forall (a:Type) (r:ref a).{:pattern (h1 `contains` r)} h0 `contains` r ==> ...
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 113, "end_line": 131, "start_col": 0, "start_line": 123 }
(* 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.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.fsti" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.Set", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "fu...
{ "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: FStar.Set.set Prims.nat -> h0: FStar.DM4F.Heap.heap -> h1: FStar.DM4F.Heap.heap -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Set.set", "Prims.nat", "FStar.DM4F.Heap.heap", "Prims.l_and", "Prims.l_Forall", "FStar.DM4F.Heap.ref", "Prims.l_imp", "Prims.l_not", "Prims.b2t", "FStar.Set.mem", "FStar.DM4F.Heap.addr_of", "FStar.DM4F.Heap.contains", "Prims.eq2", "FStar.DM4F.Heap.sel", "FStar.DM4F.Heap.contains_a...
[]
false
false
false
true
true
let modifies (s: set nat) (h0 h1: heap) =
(forall (a: Type) (r: ref a). {:pattern (sel h1 r)} ~(mem (addr_of r) s) /\ h0 `contains` r ==> sel h1 r == sel h0 r) /\ (forall (a: Type) (r: ref a). {:pattern (h1 `contains` r)} h0 `contains` r ==> h1 `contains` r) /\ (forall (a: Type) (r: ref a). {:pattern (h1 `contains_a_well_typed` r)} (~(mem (addr_of r) s...
false
EverParse3d.AppCtxt.fsti
EverParse3d.AppCtxt.app_ctxt
val app_ctxt : Type0
let app_ctxt = x:B.pointer U8.t { B.frameOf x == region }
{ "file_name": "src/3d/prelude/EverParse3d.AppCtxt.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 57, "end_line": 9, "start_col": 0, "start_line": 9 }
module EverParse3d.AppCtxt module B = LowStar.Buffer module HS = FStar.HyperStack module U64 = FStar.UInt64 module U8 = FStar.UInt8 open LowStar.Buffer open FStar.HyperStack.ST
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "sour...
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "LowStar.Buffer", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
Type0
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.pointer", "FStar.UInt8.t", "Prims.eq2", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.frameOf", "LowStar.Buffer.trivial_preorder", "EverParse3d.AppCtxt.region" ]
[]
false
false
false
true
true
let app_ctxt =
x: B.pointer U8.t {B.frameOf x == region}
false
EverParse3d.AppCtxt.fsti
EverParse3d.AppCtxt.loc_of
val loc_of (x: app_ctxt) : GTot B.loc
val loc_of (x: app_ctxt) : GTot B.loc
let loc_of (x:app_ctxt) : GTot B.loc = B.loc_buffer x
{ "file_name": "src/3d/prelude/EverParse3d.AppCtxt.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 53, "end_line": 10, "start_col": 0, "start_line": 10 }
module EverParse3d.AppCtxt module B = LowStar.Buffer module HS = FStar.HyperStack module U64 = FStar.UInt64 module U8 = FStar.UInt8 open LowStar.Buffer open FStar.HyperStack.ST val region : HS.rid
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "sour...
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "LowStar.Buffer", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
x: EverParse3d.AppCtxt.app_ctxt -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "EverParse3d.AppCtxt.app_ctxt", "LowStar.Monotonic.Buffer.loc_buffer", "FStar.UInt8.t", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.loc" ]
[]
false
false
false
false
false
let loc_of (x: app_ctxt) : GTot B.loc =
B.loc_buffer x
false
FStar.DM4F.Heap.fsti
FStar.DM4F.Heap.op_Hat_Plus_Hat
val ( ^+^ ) (#a #b: Type) (r1: ref a) (r2: ref b) : Tot (set nat)
val ( ^+^ ) (#a #b: Type) (r1: ref a) (r2: ref b) : Tot (set nat)
let op_Hat_Plus_Hat (#a:Type) (#b:Type) (r1:ref a) (r2:ref b) : Tot (set nat) = union (only r1) (only r2)
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 173, "start_col": 0, "start_line": 172 }
(* 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.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.fsti" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.Set", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "fu...
{ "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
r1: FStar.DM4F.Heap.ref a -> r2: FStar.DM4F.Heap.ref b -> FStar.Set.set Prims.nat
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Heap.ref", "FStar.Set.union", "Prims.nat", "FStar.DM4F.Heap.only", "FStar.Set.set" ]
[]
false
false
false
true
false
let ( ^+^ ) (#a #b: Type) (r1: ref a) (r2: ref b) : Tot (set nat) =
union (only r1) (only r2)
false
FStar.DM4F.OTP.Heap.fst
FStar.DM4F.OTP.Heap.lemma_index_create
val lemma_index_create: v:elem -> i:id -> Lemma (requires True) (ensures (index (create v) i == v)) [SMTPat (index (create v) i)]
val lemma_index_create: v:elem -> i:id -> Lemma (requires True) (ensures (index (create v) i == v)) [SMTPat (index (create v) i)]
let lemma_index_create v i = lemma_index_create #elem size v i
{ "file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 62, "end_line": 54, "start_col": 0, "start_line": 54 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.BitVector.fst.checked" ], "interface_file": true, "source_file": "FStar.DM4F.OTP.Heap.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
v: FStar.DM4F.OTP.Heap.elem -> i: FStar.DM4F.OTP.Heap.id -> FStar.Pervasives.Lemma (ensures FStar.DM4F.OTP.Heap.index (FStar.DM4F.OTP.Heap.create v) i == v) [SMTPat (FStar.DM4F.OTP.Heap.index (FStar.DM4F.OTP.Heap.create v) i)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.DM4F.OTP.Heap.elem", "FStar.DM4F.OTP.Heap.id", "FStar.Seq.Base.lemma_index_create", "FStar.DM4F.OTP.Heap.size", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_index_create v i =
lemma_index_create #elem size v i
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.precomp_basepoint_table_list_w4
val precomp_basepoint_table_list_w4:x: list uint64 {FStar.List.Tot.length x = 192}
val precomp_basepoint_table_list_w4:x: list uint64 {FStar.List.Tot.length x = 192}
let precomp_basepoint_table_list_w4: x:list uint64{FStar.List.Tot.length x = 192} = normalize_term (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 15)
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 89, "end_line": 201, "start_col": 0, "start_line": 200 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Point", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.list (Lib.IntTypes.int_t Lib.IntTypes.U64 Lib.IntTypes.SEC) {FStar.List.Tot.Base.length x = 192}
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize_term", "Prims.list", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.List.Tot.Base.length", "Hacl.Spec.PrecompBaseTable.precomp_base_table_list", "Spec.P256.PointOps.proj_point", "FStar.UInt32.uint_...
[]
false
false
false
false
false
let precomp_basepoint_table_list_w4:x: list uint64 {FStar.List.Tot.length x = 192} =
normalize_term (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 15)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.to_post
val to_post : post: Steel.Effect.Common.post_t a -> x: a -> Steel.Memory.slprop
let to_post (#a:Type) (post:post_t a) = fun x -> (hp_of (post x))
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 65, "end_line": 33, "start_col": 0, "start_line": 33 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Common", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "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
post: Steel.Effect.Common.post_t a -> x: a -> Steel.Memory.slprop
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.post_t", "Steel.Effect.Common.hp_of", "Steel.Memory.slprop" ]
[]
false
false
false
true
false
let to_post (#a: Type) (post: post_t a) =
fun x -> (hp_of (post x))
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.repr
val repr (a:Type u#a) (already_framed:bool) (opened_invariants:inames) (g:observability) (pre:pre_t) (post:post_t a) (req:req_t pre) (ens:ens_t pre a post) : Type u#(max a 2)
val repr (a:Type u#a) (already_framed:bool) (opened_invariants:inames) (g:observability) (pre:pre_t) (post:post_t a) (req:req_t pre) (ens:ens_t pre a post) : Type u#(max a 2)
let repr a framed opened f pre post req ens = action_except_full a opened (hp_of pre) (to_post post) (req_to_act_req req) (ens_to_act_ens ens)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 45, "end_line": 42, "start_col": 0, "start_line": 40 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Common", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "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 -> already_framed: Prims.bool -> opened_invariants: Steel.Memory.inames -> g: Steel.Effect.Common.observability -> pre: Steel.Effect.Common.pre_t -> post: Steel.Effect.Common.post_t a -> req: Steel.Effect.Common.req_t pre -> ens: Steel.Effect.Common.ens_t pre a post -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Steel.Memory.inames", "Steel.Effect.Common.observability", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Steel.Memory.action_except_full", "Steel.Effect.Common.hp_of", "Steel.Effect.Atomic.to_post", "Steel.Eff...
[]
false
false
false
false
true
let repr a framed opened f pre post req ens =
action_except_full a opened (hp_of pre) (to_post post) (req_to_act_req req) (ens_to_act_ens ens)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.lift_ghost_atomic
val lift_ghost_atomic (a:Type) (opened:inames) (#framed:eqtype_as_type bool) (#[@@@ framing_implicit] pre:pre_t) (#[@@@ framing_implicit] post:post_t a) (#[@@@ framing_implicit] req:req_t pre) (#[@@@ framing_implicit] ens:ens_t pre a post) (f:repr a framed opened Unobservable pre post req ens) : repr a fr...
val lift_ghost_atomic (a:Type) (opened:inames) (#framed:eqtype_as_type bool) (#[@@@ framing_implicit] pre:pre_t) (#[@@@ framing_implicit] post:post_t a) (#[@@@ framing_implicit] req:req_t pre) (#[@@@ framing_implicit] ens:ens_t pre a post) (f:repr a framed opened Unobservable pre post req ens) : repr a fr...
let lift_ghost_atomic a o f = f
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 351, "start_col": 0, "start_line": 351 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> opened: Steel.Memory.inames -> f: Steel.Effect.Atomic.repr a framed opened Steel.Effect.Common.Unobservable pre post req ens -> Steel.Effect.Atomic.repr a framed opened Steel.Effect.Common.Unobservable pre post req ens
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "FStar.Pervasives.eqtype_as_type", "Prims.bool", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Steel.Effect.Atomic.repr", "Steel.Effect.Common.Unobservable" ]
[]
false
false
false
false
false
let lift_ghost_atomic a o f =
f
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.mk_proj_g_pow2_128
val mk_proj_g_pow2_128: unit -> StackInline (lbuffer uint64 12ul) (requires fun _ -> True) (ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 proj_g_pow2_128_lseq)
val mk_proj_g_pow2_128: unit -> StackInline (lbuffer uint64 12ul) (requires fun _ -> True) (ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 proj_g_pow2_128_lseq)
let mk_proj_g_pow2_128 () = createL proj_g_pow2_128_list
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 190, "start_col": 0, "start_line": 189 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.PrecompTable", "short_module": "SPTK" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "...
{ "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.HyperStack.ST.StackInline (Lib.Buffer.lbuffer Lib.IntTypes.uint64 12ul)
FStar.HyperStack.ST.StackInline
[]
[]
[ "Prims.unit", "Lib.Buffer.createL", "Lib.IntTypes.uint64", "Hacl.P256.PrecompTable.proj_g_pow2_128_list", "Lib.Buffer.lbuffer", "Lib.IntTypes.size", "FStar.Pervasives.normalize_term", "Lib.IntTypes.size_nat", "FStar.List.Tot.Base.length", "FStar.UInt32.__uint_to_t" ]
[]
false
true
false
false
false
let mk_proj_g_pow2_128 () =
createL proj_g_pow2_128_list
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.get
val get (#p:vprop) (#opened:inames) (_:unit) : SteelGhostF (erased (rmem p)) opened p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1 /\ frame_equalities p r h1)
val get (#p:vprop) (#opened:inames) (_:unit) : SteelGhostF (erased (rmem p)) opened p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1 /\ frame_equalities p r h1)
let get () = SteelGhost?.reflect (get0 ())
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 371, "start_col": 0, "start_line": 371 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.Effect.Atomic.SteelGhostF (FStar.Ghost.erased (Steel.Effect.Common.rmem p))
Steel.Effect.Atomic.SteelGhostF
[]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.inames", "Prims.unit", "Steel.Effect.Atomic.get0", "FStar.Ghost.erased", "Steel.Effect.Common.rmem", "Prims.l_True", "Prims.l_and", "Steel.Effect.Common.frame_equalities", "FStar.Ghost.reveal" ]
[]
false
true
false
false
false
let get () =
SteelGhost?.reflect (get0 ())
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.ens_to_act_ens
val ens_to_act_ens (#pre: pre_t) (#a: Type) (#post: post_t a) (ens: ens_t pre a post) : mprop2 (hp_of pre) (to_post post)
val ens_to_act_ens (#pre: pre_t) (#a: Type) (#post: post_t a) (ens: ens_t pre a post) : mprop2 (hp_of pre) (to_post post)
let ens_to_act_ens (#pre:pre_t) (#a:Type) (#post:post_t a) (ens:ens_t pre a post) : mprop2 (hp_of pre) (to_post post) = fun m0 x m1 -> interp (hp_of pre) m0 /\ interp (hp_of (post x)) m1 /\ ens (mk_rmem pre m0) x (mk_rmem (post x) m1)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 38, "start_col": 0, "start_line": 35 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Common", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "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
ens: Steel.Effect.Common.ens_t pre a post -> Steel.Memory.mprop2 (Steel.Effect.Common.hp_of pre) (Steel.Effect.Atomic.to_post post)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.ens_t", "Steel.Memory.mem", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.mk_rmem", "Prims.prop", "Steel.Memory.mprop2", "Steel.Effect.Atomic.to_post" ]
[]
false
false
false
false
false
let ens_to_act_ens (#pre: pre_t) (#a: Type) (#post: post_t a) (ens: ens_t pre a post) : mprop2 (hp_of pre) (to_post post) =
fun m0 x m1 -> interp (hp_of pre) m0 /\ interp (hp_of (post x)) m1 /\ ens (mk_rmem pre m0) x (mk_rmem (post x) m1)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.equiv_middle_left_assoc
val equiv_middle_left_assoc (a b c d: slprop) : Lemma ((((a `Mem.star` b) `Mem.star` c) `Mem.star` d) `Mem.equiv` ((a `Mem.star` (b `Mem.star` c)) `Mem.star` d))
val equiv_middle_left_assoc (a b c d: slprop) : Lemma ((((a `Mem.star` b) `Mem.star` c) `Mem.star` d) `Mem.equiv` ((a `Mem.star` (b `Mem.star` c)) `Mem.star` d))
let equiv_middle_left_assoc (a b c d:slprop) : Lemma (((a `Mem.star` b) `Mem.star` c `Mem.star` d) `Mem.equiv` (a `Mem.star` (b `Mem.star` c) `Mem.star` d)) = let open Steel.Memory in star_associative a b c; star_congruence ((a `star` b) `star` c) d (a `star` (b `star` c)) d
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 82, "start_col": 0, "start_line": 77 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.Memory.slprop -> b: Steel.Memory.slprop -> c: Steel.Memory.slprop -> d: Steel.Memory.slprop -> FStar.Pervasives.Lemma (ensures Steel.Memory.equiv (Steel.Memory.star (Steel.Memory.star (Steel.Memory.star a b) c) d) (Steel.Memory.star (Steel.Memory.star a (Steel.Memory.star b c)) d))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Memory.slprop", "Steel.Memory.star_congruence", "Steel.Memory.star", "Prims.unit", "Steel.Memory.star_associative", "Prims.l_True", "Prims.squash", "Steel.Memory.equiv", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let equiv_middle_left_assoc (a b c d: slprop) : Lemma ((((a `Mem.star` b) `Mem.star` c) `Mem.star` d) `Mem.equiv` ((a `Mem.star` (b `Mem.star` c)) `Mem.star` d)) =
let open Steel.Memory in star_associative a b c; star_congruence ((a `star` b) `star` c) d (a `star` (b `star` c)) d
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.req_to_act_req
val req_to_act_req (#pre: vprop) (req: req_t pre) : mprop (hp_of pre)
val req_to_act_req (#pre: vprop) (req: req_t pre) : mprop (hp_of pre)
let req_to_act_req (#pre:vprop) (req:req_t pre) : mprop (hp_of pre) = fun m -> rmem_depends_only_on pre; interp (hp_of pre) m /\ req (mk_rmem pre m)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 47, "end_line": 30, "start_col": 0, "start_line": 27 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Common", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "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
req: Steel.Effect.Common.req_t pre -> Steel.Memory.mprop (Steel.Effect.Common.hp_of pre)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.req_t", "Steel.Memory.mem", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.mk_rmem", "Prims.unit", "Steel.Effect.rmem_depends_only_on", "Prims.prop", "Steel.Memory.mprop" ]
[]
false
false
false
false
false
let req_to_act_req (#pre: vprop) (req: req_t pre) : mprop (hp_of pre) =
fun m -> rmem_depends_only_on pre; interp (hp_of pre) m /\ req (mk_rmem pre m)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.rewrite_slprop
val rewrite_slprop (#opened:inames) (p q:vprop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m) ) : SteelGhostT unit opened p (fun _ -> q)
val rewrite_slprop (#opened:inames) (p q:vprop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m) ) : SteelGhostT unit opened p (fun _ -> q)
let rewrite_slprop p q l = SteelGhost?.reflect (rewrite_slprop0 p q l)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 408, "start_col": 0, "start_line": 408 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m) (ensures Steel.Memory.interp (Steel.Effect.Common.hp_of q) m)) -> Steel.Effect.Atomic.SteelGhostT ...
Steel.Effect.Atomic.SteelGhostT
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Steel.Effect.Atomic.rewrite_slprop0" ]
[]
false
true
false
false
false
let rewrite_slprop p q l =
SteelGhost?.reflect (rewrite_slprop0 p q l)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.return_
val return_ (a:Type u#a) (x:a) (opened_invariants:inames) (#[@@@ framing_implicit] p:a -> vprop) : repr a true opened_invariants Unobservable (return_pre (p x)) p (return_req (p x)) (return_ens a x p)
val return_ (a:Type u#a) (x:a) (opened_invariants:inames) (#[@@@ framing_implicit] p:a -> vprop) : repr a true opened_invariants Unobservable (return_pre (p x)) p (return_req (p x)) (return_ens a x p)
let return_ a x opened #p = fun _ -> let m0:full_mem = NMSTTotal.get () in let h0 = mk_rmem (p x) (core_mem m0) in lemma_frame_equalities_refl (p x) h0; x
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 3, "end_line": 48, "start_col": 0, "start_line": 44 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Common", "short_module": null }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "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 -> opened_invariants: Steel.Memory.inames -> Steel.Effect.Atomic.repr a true opened_invariants Steel.Effect.Common.Unobservable (Steel.Effect.Common.return_pre (p x)) p (Steel.Effect.Atomic.return_req (p x)) (Steel.Effect.Atomic.return_ens a x p)
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Memory.slprop", "Prims.unit", "Steel.Effect.lemma_frame_equalities_refl", "Steel.Effect.Common.rmem'", "Steel.Effect.Common.valid_rmem", "Steel.Effect.Common.mk_rmem", "Steel.Memory.core_mem", "Steel.Memory.full_mem", "FStar.NMSTTotal.ge...
[]
false
false
false
false
false
let return_ a x opened #p =
fun _ -> let m0:full_mem = NMSTTotal.get () in let h0 = mk_rmem (p x) (core_mem m0) in lemma_frame_equalities_refl (p x) h0; x
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.bind_req_opaque
val bind_req_opaque: #a: Type -> #pre_f: pre_t -> #post_f: post_t a -> req_f: req_t pre_f -> ens_f: ens_t pre_f a post_f -> #pre_g: (a -> pre_t) -> #pr: (a -> prop) -> req_g: (x: a -> req_t (pre_g x)) -> frame_f: vprop -> frame_g: (a -> vprop) -> squash (can_be_split_forall_d...
val bind_req_opaque: #a: Type -> #pre_f: pre_t -> #post_f: post_t a -> req_f: req_t pre_f -> ens_f: ens_t pre_f a post_f -> #pre_g: (a -> pre_t) -> #pr: (a -> prop) -> req_g: (x: a -> req_t (pre_g x)) -> frame_f: vprop -> frame_g: (a -> vprop) -> squash (can_be_split_forall_d...
let bind_req_opaque (#a:Type) (#pre_f:pre_t) (#post_f:post_t a) (req_f:req_t pre_f) (ens_f:ens_t pre_f a post_f) (#pre_g:a -> pre_t) (#pr:a -> prop) (req_g:(x:a -> req_t (pre_g x))) (frame_f:vprop) (frame_g:a -> vprop) (_:squash (can_be_split_forall_dep pr (fun x -> post_f x `star` frame_f) (fun x -> pre_...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 79, "end_line": 138, "start_col": 0, "start_line": 122 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
req_f: Steel.Effect.Common.req_t pre_f -> ens_f: Steel.Effect.Common.ens_t pre_f a post_f -> req_g: (x: a -> Steel.Effect.Common.req_t (pre_g x)) -> frame_f: Steel.Effect.Common.vprop -> frame_g: (_: a -> Steel.Effect.Common.vprop) -> _: Prims.squash (Steel.Effect.Common.can_be_split_fora...
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Prims.prop", "Steel.Effect.Common.vprop", "Prims.squash", "Steel.Effect.Common.can_be_split_forall_dep", "Steel.Effect.Common.star", "Steel.Effect.Common.rmem", "Prims.l_and", ...
[]
false
false
false
false
false
let bind_req_opaque (#a: Type) (#pre_f: pre_t) (#post_f: post_t a) (req_f: req_t pre_f) (ens_f: ens_t pre_f a post_f) (#pre_g: (a -> pre_t)) (#pr: (a -> prop)) (req_g: (x: a -> req_t (pre_g x))) (frame_f: vprop) (frame_g: (a -> vprop)) (_: squa...
fun m0 -> req_f (focus_rmem m0 pre_f) /\ (forall (x: a) (h1: hmem ((post_f x) `star` frame_f)). (ens_f (focus_rmem m0 pre_f) x (focus_rmem (mk_rmem ((post_f x) `star` frame_f) h1) (post_f x)) /\ frame_opaque frame_f (focus_rmem m0 frame_f) (focus_rmem (mk_rmem (...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.get0
val get0: #opened: inames -> #p: vprop -> unit -> repr (erased (rmem p)) true opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1 /\ frame_equalities p r h1)
val get0: #opened: inames -> #p: vprop -> unit -> repr (erased (rmem p)) true opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1 /\ frame_equalities p r h1)
let get0 (#opened:inames) (#p:vprop) (_:unit) : repr (erased (rmem p)) true opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1 /\ frame_equalities p r h1) = fun frame -> let m0:full_mem = NMSTTotal.get () in let h0 = mk_rmem p (core_mem m0) i...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 8, "end_line": 369, "start_col": 0, "start_line": 361 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.Effect.Atomic.repr (FStar.Ghost.erased (Steel.Effect.Common.rmem p)) true opened Steel.Effect.Common.Unobservable p (fun _ -> p) (fun _ -> Prims.l_True) (fun h0 r h1 -> Steel.Effect.Common.frame_equalities p h0 h1 /\ Steel.Effect.Com...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Prims.unit", "Steel.Memory.slprop", "FStar.Ghost.hide", "Steel.Effect.Common.rmem", "Steel.Effect.lemma_frame_equalities_refl", "Steel.Effect.Common.rmem'", "Steel.Effect.Common.valid_rmem", "Steel.Effect.Common.mk_rmem", "Steel.Memory.core_me...
[]
false
false
false
false
false
let get0 (#opened: inames) (#p: vprop) (_: unit) : repr (erased (rmem p)) true opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1 /\ frame_equalities p r h1) =
fun frame -> let m0:full_mem = NMSTTotal.get () in let h0 = mk_rmem p (core_mem m0) in lemma_frame_equalities_refl p h0; h0
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.bind_ens_opaque
val bind_ens_opaque: #a: Type -> #b: Type -> #pre_f: pre_t -> #post_f: post_t a -> req_f: req_t pre_f -> ens_f: ens_t pre_f a post_f -> #pre_g: (a -> pre_t) -> #post_g: (a -> post_t b) -> #pr: (a -> prop) -> ens_g: (x: a -> ens_t (pre_g x) b (post_g x)) -> frame_f: vprop -> ...
val bind_ens_opaque: #a: Type -> #b: Type -> #pre_f: pre_t -> #post_f: post_t a -> req_f: req_t pre_f -> ens_f: ens_t pre_f a post_f -> #pre_g: (a -> pre_t) -> #post_g: (a -> post_t b) -> #pr: (a -> prop) -> ens_g: (x: a -> ens_t (pre_g x) b (post_g x)) -> frame_f: vprop -> ...
let bind_ens_opaque (#a:Type) (#b:Type) (#pre_f:pre_t) (#post_f:post_t a) (req_f:req_t pre_f) (ens_f:ens_t pre_f a post_f) (#pre_g:a -> pre_t) (#post_g:a -> post_t b) (#pr:a -> prop) (ens_g:(x:a -> ens_t (pre_g x) b (post_g x))) (frame_f:vprop) (frame_g:a -> vprop) (post:post_t b) (_:squash (can_be_spli...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 108, "end_line": 164, "start_col": 0, "start_line": 141 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
req_f: Steel.Effect.Common.req_t pre_f -> ens_f: Steel.Effect.Common.ens_t pre_f a post_f -> ens_g: (x: a -> Steel.Effect.Common.ens_t (pre_g x) b (post_g x)) -> frame_f: Steel.Effect.Common.vprop -> frame_g: (_: a -> Steel.Effect.Common.vprop) -> post: Steel.Effect.Common.post_t b -> _: ...
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Prims.prop", "Steel.Effect.Common.vprop", "Prims.squash", "Steel.Effect.Common.can_be_split_forall_dep", "Steel.Effect.Common.star", "Steel.Effect.Common.can_be_split_post", "Ste...
[]
false
false
false
false
false
let bind_ens_opaque (#a: Type) (#b: Type) (#pre_f: pre_t) (#post_f: post_t a) (req_f: req_t pre_f) (ens_f: ens_t pre_f a post_f) (#pre_g: (a -> pre_t)) (#post_g: (a -> post_t b)) (#pr: (a -> prop)) (ens_g: (x: a -> ens_t (pre_g x) b (post_g x))) (frame_f...
fun m0 y m2 -> req_f (focus_rmem m0 pre_f) /\ (exists (x: a) (h1: hmem ((post_f x) `star` frame_f)). pr x /\ (can_be_split_trans ((post_f x) `star` frame_f) ((pre_g x) `star` (frame_g x)) (pre_g x); can_be_split_trans ((post_f x) `star` frame_f) ((pre_g x) `star` (frame_g x)) (frame_g x); ...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.norm_repr
val norm_repr (#a: Type) (#framed: bool) (#opened: inames) (#obs: observability) (#pre: pre_t) (#post: post_t a) (#req: req_t pre) (#ens: ens_t pre a post) (f: repr a framed opened obs pre post req ens) : repr a framed opened obs pre ...
val norm_repr (#a: Type) (#framed: bool) (#opened: inames) (#obs: observability) (#pre: pre_t) (#post: post_t a) (#req: req_t pre) (#ens: ens_t pre a post) (f: repr a framed opened obs pre post req ens) : repr a framed opened obs pre ...
let norm_repr (#a:Type) (#framed:bool) (#opened:inames) (#obs:observability) (#pre:pre_t) (#post:post_t a) (#req:req_t pre) (#ens:ens_t pre a post) (f:repr a framed opened obs pre post req ens) : repr a framed opened obs pre post (fun h -> norm_opaque (req h)) (fun h0 x h1 -> norm_opaque (ens h0 x h1)) = f
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 4, "end_line": 277, "start_col": 0, "start_line": 273 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Steel.Effect.Atomic.repr a framed opened obs pre post req ens -> Steel.Effect.Atomic.repr a framed opened obs pre post (fun h -> Steel.Effect.norm_opaque (req h)) (fun h0 x h1 -> Steel.Effect.norm_opaque (ens h0 x h1))
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Steel.Memory.inames", "Steel.Effect.Common.observability", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Steel.Effect.Atomic.repr", "Steel.Effect.Common.rmem", "Steel.Effect.norm_opaque" ]
[]
false
false
false
false
false
let norm_repr (#a: Type) (#framed: bool) (#opened: inames) (#obs: observability) (#pre: pre_t) (#post: post_t a) (#req: req_t pre) (#ens: ens_t pre a post) (f: repr a framed opened obs pre post req ens) : repr a framed opened obs pre ...
f
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.sladmit
val sladmit (#a:Type) (#opened:inames) (#p:pre_t) (#q:post_t a) (_:unit) : SteelGhostF a opened p q (requires fun _ -> True) (ensures fun _ _ _ -> False)
val sladmit (#a:Type) (#opened:inames) (#p:pre_t) (#q:post_t a) (_:unit) : SteelGhostF a opened p q (requires fun _ -> True) (ensures fun _ _ _ -> False)
let sladmit _ = SteelGhostF?.reflect (fun _ -> NMSTTotal.nmst_tot_admit ())
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 75, "end_line": 546, "start_col": 0, "start_line": 546 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.Effect.Atomic.SteelGhostF a
Steel.Effect.Atomic.SteelGhostF
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Prims.unit", "Steel.Memory.slprop", "FStar.NMSTTotal.nmst_tot_admit", "Steel.Memory.full_mem", "Steel.Memory.mem_evolves", "Steel.Effect.Common.rmem", "Prims.l_True", "Prims.l_False" ]
[]
false
true
false
false
false
let sladmit _ =
SteelGhostF?.reflect (fun _ -> NMSTTotal.nmst_tot_admit ())
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.lift_atomic_steel
val lift_atomic_steel (a:Type) (o:eqtype_as_type observability) (#framed:eqtype_as_type bool) (#[@@@ framing_implicit] pre:pre_t) (#[@@@ framing_implicit] post:post_t a) (#[@@@ framing_implicit] req:req_t pre) (#[@@@ framing_implicit] ens:ens_t pre a post) (f:repr a framed Set.empty o pre post req ens) : ...
val lift_atomic_steel (a:Type) (o:eqtype_as_type observability) (#framed:eqtype_as_type bool) (#[@@@ framing_implicit] pre:pre_t) (#[@@@ framing_implicit] post:post_t a) (#[@@@ framing_implicit] req:req_t pre) (#[@@@ framing_implicit] ens:ens_t pre a post) (f:repr a framed Set.empty o pre post req ens) : ...
let lift_atomic_steel a o f = f
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 353, "start_col": 0, "start_line": 353 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> o: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability -> f: Steel.Effect.Atomic.repr a framed (FStar.Ghost.hide FStar.Set.empty) o pre post req ens -> Steel.Effect.repr a framed pre post req ens
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.eqtype_as_type", "Steel.Effect.Common.observability", "Prims.bool", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Steel.Effect.Atomic.repr", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FSt...
[]
false
false
false
false
false
let lift_atomic_steel a o f =
f
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.rewrite_slprop0
val rewrite_slprop0 (#opened: inames) (p q: vprop) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m))) : repr unit false opened Unobservable p (fun _ -> q) (fun _ -> True) (fun _ _ _ -> True)
val rewrite_slprop0 (#opened: inames) (p q: vprop) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m))) : repr unit false opened Unobservable p (fun _ -> q) (fun _ -> True) (fun _ _ _ -> True)
let rewrite_slprop0 (#opened:inames) (p q:vprop) (proof:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m) ) : repr unit false opened Unobservable p (fun _ -> q) (fun _ -> True) (fun _ _ _ -> True) = fun frame -> let m:full_mem = NMSTTotal.get () in proof (c...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 405, "start_col": 0, "start_line": 393 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> proof: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m) (ensures Steel.Memory.interp (Steel.Effect.Common.hp_of q) m)) -> Steel.Effect.Atomic.repr Pri...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Steel.Memory.slprop", "Steel.Memory.star_associative", "Steel.Memory.locks_invariant", "Steel.Ef...
[]
false
false
false
false
false
let rewrite_slprop0 (#opened: inames) (p q: vprop) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m))) : repr unit false opened Unobservable p (fun _ -> q) (fun _ -> True) (fun _ _ _ -> True) =
fun frame -> let m:full_mem = NMSTTotal.get () in proof (core_mem m); Classical.forall_intro (Classical.move_requires proof); Mem.star_associative (hp_of p) frame (locks_invariant opened m); intro_star p q (frame `Mem.star` (locks_invariant opened m)) (sel_of p m) (sel_of q m) m proof; Mem.star_associative ...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.intro_star
val intro_star (p q: vprop) (r: slprop) (vp: erased (t_of p)) (vq: erased (t_of q)) (m: mem) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m))) : Lemma (requires interp ((hp_of...
val intro_star (p q: vprop) (r: slprop) (vp: erased (t_of p)) (vq: erased (t_of q)) (m: mem) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m))) : Lemma (requires interp ((hp_of...
let intro_star (p q:vprop) (r:slprop) (vp:erased (t_of p)) (vq:erased (t_of q)) (m:mem) (proof:(m:mem) -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m) ) : Lemma (requires interp ((hp_of p) `Mem.star` r) m /\ sel_of p m == reveal vp) (ensures interp ((hp...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 60, "end_line": 390, "start_col": 0, "start_line": 373 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> r: Steel.Memory.slprop -> vp: FStar.Ghost.erased (Steel.Effect.Common.t_of p) -> vq: FStar.Ghost.erased (Steel.Effect.Common.t_of q) -> m: Steel.Memory.mem -> proof: (m: Steel.Memory.mem -> FStar.Pervasives.Lemm...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.slprop", "FStar.Ghost.erased", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "Prims.unit", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.eq2", "Steel.Effect.Common.sel_of", "FStar.Ghost.reveal", "Prims.squash", "Prims...
[]
false
false
true
false
false
let intro_star (p q: vprop) (r: slprop) (vp: erased (t_of p)) (vq: erased (t_of q)) (m: mem) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m))) : Lemma (requires interp ((hp_of...
let p = hp_of p in let q = hp_of q in let intro (ml mr: mem) : Lemma (requires interp q ml /\ interp r mr /\ disjoint ml mr) (ensures disjoint ml mr /\ interp (q `Mem.star` r) (Mem.join ml mr)) = Mem.intro_star q r ml mr in elim_star p r m; Classical.forall_intro (Classical.move_requires proof); Classical.f...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.subcomp
val subcomp (a:Type) (opened_invariants:inames) (o1:eqtype_as_type observability) (o2:eqtype_as_type observability) (#framed_f: eqtype_as_type bool) (#framed_g: eqtype_as_type bool) (#[@@@ framing_implicit] pre_f:pre_t) (#[@@@ framing_implicit] post_f:post_t a) (#[@@@ framing_implicit] req_f:req_t pre_f) ...
val subcomp (a:Type) (opened_invariants:inames) (o1:eqtype_as_type observability) (o2:eqtype_as_type observability) (#framed_f: eqtype_as_type bool) (#framed_g: eqtype_as_type bool) (#[@@@ framing_implicit] pre_f:pre_t) (#[@@@ framing_implicit] post_f:post_t a) (#[@@@ framing_implicit] req_f:req_t pre_f) ...
let subcomp a opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #fr #_ #pr #p1 #p2 f = lemma_subcomp_pre_opaque req_f ens_f req_g ens_g p1 p2; subcomp_opaque a opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #fr #pr #_ #p1 #p2 f
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 130, "end_line": 341, "start_col": 0, "start_line": 339 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> opened_invariants: Steel.Memory.inames -> o1: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability -> o2: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability -> f: Steel.Effect.Atomic.repr a framed_f opened_invariants o1 pre_f post_f req_f ens_f -> Prims.Pure...
Prims.Pure
[]
[]
[ "Steel.Memory.inames", "FStar.Pervasives.eqtype_as_type", "Steel.Effect.Common.observability", "Prims.bool", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Steel.Effect.Common.vprop", "Prims.squash", "Steel.Effect.Common.mayb...
[]
false
false
false
false
false
let subcomp a opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #fr #_ #pr #p1 #p2 f =
lemma_subcomp_pre_opaque req_f ens_f req_g ens_g p1 p2; subcomp_opaque a opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #fr #pr #_ #p1 #p2 f
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.extract_info_raw
val extract_info_raw (#opened:inames) (p:vprop) (fact:prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures fact) ) : SteelGhost unit opened p (fun _ -> p) (fun h -> True) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact)
val extract_info_raw (#opened:inames) (p:vprop) (fact:prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures fact) ) : SteelGhost unit opened p (fun _ -> p) (fun h -> True) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact)
let extract_info_raw p fact l = SteelGhost?.reflect (extract_info_raw0 p fact l)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 80, "end_line": 542, "start_col": 0, "start_line": 542 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> fact: Prims.prop -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m) (ensures fact)) -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Steel.Effect.Atomic.extract_info_raw0", "Steel.Effect.Common.rmem", "Prims.l_True"...
[]
false
true
false
false
false
let extract_info_raw p fact l =
SteelGhost?.reflect (extract_info_raw0 p fact l)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.bind
val bind (a:Type) (b:Type) (opened_invariants:inames) (o1:eqtype_as_type observability) (o2:eqtype_as_type observability) (#framed_f:eqtype_as_type bool) (#framed_g:eqtype_as_type bool) (#[@@@ framing_implicit] pre_f:pre_t) (#[@@@ framing_implicit] post_f:post_t a) (#[@@@ framing_implicit] req_f:req_t pre...
val bind (a:Type) (b:Type) (opened_invariants:inames) (o1:eqtype_as_type observability) (o2:eqtype_as_type observability) (#framed_f:eqtype_as_type bool) (#framed_g:eqtype_as_type bool) (#[@@@ framing_implicit] pre_f:pre_t) (#[@@@ framing_implicit] post_f:post_t a) (#[@@@ framing_implicit] req_f:req_t pre...
let bind a b opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #frame_f #frame_g #post #_ #_ #p #p2 f g = norm_repr (bind_opaque a b opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #frame_f #frame_g #post #_ #_ #p #p2 f g)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 163, "end_line": 280, "start_col": 0, "start_line": 279 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> opened_invariants: Steel.Memory.inames -> o1: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability -> o2: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability -> f: Steel.Effect.Atomic.repr a framed_f opened_invariants o1 pre_f post_f req_f ens_f ...
Prims.Pure
[]
[]
[ "Steel.Memory.inames", "FStar.Pervasives.eqtype_as_type", "Steel.Effect.Common.observability", "Prims.bool", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Steel.Effect.Common.vprop", "Prims.squash", "Steel.Effect.Common.mayb...
[]
false
false
false
false
false
let bind a b opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #frame_f #frame_g #post #_ #_ #p #p2 f g =
norm_repr (bind_opaque a b opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #frame_f #frame_g #post #_ #_ #p #p2 f g)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.slassert
val slassert (#opened_invariants:_) (p:vprop) : SteelGhost unit opened_invariants p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 _ h1 -> frame_equalities p h0 h1)
val slassert (#opened_invariants:_) (p:vprop) : SteelGhost unit opened_invariants p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 _ h1 -> frame_equalities p h0 h1)
let slassert p = SteelGhost?.reflect (slassert0 p)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 50, "end_line": 557, "start_col": 0, "start_line": 557 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Atomic.slassert0", "Prims.unit", "Steel.Effect.Common.rmem", "Prims.l_True", "Steel.Effect.Common.frame_equalities" ]
[]
false
true
false
false
false
let slassert p =
SteelGhost?.reflect (slassert0 p)
false
Hacl.Impl.Frodo.KEM.KeyGen.fst
Hacl.Impl.Frodo.KEM.KeyGen.frodo_mul_add_as_plus_e_pack
val frodo_mul_add_as_plus_e_pack: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> seed_a:lbytes bytes_seed_a -> s_matrix:matrix_t (params_n a) params_nbar -> e_matrix:matrix_t (params_n a) params_nbar -> b:lbytes (publicmatrixbytes_len a) -> Stack unit (requires fun h -> live h s...
val frodo_mul_add_as_plus_e_pack: a:FP.frodo_alg -> gen_a:FP.frodo_gen_a{is_supported gen_a} -> seed_a:lbytes bytes_seed_a -> s_matrix:matrix_t (params_n a) params_nbar -> e_matrix:matrix_t (params_n a) params_nbar -> b:lbytes (publicmatrixbytes_len a) -> Stack unit (requires fun h -> live h s...
let frodo_mul_add_as_plus_e_pack a gen_a seed_a s_matrix e_matrix b = push_frame (); let b_matrix = matrix_create (params_n a) params_nbar in frodo_mul_add_as_plus_e a gen_a seed_a s_matrix e_matrix b_matrix; frodo_pack (params_logq a) b_matrix b; pop_frame ()
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 106, "start_col": 0, "start_line": 101 }
module Hacl.Impl.Frodo.KEM.KeyGen open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix open Hacl.Impl.Frodo.Params open Hacl.Impl.Frodo.KEM open Hacl.Impl.Frodo.Pack open Hacl.Impl.Frodo.Sample open Hacl.Frodo.Random module ST = F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.KEM.KeyGen.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl....
[ { "abbrev": true, "full_module": "Spec.Frodo.KEM.KeyGen", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "FP" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "M" }, { "abbrev": true, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} -> seed_a: Hacl.Impl.Matrix.lbytes Hacl.Impl.Frodo.Params.bytes_seed_a -> s_matrix: Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.params_n a) Hacl.Impl.Frodo.Params.params...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_alg", "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Hacl.Impl.Matrix.lbytes", "Hacl.Impl.Frodo.Params.bytes_seed_a", "Hacl.Impl.Matrix.matrix_t", "Hacl.Impl.Frodo.Params.params_n", "Hacl.Impl.Frodo.Params.params_nbar", "Hacl.Impl.Fro...
[]
false
true
false
false
false
let frodo_mul_add_as_plus_e_pack a gen_a seed_a s_matrix e_matrix b =
push_frame (); let b_matrix = matrix_create (params_n a) params_nbar in frodo_mul_add_as_plus_e a gen_a seed_a s_matrix e_matrix b_matrix; frodo_pack (params_logq a) b_matrix b; pop_frame ()
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.as_atomic_action_ghost
val as_atomic_action_ghost (#a:Type u#a) (#opened_invariants:inames) (#fp:slprop) (#fp': a -> slprop) (f:action_except a opened_invariants fp fp') : SteelGhostT a opened_invariants (to_vprop fp) (fun x -> to_vp...
val as_atomic_action_ghost (#a:Type u#a) (#opened_invariants:inames) (#fp:slprop) (#fp': a -> slprop) (f:action_except a opened_invariants fp fp') : SteelGhostT a opened_invariants (to_vprop fp) (fun x -> to_vp...
let as_atomic_action_ghost f = SteelGhost?.reflect f
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 52, "end_line": 356, "start_col": 0, "start_line": 356 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Steel.Memory.action_except a opened_invariants fp fp' -> Steel.Effect.Atomic.SteelGhostT a
Steel.Effect.Atomic.SteelGhostT
[]
[]
[ "Steel.Memory.inames", "Steel.Memory.slprop", "Steel.Memory.action_except", "Steel.Effect.Common.to_vprop", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let as_atomic_action_ghost f =
SteelGhost?.reflect f
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop0
val change_slprop0 (#opened: inames) (p q: vprop) (vp: erased (t_of p)) (vq: erased (t_of q)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq))) : repr uni...
val change_slprop0 (#opened: inames) (p q: vprop) (vp: erased (t_of p)) (vq: erased (t_of q)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq))) : repr uni...
let change_slprop0 (#opened:inames) (p q:vprop) (vp:erased (t_of p)) (vq:erased (t_of q)) (proof:(m:mem) -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq) ) : repr unit false opened Unobservable p (fun _ -> q) (fun h -> h p == reveal vp...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 423, "start_col": 0, "start_line": 411 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> vp: FStar.Ghost.erased (Steel.Effect.Common.t_of p) -> vq: FStar.Ghost.erased (Steel.Effect.Common.t_of q) -> proof: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.in...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "Prims.unit", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.eq2", "Steel.Effect.Common.sel_of", "FStar.Ghost.reveal", "Prims.squash", "Prims...
[]
false
false
false
false
false
let change_slprop0 (#opened: inames) (p q: vprop) (vp: erased (t_of p)) (vq: erased (t_of q)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq))) : repr uni...
fun frame -> let m:full_mem = NMSTTotal.get () in Classical.forall_intro_3 reveal_mk_rmem; proof (core_mem m); Classical.forall_intro (Classical.move_requires proof); Mem.star_associative (hp_of p) frame (locks_invariant opened m); intro_star p q (frame `Mem.star` (locks_invariant opened m)) vp vq m proof; ...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.as_atomic_action
val as_atomic_action (#a:Type u#a) (#opened_invariants:inames) (#fp:slprop) (#fp': a -> slprop) (f:action_except a opened_invariants fp fp') : SteelAtomicT a opened_invariants (to_vprop fp) (fun x -> to_vprop (fp' x))
val as_atomic_action (#a:Type u#a) (#opened_invariants:inames) (#fp:slprop) (#fp': a -> slprop) (f:action_except a opened_invariants fp fp') : SteelAtomicT a opened_invariants (to_vprop fp) (fun x -> to_vprop (fp' x))
let as_atomic_action f = SteelAtomic?.reflect f
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 47, "end_line": 355, "start_col": 0, "start_line": 355 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Steel.Memory.action_except a opened_invariants fp fp' -> Steel.Effect.Atomic.SteelAtomicT a
Steel.Effect.Atomic.SteelAtomicT
[]
[]
[ "Steel.Memory.inames", "Steel.Memory.slprop", "Steel.Memory.action_except", "Steel.Effect.Common.to_vprop", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let as_atomic_action f =
SteelAtomic?.reflect f
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop_20
val change_slprop_20 (#opened: inames) (p q: vprop) (vq: erased (t_of q)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq))) : repr unit false opened Unobservable p...
val change_slprop_20 (#opened: inames) (p q: vprop) (vq: erased (t_of q)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq))) : repr unit false opened Unobservable p...
let change_slprop_20 (#opened:inames) (p q:vprop) (vq:erased (t_of q)) (proof:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq) ) : repr unit false opened Unobservable p (fun _ -> q) (fun _ -> True) (fun _ _ h1 -> h1 q == reveal vq) = fun fra...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 454, "start_col": 0, "start_line": 441 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> vq: FStar.Ghost.erased (Steel.Effect.Common.t_of q) -> proof: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m) (ensures Steel.Memory...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.l_and", "Prims.eq2", "Steel.Effect.Common.sel_of", "FStar.Ghost.reveal", "Prims...
[]
false
false
false
false
false
let change_slprop_20 (#opened: inames) (p q: vprop) (vq: erased (t_of q)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq))) : repr unit false opened Unobservable p...
fun frame -> let m:full_mem = NMSTTotal.get () in Classical.forall_intro_3 reveal_mk_rmem; proof (core_mem m); Classical.forall_intro (Classical.move_requires proof); Mem.star_associative (hp_of p) frame (locks_invariant opened m); intro_star p q (frame `Mem.star` (locks_invariant opened m)) (sel_of p m) vq...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.as_atomic_unobservable_action
val as_atomic_unobservable_action (#a:Type u#a) (#opened_invariants:inames) (#fp:slprop) (#fp': a -> slprop) (f:action_except a opened_invariants fp fp') : SteelAtomicUT a opened_inva...
val as_atomic_unobservable_action (#a:Type u#a) (#opened_invariants:inames) (#fp:slprop) (#fp': a -> slprop) (f:action_except a opened_invariants fp fp') : SteelAtomicUT a opened_inva...
let as_atomic_unobservable_action f = SteelAtomicU?.reflect f
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 61, "end_line": 357, "start_col": 0, "start_line": 357 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Steel.Memory.action_except a opened_invariants fp fp' -> Steel.Effect.Atomic.SteelAtomicUT a
Steel.Effect.Atomic.SteelAtomicUT
[]
[]
[ "Steel.Memory.inames", "Steel.Memory.slprop", "Steel.Memory.action_except", "Steel.Effect.Common.to_vprop", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let as_atomic_unobservable_action f =
SteelAtomicU?.reflect f
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.extract_info_raw0
val extract_info_raw0 (#opened: inames) (p: vprop) (fact: prop) (l: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures fact))) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> True) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact)
val extract_info_raw0 (#opened: inames) (p: vprop) (fact: prop) (l: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures fact))) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> True) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact)
let extract_info_raw0 (#opened:inames) (p:vprop) (fact:prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures fact) ) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> True) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact) = fun frame -> let m0:full_mem = NMSTTota...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 540, "start_col": 0, "start_line": 529 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> fact: Prims.prop -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m) (ensures fact)) -> Steel.Effect.Atomic.repr Prims.unit false opened Steel.Effect.Common.Unob...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Steel.Memory.slprop", "Steel.Memory.core_mem", "Steel.Effect.lemma_frame_equalitie...
[]
false
false
false
false
false
let extract_info_raw0 (#opened: inames) (p: vprop) (fact: prop) (l: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures fact))) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> True) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact)...
fun frame -> let m0:full_mem = NMSTTotal.get () in let h0 = mk_rmem p (core_mem m0) in lemma_frame_equalities_refl p h0; l (core_mem m0)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop
val change_slprop (#opened:inames) (p q:vprop) (vp:erased (normal (t_of p))) (vq:erased (normal (t_of q))) (l:(m:mem) -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq) ) : SteelGhost unit opened p (fun _ -> q) (f...
val change_slprop (#opened:inames) (p q:vprop) (vp:erased (normal (t_of p))) (vq:erased (normal (t_of q))) (l:(m:mem) -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq) ) : SteelGhost unit opened p (fun _ -> q) (f...
let change_slprop p q vp vq l = SteelGhost?.reflect (change_slprop0 p q vp vq l)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 81, "end_line": 426, "start_col": 0, "start_line": 426 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> vp: FStar.Ghost.erased (Steel.Effect.Common.normal (Steel.Effect.Common.t_of p)) -> vq: FStar.Ghost.erased (Steel.Effect.Common.normal (Steel.Effect.Common.t_of q)) -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma ...
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "Prims.unit", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.eq2", "Steel.Effect.Common.sel_of", "FStar.Ghost.rev...
[]
false
true
false
false
false
let change_slprop p q vp vq l =
SteelGhost?.reflect (change_slprop0 p q vp vq l)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.return
val return (#a:Type u#a) (#opened_invariants:inames) (#p:a -> vprop) (x:a) : SteelAtomicBase a true opened_invariants Unobservable (return_pre (p x)) p (return_req (p x)) (return_ens a x p)
val return (#a:Type u#a) (#opened_invariants:inames) (#p:a -> vprop) (x:a) : SteelAtomicBase a true opened_invariants Unobservable (return_pre (p x)) p (return_req (p x)) (return_ens a x p)
let return #a #opened #p x = SteelAtomicBase?.reflect (return_ a x opened #p)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 77, "end_line": 608, "start_col": 0, "start_line": 608 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> Steel.Effect.Atomic.SteelAtomicBase a
Steel.Effect.Atomic.SteelAtomicBase
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Atomic.return_", "Steel.Effect.Common.Unobservable", "Steel.Effect.Common.return_pre", "Steel.Effect.Atomic.return_req", "Steel.Effect.Atomic.return_ens" ]
[]
false
true
false
false
false
let return #a #opened #p x =
SteelAtomicBase?.reflect (return_ a x opened #p)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.slassert0
val slassert0 (#opened: inames) (p: vprop) : repr unit false opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1)
val slassert0 (#opened: inames) (p: vprop) : repr unit false opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1)
let slassert0 (#opened:inames) (p:vprop) : repr unit false opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1) = fun frame -> let m0:full_mem = NMSTTotal.get () in let h0 = mk_rmem p (core_mem m0) in lemma_frame_equalities_refl p h0
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 38, "end_line": 555, "start_col": 0, "start_line": 548 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> Steel.Effect.Atomic.repr Prims.unit false opened Steel.Effect.Common.Unobservable p (fun _ -> p) (fun _ -> Prims.l_True) (fun h0 _ h1 -> Steel.Effect.Common.frame_equalities p h0 h1)
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Memory.slprop", "Steel.Effect.lemma_frame_equalities_refl", "Steel.Effect.Common.rmem'", "Steel.Effect.Common.valid_rmem", "Steel.Effect.Common.mk_rmem", "Steel.Memory.core_mem", "Prims.unit", "Steel.Memory.full_mem", "FStar.NMSTTotal.ge...
[]
false
false
false
false
false
let slassert0 (#opened: inames) (p: vprop) : repr unit false opened Unobservable p (fun _ -> p) (requires fun _ -> True) (ensures fun h0 r h1 -> frame_equalities p h0 h1) =
fun frame -> let m0:full_mem = NMSTTotal.get () in let h0 = mk_rmem p (core_mem m0) in lemma_frame_equalities_refl p h0
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop_rel0
val change_slprop_rel0 (#opened: inames) (p q: vprop) (rel: (normal (t_of p) -> normal (t_of q) -> prop)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of p) m /\ interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m) ...
val change_slprop_rel0 (#opened: inames) (p q: vprop) (rel: (normal (t_of p) -> normal (t_of q) -> prop)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of p) m /\ interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m) ...
let change_slprop_rel0 (#opened:inames) (p q:vprop) (rel : normal (t_of p) -> normal (t_of q) -> prop) (proof:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of p) m /\ interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m)) ) : repr unit false opened Unobservable p (fun ...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 480, "start_col": 0, "start_line": 459 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> rel: ( _: Steel.Effect.Common.normal (Steel.Effect.Common.t_of p) -> _: Steel.Effect.Common.normal (Steel.Effect.Common.t_of q) -> Prims.prop) -> proof: (m: Steel.Memory.mem -> FStar....
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.l_and", "Steel.Effect.Common.sel_of", "Prims.Nil", "FStar...
[]
false
false
false
false
false
let change_slprop_rel0 (#opened: inames) (p q: vprop) (rel: (normal (t_of p) -> normal (t_of q) -> prop)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of p) m /\ interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m) ...
fun frame -> let m:full_mem = NMSTTotal.get () in Classical.forall_intro_3 reveal_mk_rmem; proof (core_mem m); let h0 = mk_rmem p (core_mem m) in let h1 = mk_rmem q (core_mem m) in reveal_mk_rmem p (core_mem m) p; reveal_mk_rmem q (core_mem m) q; Mem.star_associative (hp_of p) frame (locks_invariant ope...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.vdep_cond
val vdep_cond (v q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) : Tot prop
val vdep_cond (v q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) : Tot prop
let vdep_cond (v: vprop) (q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) : Tot prop = q == p (fst x1)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 727, "start_col": 0, "start_line": 721 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> x1: Steel.Effect.Common.t_of (Steel.Effect.Common.star v q) -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Effect.Common.star", "Prims.eq2", "FStar.Pervasives.Native.fst", "Prims.prop" ]
[]
false
false
false
false
true
let vdep_cond (v q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) : Tot prop =
q == p (fst x1)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.vdep_rel_recip
val vdep_rel_recip (v q: vprop) (p: (t_of v -> Tot vprop)) (x2: (t_of (vdep v p))) (x1: t_of (v `star` q)) : Tot prop
val vdep_rel_recip (v q: vprop) (p: (t_of v -> Tot vprop)) (x2: (t_of (vdep v p))) (x1: t_of (v `star` q)) : Tot prop
let vdep_rel_recip (v: vprop) (q: vprop) (p: (t_of v -> Tot vprop)) (x2: (t_of (vdep v p))) (x1: t_of (v `star` q)) : Tot prop = vdep_rel v q p x1 x2
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 22, "end_line": 788, "start_col": 0, "start_line": 780 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> x2: Steel.Effect.Common.t_of (Steel.Effect.Common.vdep v p) -> x1: Steel.Effect.Common.t_of (Steel.Effect.Common.star v q) -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Effect.Common.vdep", "Steel.Effect.Common.star", "Steel.Effect.Atomic.vdep_rel", "Prims.prop" ]
[]
false
false
false
false
true
let vdep_rel_recip (v q: vprop) (p: (t_of v -> Tot vprop)) (x2: (t_of (vdep v p))) (x1: t_of (v `star` q)) : Tot prop =
vdep_rel v q p x1 x2
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.vdep_cond_recip
val vdep_cond_recip (v: vprop) (p: (t_of v -> Tot vprop)) (q: vprop) (x2: t_of (vdep v p)) : Tot prop
val vdep_cond_recip (v: vprop) (p: (t_of v -> Tot vprop)) (q: vprop) (x2: t_of (vdep v p)) : Tot prop
let vdep_cond_recip (v: vprop) (p: (t_of v -> Tot vprop)) (q: vprop) (x2: t_of (vdep v p)) : Tot prop = q == p (dfst (x2 <: dtuple2 (t_of v) (vdep_payload v p)))
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 59, "end_line": 778, "start_col": 0, "start_line": 772 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> q: Steel.Effect.Common.vprop -> x2: Steel.Effect.Common.t_of (Steel.Effect.Common.vdep v p) -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Effect.Common.vdep", "Prims.eq2", "FStar.Pervasives.dfst", "Steel.Effect.Common.vdep_payload", "Prims.dtuple2", "Prims.prop" ]
[]
false
false
false
false
true
let vdep_cond_recip (v: vprop) (p: (t_of v -> Tot vprop)) (q: vprop) (x2: t_of (vdep v p)) : Tot prop =
q == p (dfst (x2 <: dtuple2 (t_of v) (vdep_payload v p)))
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.extract_info0
val extract_info0 (#opened: inames) (p: vprop) (vp: erased (normal (t_of p))) (fact: prop) (l: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures fact))) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> h...
val extract_info0 (#opened: inames) (p: vprop) (vp: erased (normal (t_of p))) (fact: prop) (l: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures fact))) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> h...
let extract_info0 (#opened:inames) (p:vprop) (vp:erased (normal (t_of p))) (fact:prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures fact) ) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> h p == reveal vp) (fun h0 _ h1 -> frame_equalities p...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 525, "start_col": 0, "start_line": 512 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> vp: FStar.Ghost.erased (Steel.Effect.Common.normal (Steel.Effect.Common.t_of p)) -> fact: Prims.prop -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m /\ ...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.eq2", "Steel.Effect.Common.sel_of", ...
[]
false
false
false
false
false
let extract_info0 (#opened: inames) (p: vprop) (vp: erased (normal (t_of p))) (fact: prop) (l: (m: mem -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures fact))) : repr unit false opened Unobservable p (fun _ -> p) (fun h -> h...
fun frame -> let m0:full_mem = NMSTTotal.get () in Classical.forall_intro_3 reveal_mk_rmem; let h0 = mk_rmem p (core_mem m0) in lemma_frame_equalities_refl p h0; l (core_mem m0)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.mk_selector_vprop_hp
val mk_selector_vprop_hp (#t: Type0) (p: t -> vprop) : Tot (slprop u#1)
val mk_selector_vprop_hp (#t: Type0) (p: t -> vprop) : Tot (slprop u#1)
let mk_selector_vprop_hp p = Steel.Memory.h_exists (hp_of_pointwise p)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 875, "start_col": 0, "start_line": 873 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: t -> Steel.Effect.Common.vprop) -> Steel.Memory.slprop
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.h_exists", "Steel.Effect.Atomic.hp_of_pointwise", "Steel.Memory.slprop" ]
[]
false
false
false
true
false
let mk_selector_vprop_hp p =
Steel.Memory.h_exists (hp_of_pointwise p)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop_rel_with_cond0
val change_slprop_rel_with_cond0 (#opened: inames) (p q: vprop) (cond: (t_of p -> prop)) (rel: ((t_of p) -> (t_of q) -> prop)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ cond (sel_of p m)) (ensures interp (hp_of p) m /\ interp (hp_of ...
val change_slprop_rel_with_cond0 (#opened: inames) (p q: vprop) (cond: (t_of p -> prop)) (rel: ((t_of p) -> (t_of q) -> prop)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ cond (sel_of p m)) (ensures interp (hp_of p) m /\ interp (hp_of ...
let change_slprop_rel_with_cond0 (#opened:inames) (p q:vprop) (cond: t_of p -> prop) (rel : (t_of p) -> (t_of q) -> prop) (proof:(m:mem) -> Lemma (requires interp (hp_of p) m /\ cond (sel_of p m)) (ensures interp (hp_of p) m /\ interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m)) ) : r...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 507, "start_col": 0, "start_line": 484 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> cond: (_: Steel.Effect.Common.t_of p -> Prims.prop) -> rel: (_: Steel.Effect.Common.t_of p -> _: Steel.Effect.Common.t_of q -> Prims.prop) -> proof: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.sel_of", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Steel.M...
[]
false
false
false
false
false
let change_slprop_rel_with_cond0 (#opened: inames) (p q: vprop) (cond: (t_of p -> prop)) (rel: ((t_of p) -> (t_of q) -> prop)) (proof: (m: mem -> Lemma (requires interp (hp_of p) m /\ cond (sel_of p m)) (ensures interp (hp_of p) m /\ interp (hp_of ...
fun frame -> let m:full_mem = NMSTTotal.get () in Classical.forall_intro_3 reveal_mk_rmem; proof (core_mem m); let h0 = mk_rmem p (core_mem m) in let h1 = mk_rmem q (core_mem m) in reveal_mk_rmem p (core_mem m) p; reveal_mk_rmem q (core_mem m) q; Mem.star_associative (hp_of p) frame (locks_invariant ope...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop_2
val change_slprop_2 (#opened:inames) (p q:vprop) (vq:erased (t_of q)) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq) ) : SteelGhost unit opened p (fun _ -> q) (fun _ -> True) (fun _ _ h1 -> h1 q == reveal vq)
val change_slprop_2 (#opened:inames) (p q:vprop) (vq:erased (t_of q)) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ sel_of q m == reveal vq) ) : SteelGhost unit opened p (fun _ -> q) (fun _ -> True) (fun _ _ h1 -> h1 q == reveal vq)
let change_slprop_2 p q vq l = SteelGhost?.reflect (change_slprop_20 p q vq l)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 78, "end_line": 457, "start_col": 0, "start_line": 457 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> vq: FStar.Ghost.erased (Steel.Effect.Common.t_of q) -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m) (ensures Steel.Memory.int...
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.l_and", "Prims.eq2", "Steel.Effect.Common.sel_of", "FStar.Ghost.reveal", "Prims...
[]
false
true
false
false
false
let change_slprop_2 p q vq l =
SteelGhost?.reflect (change_slprop_20 p q vq l)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop_rel
val change_slprop_rel (#opened:inames) (p q:vprop) (rel : normal (t_of p) -> normal (t_of q) -> prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m)) ) : SteelGhost unit opened p (fun _ -> q) (fun _ -> True) (fun h0 _ h1 -> rel (h0 p) (...
val change_slprop_rel (#opened:inames) (p q:vprop) (rel : normal (t_of p) -> normal (t_of q) -> prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m) (ensures interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m)) ) : SteelGhost unit opened p (fun _ -> q) (fun _ -> True) (fun h0 _ h1 -> rel (h0 p) (...
let change_slprop_rel p q rel proof = SteelGhost?.reflect (change_slprop_rel0 p q rel proof)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 92, "end_line": 482, "start_col": 0, "start_line": 482 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> rel: ( _: Steel.Effect.Common.normal (Steel.Effect.Common.t_of p) -> _: Steel.Effect.Common.normal (Steel.Effect.Common.t_of q) -> Prims.prop) -> l: (m: Steel.Memory.mem -> FStar.Perv...
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.squash", "Prims.l_and", "Steel.Effect.Common.sel_of", "Prims.Nil", "FStar...
[]
false
true
false
false
false
let change_slprop_rel p q rel proof =
SteelGhost?.reflect (change_slprop_rel0 p q rel proof)
false
Pulse.PP.fst
Pulse.PP.from_show
val from_show (#a: _) {| d: tac_showable a |} : printable a
val from_show (#a: _) {| d: tac_showable a |} : printable a
let from_show #a {| d : tac_showable a |} : printable a = { pp = (fun x -> arbitrary_string (show x)); }
{ "file_name": "lib/steel/pulse/Pulse.PP.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 55, "start_col": 0, "start_line": 53 }
(* 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.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Show.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Typeclasses.fsti....
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Printer", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
{| d: Pulse.Show.tac_showable a |} -> Pulse.PP.printable a
Prims.Tot
[ "total" ]
[]
[ "Pulse.Show.tac_showable", "Pulse.PP.Mkprintable", "FStar.Stubs.Pprint.arbitrary_string", "FStar.Stubs.Pprint.document", "Prims.string", "Pulse.Show.show", "Pulse.PP.printable" ]
[]
false
false
false
true
false
let from_show #a {| d: tac_showable a |} : printable a =
{ pp = (fun x -> arbitrary_string (show x)) }
false
Pulse.PP.fst
Pulse.PP.indent
val indent : document -> document
val indent : document -> document
let indent d = nest 2 (hardline ^^ align d)
{ "file_name": "lib/steel/pulse/Pulse.PP.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 46, "start_col": 0, "start_line": 45 }
(* 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.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Show.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Typeclasses.fsti....
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Printer", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: FStar.Stubs.Pprint.document -> FStar.Stubs.Pprint.document
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Pprint.document", "FStar.Stubs.Pprint.nest", "FStar.Stubs.Pprint.op_Hat_Hat", "FStar.Stubs.Pprint.hardline", "FStar.Stubs.Pprint.align" ]
[]
false
false
false
true
false
let indent d =
nest 2 (hardline ^^ align d)
false
Pulse.PP.fst
Pulse.PP.text
val text : string -> FStar.Stubs.Pprint.document
val text : string -> FStar.Stubs.Pprint.document
let text (s:string) : FStar.Stubs.Pprint.document = flow (break_ 1) (words s)
{ "file_name": "lib/steel/pulse/Pulse.PP.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 27, "end_line": 33, "start_col": 0, "start_line": 32 }
(* 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.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Show.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Typeclasses.fsti....
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Printer", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Prims.string -> FStar.Stubs.Pprint.document
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.Stubs.Pprint.flow", "FStar.Stubs.Pprint.break_", "FStar.Stubs.Pprint.words", "FStar.Stubs.Pprint.document" ]
[]
false
false
false
true
false
let text (s: string) : FStar.Stubs.Pprint.document =
flow (break_ 1) (words s)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.extract_info
val extract_info (#opened:inames) (p:vprop) (vp:erased (normal (t_of p))) (fact:prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures fact) ) : SteelGhost unit opened p (fun _ -> p) (fun h -> h p == reveal vp) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact...
val extract_info (#opened:inames) (p:vprop) (vp:erased (normal (t_of p))) (fact:prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m /\ sel_of p m == reveal vp) (ensures fact) ) : SteelGhost unit opened p (fun _ -> p) (fun h -> h p == reveal vp) (fun h0 _ h1 -> frame_equalities p h0 h1 /\ fact...
let extract_info p vp fact l = SteelGhost?.reflect (extract_info0 p vp fact l)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 78, "end_line": 527, "start_col": 0, "start_line": 527 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> vp: FStar.Ghost.erased (Steel.Effect.Common.normal (Steel.Effect.Common.t_of p)) -> fact: Prims.prop -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of p) m /\ ...
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Prims.eq2", "Steel.Effect.Common.sel_of", ...
[]
false
true
false
false
false
let extract_info p vp fact l =
SteelGhost?.reflect (extract_info0 p vp fact l)
false
Hacl.P256.PrecompTable.fst
Hacl.P256.PrecompTable.mk_proj_g_pow2_192
val mk_proj_g_pow2_192: unit -> StackInline (lbuffer uint64 12ul) (requires fun _ -> True) (ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 proj_g_pow2_192_lseq)
val mk_proj_g_pow2_192: unit -> StackInline (lbuffer uint64 12ul) (requires fun _ -> True) (ensures fun h0 b h1 -> live h1 b /\ stack_allocated b h0 h1 proj_g_pow2_192_lseq)
let mk_proj_g_pow2_192 () = createL proj_g_pow2_192_list
{ "file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 193, "start_col": 0, "start_line": 192 }
module Hacl.P256.PrecompTable open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module LE = Lib.Exponentiation module SE = Spec.Exponentiation module SPT = Hacl.Spec.PrecompBaseTable module SPT256 = Hacl.Spec.Pr...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hac...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.PrecompTable", "short_module": "SPTK" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "...
{ "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.HyperStack.ST.StackInline (Lib.Buffer.lbuffer Lib.IntTypes.uint64 12ul)
FStar.HyperStack.ST.StackInline
[]
[]
[ "Prims.unit", "Lib.Buffer.createL", "Lib.IntTypes.uint64", "Hacl.P256.PrecompTable.proj_g_pow2_192_list", "Lib.Buffer.lbuffer", "Lib.IntTypes.size", "FStar.Pervasives.normalize_term", "Lib.IntTypes.size_nat", "FStar.List.Tot.Base.length", "FStar.UInt32.__uint_to_t" ]
[]
false
true
false
false
false
let mk_proj_g_pow2_192 () =
createL proj_g_pow2_192_list
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.reveal_star0
val reveal_star0 (#opened: inames) (p1 p2: vprop) : repr unit false opened Unobservable (p1 `star` p2) (fun _ -> p1 `star` p2) (fun _ -> True) (fun h0 _ h1 -> h0 p1 == h1 p1 /\ h0 p2 == h1 p2 /\ h0 (p1 `star` p2) == (h0 p1, h0 p2) /\ h1 (p1 `star` p2) ==...
val reveal_star0 (#opened: inames) (p1 p2: vprop) : repr unit false opened Unobservable (p1 `star` p2) (fun _ -> p1 `star` p2) (fun _ -> True) (fun h0 _ h1 -> h0 p1 == h1 p1 /\ h0 p2 == h1 p2 /\ h0 (p1 `star` p2) == (h0 p1, h0 p2) /\ h1 (p1 `star` p2) ==...
let reveal_star0 (#opened:inames) (p1 p2:vprop) : repr unit false opened Unobservable (p1 `star` p2) (fun _ -> p1 `star` p2) (fun _ -> True) (fun h0 _ h1 -> h0 p1 == h1 p1 /\ h0 p2 == h1 p2 /\ h0 (p1 `star` p2) == (h0 p1, h0 p2) /\ h1 (p1 `star` p2) == (h1 p1, h1 p2) ) = fun frame -> let...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 44, "end_line": 572, "start_col": 0, "start_line": 562 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: Steel.Effect.Common.vprop -> p2: Steel.Effect.Common.vprop -> Steel.Effect.Atomic.repr Prims.unit false opened Steel.Effect.Common.Unobservable (Steel.Effect.Common.star p1 p2) (fun _ -> Steel.Effect.Common.star p1 p2) (fun _ -> Prims.l_True) (fun h0 _ h1 -> h0 ...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Memory.slprop", "FStar.Classical.forall_intro_3", "Steel.Effect.Common.hmem", "Steel.Effect.Common.can_be_split", "Prims.eq2", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Steel.Effect.Common.mk_rmem", "Steel.Effect.Common....
[]
false
false
false
false
false
let reveal_star0 (#opened: inames) (p1 p2: vprop) : repr unit false opened Unobservable (p1 `star` p2) (fun _ -> p1 `star` p2) (fun _ -> True) (fun h0 _ h1 -> h0 p1 == h1 p1 /\ h0 p2 == h1 p2 /\ h0 (p1 `star` p2) == (h0 p1, h0 p2) /\ h1 (p1 `star` p2) ==...
fun frame -> let m:full_mem = NMSTTotal.get () in Classical.forall_intro_3 reveal_mk_rmem
false
Pulse.PP.fst
Pulse.PP.showable_list
[@@ FStar.Tactics.Typeclasses.tcinstance] val showable_list: a: Type -> printable a -> printable (list a)
[@@ FStar.Tactics.Typeclasses.tcinstance] val showable_list: a: Type -> printable a -> printable (list a)
instance showable_list (a:Type) (_ : printable a) : printable (list a) = { pp = (fun l -> brackets (separate_map comma pp l)) }
{ "file_name": "lib/steel/pulse/Pulse.PP.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 79, "start_col": 0, "start_line": 77 }
(* 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.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Show.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Typeclasses.fsti....
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Printer", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> _: Pulse.PP.printable a -> Pulse.PP.printable (Prims.list a)
Prims.Tot
[ "total" ]
[]
[ "Pulse.PP.printable", "Pulse.PP.Mkprintable", "Prims.list", "FStar.Stubs.Pprint.brackets", "FStar.Stubs.Pprint.document", "Pulse.PP.separate_map", "FStar.Stubs.Pprint.comma", "Pulse.PP.pp" ]
[]
false
false
false
true
false
[@@ FStar.Tactics.Typeclasses.tcinstance] let showable_list (a: Type) (_: printable a) : printable (list a) =
{ pp = (fun l -> brackets (separate_map comma pp l)) }
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.change_slprop_rel_with_cond
val change_slprop_rel_with_cond (#opened:inames) (p q:vprop) (cond: (t_of p) -> prop) (rel : (t_of p) -> (t_of q) -> prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m /\ cond (sel_of p m)) (ensures interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m)) ) : SteelGhost unit opened p (fun _ -...
val change_slprop_rel_with_cond (#opened:inames) (p q:vprop) (cond: (t_of p) -> prop) (rel : (t_of p) -> (t_of q) -> prop) (l:(m:mem) -> Lemma (requires interp (hp_of p) m /\ cond (sel_of p m)) (ensures interp (hp_of q) m /\ rel (sel_of p m) (sel_of q m)) ) : SteelGhost unit opened p (fun _ -...
let change_slprop_rel_with_cond p q cond rel proof = SteelGhost?.reflect (change_slprop_rel_with_cond0 p q cond rel proof)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 73, "end_line": 510, "start_col": 0, "start_line": 509 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> cond: (_: Steel.Effect.Common.t_of p -> Prims.prop) -> rel: (_: Steel.Effect.Common.t_of p -> _: Steel.Effect.Common.t_of q -> Prims.prop) -> l: (m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires ...
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.mem", "Prims.unit", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.sel_of", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Steel.E...
[]
false
true
false
false
false
let change_slprop_rel_with_cond p q cond rel proof =
SteelGhost?.reflect (change_slprop_rel_with_cond0 p q cond rel proof)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.drop
val drop (#opened:inames) (p:vprop) : SteelGhostT unit opened p (fun _ -> emp)
val drop (#opened:inames) (p:vprop) : SteelGhostT unit opened p (fun _ -> emp)
let drop p = rewrite_slprop p emp (fun m -> emp_unit (hp_of p); affine_star (hp_of p) Mem.emp m; reveal_emp())
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 78, "end_line": 560, "start_col": 0, "start_line": 559 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> Steel.Effect.Atomic.SteelGhostT Prims.unit
Steel.Effect.Atomic.SteelGhostT
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Atomic.rewrite_slprop", "Steel.Effect.Common.emp", "Steel.Memory.mem", "Steel.Effect.Common.reveal_emp", "Prims.unit", "Steel.Memory.affine_star", "Steel.Effect.Common.hp_of", "Steel.Memory.emp", "Steel.Memory.emp_unit" ]
[]
false
true
false
false
false
let drop p =
rewrite_slprop p emp (fun m -> emp_unit (hp_of p); affine_star (hp_of p) Mem.emp m; reveal_emp ())
false
Steel.Channel.Simplex.fst
Steel.Channel.Simplex.send_available
val send_available: #p: sprot -> #q: _ -> cc: chan q -> x: msg_t p -> vs: chan_val -> vr: chan_val -> unit -> SteelT unit (send_pre_available p #q cc.chan_chan vs vr) (fun _ -> sender cc (step p x))
val send_available: #p: sprot -> #q: _ -> cc: chan q -> x: msg_t p -> vs: chan_val -> vr: chan_val -> unit -> SteelT unit (send_pre_available p #q cc.chan_chan vs vr) (fun _ -> sender cc (step p x))
let send_available (#p:sprot) #q (cc:chan q) (x:msg_t p) (vs vr:chan_val) (_:unit) : SteelT unit (send_pre_available p #q cc.chan_chan vs vr) (fun _ -> sender cc (step p x)) = Steel.Utils.extract_pure (vs == vr); Steel.Utils.rewrite #_ #(send_recv_in_sync cc.chan_chan.send p cc.chan_chan vs) vr vs; elim_pur...
{ "file_name": "lib/steel/Steel.Channel.Simplex.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 39, "end_line": 293, "start_col": 0, "start_line": 283 }
(* 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": [ "Steel.Utils.fst.checked", "Steel.SpinLock.fsti.checked", "Steel.MonotonicHigherReference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.HigherReference.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked...
[ { "abbrev": true, "full_module": "Steel.HigherReference", "short_module": "H" }, { "abbrev": true, "full_module": "Steel.MonotonicHigherReference", "short_module": "MRef" }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "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
cc: Steel.Channel.Simplex.chan q -> x: Steel.Channel.Protocol.msg_t p -> vs: Steel.Channel.Simplex.chan_val -> vr: Steel.Channel.Simplex.chan_val -> _: Prims.unit -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "Steel.Channel.Simplex.sprot", "Steel.Channel.Simplex.prot", "Steel.Channel.Simplex.chan", "Steel.Channel.Protocol.msg_t", "Steel.Channel.Simplex.chan_val", "Prims.unit", "Steel.SpinLock.release", "Steel.Channel.Simplex.chan_inv", "Steel.Channel.Simplex.__proj__Mkchan__item__chan_chan", "Steel.Cha...
[]
false
true
false
false
false
let send_available (#p: sprot) #q (cc: chan q) (x: msg_t p) (vs: chan_val) (vr: chan_val) (_: unit) : SteelT unit (send_pre_available p #q cc.chan_chan vs vr) (fun _ -> sender cc (step p x)) =
Steel.Utils.extract_pure (vs == vr); Steel.Utils.rewrite #_ #(send_recv_in_sync cc.chan_chan.send p cc.chan_chan vs) vr vs; elim_pure (vs == vs); gather_r cc.chan_chan.send vs; let next_vs = update_channel cc.chan_chan x vs cc.chan_chan.send in H.share cc.chan_chan.send; intro_exists next_vs (fun (next_vs: chan_val) ...
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.noop
val noop (#opened:inames) (_:unit) : SteelGhost unit opened emp (fun _ -> emp) (requires fun _ -> True) (ensures fun _ _ _ -> True)
val noop (#opened:inames) (_:unit) : SteelGhost unit opened emp (fun _ -> emp) (requires fun _ -> True) (ensures fun _ _ _ -> True)
let noop _ = change_slprop_rel emp emp (fun _ _ -> True) (fun _ -> ())
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 544, "start_col": 0, "start_line": 544 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Prims.unit", "Steel.Effect.Atomic.change_slprop_rel", "Steel.Effect.Common.emp", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.l_True", "Prims.prop", "Steel.Memory.mem" ]
[]
false
true
false
false
false
let noop _ =
change_slprop_rel emp emp (fun _ _ -> True) (fun _ -> ())
false
Pulse.PP.fst
Pulse.PP.pp_record
val pp_record (flds: list (string & document)) : Tac document
val pp_record (flds: list (string & document)) : Tac document
let pp_record (flds : list (string & document)) : Tac document = let flds_doc = separate_map (doc_of_string ";") (fun (s, d) -> group (doc_of_string s ^/^ equals ^/^ group d)) flds in braces (align flds_doc)
{ "file_name": "lib/steel/pulse/Pulse.PP.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 95, "start_col": 0, "start_line": 91 }
(* 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.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Show.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Typeclasses.fsti....
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Printer", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
flds: Prims.list (Prims.string * FStar.Stubs.Pprint.document) -> FStar.Tactics.Effect.Tac FStar.Stubs.Pprint.document
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.string", "FStar.Stubs.Pprint.document", "FStar.Stubs.Pprint.braces", "FStar.Stubs.Pprint.align", "Pulse.PP.separate_map", "FStar.Stubs.Pprint.doc_of_string", "FStar.Stubs.Pprint.group", "FStar.Stubs.Pprint.op_Hat_Slash_Hat", "FStar.Stubs.Ppr...
[]
false
true
false
false
false
let pp_record (flds: list (string & document)) : Tac document =
let flds_doc = separate_map (doc_of_string ";") (fun (s, d) -> group (doc_of_string s ^/^ equals ^/^ group d)) flds in braces (align flds_doc)
false
Pulse.PP.fst
Pulse.PP.pp_effect_annot
[@@ FStar.Tactics.Typeclasses.tcinstance] val pp_effect_annot:printable effect_annot
[@@ FStar.Tactics.Typeclasses.tcinstance] val pp_effect_annot:printable effect_annot
instance pp_effect_annot : printable effect_annot = from_show
{ "file_name": "lib/steel/pulse/Pulse.PP.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 61, "end_line": 89, "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.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Show.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Typeclasses.fsti....
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Printer", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Pulse.PP.printable Pulse.Syntax.Base.effect_annot
Prims.Tot
[ "total" ]
[]
[ "Pulse.PP.from_show", "Pulse.Syntax.Base.effect_annot", "Pulse.Show.uu___37" ]
[]
false
false
false
true
false
[@@ FStar.Tactics.Typeclasses.tcinstance] let pp_effect_annot:printable effect_annot =
from_show
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.bind_pure_steela_
val bind_pure_steela_ (a:Type) (b:Type) (opened_invariants:inames) (o:eqtype_as_type observability) (#[@@@ framing_implicit] wp:pure_wp a) (#framed: eqtype_as_type bool) (#[@@@ framing_implicit] pre:pre_t) (#[@@@ framing_implicit] post:post_t b) (#[@@@ framing_implicit] req:a -> req_t pre) (#[@@@ framing_im...
val bind_pure_steela_ (a:Type) (b:Type) (opened_invariants:inames) (o:eqtype_as_type observability) (#[@@@ framing_implicit] wp:pure_wp a) (#framed: eqtype_as_type bool) (#[@@@ framing_implicit] pre:pre_t) (#[@@@ framing_implicit] post:post_t b) (#[@@@ framing_implicit] req:a -> req_t pre) (#[@@@ framing_im...
let bind_pure_steela_ a b opened o #wp f g = FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun frame -> let x = f () in g x frame
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 15, "end_line": 349, "start_col": 0, "start_line": 345 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> opened_invariants: Steel.Memory.inames -> o: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability -> f: (_: FStar.Pervasives.eqtype_as_type Prims.unit -> Prims.PURE a) -> g: (x: a -> Steel.Effect.Atomic.repr b framed opened_invariants o pre post (req x) (ens x...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "FStar.Pervasives.eqtype_as_type", "Steel.Effect.Common.observability", "Prims.pure_wp", "Prims.bool", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Steel.Effect.Common.req_t", "Steel.Effect.Common.ens_t", "Prims.unit", "Steel.Effect.Atomic.repr", "Steel.Me...
[]
false
false
false
false
false
let bind_pure_steela_ a b opened o #wp f g =
FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun frame -> let x = f () in g x frame
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.intro_vdep_lemma
val intro_vdep_lemma (v q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires (interp (hp_of (v `star` q)) m /\ q == p (fst (sel_of (v `star` q) m)))) (ensures (interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ vdep_rel v q p (sel_of (v `star` q) m) (sel_of (vdep v p)...
val intro_vdep_lemma (v q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires (interp (hp_of (v `star` q)) m /\ q == p (fst (sel_of (v `star` q) m)))) (ensures (interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ vdep_rel v q p (sel_of (v `star` q) m) (sel_of (vdep v p)...
let intro_vdep_lemma (v: vprop) (q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires ( interp (hp_of (v `star` q)) m /\ q == p (fst (sel_of (v `star` q) m)) )) (ensures ( interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ vdep_rel v q p (sel_of (v `star` q) m) ...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 19, "end_line": 759, "start_col": 0, "start_line": 741 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of (Steel.Effect.Common.star v q)) m /\ q == ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "Steel.Effect.Common.vdep_sel_eq", "Prims.unit", "Steel.Effect.Common.interp_vdep_hp", "Steel.Memory.interp_star", "Steel.Effect.Common.hp_of", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.star", "Prims....
[]
true
false
true
false
false
let intro_vdep_lemma (v q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires (interp (hp_of (v `star` q)) m /\ q == p (fst (sel_of (v `star` q) m)))) (ensures (interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ vdep_rel v q p (sel_of (v `star` q) m) (sel_of (vdep v p)...
Mem.interp_star (hp_of v) (hp_of q) m; interp_vdep_hp v p m; vdep_sel_eq v p m
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.vdep_rel
val vdep_rel (v q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) (x2: (t_of (vdep v p))) : Tot prop
val vdep_rel (v q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) (x2: (t_of (vdep v p))) : Tot prop
let vdep_rel (v: vprop) (q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) (x2: (t_of (vdep v p))) : Tot prop = q == p (fst x1) /\ dfst (x2 <: (dtuple2 (t_of v) (vdep_payload v p))) == fst x1 /\ dsnd (x2 <: (dtuple2 (t_of v) (vdep_payload v p))) == snd x1
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 62, "end_line": 739, "start_col": 0, "start_line": 729 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> x1: Steel.Effect.Common.t_of (Steel.Effect.Common.star v q) -> x2: Steel.Effect.Common.t_of (Steel.Effect.Common.vdep v p) -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Effect.Common.star", "Steel.Effect.Common.vdep", "Prims.l_and", "Prims.eq2", "FStar.Pervasives.Native.fst", "FStar.Pervasives.dfst", "Steel.Effect.Common.vdep_payload", "Prims.dtuple2", "FStar.Pervasives.dsnd", "FStar.Pervasives.N...
[]
false
false
false
false
true
let vdep_rel (v q: vprop) (p: (t_of v -> Tot vprop)) (x1: t_of (v `star` q)) (x2: (t_of (vdep v p))) : Tot prop =
q == p (fst x1) /\ dfst (x2 <: (dtuple2 (t_of v) (vdep_payload v p))) == fst x1 /\ dsnd (x2 <: (dtuple2 (t_of v) (vdep_payload v p))) == snd x1
false
Pulse.PP.fst
Pulse.PP.printable_fstar_term
[@@ FStar.Tactics.Typeclasses.tcinstance] val printable_fstar_term:printable Reflection.V2.term
[@@ FStar.Tactics.Typeclasses.tcinstance] val printable_fstar_term:printable Reflection.V2.term
instance printable_fstar_term : printable Reflection.V2.term = { pp = (fun t -> doc_of_string (Tactics.V2.term_to_string t)) }
{ "file_name": "lib/steel/pulse/Pulse.PP.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 109, "start_col": 0, "start_line": 107 }
(* 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.Printer.fsti.checked", "Pulse.Syntax.Base.fsti.checked", "Pulse.Show.fst.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Typeclasses.fsti....
[ { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Printer", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Pulse.PP.printable FStar.Stubs.Reflection.Types.term
Prims.Tot
[ "total" ]
[]
[ "Pulse.PP.Mkprintable", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Pprint.doc_of_string", "FStar.Stubs.Pprint.document", "Prims.string", "FStar.Stubs.Tactics.V2.Builtins.term_to_string" ]
[]
false
false
false
true
false
[@@ FStar.Tactics.Typeclasses.tcinstance] let printable_fstar_term:printable Reflection.V2.term =
{ pp = (fun t -> doc_of_string (Tactics.V2.term_to_string t)) }
false
FStar.Seq.Permutation.fst
FStar.Seq.Permutation.reveal_is_permutation_pats
val reveal_is_permutation_pats (#a: Type) (s0 s1: seq a) (f: index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. {:pattern f x; f y} x <> y ==> f x <> f y) /\ (forall (i: nat{i < Seq.length s0}). {:pattern (Seq.index s0 i)} Seq.index s0 i == Se...
val reveal_is_permutation_pats (#a: Type) (s0 s1: seq a) (f: index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. {:pattern f x; f y} x <> y ==> f x <> f y) /\ (forall (i: nat{i < Seq.length s0}). {:pattern (Seq.index s0 i)} Seq.index s0 i == Se...
let reveal_is_permutation_pats (#a:Type) (s0 s1:seq a) (f:index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. {:pattern f x; f y } x <> y ==> f x <> f y) /\ (forall (i:nat{i < Seq.length s0}). {:pattern (Seq.index s0 i)} S...
{ "file_name": "ulib/FStar.Seq.Permutation.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 96, "start_col": 0, "start_line": 87 }
(* Copyright 2021-2022 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.Seq.Equiv.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked", "FStar.Calc.fsti.checke...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.IntegerIntervals", "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
s0: FStar.Seq.Base.seq a -> s1: FStar.Seq.Base.seq a -> f: FStar.Seq.Permutation.index_fun s0 -> FStar.Pervasives.Lemma (ensures FStar.Seq.Permutation.is_permutation s0 s1 f <==> FStar.Seq.Base.length s0 == FStar.Seq.Base.length s1 /\ (forall (x: FStar.IntegerIntervals.under (FStar.Seq.Base.leng...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "FStar.Seq.Permutation.index_fun", "FStar.Seq.Permutation.reveal_is_permutation", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "FStar.Seq.Permutation.is_permutation", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Prims.l_Forall", "...
[]
true
false
true
false
false
let reveal_is_permutation_pats (#a: Type) (s0 s1: seq a) (f: index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. {:pattern f x; f y} x <> y ==> f x <> f y) /\ (forall (i: nat{i < Seq.length s0}). {:pattern (Seq.index s0 i)} Seq.index s0 i == Se...
reveal_is_permutation s0 s1 f
false
FStar.Seq.Permutation.fst
FStar.Seq.Permutation.reveal_is_permutation
val reveal_is_permutation (#a:Type) (s0 s1:seq a) (f:index_fun s0) : Lemma (is_permutation s0 s1 f <==> (* lengths of the sequences are the same *) Seq.length s0 == Seq.length s1 /\ (* f is injective *) (forall x y. {:pattern f x; f y} x <> y ==> f x <> f y) /\...
val reveal_is_permutation (#a:Type) (s0 s1:seq a) (f:index_fun s0) : Lemma (is_permutation s0 s1 f <==> (* lengths of the sequences are the same *) Seq.length s0 == Seq.length s1 /\ (* f is injective *) (forall x y. {:pattern f x; f y} x <> y ==> f x <> f y) /\...
let reveal_is_permutation #a (s0 s1:seq a) (f:index_fun s0) = reveal_opaque (`%is_permutation) (is_permutation s0 s1 f)
{ "file_name": "ulib/FStar.Seq.Permutation.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 31, "start_col": 0, "start_line": 30 }
(* Copyright 2021-2022 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.Seq.Equiv.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked", "FStar.Calc.fsti.checke...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "FStar.IntegerIntervals", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "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
s0: FStar.Seq.Base.seq a -> s1: FStar.Seq.Base.seq a -> f: FStar.Seq.Permutation.index_fun s0 -> FStar.Pervasives.Lemma (ensures FStar.Seq.Permutation.is_permutation s0 s1 f <==> FStar.Seq.Base.length s0 == FStar.Seq.Base.length s1 /\ (forall (x: FStar.IntegerIntervals.under (FStar.Seq.Base.leng...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "FStar.Seq.Permutation.index_fun", "FStar.Pervasives.reveal_opaque", "Prims.prop", "FStar.Seq.Permutation.is_permutation", "Prims.unit" ]
[]
true
false
true
false
false
let reveal_is_permutation #a (s0: seq a) (s1: seq a) (f: index_fun s0) =
reveal_opaque (`%is_permutation) (is_permutation s0 s1 f)
false
FStar.Seq.Permutation.fst
FStar.Seq.Permutation.is_permutation
val is_permutation (#a:Type) (s0:seq a) (s1:seq a) (f:index_fun s0) : prop
val is_permutation (#a:Type) (s0:seq a) (s1:seq a) (f:index_fun s0) : prop
let is_permutation (#a:Type) (s0:seq a) (s1:seq a) (f:index_fun s0) = Seq.length s0 == Seq.length s1 /\ (forall x y. // {:pattern f x; f y} x <> y ==> f x <> f y) /\ (forall (i:nat{i < Seq.length s0}). // {:pattern (Seq.index s1 (f i))} Seq.index s0 i == Seq.index s1 (f i))
{ "file_name": "ulib/FStar.Seq.Permutation.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 28, "start_col": 0, "start_line": 23 }
(* Copyright 2021-2022 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.Seq.Equiv.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked", "FStar.Calc.fsti.checke...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "FStar.IntegerIntervals", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "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
s0: FStar.Seq.Base.seq a -> s1: FStar.Seq.Base.seq a -> f: FStar.Seq.Permutation.index_fun s0 -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "FStar.Seq.Permutation.index_fun", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Prims.l_Forall", "FStar.IntegerIntervals.under", "Prims.l_imp", "Prims.b2t", "Prims.op_disEquality", "Prims.op_LessThan", "FStar.Seq.Base.index", "Prims.prop" ]
[]
false
false
false
false
true
let is_permutation (#a: Type) (s0 s1: seq a) (f: index_fun s0) =
Seq.length s0 == Seq.length s1 /\ (forall x y. x <> y ==> f x <> f y) /\ (forall (i: nat{i < Seq.length s0}). Seq.index s0 i == Seq.index s1 (f i))
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.reveal_star
val reveal_star (#opened:inames) (p1 p2:vprop) : SteelGhost unit opened (p1 `star` p2) (fun _ -> p1 `star` p2) (requires fun _ -> True) (ensures fun h0 _ h1 -> h0 p1 == h1 p1 /\ h0 p2 == h1 p2 /\ h0 (p1 `star` p2) == (h0 p1, h0 p2) /\ h1 (p1 `star` p2) == (h1 p1, h1 p2) )
val reveal_star (#opened:inames) (p1 p2:vprop) : SteelGhost unit opened (p1 `star` p2) (fun _ -> p1 `star` p2) (requires fun _ -> True) (ensures fun h0 _ h1 -> h0 p1 == h1 p1 /\ h0 p2 == h1 p2 /\ h0 (p1 `star` p2) == (h0 p1, h0 p2) /\ h1 (p1 `star` p2) == (h1 p1, h1 p2) )
let reveal_star p1 p2 = SteelGhost?.reflect (reveal_star0 p1 p2)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 64, "end_line": 574, "start_col": 0, "start_line": 574 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: Steel.Effect.Common.vprop -> p2: Steel.Effect.Common.vprop -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Steel.Effect.Atomic.reveal_star0", "Prims.unit", "Steel.Effect.Common.star", "Steel.Effect.Common.rmem", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "FStar.Pervasives.Native.tuple2", ...
[]
false
true
false
false
false
let reveal_star p1 p2 =
SteelGhost?.reflect (reveal_star0 p1 p2)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.exists_equiv
val exists_equiv (#a:_) (p:a -> vprop) (q:a -> vprop {forall x. equiv (p x) (q x) }) : Lemma (h_exists p `equiv` h_exists q)
val exists_equiv (#a:_) (p:a -> vprop) (q:a -> vprop {forall x. equiv (p x) (q x) }) : Lemma (h_exists p `equiv` h_exists q)
let exists_equiv p q = Classical.forall_intro_2 reveal_equiv; h_exists_cong (h_exists_sl' p) (h_exists_sl' q)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 49, "end_line": 625, "start_col": 0, "start_line": 623 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: a -> Steel.Effect.Common.vprop) -> q: (_: a -> Steel.Effect.Common.vprop){forall (x: a). Steel.Effect.Common.equiv (p x) (q x)} -> FStar.Pervasives.Lemma (ensures Steel.Effect.Common.equiv (Steel.Effect.Atomic.h_exists p) (Steel.Effect.Atomic.h_exists q))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Prims.l_Forall", "Steel.Effect.Common.equiv", "Steel.Memory.h_exists_cong", "Steel.Effect.Atomic.h_exists_sl'", "Prims.unit", "FStar.Classical.forall_intro_2", "Prims.l_iff", "Steel.Memory.equiv", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.reveal_equiv" ]
[]
false
false
true
false
false
let exists_equiv p q =
Classical.forall_intro_2 reveal_equiv; h_exists_cong (h_exists_sl' p) (h_exists_sl' q)
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.intro_pure
val intro_pure (#opened_invariants:_) (p:prop) : SteelGhost unit opened_invariants emp (fun _ -> pure p) (requires fun _ -> p) (ensures fun _ _ _ -> True)
val intro_pure (#opened_invariants:_) (p:prop) : SteelGhost unit opened_invariants emp (fun _ -> pure p) (requires fun _ -> p) (ensures fun _ _ _ -> True)
let intro_pure p = rewrite_slprop emp (pure p) (fun m -> pure_interp p m)
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 73, "end_line": 598, "start_col": 0, "start_line": 598 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel.Semantics.Hoare.MST", "short_module": "Sem" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Prims.prop -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Prims.prop", "Steel.Effect.Atomic.rewrite_slprop", "Steel.Effect.Common.emp", "Steel.Effect.Common.pure", "Steel.Memory.mem", "Steel.Memory.pure_interp", "Prims.unit" ]
[]
false
true
false
false
false
let intro_pure p =
rewrite_slprop emp (pure p) (fun m -> pure_interp p m)
false
FStar.Seq.Permutation.fst
FStar.Seq.Permutation.adapt_index_fun
val adapt_index_fun (s: Seq.seq 'a {Seq.length s > 0}) (f: index_fun (Seq.tail s)) (n: nat{n < Seq.length s}) : index_fun s
val adapt_index_fun (s: Seq.seq 'a {Seq.length s > 0}) (f: index_fun (Seq.tail s)) (n: nat{n < Seq.length s}) : index_fun s
let adapt_index_fun (s:Seq.seq 'a { Seq.length s > 0 }) (f:index_fun (Seq.tail s)) (n:nat{n < Seq.length s}) : index_fun s = fun i -> if i = 0 then n else if f (i - 1) < n then f (i - 1) else f (i - 1) + 1
{ "file_name": "ulib/FStar.Seq.Permutation.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 106, "start_col": 0, "start_line": 98 }
(* Copyright 2021-2022 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.Seq.Equiv.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked", "FStar.Calc.fsti.checke...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.IntegerIntervals", "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: FStar.Seq.Base.seq 'a {FStar.Seq.Base.length s > 0} -> f: FStar.Seq.Permutation.index_fun (FStar.Seq.Properties.tail s) -> n: Prims.nat{n < FStar.Seq.Base.length s} -> FStar.Seq.Permutation.index_fun s
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "Prims.b2t", "Prims.op_GreaterThan", "FStar.Seq.Base.length", "FStar.Seq.Permutation.index_fun", "FStar.Seq.Properties.tail", "Prims.nat", "Prims.op_LessThan", "FStar.IntegerIntervals.under", "Prims.op_Equality", "Prims.int", "Prims.bool", "Prims.op_Subtraction", "Pri...
[]
false
false
false
false
false
let adapt_index_fun (s: Seq.seq 'a {Seq.length s > 0}) (f: index_fun (Seq.tail s)) (n: nat{n < Seq.length s}) : index_fun s =
fun i -> if i = 0 then n else if f (i - 1) < n then f (i - 1) else f (i - 1) + 1
false
FStar.Seq.Permutation.fst
FStar.Seq.Permutation.equal_counts_empty
val equal_counts_empty (#a: eqtype) (s0 s1: seq a) : Lemma (requires Seq.length s0 == 0 /\ (forall x. count x s0 == count x s1)) (ensures Seq.length s1 == 0)
val equal_counts_empty (#a: eqtype) (s0 s1: seq a) : Lemma (requires Seq.length s0 == 0 /\ (forall x. count x s0 == count x s1)) (ensures Seq.length s1 == 0)
let equal_counts_empty (#a:eqtype) (s0 s1:seq a) : Lemma (requires Seq.length s0 == 0 /\ (forall x. count x s0 == count x s1)) (ensures Seq.length s1 == 0) = if Seq.length s1 > 0 then assert (count (Seq.head s1) s1 > 0)
{ "file_name": "ulib/FStar.Seq.Permutation.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 119, "start_col": 0, "start_line": 114 }
(* Copyright 2021-2022 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.Seq.Equiv.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked", "FStar.Calc.fsti.checke...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.IntegerIntervals", "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
s0: FStar.Seq.Base.seq a -> s1: FStar.Seq.Base.seq a -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s0 == 0 /\ (forall (x: a). FStar.Seq.Properties.count x s0 == FStar.Seq.Properties.count x s1)) (ensures FStar.Seq.Base.length s1 == 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Seq.Base.seq", "Prims.op_GreaterThan", "FStar.Seq.Base.length", "Prims._assert", "Prims.b2t", "FStar.Seq.Properties.count", "FStar.Seq.Properties.head", "Prims.bool", "Prims.unit", "Prims.l_and", "Prims.eq2", "Prims.int", "Prims.l_Forall", "Prims.nat", "Prims.squ...
[]
false
false
true
false
false
let equal_counts_empty (#a: eqtype) (s0 s1: seq a) : Lemma (requires Seq.length s0 == 0 /\ (forall x. count x s0 == count x s1)) (ensures Seq.length s1 == 0) =
if Seq.length s1 > 0 then assert (count (Seq.head s1) s1 > 0)
false
FStar.Seq.Permutation.fst
FStar.Seq.Permutation.reveal_is_permutation_nopats
val reveal_is_permutation_nopats (#a: Type) (s0 s1: seq a) (f: index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. x <> y ==> f x <> f y) /\ (forall (i: nat{i < Seq.length s0}). Seq.index s0 i == Seq.index s1 (f i)))
val reveal_is_permutation_nopats (#a: Type) (s0 s1: seq a) (f: index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. x <> y ==> f x <> f y) /\ (forall (i: nat{i < Seq.length s0}). Seq.index s0 i == Seq.index s1 (f i)))
let reveal_is_permutation_nopats (#a:Type) (s0 s1:seq a) (f:index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. x <> y ==> f x <> f y) /\ (forall (i:nat{i < Seq.length s0}). Seq.index s0 i == Seq.index s1 (f i))) = reve...
{ "file_name": "ulib/FStar.Seq.Permutation.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 42, "start_col": 0, "start_line": 33 }
(* Copyright 2021-2022 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.Seq.Equiv.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.Sugar.fsti.checked", "FStar.Classical.fsti.checked", "FStar.Calc.fsti.checke...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.IntegerIntervals", "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
s0: FStar.Seq.Base.seq a -> s1: FStar.Seq.Base.seq a -> f: FStar.Seq.Permutation.index_fun s0 -> FStar.Pervasives.Lemma (ensures FStar.Seq.Permutation.is_permutation s0 s1 f <==> FStar.Seq.Base.length s0 == FStar.Seq.Base.length s1 /\ (forall (x: FStar.IntegerIntervals.under (FStar.Seq.Base.leng...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "FStar.Seq.Permutation.index_fun", "FStar.Seq.Permutation.reveal_is_permutation", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "FStar.Seq.Permutation.is_permutation", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Prims.l_Forall", "...
[]
true
false
true
false
false
let reveal_is_permutation_nopats (#a: Type) (s0 s1: seq a) (f: index_fun s0) : Lemma (is_permutation s0 s1 f <==> Seq.length s0 == Seq.length s1 /\ (forall x y. x <> y ==> f x <> f y) /\ (forall (i: nat{i < Seq.length s0}). Seq.index s0 i == Seq.index s1 (f i))) =
reveal_is_permutation s0 s1 f
false
Steel.Effect.Atomic.fst
Steel.Effect.Atomic.elim_vdep_lemma
val elim_vdep_lemma (v q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires (interp (hp_of (vdep v p)) m /\ q == p (dfst (sel_of (vdep v p) m <: dtuple2 (t_of v) (vdep_payload v p))))) (ensures (interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ ...
val elim_vdep_lemma (v q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires (interp (hp_of (vdep v p)) m /\ q == p (dfst (sel_of (vdep v p) m <: dtuple2 (t_of v) (vdep_payload v p))))) (ensures (interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ ...
let elim_vdep_lemma (v: vprop) (q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires ( interp (hp_of (vdep v p)) m /\ q == p (dfst (sel_of (vdep v p) m <: dtuple2 (t_of v) (vdep_payload v p))) )) (ensures ( interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ vdep...
{ "file_name": "lib/steel/Steel.Effect.Atomic.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 19, "end_line": 808, "start_col": 0, "start_line": 790 }
(* 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": [ "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "Steel.Effect.fst.checked", "Steel.Effect.fst.checked", "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMSTTotal.fst.che...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": true, "full_module": "Steel...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> m: Steel.Memory.mem -> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Effect.Common.hp_of (Steel.Effect.Common.vdep v p)) m /\ q == p (...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "Steel.Effect.Common.vdep_sel_eq", "Prims.unit", "Steel.Effect.Common.interp_vdep_hp", "Steel.Memory.interp_star", "Steel.Effect.Common.hp_of", "Prims.l_and", "Steel.Memory.interp", "Steel.Effect.Common.vdep", "Prims....
[]
true
false
true
false
false
let elim_vdep_lemma (v q: vprop) (p: (t_of v -> Tot vprop)) (m: mem) : Lemma (requires (interp (hp_of (vdep v p)) m /\ q == p (dfst (sel_of (vdep v p) m <: dtuple2 (t_of v) (vdep_payload v p))))) (ensures (interp (hp_of (v `star` q)) m /\ interp (hp_of (vdep v p)) m /\ ...
Mem.interp_star (hp_of v) (hp_of q) m; interp_vdep_hp v p m; vdep_sel_eq v p m
false