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
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.loc_regions_unused_in
val loc_regions_unused_in (h: HS.mem) (rs: Set.set HS.rid) : Lemma (requires (forall r . Set.mem r rs ==> (~ (HS.live_region h r)))) (ensures (loc_unused_in h `loc_includes` loc_regions false rs))
val loc_regions_unused_in (h: HS.mem) (rs: Set.set HS.rid) : Lemma (requires (forall r . Set.mem r rs ==> (~ (HS.live_region h r)))) (ensures (loc_unused_in h `loc_includes` loc_regions false rs))
let loc_regions_unused_in = MG.loc_regions_unused_in cls
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 1215, "start_col": 0, "start_line": 1215 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> rs: FStar.Set.set FStar.Monotonic.HyperHeap.rid -> FStar.Pervasives.Lemma (requires forall (r: FStar.Monotonic.HyperHeap.rid). FStar.Set.mem r rs ==> ~(FStar.Monotonic.HyperStack.live_region h r)) (ensures LowStar.Monotonic.Buffer.loc_includes...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.ModifiesGen.loc_regions_unused_in", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls" ]
[]
true
false
true
false
false
let loc_regions_unused_in =
MG.loc_regions_unused_in cls
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mreference_live_loc_not_unused_in
val mreference_live_loc_not_unused_in (#t: Type) (#pre: Preorder.preorder t) (h: HS.mem) (r: HS.mreference t pre) : Lemma (requires (h `HS.contains` r)) (ensures (loc_not_unused_in h `loc_includes` loc_freed_mreference r /\ loc_not_unused_in h `loc_includes` loc_mreference r)) [SMTPatOr [ [SMTPat (HS....
val mreference_live_loc_not_unused_in (#t: Type) (#pre: Preorder.preorder t) (h: HS.mem) (r: HS.mreference t pre) : Lemma (requires (h `HS.contains` r)) (ensures (loc_not_unused_in h `loc_includes` loc_freed_mreference r /\ loc_not_unused_in h `loc_includes` loc_mreference r)) [SMTPatOr [ [SMTPat (HS....
let mreference_live_loc_not_unused_in = MG.mreference_live_loc_not_unused_in cls
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 1240, "start_col": 0, "start_line": 1239 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> r: FStar.Monotonic.HyperStack.mreference t pre -> FStar.Pervasives.Lemma (requires FStar.Monotonic.HyperStack.contains h r) (ensures LowStar.Monotonic.Buffer.loc_includes (LowStar.Monotonic.Buffer.loc_not_unused_in h) (LowStar.Monotonic.Buffer.loc_freed_mre...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.ModifiesGen.mreference_live_loc_not_unused_in", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls" ]
[]
true
false
true
false
false
let mreference_live_loc_not_unused_in =
MG.mreference_live_loc_not_unused_in cls
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mreference_unused_in_loc_unused_in
val mreference_unused_in_loc_unused_in (#t: Type) (#pre: Preorder.preorder t) (h: HS.mem) (r: HS.mreference t pre) : Lemma (requires (r `HS.unused_in` h)) (ensures (loc_unused_in h `loc_includes` loc_freed_mreference r /\ loc_unused_in h `loc_includes` loc_mreference r)) [SMTPatOr [ [SMTPat (HS.unused...
val mreference_unused_in_loc_unused_in (#t: Type) (#pre: Preorder.preorder t) (h: HS.mem) (r: HS.mreference t pre) : Lemma (requires (r `HS.unused_in` h)) (ensures (loc_unused_in h `loc_includes` loc_freed_mreference r /\ loc_unused_in h `loc_includes` loc_mreference r)) [SMTPatOr [ [SMTPat (HS.unused...
let mreference_unused_in_loc_unused_in = MG.mreference_unused_in_loc_unused_in cls
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 1243, "start_col": 0, "start_line": 1242 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> r: FStar.Monotonic.HyperStack.mreference t pre -> FStar.Pervasives.Lemma (requires FStar.Monotonic.HyperStack.unused_in r h) (ensures LowStar.Monotonic.Buffer.loc_includes (LowStar.Monotonic.Buffer.loc_unused_in h) (LowStar.Monotonic.Buffer.loc_freed_mrefer...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.ModifiesGen.mreference_unused_in_loc_unused_in", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls" ]
[]
true
false
true
false
false
let mreference_unused_in_loc_unused_in =
MG.mreference_unused_in_loc_unused_in cls
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.unused_in_loc_unused_in
val unused_in_loc_unused_in (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (h:HS.mem) :Lemma (requires (unused_in b h)) (ensures (loc_unused_in h `loc_includes` loc_addr_of_buffer b)) [SMTPat (unused_in b h)]
val unused_in_loc_unused_in (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (h:HS.mem) :Lemma (requires (unused_in b h)) (ensures (loc_unused_in h `loc_includes` loc_addr_of_buffer b)) [SMTPat (unused_in b h)]
let unused_in_loc_unused_in #_ #_ #_ b h = unused_in_equiv b h; Classical.move_requires (MG.addr_unused_in_does_not_contain_addr h) (frameOf b, as_addr b); MG.loc_addresses_unused_in cls (frameOf b) (Set.singleton (as_addr b)) h; ()
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 4, "end_line": 1232, "start_col": 0, "start_line": 1228 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.unused_in b h) (ensures LowStar.Monotonic.Buffer.loc_includes (LowStar.Monotonic.Buffer.loc_unused_in h) (LowStar.Monotonic.Buffer.loc_addr_of_buffer...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.Monotonic.HyperStack.mem", "Prims.unit", "FStar.ModifiesGen.loc_addresses_unused_in", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls", "LowStar.Monotonic.Buffer.frameOf", "FStar.Set.singleton", "Prims.na...
[]
false
false
true
false
false
let unused_in_loc_unused_in #_ #_ #_ b h =
unused_in_equiv b h; Classical.move_requires (MG.addr_unused_in_does_not_contain_addr h) (frameOf b, as_addr b); MG.loc_addresses_unused_in cls (frameOf b) (Set.singleton (as_addr b)) h; ()
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.popped_modifies
val popped_modifies (h0 h1: HS.mem) : Lemma (requires (HS.popped h0 h1)) (ensures (modifies (loc_region_only false (HS.get_tip h0)) h0 h1)) [SMTPat (HS.popped h0 h1)]
val popped_modifies (h0 h1: HS.mem) : Lemma (requires (HS.popped h0 h1)) (ensures (modifies (loc_region_only false (HS.get_tip h0)) h0 h1)) [SMTPat (HS.popped h0 h1)]
let popped_modifies = MG.popped_modifies #_ cls
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 1252, "start_col": 0, "start_line": 1252 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires FStar.Monotonic.HyperStack.popped h0 h1) (ensures LowStar.Monotonic.Buffer.modifies (LowStar.Monotonic.Buffer.loc_region_only false (FStar.Monotonic.HyperStack.get_tip h0)) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.ModifiesGen.popped_modifies", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls" ]
[]
true
false
true
false
false
let popped_modifies =
MG.popped_modifies #_ cls
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.is_null
val is_null (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :HST.Stack bool (requires (fun h -> live h b)) (ensures (fun h y h' -> h == h' /\ y == g_is_null b))
val is_null (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :HST.Stack bool (requires (fun h -> live h b)) (ensures (fun h y h' -> h == h' /\ y == g_is_null b))
let is_null #_ #_ #_ b = Null? b
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 1291, "start_col": 0, "start_line": 1291 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Monotonic.Buffer.uu___is_Null", "Prims.bool" ]
[]
false
true
false
false
false
let is_null #_ #_ #_ b =
Null? b
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.modifies_remove_new_locs
val modifies_remove_new_locs (l_fresh l_aux l_goal:loc) (h1 h2 h3:HS.mem) : Lemma (requires (fresh_loc l_fresh h1 h2 /\ modifies l_aux h1 h2 /\ l_goal `loc_includes` l_aux /\ modifies (loc_union l_fresh l_goal) h2 h3)) (ensures (modifies l_goal h1 h3)) [S...
val modifies_remove_new_locs (l_fresh l_aux l_goal:loc) (h1 h2 h3:HS.mem) : Lemma (requires (fresh_loc l_fresh h1 h2 /\ modifies l_aux h1 h2 /\ l_goal `loc_includes` l_aux /\ modifies (loc_union l_fresh l_goal) h2 h3)) (ensures (modifies l_goal h1 h3)) [S...
let modifies_remove_new_locs l_fresh l_aux l_goal h1 h2 h3 = modifies_only_not_unused_in l_goal h1 h3
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 1255, "start_col": 0, "start_line": 1254 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l_fresh: LowStar.Monotonic.Buffer.loc -> l_aux: LowStar.Monotonic.Buffer.loc -> l_goal: LowStar.Monotonic.Buffer.loc -> h1: FStar.Monotonic.HyperStack.mem -> h2: FStar.Monotonic.HyperStack.mem -> h3: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Mono...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.loc", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.modifies_only_not_unused_in", "Prims.unit" ]
[]
true
false
true
false
false
let modifies_remove_new_locs l_fresh l_aux l_goal h1 h2 h3 =
modifies_only_not_unused_in l_goal h1 h3
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.modifies_loc_unused_in
val modifies_loc_unused_in (l: loc) (h1 h2: HS.mem) (l' : loc) : Lemma (requires ( modifies l h1 h2 /\ address_liveness_insensitive_locs `loc_includes` l /\ loc_unused_in h2 `loc_includes` l' )) (ensures (loc_unused_in h1 `loc_includes` l')) [SMTPatOr [ [SMTPat (modifies l h1 h2); SMTPat (...
val modifies_loc_unused_in (l: loc) (h1 h2: HS.mem) (l' : loc) : Lemma (requires ( modifies l h1 h2 /\ address_liveness_insensitive_locs `loc_includes` l /\ loc_unused_in h2 `loc_includes` l' )) (ensures (loc_unused_in h1 `loc_includes` l')) [SMTPatOr [ [SMTPat (modifies l h1 h2); SMTPat (...
let modifies_loc_unused_in l h1 h2 l' = modifies_loc_includes address_liveness_insensitive_locs h1 h2 l; modifies_address_liveness_insensitive_unused_in h1 h2; loc_includes_trans (loc_unused_in h1) (loc_unused_in h2) l'
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 1248, "start_col": 0, "start_line": 1245 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: LowStar.Monotonic.Buffer.loc -> h1: FStar.Monotonic.HyperStack.mem -> h2: FStar.Monotonic.HyperStack.mem -> l': LowStar.Monotonic.Buffer.loc -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.modifies l h1 h2 /\ LowStar.Monotonic.Buffer.loc_includes LowStar.Monotoni...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.loc", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.loc_includes_trans", "LowStar.Monotonic.Buffer.loc_unused_in", "Prims.unit", "LowStar.Monotonic.Buffer.modifies_address_liveness_insensitive_unused_in", "LowStar.Monotonic.Buffer.modifies_loc_includes", "LowSta...
[]
true
false
true
false
false
let modifies_loc_unused_in l h1 h2 l' =
modifies_loc_includes address_liveness_insensitive_locs h1 h2 l; modifies_address_liveness_insensitive_unused_in h1 h2; loc_includes_trans (loc_unused_in h1) (loc_unused_in h2) l'
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.fresh_frame_modifies
val fresh_frame_modifies (h0 h1: HS.mem) : Lemma (requires (HS.fresh_frame h0 h1)) (ensures (modifies loc_none h0 h1)) [SMTPat (HS.fresh_frame h0 h1)]
val fresh_frame_modifies (h0 h1: HS.mem) : Lemma (requires (HS.fresh_frame h0 h1)) (ensures (modifies loc_none h0 h1)) [SMTPat (HS.fresh_frame h0 h1)]
let fresh_frame_modifies h0 h1 = MG.fresh_frame_modifies #_ cls h0 h1
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 69, "end_line": 1250, "start_col": 0, "start_line": 1250 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires FStar.Monotonic.HyperStack.fresh_frame h0 h1) (ensures LowStar.Monotonic.Buffer.modifies LowStar.Monotonic.Buffer.loc_none h0 h1) [SMTPat (FStar.Monotonic.HyperStack.fresh_frame h0 h1)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "FStar.ModifiesGen.fresh_frame_modifies", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls", "Prims.unit" ]
[]
true
false
true
false
false
let fresh_frame_modifies h0 h1 =
MG.fresh_frame_modifies #_ cls h0 h1
false
SteelLoops.fst
SteelLoops.sum_to_n_for
val sum_to_n_for (r: ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r)
val sum_to_n_for (r: ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r)
let sum_to_n_for (r:ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) = for_loop 0sz 10sz (fun _ -> vptr r) (fun _ -> let x = read r in write r (x `FStar.UInt32.add_mod` 1ul))
{ "file_name": "share/steel/tests/krml/SteelLoops.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 13, "start_col": 0, "start_line": 8 }
module SteelLoops open Steel.Effect.Atomic open Steel.Effect open Steel.Reference open Steel.Loops
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Loops.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FS...
[ { "abbrev": false, "full_module": "Steel.Loops", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.Reference.ref FStar.UInt32.t -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "Steel.Reference.ref", "FStar.UInt32.t", "Steel.Loops.for_loop", "FStar.SizeT.__uint_to_t", "Steel.Loops.nat_at_most", "Steel.Reference.vptr", "Steel.Effect.Common.vprop", "Steel.Loops.u32_between", "Steel.Reference.write", "FStar.UInt32.add_mod", "FStar.UInt32.__uint_to_t", "Prims.unit", "S...
[]
false
true
false
false
false
let sum_to_n_for (r: ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) =
for_loop 0sz 10sz (fun _ -> vptr r) (fun _ -> let x = read r in write r (x `FStar.UInt32.add_mod` 1ul))
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.includes_frameOf_as_addr
val includes_frameOf_as_addr (#a1 #a2:Type0) (#rrel1 #rel1:srel a1) (#rrel2 #rel2:srel a2) (larger:mbuffer a1 rrel1 rel1) (smaller:mbuffer a2 rrel2 rel2) :Lemma (requires (larger `includes` smaller)) (ensures (g_is_null larger == g_is_null smaller /\ frameOf larger == frameOf smaller /\ as_addr larger == a...
val includes_frameOf_as_addr (#a1 #a2:Type0) (#rrel1 #rel1:srel a1) (#rrel2 #rel2:srel a2) (larger:mbuffer a1 rrel1 rel1) (smaller:mbuffer a2 rrel2 rel2) :Lemma (requires (larger `includes` smaller)) (ensures (g_is_null larger == g_is_null smaller /\ frameOf larger == frameOf smaller /\ as_addr larger == a...
let includes_frameOf_as_addr #_ #_ #_ #_ #_ #_ larger smaller = if Null? larger || Null? smaller then () else MG.loc_includes_aloc_elim #_ #cls #(frameOf larger) #(frameOf smaller) #(as_addr larger) #(as_addr smaller) (ubuffer_of_buffer larger) (ubuffer_of_buffer smaller)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 166, "end_line": 1280, "start_col": 0, "start_line": 1277 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
larger: LowStar.Monotonic.Buffer.mbuffer a1 rrel1 rel1 -> smaller: LowStar.Monotonic.Buffer.mbuffer a2 rrel2 rel2 -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.includes larger smaller) (ensures LowStar.Monotonic.Buffer.g_is_null larger == LowStar.Monotonic.Buffer.g_is_null smalle...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.op_BarBar", "LowStar.Monotonic.Buffer.uu___is_Null", "Prims.bool", "FStar.ModifiesGen.loc_includes_aloc_elim", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls", "LowStar.Monotonic.Buffer.frameOf", "LowSta...
[]
false
false
true
false
false
let includes_frameOf_as_addr #_ #_ #_ #_ #_ #_ larger smaller =
if Null? larger || Null? smaller then () else MG.loc_includes_aloc_elim #_ #cls #(frameOf larger) #(frameOf smaller) #(as_addr larger) #(as_addr smaller) (ubuffer_of_buffer larger) (ubuffer_of_buffer smaller)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.disjoint_neq
val disjoint_neq (#a1 #a2:Type0) (#rrel1 #rel1:srel a1) (#rrel2 #rel2:srel a2) (b1:mbuffer a1 rrel1 rel1) (b2:mbuffer a2 rrel2 rel2) :Lemma (requires (disjoint b1 b2 /\ U32.v (len b1) > 0)) (ensures (~(b1 === b2)))
val disjoint_neq (#a1 #a2:Type0) (#rrel1 #rel1:srel a1) (#rrel2 #rel2:srel a2) (b1:mbuffer a1 rrel1 rel1) (b2:mbuffer a2 rrel2 rel2) :Lemma (requires (disjoint b1 b2 /\ U32.v (len b1) > 0)) (ensures (~(b1 === b2)))
let disjoint_neq #_ #_ #_ #_ #_ #_ b1 b2 = if frameOf b1 = frameOf b2 && as_addr b1 = as_addr b2 then MG.loc_disjoint_aloc_elim #_ #cls #(frameOf b1) #(as_addr b1) #(frameOf b2) #(as_addr b2) (ubuffer_of_buffer b1) (ubuffer_of_buffer b2) else ()
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 1260, "start_col": 0, "start_line": 1257 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b1: LowStar.Monotonic.Buffer.mbuffer a1 rrel1 rel1 -> b2: LowStar.Monotonic.Buffer.mbuffer a2 rrel2 rel2 -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.disjoint b1 b2 /\ FStar.UInt32.v (LowStar.Monotonic.Buffer.len b1) > 0) (ensures ~(b1 === b2))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.op_AmpAmp", "Prims.op_Equality", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.frameOf", "Prims.nat", "LowStar.Monotonic.Buffer.as_addr", "FStar.ModifiesGen.loc_disjoint_aloc_elim", "LowStar.Monotonic.Buffer.u...
[]
false
false
true
false
false
let disjoint_neq #_ #_ #_ #_ #_ #_ b1 b2 =
if frameOf b1 = frameOf b2 && as_addr b1 = as_addr b2 then MG.loc_disjoint_aloc_elim #_ #cls #(frameOf b1) #(as_addr b1) #(frameOf b2) #(as_addr b2) (ubuffer_of_buffer b1) (ubuffer_of_buffer b2)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.index
val index (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) :HST.Stack a (requires (fun h -> live h b /\ U32.v i < length b)) (ensures (fun h y h' -> h == h' /\ y == Seq.index (as_seq h b) (U32.v i)))
val index (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) :HST.Stack a (requires (fun h -> live h b /\ U32.v i < length b)) (ensures (fun h y h' -> h == h' /\ y == Seq.index (as_seq h b) (U32.v i)))
let index #_ #_ #_ b i = let open HST in let s = ! (Buffer?.content b) in Seq.index s (U32.v (Buffer?.idx b) + U32.v i)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 1308, "start_col": 0, "start_line": 1305 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack a
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Seq.Base.index", "Prims.op_Addition", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.__proj__Buffer__item__idx", "FStar.Seq.Properties.lseq", "LowStar.Monotonic.Buffer.__proj__Buffer__item__max_length", "FSt...
[]
false
true
false
false
false
let index #_ #_ #_ b i =
let open HST in let s = !(Buffer?.content b) in Seq.index s (U32.v (Buffer?.idx b) + U32.v i)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.g_upd_seq
val g_upd_seq (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (s:Seq.lseq a (length b)) (h:HS.mem{live h b}) :GTot HS.mem
val g_upd_seq (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (s:Seq.lseq a (length b)) (h:HS.mem{live h b}) :GTot HS.mem
let g_upd_seq #_ #_ #_ b s h = if Seq.length s = 0 then h else let s0 = HS.sel h (Buffer?.content b) in let Buffer _ content idx length = b in HS.upd h (Buffer?.content b) (Seq.replace_subseq s0 (U32.v idx) (U32.v idx + U32.v length) s)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 97, "end_line": 1315, "start_col": 0, "start_line": 1310 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> s: FStar.Seq.Properties.lseq a (LowStar.Monotonic.Buffer.length b) -> h: FStar.Monotonic.HyperStack.mem{LowStar.Monotonic.Buffer.live h b} -> Prims.GTot FStar.Monotonic.HyperStack.mem
Prims.GTot
[ "sometrivial" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.Seq.Properties.lseq", "LowStar.Monotonic.Buffer.length", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.live", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims.bool", "FStar.UInt32.t", "FS...
[]
false
false
false
false
false
let g_upd_seq #_ #_ #_ b s h =
if Seq.length s = 0 then h else let s0 = HS.sel h (Buffer?.content b) in let Buffer _ content idx length = b in HS.upd h (Buffer?.content b) (Seq.replace_subseq s0 (U32.v idx) (U32.v idx + U32.v length) s)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.recallable
val recallable (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :GTot Type0
val recallable (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :GTot Type0
let recallable (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :GTot Type0 = (not (g_is_null b)) ==> ( HST.is_eternal_region (frameOf b) /\ not (HS.is_mm (Buffer?.content b)) /\ buffer_compatible b )
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1365, "start_col": 0, "start_line": 1360 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_imp", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "Prims.l_and", "FStar.HyperStack.ST.is_eternal_region", "LowStar.Monotonic.Buffer.frameOf", "FStar.Monotonic.HyperStack.is_mm", "FStar.Seq.P...
[]
false
false
false
false
true
let recallable (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) : GTot Type0 =
(not (g_is_null b)) ==> (HST.is_eternal_region (frameOf b) /\ not (HS.is_mm (Buffer?.content b)) /\ buffer_compatible b)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.region_lifetime_sub
val region_lifetime_sub (#a:Type0) (#rrel #rel #subrel:srel a) (b0:mbuffer a rrel rel) (b1:mbuffer a rrel subrel) : Lemma (requires rrel_rel_always_compatible rrel subrel) (ensures (region_lifetime_buf b0 /\ (exists i len. U32.v i + U32.v len <= length b0 /\ b1 == mgsub subrel b0 i len)) ==> region_lif...
val region_lifetime_sub (#a:Type0) (#rrel #rel #subrel:srel a) (b0:mbuffer a rrel rel) (b1:mbuffer a rrel subrel) : Lemma (requires rrel_rel_always_compatible rrel subrel) (ensures (region_lifetime_buf b0 /\ (exists i len. U32.v i + U32.v len <= length b0 /\ b1 == mgsub subrel b0 i len)) ==> region_lif...
let region_lifetime_sub #a #rrel #rel #subrel b0 b1 = match b1 with | Null -> () | Buffer max_len content idx length -> assert (forall (len:nat) (i:nat) (j:nat{i <= j /\ j <= len}). compatible_sub_preorder len rrel i j subrel)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 110, "end_line": 1378, "start_col": 0, "start_line": 1374 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b0: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> b1: LowStar.Monotonic.Buffer.mbuffer a rrel subrel -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.rrel_rel_always_compatible rrel subrel) (ensures LowStar.Monotonic.Buffer.region_lifetime_buf b0 /\ (exists (i: FStar....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", ...
[]
false
false
true
false
false
let region_lifetime_sub #a #rrel #rel #subrel b0 b1 =
match b1 with | Null -> () | Buffer max_len content idx length -> assert (forall (len: nat) (i: nat) (j: nat{i <= j /\ j <= len}). compatible_sub_preorder len rrel i j subrel)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.pointer_distinct_sel_disjoint
val pointer_distinct_sel_disjoint (#a:Type0) (#rrel1 #rrel2 #rel1 #rel2:srel a) (b1:mpointer a rrel1 rel1) (b2:mpointer a rrel2 rel2) (h:HS.mem) :Lemma (requires (live h b1 /\ live h b2 /\ get h b1 0 =!= get h b2 0)) (ensures (disjoint b1 b2))
val pointer_distinct_sel_disjoint (#a:Type0) (#rrel1 #rrel2 #rel1 #rel2:srel a) (b1:mpointer a rrel1 rel1) (b2:mpointer a rrel2 rel2) (h:HS.mem) :Lemma (requires (live h b1 /\ live h b2 /\ get h b1 0 =!= get h b2 0)) (ensures (disjoint b1 b2))
let pointer_distinct_sel_disjoint #a #_ #_ #_ #_ b1 b2 h = if frameOf b1 = frameOf b2 && as_addr b1 = as_addr b2 then begin HS.mreference_distinct_sel_disjoint h (Buffer?.content b1) (Buffer?.content b2); loc_disjoint_buffer b1 b2 end else loc_disjoint_buffer b1 b2
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 1289, "start_col": 0, "start_line": 1282 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b1: LowStar.Monotonic.Buffer.mpointer a rrel1 rel1 -> b2: LowStar.Monotonic.Buffer.mpointer a rrel2 rel2 -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.live h b1 /\ LowStar.Monotonic.Buffer.live h b2 /\ ~(LowStar.Monotonic.Buffer.ge...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mpointer", "FStar.Monotonic.HyperStack.mem", "Prims.op_AmpAmp", "Prims.op_Equality", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.frameOf", "Prims.nat", "LowStar.Monotonic.Buffer.as_addr", "LowStar.Monotonic.Buffer.loc_disjoi...
[]
false
false
true
false
false
let pointer_distinct_sel_disjoint #a #_ #_ #_ #_ b1 b2 h =
if frameOf b1 = frameOf b2 && as_addr b1 = as_addr b2 then (HS.mreference_distinct_sel_disjoint h (Buffer?.content b1) (Buffer?.content b2); loc_disjoint_buffer b1 b2) else loc_disjoint_buffer b1 b2
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.modifies_only_not_unused_in
val modifies_only_not_unused_in (l: loc) (h h' : HS.mem) : Lemma (requires (modifies (loc_union (loc_unused_in h) l) h h')) (ensures (modifies l h h'))
val modifies_only_not_unused_in (l: loc) (h h' : HS.mem) : Lemma (requires (modifies (loc_union (loc_unused_in h) l) h h')) (ensures (modifies l h h'))
let modifies_only_not_unused_in = MG.modifies_only_not_unused_in
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 64, "end_line": 1237, "start_col": 0, "start_line": 1237 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: LowStar.Monotonic.Buffer.loc -> h: FStar.Monotonic.HyperStack.mem -> h': FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.modifies (LowStar.Monotonic.Buffer.loc_union (LowStar.Monotonic.Buffer.loc_unused_in h) l) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.ModifiesGen.modifies_only_not_unused_in", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls" ]
[]
true
false
true
false
false
let modifies_only_not_unused_in =
MG.modifies_only_not_unused_in
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.lemma_g_upd_with_same_seq
val lemma_g_upd_with_same_seq (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (h:HS.mem) :Lemma (requires (live h b)) (ensures (g_upd_seq b (as_seq h b) h == h))
val lemma_g_upd_with_same_seq (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (h:HS.mem) :Lemma (requires (live h b)) (ensures (g_upd_seq b (as_seq h b) h == h))
let lemma_g_upd_with_same_seq #_ #_ #_ b h = if Null? b then () else let open FStar.UInt32 in let Buffer _ content idx length = b in let s = HS.sel h content in assert (Seq.equal (Seq.replace_subseq s (v idx) (v idx + v length) (Seq.slice s (v idx) (v idx + v length))) s); HS.lemma_heap_equality...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 1324, "start_col": 0, "start_line": 1317 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.live h b) (ensures LowStar.Monotonic.Buffer.g_upd_seq b (LowStar.Monotonic.Buffer.as_seq h b) h == h)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.uu___is_Null", "Prims.bool", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel",...
[]
false
false
true
false
false
let lemma_g_upd_with_same_seq #_ #_ #_ b h =
if Null? b then () else let open FStar.UInt32 in let Buffer _ content idx length = b in let s = HS.sel h content in assert (Seq.equal (Seq.replace_subseq s (v idx) (v idx + v length) (Seq.slice s (v idx) (v idx + v length))) s); HS.lemma_heap_equality_upd_with_sel h...
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.region_lifetime_buf
val region_lifetime_buf (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) : Type0
val region_lifetime_buf (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) : Type0
let region_lifetime_buf #_ #_ #_ b = (not (g_is_null b)) ==> ( HS.is_heap_color (HS.color (frameOf b)) /\ not (HS.is_mm (Buffer?.content b)) /\ buffer_compatible b )
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1372, "start_col": 0, "start_line": 1367 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> Type0
Prims.Tot
[ "total" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_imp", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "Prims.l_and", "FStar.Monotonic.HyperStack.is_heap_color", "FStar.Monotonic.HyperHeap.color", "LowStar.Monotonic.Buffer.frameOf", "FStar.Mon...
[]
false
false
false
false
true
let region_lifetime_buf #_ #_ #_ b =
(not (g_is_null b)) ==> (HS.is_heap_color (HS.color (frameOf b)) /\ not (HS.is_mm (Buffer?.content b)) /\ buffer_compatible b)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.moffset
val moffset (#a:Type0) (#rrel #rel:srel a) (sub_rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) :HST.Stack (mbuffer a rrel sub_rel) (requires (fun h -> U32.v i <= length b /\ compatible_sub b i (U32.sub (len b) i) sub_rel /\ live h b)) (ensures (fun h y h' -> h == h' /\ y == mgsub sub_rel b ...
val moffset (#a:Type0) (#rrel #rel:srel a) (sub_rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) :HST.Stack (mbuffer a rrel sub_rel) (requires (fun h -> U32.v i <= length b /\ compatible_sub b i (U32.sub (len b) i) sub_rel /\ live h b)) (ensures (fun h y h' -> h == h' /\ y == mgsub sub_rel b ...
let moffset #a #rrel #rel sub_rel b i = match b with | Null -> Null | Buffer max_len content i0 len -> Buffer max_len content (U32.add i0 i) (Ghost.hide ((U32.sub (Ghost.reveal len) i)))
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 87, "end_line": 1303, "start_col": 0, "start_line": 1299 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sub_rel: LowStar.Monotonic.Buffer.srel a -> b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a rrel sub_rel)
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.Null", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "Prims.op_LessThan...
[]
false
true
false
false
false
let moffset #a #rrel #rel sub_rel b i =
match b with | Null -> Null | Buffer max_len content i0 len -> Buffer max_len content (U32.add i0 i) (Ghost.hide ((U32.sub (Ghost.reveal len) i)))
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.recall
val recall (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :HST.Stack unit (requires (fun m -> recallable b \/ (region_lifetime_buf b /\ HS.live_region m (frameOf b)))) (ensures (fun m0 _ m1 -> m0 == m1 /\ live m1 b))
val recall (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :HST.Stack unit (requires (fun m -> recallable b \/ (region_lifetime_buf b /\ HS.live_region m (frameOf b)))) (ensures (fun m0 _ m1 -> m0 == m1 /\ live m1 b))
let recall #_ #_ #_ b = if Null? b then () else HST.recall (Buffer?.content b)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 78, "end_line": 1397, "start_col": 0, "start_line": 1397 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Monotonic.Buffer.uu___is_Null", "Prims.unit", "Prims.bool", "FStar.HyperStack.ST.recall", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.__proj__Buffer__item__max_length", "LowStar.Monotonic.Buf...
[]
false
true
false
false
false
let recall #_ #_ #_ b =
if Null? b then () else HST.recall (Buffer?.content b)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.witnessed
val witnessed (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (p:spred a) :Type0
val witnessed (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (p:spred a) :Type0
let witnessed #_ #rrel #rel b p = match b with | Null -> p Seq.empty | Buffer max_length content idx length -> HST.token_p content (spred_as_mempred b p)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 1409, "start_col": 0, "start_line": 1405 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> p: LowStar.Monotonic.Buffer.spred a -> Type0
Prims.Tot
[ "total" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Monotonic.Buffer.spred", "FStar.Seq.Base.empty", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims...
[]
false
false
false
false
true
let witnessed #_ #rrel #rel b p =
match b with | Null -> p Seq.empty | Buffer max_length content idx length -> HST.token_p content (spred_as_mempred b p)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.upd'
val upd' (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) (v:a) :HST.Stack unit (requires (fun h -> live h b /\ U32.v i < length b /\ rel (as_seq h b) (Seq.upd (as_seq h b) (U32.v i) v))) (ensures (fun h _ h' -> h' == g_upd b (U32.v i) v h))
val upd' (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) (v:a) :HST.Stack unit (requires (fun h -> live h b /\ U32.v i < length b /\ rel (as_seq h b) (Seq.upd (as_seq h b) (U32.v i) v))) (ensures (fun h _ h' -> h' == g_upd b (U32.v i) v h))
let upd' #_ #_ #_ b i v = let open HST in let h = get() in let Buffer max_length content idx len = b in let s0 = !content in let sb0 = Seq.slice s0 (U32.v idx) (U32.v max_length) in let s_upd = Seq.upd sb0 (U32.v i) v in let sf = Seq.replace_subseq s0 (U32.v idx) (U32.v max_length) s_upd in assert (sf `...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 15, "end_line": 1358, "start_col": 0, "start_line": 1348 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> v: a -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", ...
[]
false
true
false
false
false
let upd' #_ #_ #_ b i v =
let open HST in let h = get () in let Buffer max_length content idx len = b in let s0 = !content in let sb0 = Seq.slice s0 (U32.v idx) (U32.v max_length) in let s_upd = Seq.upd sb0 (U32.v i) v in let sf = Seq.replace_subseq s0 (U32.v idx) (U32.v max_length) s_upd in assert (sf `Seq.equal` (Seq.replace_subseq s0...
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.recall_p
val recall_p (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (p:spred a) :HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ b `witnessed` p)) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h0 b /\ p (as_seq h0 b)))
val recall_p (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (p:spred a) :HST.ST unit (requires (fun h0 -> (recallable b \/ live h0 b) /\ b `witnessed` p)) (ensures (fun h0 _ h1 -> h0 == h1 /\ live h0 b /\ p (as_seq h0 b)))
let recall_p #_ #_ #_ b p = match b with | Null -> () | Buffer _ content _ _ -> HST.recall_p content (spred_as_mempred b p)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 71, "end_line": 1435, "start_col": 0, "start_line": 1432 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> p: LowStar.Monotonic.Buffer.spred a -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Monotonic.Buffer.spred", "Prims.unit", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "...
[]
false
true
false
false
false
let recall_p #_ #_ #_ b p =
match b with | Null -> () | Buffer _ content _ _ -> HST.recall_p content (spred_as_mempred b p)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.msub
val msub (#a:Type0) (#rrel #rel:srel a) (sub_rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) (len:Ghost.erased U32.t) :HST.Stack (mbuffer a rrel sub_rel) (requires (fun h -> U32.v i + U32.v (Ghost.reveal len) <= length b /\ compatible_sub b i (Ghost.reveal len) sub_rel /\ live h b)) (ensures ...
val msub (#a:Type0) (#rrel #rel:srel a) (sub_rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) (len:Ghost.erased U32.t) :HST.Stack (mbuffer a rrel sub_rel) (requires (fun h -> U32.v i + U32.v (Ghost.reveal len) <= length b /\ compatible_sub b i (Ghost.reveal len) sub_rel /\ live h b)) (ensures ...
let msub #a #rrel #rel sub_rel b i len = match b with | Null -> Null | Buffer max_len content i0 len0 -> Buffer max_len content (U32.add i0 i) len
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 1297, "start_col": 0, "start_line": 1293 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sub_rel: LowStar.Monotonic.Buffer.srel a -> b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> len: FStar.Ghost.erased FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a rrel sub_rel)
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Ghost.erased", "LowStar.Monotonic.Buffer.Null", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "Prims.b2t", "Prims.op_LessThan...
[]
false
true
false
false
false
let msub #a #rrel #rel sub_rel b i len =
match b with | Null -> Null | Buffer max_len content i0 len0 -> Buffer max_len content (U32.add i0 i) len
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.lemma_stable_on_rel_is_stable_on_rrel
val lemma_stable_on_rel_is_stable_on_rrel (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (p: spred a) : Lemma (requires (Buffer? b /\ stable_on p rel)) (ensures (HST.stable_on (spred_as_mempred b p) (Buffer?.content b)))
val lemma_stable_on_rel_is_stable_on_rrel (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (p: spred a) : Lemma (requires (Buffer? b /\ stable_on p rel)) (ensures (HST.stable_on (spred_as_mempred b p) (Buffer?.content b)))
let lemma_stable_on_rel_is_stable_on_rrel (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (p:spred a) :Lemma (requires (Buffer? b /\ stable_on p rel)) (ensures (HST.stable_on (spred_as_mempred b p) (Buffer?.content b))) = let Buffer max_length content idx length = b in let mp = spred_as_mempre...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 1421, "start_col": 8, "start_line": 1411 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> p: LowStar.Monotonic.Buffer.spred a -> FStar.Pervasives.Lemma (requires Buffer? b /\ LowStar.Monotonic.Buffer.stable_on p rel) (ensures FStar.HyperStack.ST.stable_on (LowStar.Monotonic.Buffer.spred_as_mempred b p) (Buffer?.content b))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Monotonic.Buffer.spred", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "Prims.op_LessTha...
[]
false
false
true
false
false
let lemma_stable_on_rel_is_stable_on_rrel (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (p: spred a) : Lemma (requires (Buffer? b /\ stable_on p rel)) (ensures (HST.stable_on (spred_as_mempred b p) (Buffer?.content b))) =
let Buffer max_length content idx length = b in let mp = spred_as_mempred b p in let aux (h0 h1: HS.mem) : Lemma ((mp h0 /\ rrel (HS.sel h0 content) (HS.sel h1 content)) ==> mp h1) = Classical.arrow_to_impl #(mp h0 /\ rrel (HS.sel h0 content) (HS.sel h1 content) /\ buffer_compatible b) #(mp h1) (fun _ -...
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.freeable
val freeable (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :GTot Type0
val freeable (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :GTot Type0
let freeable (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) = (not (g_is_null b)) /\ HS.is_mm (Buffer?.content b) /\ HS.is_heap_color (HS.color (frameOf b)) /\ U32.v (Buffer?.max_length b) > 0 /\ Buffer?.idx b == 0ul /\ Ghost.reveal (Buffer?.length b) == Buffer?.max_length b
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 1456, "start_col": 0, "start_line": 1450 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "FStar.Monotonic.HyperStack.is_mm", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.__proj__Buffer__item__max_length"...
[]
false
false
false
false
true
let freeable (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) =
(not (g_is_null b)) /\ HS.is_mm (Buffer?.content b) /\ HS.is_heap_color (HS.color (frameOf b)) /\ U32.v (Buffer?.max_length b) > 0 /\ Buffer?.idx b == 0ul /\ Ghost.reveal (Buffer?.length b) == Buffer?.max_length b
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.empty_disjoint
val empty_disjoint (#t1 #t2: Type) (#rrel1 #rel1: srel t1) (#rrel2 #rel2: srel t2) (b1: mbuffer t1 rrel1 rel1) (b2: mbuffer t2 rrel2 rel2) : Lemma (requires (length b1 == 0)) (ensures (disjoint b1 b2))
val empty_disjoint (#t1 #t2: Type) (#rrel1 #rel1: srel t1) (#rrel2 #rel2: srel t2) (b1: mbuffer t1 rrel1 rel1) (b2: mbuffer t2 rrel2 rel2) : Lemma (requires (length b1 == 0)) (ensures (disjoint b1 b2))
let empty_disjoint #t1 #t2 #rrel1 #rel1 #rrel2 #rel2 b1 b2 = let r = frameOf b1 in let a = as_addr b1 in if r = frameOf b2 && a = as_addr b2 then MG.loc_disjoint_aloc_intro #_ #cls #r #a #r #a (ubuffer_of_buffer b1) (ubuffer_of_buffer b2) else ()
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 1268, "start_col": 0, "start_line": 1262 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b1: LowStar.Monotonic.Buffer.mbuffer t1 rrel1 rel1 -> b2: LowStar.Monotonic.Buffer.mbuffer t2 rrel2 rel2 -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b1 == 0) (ensures LowStar.Monotonic.Buffer.disjoint b1 b2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.op_AmpAmp", "Prims.op_Equality", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.frameOf", "Prims.nat", "LowStar.Monotonic.Buffer.as_addr", "FStar.ModifiesGen.loc_disjoint_aloc_intro", "LowStar.Monotonic.Buffer....
[]
false
false
true
false
false
let empty_disjoint #t1 #t2 #rrel1 #rel1 #rrel2 #rel2 b1 b2 =
let r = frameOf b1 in let a = as_addr b1 in if r = frameOf b2 && a = as_addr b2 then MG.loc_disjoint_aloc_intro #_ #cls #r #a #r #a (ubuffer_of_buffer b1) (ubuffer_of_buffer b2)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.free
val free (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :HST.ST unit (requires (fun h0 -> live h0 b /\ freeable b)) (ensures (fun h0 _ h1 -> (not (g_is_null b)) /\ Map.domain (HS.get_hmap h1) `Set.equal` Map.domain (HS.get_hmap h0) /\ ...
val free (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) :HST.ST unit (requires (fun h0 -> live h0 b /\ freeable b)) (ensures (fun h0 _ h1 -> (not (g_is_null b)) /\ Map.domain (HS.get_hmap h1) `Set.equal` Map.domain (HS.get_hmap h0) /\ ...
let free #_ #_ #_ b = HST.rfree (Buffer?.content b)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 1458, "start_col": 0, "start_line": 1458 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.HyperStack.ST.rfree", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.__proj__Buffer__item__max_length", "LowStar.Monotonic.Buffer.srel_to_lsrel", "LowStar.Monotonic.Buffer.__proj__Buffer__item__conten...
[]
false
true
false
false
false
let free #_ #_ #_ b =
HST.rfree (Buffer?.content b)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.witness_p
val witness_p (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (p:spred a) :HST.ST unit (requires (fun h0 -> p (as_seq h0 b) /\ p `stable_on` rel)) (ensures (fun h0 _ h1 -> h0 == h1 /\ b `witnessed` p))
val witness_p (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (p:spred a) :HST.ST unit (requires (fun h0 -> p (as_seq h0 b) /\ p `stable_on` rel)) (ensures (fun h0 _ h1 -> h0 == h1 /\ b `witnessed` p))
let witness_p #a #rrel #rel b p = match b with | Null -> () | Buffer _ content _ _ -> lemma_stable_on_rel_is_stable_on_rrel b p; //AR: TODO: the proof doesn't go through without this assertion, which should follow directly from the lemma call assert (HST.stable_on #(Seq.lseq a (U32.v (Buffer?.max_leng...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 1430, "start_col": 0, "start_line": 1423 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> p: LowStar.Monotonic.Buffer.spred a -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Monotonic.Buffer.spred", "Prims.unit", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "...
[]
false
true
false
false
false
let witness_p #a #rrel #rel b p =
match b with | Null -> () | Buffer _ content _ _ -> lemma_stable_on_rel_is_stable_on_rrel b p; assert (HST.stable_on #(Seq.lseq a (U32.v (Buffer?.max_length b))) #(srel_to_lsrel (U32.v (Buffer?.max_length b)) rrel) (spred_as_mempred b p) (Buffer?.content b)); HST.witness_p content (spred_a...
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.recallable_mgsub
val recallable_mgsub (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) (len:U32.t) (sub_rel:srel a) :Lemma (requires (U32.v i + U32.v len <= length b /\ compatible_sub b i len sub_rel /\ recallable b)) (ensures (recallable (mgsub sub_rel b i len))) [SMTPatOr [ [SMTPat (...
val recallable_mgsub (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) (len:U32.t) (sub_rel:srel a) :Lemma (requires (U32.v i + U32.v len <= length b /\ compatible_sub b i len sub_rel /\ recallable b)) (ensures (recallable (mgsub sub_rel b i len))) [SMTPatOr [ [SMTPat (...
let recallable_mgsub #_ #rrel #rel b i len sub_rel = match b with | Null -> () | Buffer max_len content idx length -> lemma_seq_sub_compatibility_is_transitive (U32.v max_len) rrel (U32.v idx) (U32.v idx + U32.v length) rel (U32.v i) (U32...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 1388, "start_col": 0, "start_line": 1382 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> sub_rel: LowStar.Monotonic.Buffer.srel a -> FStar.Pervasives.Lemma (requires FStar.UInt32.v i + FStar.UInt32.v len <= LowStar.Monotonic.Buffer.length b /\ LowStar.Monotonic.Buffer.compa...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", ...
[]
false
false
true
false
false
let recallable_mgsub #_ #rrel #rel b i len sub_rel =
match b with | Null -> () | Buffer max_len content idx length -> lemma_seq_sub_compatibility_is_transitive (U32.v max_len) rrel (U32.v idx) (U32.v idx + U32.v length) rel (U32.v i) (U32.v i + U32.v len) sub_rel
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mmalloc
val mmalloc (#a:Type0) (#rrel:srel a) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
val mmalloc (#a:Type0) (#rrel:srel a) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ freeable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
let mmalloc #_ #_ r init len = alloc_heap_common r len (Seq.create (U32.v len) init) true
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 60, "end_line": 1505, "start_col": 0, "start_line": 1504 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.freeable b})
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.alloc_heap_common", "FStar.Seq.Base.create", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.lmbuffer", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.Monotonic.Buf...
[]
false
true
false
false
false
let mmalloc #_ #_ r init len =
alloc_heap_common r len (Seq.create (U32.v len) init) true
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.freeable_disjoint
val freeable_disjoint (#a1 #a2:Type0) (#rrel1 #rel1:srel a1) (#rrel2 #rel2:srel a2) (b1:mbuffer a1 rrel1 rel1) (b2:mbuffer a2 rrel2 rel2) :Lemma (requires (freeable b1 /\ length b2 > 0 /\ disjoint b1 b2)) (ensures (frameOf b1 <> frameOf b2 \/ as_addr b1 <> as_addr b2))
val freeable_disjoint (#a1 #a2:Type0) (#rrel1 #rel1:srel a1) (#rrel2 #rel2:srel a2) (b1:mbuffer a1 rrel1 rel1) (b2:mbuffer a2 rrel2 rel2) :Lemma (requires (freeable b1 /\ length b2 > 0 /\ disjoint b1 b2)) (ensures (frameOf b1 <> frameOf b2 \/ as_addr b1 <> as_addr b2))
let freeable_disjoint #_ #_ #_ #_ #_ #_ b1 b2 = if frameOf b1 = frameOf b2 && as_addr b1 = as_addr b2 then MG.loc_disjoint_aloc_elim #_ #cls #(frameOf b1) #(as_addr b1) #(frameOf b2) #(as_addr b2) (ubuffer_of_buffer b1) (ubuffer_of_buffer b2)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 139, "end_line": 1464, "start_col": 0, "start_line": 1462 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b1: LowStar.Monotonic.Buffer.mbuffer a1 rrel1 rel1 -> b2: LowStar.Monotonic.Buffer.mbuffer a2 rrel2 rel2 -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.freeable b1 /\ LowStar.Monotonic.Buffer.length b2 > 0 /\ LowStar.Monotonic.Buffer.disjoint b1 b2) (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.op_AmpAmp", "Prims.op_Equality", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.frameOf", "Prims.nat", "LowStar.Monotonic.Buffer.as_addr", "FStar.ModifiesGen.loc_disjoint_aloc_elim", "LowStar.Monotonic.Buffer.u...
[]
false
false
true
false
false
let freeable_disjoint #_ #_ #_ #_ #_ #_ b1 b2 =
if frameOf b1 = frameOf b2 && as_addr b1 = as_addr b2 then MG.loc_disjoint_aloc_elim #_ #cls #(frameOf b1) #(as_addr b1) #(frameOf b2) #(as_addr b2) (ubuffer_of_buffer b1) (ubuffer_of_buffer b2)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.abuffer'
val abuffer' (region: HS.rid) (addr: nat) : Tot Type0
val abuffer' (region: HS.rid) (addr: nat) : Tot Type0
let abuffer' = ubuffer'
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 1650, "start_col": 0, "start_line": 1650 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
region: FStar.Monotonic.HyperHeap.rid -> addr: Prims.nat -> Type0
Prims.Tot
[ "total" ]
[]
[ "LowStar.Monotonic.Buffer.ubuffer'" ]
[]
false
false
false
true
true
let abuffer' =
ubuffer'
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.witnessed_functorial
val witnessed_functorial (#a:Type0) (#rrel #rel1 #rel2:srel a) (b1:mbuffer a rrel rel1) (b2:mbuffer a rrel rel2) (i len:U32.t) (s1 s2:spred a) : Lemma (requires rrel_rel_always_compatible rrel rel1 /\ //e.g. trivial_preorder, immutable preorder etc. U32.v i + U32.v len <= length b1 /\ b2 == mgsub r...
val witnessed_functorial (#a:Type0) (#rrel #rel1 #rel2:srel a) (b1:mbuffer a rrel rel1) (b2:mbuffer a rrel rel2) (i len:U32.t) (s1 s2:spred a) : Lemma (requires rrel_rel_always_compatible rrel rel1 /\ //e.g. trivial_preorder, immutable preorder etc. U32.v i + U32.v len <= length b1 /\ b2 == mgsub r...
let witnessed_functorial #a #rrel #rel1 #rel2 b1 b2 i len s1 s2 = match b1, b2 with | Null, Null -> assert (as_seq HS.empty_mem b1 == Seq.empty) | Buffer _ content _ _, _ -> assert (forall (len:nat) (i:nat) (j:nat{i <= j /\ j <= len}). compatible_sub_preorder len rrel i j rel1); HST.token_functoriality co...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 85, "end_line": 1442, "start_col": 0, "start_line": 1437 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b1: LowStar.Monotonic.Buffer.mbuffer a rrel rel1 -> b2: LowStar.Monotonic.Buffer.mbuffer a rrel rel2 -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> s1: LowStar.Monotonic.Buffer.spred a -> s2: LowStar.Monotonic.Buffer.spred a -> FStar.Pervasives.Lemma (requires LowStar.Monotonic....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.spred", "FStar.Pervasives.Native.Mktuple2", "Prims._assert", "Prims.eq2", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "FStar.Monotonic.HyperStack.empty_mem", "FStar.Seq.B...
[]
false
false
true
false
false
let witnessed_functorial #a #rrel #rel1 #rel2 b1 b2 i len s1 s2 =
match b1, b2 with | Null, Null -> assert (as_seq HS.empty_mem b1 == Seq.empty) | Buffer _ content _ _, _ -> assert (forall (len: nat) (i: nat) (j: nat{i <= j /\ j <= len}). compatible_sub_preorder len rrel i j rel1); HST.token_functoriality content (spred_as_mempred b1 s1) (spred_as_mempred b2 s2)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.witnessed_functorial_st
val witnessed_functorial_st (#a:Type0) (#rrel #rel1 #rel2:srel a) (b1:mbuffer a rrel rel1) (b2:mbuffer a rrel rel2) (i len:U32.t) (s1 s2:spred a) : HST.Stack unit (requires fun h -> live h b1 /\ U32.v i + U32.v len <= length b1 /\ b2 == mgsub rel2 b1 i len /\ witnessed b1 s1 /\ (forall h. s1...
val witnessed_functorial_st (#a:Type0) (#rrel #rel1 #rel2:srel a) (b1:mbuffer a rrel rel1) (b2:mbuffer a rrel rel2) (i len:U32.t) (s1 s2:spred a) : HST.Stack unit (requires fun h -> live h b1 /\ U32.v i + U32.v len <= length b1 /\ b2 == mgsub rel2 b1 i len /\ witnessed b1 s1 /\ (forall h. s1...
let witnessed_functorial_st #a #rrel #rel1 #rel2 b1 b2 i len s1 s2 = match b1, b2 with | Null, Null -> () | Buffer _ content _ _, _ -> HST.token_functoriality content (spred_as_mempred b1 s1) (spred_as_mempred b2 s2)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 85, "end_line": 1448, "start_col": 0, "start_line": 1444 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b1: LowStar.Monotonic.Buffer.mbuffer a rrel rel1 -> b2: LowStar.Monotonic.Buffer.mbuffer a rrel rel2 -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> s1: LowStar.Monotonic.Buffer.spred a -> s2: LowStar.Monotonic.Buffer.spred a -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.spred", "FStar.Pervasives.Native.Mktuple2", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erase...
[]
false
true
false
false
false
let witnessed_functorial_st #a #rrel #rel1 #rel2 b1 b2 i len s1 s2 =
match b1, b2 with | Null, Null -> () | Buffer _ content _ _, _ -> HST.token_functoriality content (spred_as_mempred b1 s1) (spred_as_mempred b2 s2)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.malloca
val malloca (#a:Type0) (#rrel:srel a) (init:a) (len:U32.t) :HST.StackInline (lmbuffer a rrel rrel (U32.v len)) (requires (fun _ -> alloca_pre len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init) /\ frameOf...
val malloca (#a:Type0) (#rrel:srel a) (init:a) (len:U32.t) :HST.StackInline (lmbuffer a rrel rrel (U32.v len)) (requires (fun _ -> alloca_pre len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init) /\ frameOf...
let malloca #a #rrel init len = lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content: HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.salloc (Seq.create (U32.v len) init) in Buffer len content 0ul (Ghost.hide len)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 1515, "start_col": 0, "start_line": 1510 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.StackInline (LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len))
FStar.HyperStack.ST.StackInline
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.Buffer", "FStar.UInt32.__uint_to_t", "FStar.Ghost.hide", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.UInt32.v", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "LowStar.Monotonic.Buffer.srel_to_lsrel", "F...
[]
false
true
false
false
false
let malloca #a #rrel init len =
lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.salloc (Seq.create (U32.v len) init) in Buffer len content 0ul (Ghost.hide len)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mgcmalloc_and_blit
val mgcmalloc_and_blit (#a:Type0) (#rrel:srel a) (r:HS.rid) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ recallable b}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U32.v id_src + U32.v len <= len...
val mgcmalloc_and_blit (#a:Type0) (#rrel:srel a) (r:HS.rid) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ recallable b}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U32.v id_src + U32.v len <= len...
let mgcmalloc_and_blit #_ #_ r #_ #_ src id_src len = alloc_heap_common r len (read_sub_buffer src id_src len) false
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 64, "end_line": 1502, "start_col": 0, "start_line": 1501 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> id_src: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowSta...
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.alloc_heap_common", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.UInt32.v", "FStar.Seq.Base.seq", "Prims.eq2", "Prims.int", "Prims.l_or", "Prims.b2t"...
[]
false
true
false
false
false
let mgcmalloc_and_blit #_ #_ r #_ #_ src id_src len =
alloc_heap_common r len (read_sub_buffer src id_src len) false
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mgcmalloc
val mgcmalloc (#a:Type0) (#rrel:srel a) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
val mgcmalloc (#a:Type0) (#rrel:srel a) (r:HS.rid) (init:a) (len:U32.t) :HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ recallable b}) (requires (fun _ -> malloc_pre r len)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init)))
let mgcmalloc #_ #_ r init len = alloc_heap_common r len (Seq.create (U32.v len) init) false
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 1484, "start_col": 0, "start_line": 1483 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallable b})
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.alloc_heap_common", "FStar.Seq.Base.create", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.lmbuffer", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.Monotonic.Buf...
[]
false
true
false
false
false
let mgcmalloc #_ #_ r init len =
alloc_heap_common r len (Seq.create (U32.v len) init) false
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.malloca_and_blit
val malloca_and_blit (#a:Type0) (#rrel:srel a) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.StackInline (lmbuffer a rrel rrel (U32.v len)) (requires fun h0 -> alloca_pre len /\ live h0 src /\ U32.v id_src + U32.v len <= length src) (ensures fun h0 b h1 -> ...
val malloca_and_blit (#a:Type0) (#rrel:srel a) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.StackInline (lmbuffer a rrel rrel (U32.v len)) (requires fun h0 -> alloca_pre len /\ live h0 src /\ U32.v id_src + U32.v len <= length src) (ensures fun h0 b h1 -> ...
let malloca_and_blit #a #rrel #_ #_ src id_src len = lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content: HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.salloc (read_sub_buffer src id_src len) in Buffer len content 0ul (Ghost.hide len)
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 1522, "start_col": 0, "start_line": 1517 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> id_src: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.StackInline (LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len))
FStar.HyperStack.ST.StackInline
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.Buffer", "FStar.UInt32.__uint_to_t", "FStar.Ghost.hide", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.UInt32.v", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "LowStar...
[]
false
true
false
false
false
let malloca_and_blit #a #rrel #_ #_ src id_src len =
lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.salloc (read_sub_buffer src id_src len) in Buffer len content 0ul (Ghost.hide len)
false
Hacl.K256.PrecompTable.fst
Hacl.K256.PrecompTable.precomp_g_pow2_192_table_lseq_w4
val precomp_g_pow2_192_table_lseq_w4 : LSeq.lseq uint64 240
val precomp_g_pow2_192_table_lseq_w4 : LSeq.lseq uint64 240
let precomp_g_pow2_192_table_lseq_w4 : LSeq.lseq uint64 240 = normalize_term_spec (SPT.precomp_base_table_list mk_k256_precomp_base_table proj_g_pow2_192 15); Seq.seq_of_list precomp_g_pow2_192_table_list_w4
{ "file_name": "code/k256/Hacl.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 266, "start_col": 0, "start_line": 264 }
module Hacl.K256.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.K256.Lemmas.fsti.checked", "Spec.K256.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.K256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.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 240
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq_of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Hacl.K256.PrecompTable.precomp_g_pow2_192_table_list_w4", "Prims.unit", "FStar.Pervasives.normalize_term_spec", "Prims.list", "Lib.IntTypes.uint_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FS...
[]
false
false
false
false
false
let precomp_g_pow2_192_table_lseq_w4:LSeq.lseq uint64 240 =
normalize_term_spec (SPT.precomp_base_table_list mk_k256_precomp_base_table proj_g_pow2_192 15); Seq.seq_of_list precomp_g_pow2_192_table_list_w4
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.alloc_heap_common
val alloc_heap_common (#a: Type0) (#rrel: srel a) (r: HST.erid) (len: U32.t{U32.v len > 0}) (s: Seq.seq a {Seq.length s == U32.v len}) (mm: bool) : HST.ST (lmbuffer a rrel rrel (U32.v len)) (requires (fun _ -> True)) (ensures (fun h0 b h1 -> alloc_...
val alloc_heap_common (#a: Type0) (#rrel: srel a) (r: HST.erid) (len: U32.t{U32.v len > 0}) (s: Seq.seq a {Seq.length s == U32.v len}) (mm: bool) : HST.ST (lmbuffer a rrel rrel (U32.v len)) (requires (fun _ -> True)) (ensures (fun h0 b h1 -> alloc_...
let alloc_heap_common (#a:Type0) (#rrel:srel a) (r:HST.erid) (len:U32.t{U32.v len > 0}) (s:Seq.seq a{Seq.length s == U32.v len}) (mm:bool) :HST.ST (lmbuffer a rrel rrel (U32.v len)) (requires (fun _ -> True)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 s /\ ...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 1481, "start_col": 8, "start_line": 1466 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.HyperStack.ST.erid -> len: FStar.UInt32.t{FStar.UInt32.v len > 0} -> s: FStar.Seq.Base.seq a {FStar.Seq.Base.length s == FStar.UInt32.v len} -> mm: Prims.bool -> FStar.HyperStack.ST.ST (LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len))
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.HyperStack.ST.erid", "FStar.UInt32.t", "Prims.b2t", "Prims.op_GreaterThan", "FStar.UInt32.v", "FStar.Seq.Base.seq", "Prims.eq2", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "FStar.UInt.size", "FStar.UInt32.n", "FStar.Seq.Base.length", ...
[]
false
true
false
false
false
let alloc_heap_common (#a: Type0) (#rrel: srel a) (r: HST.erid) (len: U32.t{U32.v len > 0}) (s: Seq.seq a {Seq.length s == U32.v len}) (mm: bool) : HST.ST (lmbuffer a rrel rrel (U32.v len)) (requires (fun _ -> True)) (ensures (fun h0 b h1 -> alloc_...
lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = if mm then HST.ralloc_mm r s else HST.ralloc r s in let b = Buffer len content 0ul (Ghost.hide len) in b
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.read_sub_buffer
val read_sub_buffer (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (idx len: U32.t) : HST.ST (Seq.seq a) (requires fun h0 -> live h0 b /\ U32.v len > 0 /\ U32.v idx + U32.v len <= length b) (ensures fun h0 s h1 -> h0 == h1 /\ s == Seq.slice (as_seq h0 b) (U32.v idx) (U32.v idx + U32.v ...
val read_sub_buffer (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (idx len: U32.t) : HST.ST (Seq.seq a) (requires fun h0 -> live h0 b /\ U32.v len > 0 /\ U32.v idx + U32.v len <= length b) (ensures fun h0 s h1 -> h0 == h1 /\ s == Seq.slice (as_seq h0 b) (U32.v idx) (U32.v idx + U32.v ...
let read_sub_buffer (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (idx len:U32.t) : HST.ST (Seq.seq a) (requires fun h0 -> live h0 b /\ U32.v len > 0 /\ U32.v idx + U32.v len <= length b) (ensures fun h0 s h1 -> h0 == h1 /\ s == Seq.slice (as_seq h0 b) (U32.v idx) (U32.v idx ...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 1499, "start_col": 8, "start_line": 1486 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> idx: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (FStar.Seq.Base.seq a)
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Seq.Base.slice", "FStar.UInt32.v", "Prims.op_Addition", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.__proj__Buffer__item__idx", "LowStar.Monotonic.Buffer.__proj__Buffer__item__max_length", "FStar.Seq....
[]
false
true
false
false
false
let read_sub_buffer (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (idx len: U32.t) : HST.ST (Seq.seq a) (requires fun h0 -> live h0 b /\ U32.v len > 0 /\ U32.v idx + U32.v len <= length b) (ensures fun h0 s h1 -> h0 == h1 /\ s == Seq.slice (as_seq h0 b) (U32.v idx) (U32.v idx + U32.v ...
let open HST in let s = !(Buffer?.content b) in let s = Seq.slice s (U32.v (Buffer?.idx b)) (U32.v (Buffer?.max_length b)) in Seq.slice s (U32.v idx) (U32.v idx + U32.v len)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.malloca_of_list
val malloca_of_list (#a:Type0) (#rrel:srel a) (init: list a) :HST.StackInline (lmbuffer a rrel rrel (normalize_term (List.Tot.length init))) (requires (fun _ -> alloca_of_list_pre init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq_of_list init) /\ ...
val malloca_of_list (#a:Type0) (#rrel:srel a) (init: list a) :HST.StackInline (lmbuffer a rrel rrel (normalize_term (List.Tot.length init))) (requires (fun _ -> alloca_of_list_pre init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq_of_list init) /\ ...
let malloca_of_list #a #rrel init = let len = U32.uint_to_t (FStar.List.Tot.length init) in let s = Seq.seq_of_list init in lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content: HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.salloc s in Buffer len conten...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 1531, "start_col": 0, "start_line": 1524 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
init: Prims.list a -> FStar.HyperStack.ST.StackInline (LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init)))
FStar.HyperStack.ST.StackInline
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "Prims.list", "LowStar.Monotonic.Buffer.Buffer", "FStar.UInt32.__uint_to_t", "FStar.Ghost.hide", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.Pervasives.normalize_term", "Prims.nat", "FStar.List.Tot.Base.length", "FStar.HyperStack.ST.mreference",...
[]
false
true
false
false
false
let malloca_of_list #a #rrel init =
let len = U32.uint_to_t (FStar.List.Tot.length init) in let s = Seq.seq_of_list init in lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.salloc s in Buffer len content 0ul (Ghost.hide len)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mmalloc_drgn
val mmalloc_drgn (#a:Type0) (#rrel:srel a) (d:HST.drgn) (init:a) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == HST.rid_of_drgn d /\ region_lifetime_buf b}) (requires fun h -> alloc_drgn_pre h d len) (ensures fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))
val mmalloc_drgn (#a:Type0) (#rrel:srel a) (d:HST.drgn) (init:a) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == HST.rid_of_drgn d /\ region_lifetime_buf b}) (requires fun h -> alloc_drgn_pre h d len) (ensures fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))
let mmalloc_drgn #a #rrel d init len = lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content : HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc_drgn d (Seq.create (U32.v len) init) in Buffer len content 0ul len
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 1547, "start_col": 0, "start_line": 1542 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: FStar.HyperStack.ST.drgn -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len) { LowStar.Monotonic.Buffer.frameOf b == FStar.HyperStack.ST.rid_of_drgn d /\ LowStar.Monotonic.Buffer.region_lifetime_buf b })
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.HyperStack.ST.drgn", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.Buffer", "FStar.UInt32.__uint_to_t", "FStar.Ghost.hide", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.UInt32.v", "Prims.l_and", "Prims.eq2", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monoton...
[]
false
true
false
false
false
let mmalloc_drgn #a #rrel d init len =
lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc_drgn d (Seq.create (U32.v len) init) in Buffer len content 0ul len
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mgcmalloc_of_list
val mgcmalloc_of_list (#a:Type0) (#rrel:srel a) (r:HS.rid) (init:list a) :HST.ST (b:lmbuffer a rrel rrel (normalize_term (List.Tot.length init)){frameOf b == r /\ recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq...
val mgcmalloc_of_list (#a:Type0) (#rrel:srel a) (r:HS.rid) (init:list a) :HST.ST (b:lmbuffer a rrel rrel (normalize_term (List.Tot.length init)){frameOf b == r /\ recallable b}) (requires (fun _ -> gcmalloc_of_list_pre r init)) (ensures (fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.seq...
let mgcmalloc_of_list #a #rrel r init = let len = U32.uint_to_t (FStar.List.Tot.length init) in let s = Seq.seq_of_list init in lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content: HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc r s in Buffer len ...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 1540, "start_col": 0, "start_line": 1533 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> init: Prims.list a -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init)) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallab...
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.Monotonic.HyperHeap.rid", "Prims.list", "LowStar.Monotonic.Buffer.Buffer", "FStar.UInt32.__uint_to_t", "FStar.Ghost.hide", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.Pervasives.normalize_term", "Prims.nat", "FStar.List.Tot.Base.length", ...
[]
false
true
false
false
false
let mgcmalloc_of_list #a #rrel r init =
let len = U32.uint_to_t (FStar.List.Tot.length init) in let s = Seq.seq_of_list init in lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc r s in Buffer len content 0ul (Ghost.hide len)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.tu
val tu : FStar.Relational.Relational.rel Prims.unit Prims.unit
let tu = twice ()
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 28, "start_col": 0, "start_line": 28 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
FStar.Relational.Relational.rel Prims.unit Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.twice", "Prims.unit" ]
[]
false
false
false
true
false
let tu =
twice ()
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.twice
val twice : x: _ -> FStar.Relational.Relational.rel _ _
let twice x = R x x
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 27, "start_col": 0, "start_line": 27 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
x: _ -> FStar.Relational.Relational.rel _ _
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.R", "FStar.Relational.Relational.rel" ]
[]
false
false
false
true
false
let twice x =
R x x
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.rel_map2Teq
val rel_map2Teq : #a:eqtype -> #b:eqtype -> #c:Type -> (a -> b -> Tot c) -> (double a) -> (double b) -> Tot (double c)
val rel_map2Teq : #a:eqtype -> #b:eqtype -> #c:Type -> (a -> b -> Tot c) -> (double a) -> (double b) -> Tot (double c)
let rel_map2Teq #a #b #c f (R x1 x2) (R y1 y2) = R (f x1 y1) (f x2 y2)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
f: (_: a -> _: b -> c) -> _: FStar.Relational.Relational.double a -> _: FStar.Relational.Relational.double b -> FStar.Relational.Relational.double c
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.Relational.Relational.double", "FStar.Pervasives.Native.Mktuple2", "FStar.Relational.Relational.rel", "FStar.Relational.Relational.R" ]
[]
false
false
false
false
false
let rel_map2Teq #a #b #c f (R x1 x2) (R y1 y2) =
R (f x1 y1) (f x2 y2)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mmalloc_and_blit
val mmalloc_and_blit (#a:Type0) (#rrel:srel a) (r:HS.rid) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ freeable b}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U32.v id_src + U32.v len <= length ...
val mmalloc_and_blit (#a:Type0) (#rrel:srel a) (r:HS.rid) (#rrel1 #rel1:srel a) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == r /\ freeable b}) (requires fun h0 -> malloc_pre r len /\ live h0 src /\ U32.v id_src + U32.v len <= length ...
let mmalloc_and_blit #_ #_ r #_ #_ src id_src len = alloc_heap_common r len (read_sub_buffer src id_src len) true
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 1508, "start_col": 0, "start_line": 1507 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> id_src: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowSta...
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.alloc_heap_common", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.UInt32.v", "FStar.Seq.Base.seq", "Prims.eq2", "Prims.int", "Prims.l_or", "Prims.b2t"...
[]
false
true
false
false
false
let mmalloc_and_blit #_ #_ r #_ #_ src id_src len =
alloc_heap_common r len (read_sub_buffer src id_src len) true
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.fill
val fill (#t:Type) (#rrel #rel: srel t) (b: mbuffer t rrel rel) (z:t) (len:U32.t) : HST.Stack unit (requires (fun h -> live h b /\ U32.v len <= length b /\ rel (as_seq h b) (Seq.replace_subseq (as_seq h b) 0 (U32.v len) (Seq.create (U32.v len) z)) )) (ensures (fun h0 _ h1 -> modifies (loc_b...
val fill (#t:Type) (#rrel #rel: srel t) (b: mbuffer t rrel rel) (z:t) (len:U32.t) : HST.Stack unit (requires (fun h -> live h b /\ U32.v len <= length b /\ rel (as_seq h b) (Seq.replace_subseq (as_seq h b) 0 (U32.v len) (Seq.create (U32.v len) z)) )) (ensures (fun h0 _ h1 -> modifies (loc_b...
let fill #t #rrel #rel b z len = fill' b z len
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 1648, "start_col": 0, "start_line": 1648 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer t rrel rel -> z: t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.fill'", "Prims.unit" ]
[]
false
true
false
false
false
let fill #t #rrel #rel b z len =
fill' b z len
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.cloc_cls
val cloc_cls: MG.cls abuffer
val cloc_cls: MG.cls abuffer
let cloc_cls = assert_norm (MG.cls abuffer == MG.cls ubuffer); coerce (MG.cls abuffer) cls
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 1656, "start_col": 0, "start_line": 1654 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.ModifiesGen.cls LowStar.Monotonic.Buffer.abuffer
Prims.Tot
[ "total" ]
[]
[ "LowStar.Monotonic.Buffer.coerce", "FStar.ModifiesGen.cls", "LowStar.Monotonic.Buffer.abuffer", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2" ]
[]
false
false
false
true
false
let cloc_cls =
assert_norm (MG.cls abuffer == MG.cls ubuffer); coerce (MG.cls abuffer) cls
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.rel_map1T
val rel_map1T : ('a -> Tot 'b) -> (double 'a) -> Tot (double 'b)
val rel_map1T : ('a -> Tot 'b) -> (double 'a) -> Tot (double 'b)
let rel_map1T f (R x1 x2) = R (f x1) (f x2)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 32, "start_col": 0, "start_line": 32 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
f: (_: 'a -> 'b) -> _: FStar.Relational.Relational.double 'a -> FStar.Relational.Relational.double 'b
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.double", "FStar.Relational.Relational.R" ]
[]
false
false
false
true
false
let rel_map1T f (R x1 x2) =
R (f x1) (f x2)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mmalloc_drgn_mm
val mmalloc_drgn_mm (#a:Type0) (#rrel:srel a) (d:HST.drgn) (init:a) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == HST.rid_of_drgn d /\ freeable b}) (requires fun h -> alloc_drgn_pre h d len) (ensures fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))
val mmalloc_drgn_mm (#a:Type0) (#rrel:srel a) (d:HST.drgn) (init:a) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == HST.rid_of_drgn d /\ freeable b}) (requires fun h -> alloc_drgn_pre h d len) (ensures fun h0 b h1 -> alloc_post_mem_common b h0 h1 (Seq.create (U32.v len) init))
let mmalloc_drgn_mm #a #rrel d init len = lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content : HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc_drgn_mm d (Seq.create (U32.v len) init) in Buffer len content 0ul len
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 1554, "start_col": 0, "start_line": 1549 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: FStar.HyperStack.ST.drgn -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len) { LowStar.Monotonic.Buffer.frameOf b == FStar.HyperStack.ST.rid_of_drgn d /\ LowStar.Monotonic.Buffer.freeable b })
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.HyperStack.ST.drgn", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.Buffer", "FStar.UInt32.__uint_to_t", "FStar.Ghost.hide", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.UInt32.v", "Prims.l_and", "Prims.eq2", "FStar.Monotonic.HyperHeap.rid", "LowStar.Monoton...
[]
false
true
false
false
false
let mmalloc_drgn_mm #a #rrel d init len =
lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc_drgn_mm d (Seq.create (U32.v len) init) in Buffer len content 0ul len
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.rel_map2G
val rel_map2G : ('a -> 'b -> GTot 'c) -> (double 'a) -> (double 'b) -> GTot (double 'c)
val rel_map2G : ('a -> 'b -> GTot 'c) -> (double 'a) -> (double 'b) -> GTot (double 'c)
let rel_map2G f (R x1 x2) (R y1 y2) = R (f x1 y1) (f x2 y2)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
f: (_: 'a -> _: 'b -> Prims.GTot 'c) -> _: FStar.Relational.Relational.double 'a -> _: FStar.Relational.Relational.double 'b -> Prims.GTot (FStar.Relational.Relational.double 'c)
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Relational.Relational.double", "FStar.Pervasives.Native.Mktuple2", "FStar.Relational.Relational.rel", "FStar.Relational.Relational.R" ]
[]
false
false
false
false
false
let rel_map2G f (R x1 x2) (R y1 y2) =
R (f x1 y1) (f x2 y2)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.op_Hat_Plus
val op_Hat_Plus : _: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.int -> FStar.Relational.Relational.double Prims.int
let op_Hat_Plus = rel_map2T (fun x y -> x + y)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.int -> FStar.Relational.Relational.double Prims.int
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map2T", "Prims.int", "Prims.op_Addition" ]
[]
false
false
false
true
false
let op_Hat_Plus =
rel_map2T (fun x y -> x + y)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.rel_map3T
val rel_map3T : ('a -> 'b -> 'c -> Tot 'd) -> (double 'a) -> (double 'b) -> (double 'c) -> Tot (double 'd)
val rel_map3T : ('a -> 'b -> 'c -> Tot 'd) -> (double 'a) -> (double 'b) -> (double 'c) -> Tot (double 'd)
let rel_map3T f (R x1 x2) (R y1 y2) (R z1 z2) = R (f x1 y1 z1) (f x2 y2 z2)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 75, "end_line": 44, "start_col": 0, "start_line": 44 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
f: (_: 'a -> _: 'b -> _: 'c -> 'd) -> _: FStar.Relational.Relational.double 'a -> _: FStar.Relational.Relational.double 'b -> _: FStar.Relational.Relational.double 'c -> FStar.Relational.Relational.double 'd
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.double", "FStar.Pervasives.Native.Mktuple3", "FStar.Relational.Relational.rel", "FStar.Relational.Relational.R" ]
[]
false
false
false
true
false
let rel_map3T f (R x1 x2) (R y1 y2) (R z1 z2) =
R (f x1 y1 z1) (f x2 y2 z2)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.rel_map2T
val rel_map2T : ('a -> 'b -> Tot 'c) -> (double 'a) -> (double 'b) -> Tot (double 'c)
val rel_map2T : ('a -> 'b -> Tot 'c) -> (double 'a) -> (double 'b) -> Tot (double 'c)
let rel_map2T f (R x1 x2) (R y1 y2) = R (f x1 y1) (f x2 y2)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "end_line": 38, "start_col": 0, "start_line": 38 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
f: (_: 'a -> _: 'b -> 'c) -> _: FStar.Relational.Relational.double 'a -> _: FStar.Relational.Relational.double 'b -> FStar.Relational.Relational.double 'c
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.double", "FStar.Pervasives.Native.Mktuple2", "FStar.Relational.Relational.rel", "FStar.Relational.Relational.R" ]
[]
false
false
false
true
false
let rel_map2T f (R x1 x2) (R y1 y2) =
R (f x1 y1) (f x2 y2)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.rel_map3G
val rel_map3G : ('a -> 'b -> 'c -> GTot 'd) -> (double 'a) -> (double 'b) -> (double 'c) -> GTot (double 'd)
val rel_map3G : ('a -> 'b -> 'c -> GTot 'd) -> (double 'a) -> (double 'b) -> (double 'c) -> GTot (double 'd)
let rel_map3G f (R x1 x2) (R y1 y2) (R z1 z2) = R (f x1 y1 z1) (f x2 y2 z2)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 75, "end_line": 47, "start_col": 0, "start_line": 47 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
f: (_: 'a -> _: 'b -> _: 'c -> Prims.GTot 'd) -> _: FStar.Relational.Relational.double 'a -> _: FStar.Relational.Relational.double 'b -> _: FStar.Relational.Relational.double 'c -> Prims.GTot (FStar.Relational.Relational.double 'd)
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Relational.Relational.double", "FStar.Pervasives.Native.Mktuple3", "FStar.Relational.Relational.rel", "FStar.Relational.Relational.R" ]
[]
false
false
false
false
false
let rel_map3G f (R x1 x2) (R y1 y2) (R z1 z2) =
R (f x1 y1 z1) (f x2 y2 z2)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.op_Hat_Star
val op_Hat_Star : _: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.int -> FStar.Relational.Relational.double Prims.int
let op_Hat_Star = rel_map2T (fun x y -> op_Multiply x y)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.int -> FStar.Relational.Relational.double Prims.int
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map2T", "Prims.int", "Prims.op_Multiply" ]
[]
false
false
false
true
false
let op_Hat_Star =
rel_map2T (fun x y -> op_Multiply x y)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.op_Hat_Minus
val op_Hat_Minus : _: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.int -> FStar.Relational.Relational.double Prims.int
let op_Hat_Minus = rel_map2T (fun x y -> x - y)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 51, "start_col": 0, "start_line": 51 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.int -> FStar.Relational.Relational.double Prims.int
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map2T", "Prims.int", "Prims.op_Subtraction" ]
[]
false
false
false
true
false
let op_Hat_Minus =
rel_map2T (fun x y -> x - y)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.op_Hat_Slash
val op_Hat_Slash : _: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.nonzero -> FStar.Relational.Relational.double Prims.int
let op_Hat_Slash = rel_map2T (fun x y -> x / y)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 53, "start_col": 0, "start_line": 53 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double Prims.int -> _: FStar.Relational.Relational.double Prims.nonzero -> FStar.Relational.Relational.double Prims.int
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map2T", "Prims.int", "Prims.nonzero", "Prims.op_Division" ]
[]
false
false
false
true
false
let op_Hat_Slash =
rel_map2T (fun x y -> x / y)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.cloc_of_loc
val cloc_of_loc (l: loc) : Tot (MG.loc cloc_cls)
val cloc_of_loc (l: loc) : Tot (MG.loc cloc_cls)
let cloc_of_loc l = assert_norm (MG.cls abuffer == MG.cls ubuffer); coerce (MG.loc cloc_cls) l
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 1660, "start_col": 0, "start_line": 1658 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: LowStar.Monotonic.Buffer.loc -> FStar.ModifiesGen.loc LowStar.Monotonic.Buffer.cloc_cls
Prims.Tot
[ "total" ]
[]
[ "LowStar.Monotonic.Buffer.loc", "LowStar.Monotonic.Buffer.coerce", "FStar.ModifiesGen.loc", "LowStar.Monotonic.Buffer.abuffer", "LowStar.Monotonic.Buffer.cloc_cls", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "FStar.ModifiesGen.cls", "LowStar.Monotonic.Buffer.ubuffer" ]
[]
false
false
false
true
false
let cloc_of_loc l =
assert_norm (MG.cls abuffer == MG.cls ubuffer); coerce (MG.loc cloc_cls) l
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.mmalloc_drgn_and_blit
val mmalloc_drgn_and_blit (#a:Type0) (#rrel:srel a) (#rrel1 #rel1:srel a) (d:HST.drgn) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == HST.rid_of_drgn d /\ region_lifetime_buf b}) (requires fun h -> alloc_drgn_pre h d len /\ live h src /\ ...
val mmalloc_drgn_and_blit (#a:Type0) (#rrel:srel a) (#rrel1 #rel1:srel a) (d:HST.drgn) (src:mbuffer a rrel1 rel1) (id_src:U32.t) (len:U32.t) : HST.ST (b:lmbuffer a rrel rrel (U32.v len){frameOf b == HST.rid_of_drgn d /\ region_lifetime_buf b}) (requires fun h -> alloc_drgn_pre h d len /\ live h src /\ ...
let mmalloc_drgn_and_blit #a #rrel #_ #_ d src id_src len = lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content: HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc_drgn d (read_sub_buffer src id_src len) in Buffer len content 0ul len
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 1561, "start_col": 0, "start_line": 1556 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: FStar.HyperStack.ST.drgn -> src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> id_src: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: LowStar.Monotonic.Buffer.lmbuffer a rrel rrel (FStar.UInt32.v len) { LowStar.Monotonic.Buffer.frameOf b == FStar.HyperStac...
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "FStar.HyperStack.ST.drgn", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.Buffer", "FStar.UInt32.__uint_to_t", "FStar.Ghost.hide", "LowStar.Monotonic.Buffer.lmbuffer", "FStar.UInt32.v", "Prims.l_and", "Prims.eq2", "FStar.Monoto...
[]
false
true
false
false
false
let mmalloc_drgn_and_blit #a #rrel #_ #_ d src id_src len =
lemma_seq_sub_compatilibity_is_reflexive (U32.v len) rrel; let content:HST.mreference (Seq.lseq a (U32.v len)) (srel_to_lsrel (U32.v len) rrel) = HST.ralloc_drgn d (read_sub_buffer src id_src len) in Buffer len content 0ul len
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.cons_rel
val cons_rel : _: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel (Prims.list _) (Prims.list _) -> FStar.Relational.Relational.rel (Prims.list _) (Prims.list _)
let cons_rel (R x y) (R xs ys) = R (x::xs) (y::ys)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 58, "start_col": 0, "start_line": 58 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel (Prims.list _) (Prims.list _) -> FStar.Relational.Relational.rel (Prims.list _) (Prims.list _)
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel", "Prims.list", "FStar.Pervasives.Native.Mktuple2", "FStar.Relational.Relational.R", "Prims.Cons" ]
[]
false
false
false
true
false
let cons_rel (R x y) (R xs ys) =
R (x :: xs) (y :: ys)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.pair_rel
val pair_rel : _: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel _ _ -> FStar.Relational.Relational.rel (_ * _) (_ * _)
let pair_rel (R a b) (R c d) = R (a,c) (b,d)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 60, "start_col": 0, "start_line": 60 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel _ _ -> FStar.Relational.Relational.rel (_ * _) (_ * _)
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel", "FStar.Pervasives.Native.Mktuple2", "FStar.Relational.Relational.R", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
true
false
let pair_rel (R a b) (R c d) =
R (a, c) (b, d)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.triple_rel
val triple_rel : _: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel _ _ -> FStar.Relational.Relational.rel ((_ * _) * _) ((_ * _) * _)
let triple_rel (R a b) (R c d) (R e f) = R (a,c,e) (b,d,f)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 61, "start_col": 0, "start_line": 61 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel _ _ -> _: FStar.Relational.Relational.rel _ _ -> FStar.Relational.Relational.rel ((_ * _) * _) ((_ * _) * _)
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel", "FStar.Pervasives.Native.Mktuple3", "FStar.Relational.Relational.R", "FStar.Pervasives.Native.tuple3" ]
[]
false
false
false
true
false
let triple_rel (R a b) (R c d) (R e f) =
R (a, c, e) (b, d, f)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.fst_rel
val fst_rel : _: FStar.Relational.Relational.double (_ * _) -> FStar.Relational.Relational.double _
let fst_rel = rel_map1T fst
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 62, "start_col": 0, "start_line": 62 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double (_ * _) -> FStar.Relational.Relational.double _
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map1T", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.fst", "FStar.Relational.Relational.double" ]
[]
false
false
false
true
false
let fst_rel =
rel_map1T fst
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.snd_rel
val snd_rel : _: FStar.Relational.Relational.double (_ * _) -> FStar.Relational.Relational.double _
let snd_rel = rel_map1T snd
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 63, "start_col": 0, "start_line": 63 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double (_ * _) -> FStar.Relational.Relational.double _
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map1T", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.snd", "FStar.Relational.Relational.double" ]
[]
false
false
false
true
false
let snd_rel =
rel_map1T snd
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.or_rel
val or_rel : _: FStar.Relational.Relational.double Prims.bool -> _: FStar.Relational.Relational.double Prims.bool -> FStar.Relational.Relational.double Prims.bool
let or_rel = rel_map2T (fun x y -> x || y)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 67, "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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double Prims.bool -> _: FStar.Relational.Relational.double Prims.bool -> FStar.Relational.Relational.double Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map2T", "Prims.bool", "Prims.op_BarBar" ]
[]
false
false
false
true
false
let or_rel =
rel_map2T (fun x y -> x || y)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.and_rel
val and_rel : _: FStar.Relational.Relational.double Prims.bool -> _: FStar.Relational.Relational.double Prims.bool -> FStar.Relational.Relational.double Prims.bool
let and_rel = rel_map2T (fun x y -> x && y)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 66, "start_col": 0, "start_line": 66 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double Prims.bool -> _: FStar.Relational.Relational.double Prims.bool -> FStar.Relational.Relational.double Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map2T", "Prims.bool", "Prims.op_AmpAmp" ]
[]
false
false
false
true
false
let and_rel =
rel_map2T (fun x y -> x && y)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.eq_irel
val eq_irel : x: FStar.Relational.Relational.rel t t -> Prims.bool
let eq_irel (#t:eqtype) (x:(rel t t)) = match x with | R a b -> a = b
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 74, "start_col": 0, "start_line": 73 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
x: FStar.Relational.Relational.rel t t -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.Relational.Relational.rel", "Prims.op_Equality", "Prims.bool" ]
[]
false
false
false
false
false
let eq_irel (#t: eqtype) (x: (rel t t)) =
match x with | R a b -> a = b
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.and_irel
val and_irel : _: FStar.Relational.Relational.rel Prims.bool Prims.bool -> Prims.bool
let and_irel (R a b) = a && b
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.rel Prims.bool Prims.bool -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel", "Prims.bool", "Prims.op_AmpAmp" ]
[]
false
false
false
true
false
let and_irel (R a b) =
a && b
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.eq_rel
val eq_rel : _: FStar.Relational.Relational.double Prims.bool -> _: FStar.Relational.Relational.double Prims.bool -> FStar.Relational.Relational.double Prims.bool
let eq_rel = rel_map2Teq (fun (x y:bool) -> x = y)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 68, "start_col": 0, "start_line": 68 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.double Prims.bool -> _: FStar.Relational.Relational.double Prims.bool -> FStar.Relational.Relational.double Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel_map2Teq", "Prims.bool", "Prims.op_Equality" ]
[]
false
false
false
true
false
let eq_rel =
rel_map2Teq (fun (x: bool) (y: bool) -> x = y)
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.or_irel
val or_irel : _: FStar.Relational.Relational.rel Prims.bool Prims.bool -> Prims.bool
let or_irel (R a b) = a || b
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 72, "start_col": 0, "start_line": 72 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
_: FStar.Relational.Relational.rel Prims.bool Prims.bool -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.rel", "Prims.bool", "Prims.op_BarBar" ]
[]
false
false
false
true
false
let or_irel (R a b) =
a || b
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.coerce
val coerce (t2 #t1: Type) (x1: t1) : Pure t2 (requires (t1 == t2)) (ensures (fun y -> y == x1))
val coerce (t2 #t1: Type) (x1: t1) : Pure t2 (requires (t1 == t2)) (ensures (fun y -> y == x1))
let coerce (t2: Type) (#t1: Type) (x1: t1) : Pure t2 (requires (t1 == t2)) (ensures (fun y -> y == x1)) = x1
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 108, "end_line": 1652, "start_col": 0, "start_line": 1652 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t2: Type -> x1: t1 -> Prims.Pure t2
Prims.Pure
[]
[]
[ "Prims.eq2" ]
[]
false
false
false
false
false
let coerce (t2 #t1: Type) (x1: t1) : Pure t2 (requires (t1 == t2)) (ensures (fun y -> y == x1)) =
x1
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.sel_rel1
val sel_rel1 : h: FStar.Relational.Relational.double FStar.Monotonic.Heap.heap -> r: FStar.Heap.ref a -> Prims.GTot (FStar.Relational.Relational.double a)
let sel_rel1 (#a:Type) (h:double heap) (r:ref a) = rel_map2G sel h (twice r)
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 77, "end_line": 77, "start_col": 0, "start_line": 77 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "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
h: FStar.Relational.Relational.double FStar.Monotonic.Heap.heap -> r: FStar.Heap.ref a -> Prims.GTot (FStar.Relational.Relational.double a)
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Relational.Relational.double", "FStar.Monotonic.Heap.heap", "FStar.Heap.ref", "FStar.Relational.Relational.rel_map2G", "FStar.Monotonic.Heap.mref", "FStar.Heap.trivial_preorder", "FStar.Monotonic.Heap.sel", "FStar.Relational.Relational.twice" ]
[]
false
false
false
false
false
let sel_rel1 (#a: Type) (h: double heap) (r: ref a) =
rel_map2G sel h (twice r)
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.loc_of_cloc
val loc_of_cloc (l: MG.loc cloc_cls) : Tot loc
val loc_of_cloc (l: MG.loc cloc_cls) : Tot loc
let loc_of_cloc l = assert_norm (MG.cls abuffer == MG.cls ubuffer); coerce loc l
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 1664, "start_col": 0, "start_line": 1662 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: FStar.ModifiesGen.loc LowStar.Monotonic.Buffer.cloc_cls -> LowStar.Monotonic.Buffer.loc
Prims.Tot
[ "total" ]
[]
[ "FStar.ModifiesGen.loc", "LowStar.Monotonic.Buffer.abuffer", "LowStar.Monotonic.Buffer.cloc_cls", "LowStar.Monotonic.Buffer.coerce", "LowStar.Monotonic.Buffer.loc", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "FStar.ModifiesGen.cls", "LowStar.Monotonic.Buffer.ubuffer" ]
[]
false
false
false
true
false
let loc_of_cloc l =
assert_norm (MG.cls abuffer == MG.cls ubuffer); coerce loc l
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.modifies_loc_buffer_from_to_intro'
val modifies_loc_buffer_from_to_intro' (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (from to: U32.t) (l: loc) (h h' : HS.mem) : Lemma (requires ( let s = as_seq h b in let s' = as_seq h' b in not (g_is_null b) /\ live h b /\ modifies (loc_union l (loc_buffer b)) h h' /\ U32.v fr...
val modifies_loc_buffer_from_to_intro' (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (from to: U32.t) (l: loc) (h h' : HS.mem) : Lemma (requires ( let s = as_seq h b in let s' = as_seq h' b in not (g_is_null b) /\ live h b /\ modifies (loc_union l (loc_buffer b)) h h' /\ U32.v fr...
let modifies_loc_buffer_from_to_intro' #a #rrel #rel b from to l h h' = let r0 = frameOf b in let a0 = as_addr b in let bb : ubuffer r0 a0 = ubuffer_of_buffer b in modifies_loc_includes (loc_union l (loc_addresses true r0 (Set.singleton a0))) h h' (loc_union l (loc_buffer b)); MG.modifies_strengthen l #r0 #a0...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1188, "start_col": 0, "start_line": 1132 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> from: FStar.UInt32.t -> to: FStar.UInt32.t -> l: LowStar.Monotonic.Buffer.loc -> h: FStar.Monotonic.HyperStack.mem -> h': FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires (let s = LowStar.Monotonic.Buffer.as_seq...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.loc", "FStar.Monotonic.HyperStack.mem", "FStar.ModifiesGen.modifies_strengthen", "LowStar.Monotonic.Buffer.ubuffer", "LowStar.Monotonic.Buffer.cls", "LowStar.Monotonic.Buffer.ubuffer_of_b...
[]
false
false
true
false
false
let modifies_loc_buffer_from_to_intro' #a #rrel #rel b from to l h h' =
let r0 = frameOf b in let a0 = as_addr b in let bb:ubuffer r0 a0 = ubuffer_of_buffer b in modifies_loc_includes (loc_union l (loc_addresses true r0 (Set.singleton a0))) h h' (loc_union l (loc_buffer b)); MG.modifies_strengthen l #r0 #a0 (ubuffer_of_buffer_from_to b from to) h h' (fun f (x: ubuffer r0 ...
false
FStar.Relational.Relational.fst
FStar.Relational.Relational.tl_rel
val tl_rel: #a:Type -> l:double (list a){Cons? (R?.l l) /\ Cons? (R?.r l)}-> Tot (double (list a))
val tl_rel: #a:Type -> l:double (list a){Cons? (R?.l l) /\ Cons? (R?.r l)}-> Tot (double (list a))
let tl_rel #a (R (_::xs) (_::ys)) = R xs ys
{ "file_name": "ulib/legacy/FStar.Relational.Relational.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 57, "start_col": 0, "start_line": 57 }
(* 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.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "FStar.Relational.Relational.fst" }
[ { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module": "FStar.Relational", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: FStar.Relational.Relational.double (Prims.list a) {Cons? (R?.l l) /\ Cons? (R?.r l)} -> FStar.Relational.Relational.double (Prims.list a)
Prims.Tot
[ "total" ]
[]
[ "FStar.Relational.Relational.double", "Prims.list", "Prims.l_and", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Relational.Relational.__proj__R__item__l", "FStar.Relational.Relational.__proj__R__item__r", "FStar.Relational.Relational.R" ]
[]
false
false
false
false
false
let tl_rel #a (R (_ :: xs) (_ :: ys)) =
R xs ys
false
SteelLoops.fst
SteelLoops.sum_to_n_for_2
val sum_to_n_for_2 (r: ref UInt32.t) : Steel unit (vptr r) (fun _ -> vptr r) (requires fun h -> sel r h == 0ul) (ensures fun h0 _ h1 -> sel r h1 == 10ul)
val sum_to_n_for_2 (r: ref UInt32.t) : Steel unit (vptr r) (fun _ -> vptr r) (requires fun h -> sel r h == 0ul) (ensures fun h0 _ h1 -> sel r h1 == 10ul)
let sum_to_n_for_2 (r:ref UInt32.t) : Steel unit (vptr r) (fun _ -> vptr r) (requires fun h -> sel r h == 0ul) (ensures fun h0 _ h1 -> sel r h1 == 10ul) = for_loop_full 0sz 10sz (fun _ -> vptr r) (fun i v -> v == UInt32.uint_to_t i) (fun _ -> let x = read r in write r (x `FStar.UInt32.add_mod`...
{ "file_name": "share/steel/tests/krml/SteelLoops.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 71, "end_line": 24, "start_col": 0, "start_line": 15 }
module SteelLoops open Steel.Effect.Atomic open Steel.Effect open Steel.Reference open Steel.Loops let sum_to_n_for (r:ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) = for_loop 0sz 10sz (fun _ -> vptr r) (fun _ -> let x = read r in write r (x `FStar.UInt32.add_mod` 1ul))
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Loops.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FS...
[ { "abbrev": false, "full_module": "Steel.Loops", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.Reference.ref FStar.UInt32.t -> Steel.Effect.Steel Prims.unit
Steel.Effect.Steel
[]
[]
[ "Steel.Reference.ref", "FStar.UInt32.t", "Steel.Loops.for_loop_full", "FStar.SizeT.__uint_to_t", "Steel.Loops.nat_at_most", "Steel.Reference.vptr", "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Prims.eq2", "FStar.UInt32.uint_to_t", "Prims.prop", "Steel.Loops.u32_between", "Steel....
[]
false
true
false
false
false
let sum_to_n_for_2 (r: ref UInt32.t) : Steel unit (vptr r) (fun _ -> vptr r) (requires fun h -> sel r h == 0ul) (ensures fun h0 _ h1 -> sel r h1 == 10ul) =
for_loop_full 0sz 10sz (fun _ -> vptr r) (fun i v -> v == UInt32.uint_to_t i) (fun _ -> let x = read r in write r (x `FStar.UInt32.add_mod` 1ul))
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.g_upd_seq_as_seq
val g_upd_seq_as_seq (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (s:Seq.lseq a (length b)) (h:HS.mem{live h b}) : Lemma (let h' = g_upd_seq b s h in (Seq.length s > 0 ==> not (g_is_null b)) /\ modifies (loc_buffer b) h h' /...
val g_upd_seq_as_seq (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (s:Seq.lseq a (length b)) (h:HS.mem{live h b}) : Lemma (let h' = g_upd_seq b s h in (Seq.length s > 0 ==> not (g_is_null b)) /\ modifies (loc_buffer b) h h' /...
let g_upd_seq_as_seq #a #_ #_ b s h = let h' = g_upd_seq b s h in if g_is_null b then assert (Seq.equal s Seq.empty) else begin assert (Seq.equal (as_seq h' b) s); // prove modifies_1_preserves_ubuffers Heap.lemma_distinct_addrs_distinct_preorders (); Heap.lemma_distinct_addrs_distinct_mm (); ...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 1337, "start_col": 0, "start_line": 1327 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> s: FStar.Seq.Properties.lseq a (LowStar.Monotonic.Buffer.length b) -> h: FStar.Monotonic.HyperStack.mem{LowStar.Monotonic.Buffer.live h b} -> FStar.Pervasives.Lemma (ensures (let h' = LowStar.Monotonic.Buffer.g_upd_seq b s h in (FStar.Se...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.Seq.Properties.lseq", "LowStar.Monotonic.Buffer.length", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.g_is_null", "Prims._assert", "FStar.Seq.Base.equal", "FStar.Seq.Base.emp...
[]
false
false
true
false
false
let g_upd_seq_as_seq #a #_ #_ b s h =
let h' = g_upd_seq b s h in if g_is_null b then assert (Seq.equal s Seq.empty) else (assert (Seq.equal (as_seq h' b) s); Heap.lemma_distinct_addrs_distinct_preorders (); Heap.lemma_distinct_addrs_distinct_mm (); s_lemma_equal_instances_implies_equal_types (); modifies_1_modifies b h h')
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.g_upd_modifies_strong
val g_upd_modifies_strong (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:nat{i < length b}) (v:a) (h:HS.mem{live h b}) : Lemma (modifies (loc_buffer_from_to b (U32.uint_to_t i) (U32.uint_to_t (i + 1))) h (g_upd b i v h))
val g_upd_modifies_strong (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:nat{i < length b}) (v:a) (h:HS.mem{live h b}) : Lemma (modifies (loc_buffer_from_to b (U32.uint_to_t i) (U32.uint_to_t (i + 1))) h (g_upd b i v h))
let g_upd_modifies_strong #_ #_ #_ b i v h = let h' = g_upd b i v h in // prove modifies_1_from_to_preserves_ubuffers Heap.lemma_distinct_addrs_distinct_preorders (); Heap.lemma_distinct_addrs_distinct_mm (); s_lemma_equal_instances_implies_equal_types (); modifies_1_from_to_modifies b (U32.uint_t...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 80, "end_line": 1345, "start_col": 0, "start_line": 1339 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: Prims.nat{i < LowStar.Monotonic.Buffer.length b} -> v: a -> h: FStar.Monotonic.HyperStack.mem{LowStar.Monotonic.Buffer.live h b} -> FStar.Pervasives.Lemma (ensures LowStar.Monotonic.Buffer.modifies (LowStar.Monotonic.Buffer.loc_buffer_fro...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "LowStar.Monotonic.Buffer.length", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.modifies_1_from_to_modifies", "FStar.UInt32.uint_to_t"...
[]
true
false
true
false
false
let g_upd_modifies_strong #_ #_ #_ b i v h =
let h' = g_upd b i v h in Heap.lemma_distinct_addrs_distinct_preorders (); Heap.lemma_distinct_addrs_distinct_mm (); s_lemma_equal_instances_implies_equal_types (); modifies_1_from_to_modifies b (U32.uint_to_t i) (U32.uint_to_t (i + 1)) h h'
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.fill'
val fill' (#t: Type) (#rrel #rel: srel t) (b: mbuffer t rrel rel) (z: t) (len: U32.t) : HST.Stack unit (requires (fun h -> live h b /\ U32.v len <= length b /\ rel (as_seq h b) (Seq.replace_subseq (as_seq h b) 0 (U32.v len) (Seq.create (U32.v len) z)))) (ens...
val fill' (#t: Type) (#rrel #rel: srel t) (b: mbuffer t rrel rel) (z: t) (len: U32.t) : HST.Stack unit (requires (fun h -> live h b /\ U32.v len <= length b /\ rel (as_seq h b) (Seq.replace_subseq (as_seq h b) 0 (U32.v len) (Seq.create (U32.v len) z)))) (ens...
let fill' (#t:Type) (#rrel #rel: srel t) (b: mbuffer t rrel rel) (z:t) (len:U32.t) : HST.Stack unit (requires (fun h -> live h b /\ U32.v len <= length b /\ rel (as_seq h b) (Seq.replace_subseq (as_seq h b) 0 (U32.v len) (Seq.create (U32.v len) z)) )) (ensures (fun h0 _ h1 -> modifies (loc_...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 1645, "start_col": 0, "start_line": 1611 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.Monotonic.Buffer.mbuffer t rrel rel -> z: t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "Prims.op_Equality", "FStar.UInt32.__uint_to_t", "Prims.unit", "Prims.bool", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar....
[]
false
true
false
false
false
let fill' (#t: Type) (#rrel #rel: srel t) (b: mbuffer t rrel rel) (z: t) (len: U32.t) : HST.Stack unit (requires (fun h -> live h b /\ U32.v len <= length b /\ rel (as_seq h b) (Seq.replace_subseq (as_seq h b) 0 (U32.v len) (Seq.create (U32.v len) z)))) (ens...
let open HST in if len = 0ul then () else let h = get () in let Buffer max_length content idx length = b in let s_full = !content in let s = Seq.slice s_full (U32.v idx) (U32.v max_length) in let s_src = Seq.create (U32.v len) z in let s' = Seq.replace_subseq s 0 (U32.v len) s_src in let s_full' = Seq.rep...
false
LowStar.Monotonic.Buffer.fst
LowStar.Monotonic.Buffer.blit
val blit (#a:Type0) (#rrel1 #rrel2 #rel1 #rel2:srel a) (src:mbuffer a rrel1 rel1) (idx_src:U32.t) (dst:mbuffer a rrel2 rel2) (idx_dst:U32.t) (len:U32.t) :HST.Stack unit (requires (fun h -> live h src /\ live h dst /\ U32.v idx_src + U32.v len <= length src /\ ...
val blit (#a:Type0) (#rrel1 #rrel2 #rel1 #rel2:srel a) (src:mbuffer a rrel1 rel1) (idx_src:U32.t) (dst:mbuffer a rrel2 rel2) (idx_dst:U32.t) (len:U32.t) :HST.Stack unit (requires (fun h -> live h src /\ live h dst /\ U32.v idx_src + U32.v len <= length src /\ ...
let blit #a #rrel1 #rrel2 #rel1 #rel2 src idx_src dst idx_dst len = let open HST in match src, dst with | Buffer _ _ _ _, Buffer _ _ _ _ -> if len = 0ul then () else let h = get () in let Buffer max_length1 content1 idx1 length1 = src in let Buffer max_length2 content2 idx2 length2 = dst...
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 1608, "start_col": 0, "start_line": 1564 }
(* 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.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.ModifiesGen.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.ModifiesGen", "short_module": "MG" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rel1 -> idx_src: FStar.UInt32.t -> dst: LowStar.Monotonic.Buffer.mbuffer a rrel2 rel2 -> idx_dst: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Pervasives.Native.Mktuple2", "FStar.HyperStack.ST.mreference", "FStar.Seq.Properties.lseq", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.srel_to_lsrel", "FStar.Ghost.erased", "Prims.b2t", "Prims.op_LessT...
[]
false
true
false
false
false
let blit #a #rrel1 #rrel2 #rel1 #rel2 src idx_src dst idx_dst len =
let open HST in match src, dst with | Buffer _ _ _ _, Buffer _ _ _ _ -> if len = 0ul then () else let h = get () in let Buffer max_length1 content1 idx1 length1 = src in let Buffer max_length2 content2 idx2 length2 = dst in let s_full1 = !content1 in let s_full2 = !content2 in let s1 = Seq...
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.is_keccak
val is_keccak : _: Spec.Hash.Definitions.hash_alg -> Prims.bool
let is_keccak = function | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> true | _ -> false
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 60, "start_col": 0, "start_line": 58 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
_: Spec.Hash.Definitions.hash_alg -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.bool" ]
[]
false
false
false
true
false
let is_keccak =
function | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> true | _ -> false
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.is_blake
val is_blake : _: Spec.Hash.Definitions.hash_alg -> Prims.bool
let is_blake = function | Blake2S | Blake2B -> true | _ -> false
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 70, "start_col": 0, "start_line": 68 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
_: Spec.Hash.Definitions.hash_alg -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.bool" ]
[]
false
false
false
true
false
let is_blake =
function | Blake2S | Blake2B -> true | _ -> false
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.is_sha2
val is_sha2 : _: Spec.Hash.Definitions.hash_alg -> Prims.bool
let is_sha2 = function | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> true | _ -> false
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 55, "start_col": 0, "start_line": 53 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
_: Spec.Hash.Definitions.hash_alg -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.bool" ]
[]
false
false
false
true
false
let is_sha2 =
function | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> true | _ -> false
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.keccak_alg
val keccak_alg : Type0
let keccak_alg = a:hash_alg { is_keccak a }
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 78, "start_col": 0, "start_line": 78 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.Hash.Definitions.is_keccak" ]
[]
false
false
false
true
true
let keccak_alg =
a: hash_alg{is_keccak a}
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.is_md
val is_md : _: Spec.Hash.Definitions.hash_alg -> Prims.bool
let is_md = function | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> true | _ -> false
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 75, "start_col": 0, "start_line": 73 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
_: Spec.Hash.Definitions.hash_alg -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.bool" ]
[]
false
false
false
true
false
let is_md =
function | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> true | _ -> false
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.is_shake
val is_shake : _: Spec.Hash.Definitions.hash_alg -> Prims.bool
let is_shake = function | Shake128 | Shake256 -> true | _ -> false
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 65, "start_col": 0, "start_line": 63 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
_: Spec.Hash.Definitions.hash_alg -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.bool" ]
[]
false
false
false
true
false
let is_shake =
function | Shake128 | Shake256 -> true | _ -> false
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.sha2_alg
val sha2_alg : Type0
let sha2_alg = a:hash_alg { is_sha2 a }
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 77, "start_col": 0, "start_line": 77 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.Hash.Definitions.is_sha2" ]
[]
false
false
false
true
true
let sha2_alg =
a: hash_alg{is_sha2 a}
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.blake_alg
val blake_alg : Type0
let blake_alg = a:hash_alg { is_blake a }
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 79, "start_col": 0, "start_line": 79 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.Hash.Definitions.is_blake" ]
[]
false
false
false
true
true
let blake_alg =
a: hash_alg{is_blake a}
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.md_alg
val md_alg : Type0
let md_alg = a:hash_alg { is_md a }
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 80, "start_col": 0, "start_line": 80 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.Hash.Definitions.is_md" ]
[]
false
false
false
true
true
let md_alg =
a: hash_alg{is_md a}
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.maxed_hash_alg
val maxed_hash_alg : Type0
let maxed_hash_alg = a:hash_alg { Some? (max_input_length a) }
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 107, "start_col": 0, "start_line": 107 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "FStar.Pervasives.Native.uu___is_Some", "Prims.pos", "Spec.Hash.Definitions.max_input_length" ]
[]
false
false
false
true
true
let maxed_hash_alg =
a: hash_alg{Some? (max_input_length a)}
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.fixed_len_alg
val fixed_len_alg : Type0
let fixed_len_alg = a:hash_alg { not (is_shake a) }
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 81, "start_col": 0, "start_line": 81 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Prims.op_Negation", "Spec.Hash.Definitions.is_shake" ]
[]
false
false
false
true
true
let fixed_len_alg =
a: hash_alg{not (is_shake a)}
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.bytes_blocks
val bytes_blocks : a: Spec.Hash.Definitions.hash_alg -> Type0
let bytes_blocks a = l:bytes { Seq.length l % block_length a = 0 }
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 308, "start_col": 0, "start_line": 307 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.bytes", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "FStar.Seq.Base.length", "Lib.IntTypes.uint8", "Spec.Hash.Definitions.block_length" ]
[]
false
false
false
true
true
let bytes_blocks a =
l: bytes{Seq.length l % block_length a = 0}
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.to_hash_alg
val to_hash_alg : a: Spec.Blake2.Definitions.alg -> Spec.Hash.Definitions.hash_alg
let to_hash_alg (a : Spec.Blake2.alg) = match a with | Spec.Blake2.Blake2S -> Blake2S | Spec.Blake2.Blake2B -> Blake2B
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 92, "start_col": 0, "start_line": 89 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Blake2.Definitions.alg -> Spec.Hash.Definitions.hash_alg
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Spec.Hash.Definitions.Blake2S", "Spec.Hash.Definitions.Blake2B", "Spec.Hash.Definitions.hash_alg" ]
[]
false
false
false
true
false
let to_hash_alg (a: Spec.Blake2.alg) =
match a with | Spec.Blake2.Blake2S -> Blake2S | Spec.Blake2.Blake2B -> Blake2B
false
Spec.Hash.Definitions.fst
Spec.Hash.Definitions.len_int_type
val len_int_type: maxed_hash_alg -> inttype
val len_int_type: maxed_hash_alg -> inttype
let len_int_type: maxed_hash_alg -> inttype = function | MD5 | SHA1 | SHA2_224 | SHA2_256 -> U64 | SHA2_384 | SHA2_512 -> U128 | Blake2S -> U64 | Blake2B -> U128
{ "file_name": "specs/Spec.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 123, "start_col": 0, "start_line": 118 }
module Spec.Hash.Definitions open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence (* This module contains shared definitions across all hash algorithms. It * defines a common, shared `hash_alg` type, along with word sizes, type of the * working state, and other helpers. It also defines the type of the core fun...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fs...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "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
_: Spec.Hash.Definitions.maxed_hash_alg -> Lib.IntTypes.inttype
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.maxed_hash_alg", "Lib.IntTypes.U64", "Lib.IntTypes.U128", "Lib.IntTypes.inttype" ]
[]
false
false
false
true
false
let len_int_type: maxed_hash_alg -> inttype =
function | MD5 | SHA1 | SHA2_224 | SHA2_256 -> U64 | SHA2_384 | SHA2_512 -> U128 | Blake2S -> U64 | Blake2B -> U128
false