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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MiniValeSemantics.fst | MiniValeSemantics.t_lemma | val t_lemma : pre: Type0 -> post: Type0 -> Type0 | let t_lemma (pre:Type0) (post:Type0) =
unit -> Lemma (requires pre) (ensures post) | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 233,
"start_col": 0,
"start_line": 232
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | pre: Type0 -> post: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | false | true | true | let t_lemma (pre post: Type0) =
| unit -> Lemma (requires pre) (ensures post) | false | |
MiniValeSemantics.fst | MiniValeSemantics.vc_sound' | val vc_sound' (cs: list code) (qcs: with_wps cs) : has_wp (Block cs) (vc_gen cs qcs) | val vc_sound' (cs: list code) (qcs: with_wps cs) : has_wp (Block cs) (vc_gen cs qcs) | let vc_sound' (cs:list code) (qcs:with_wps cs)
: has_wp (Block cs) (vc_gen cs qcs)
= vc_sound cs qcs | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 304,
"start_col": 0,
"start_line": 302
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | cs: Prims.list MiniValeSemantics.code -> qcs: MiniValeSemantics.with_wps cs
-> MiniValeSemantics.has_wp (MiniValeSemantics.Block cs) (MiniValeSemantics.vc_gen cs qcs) | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"MiniValeSemantics.code",
"MiniValeSemantics.with_wps",
"MiniValeSemantics.vc_sound",
"MiniValeSemantics.has_wp",
"MiniValeSemantics.Block",
"MiniValeSemantics.vc_gen"
] | [] | false | false | false | false | false | let vc_sound' (cs: list code) (qcs: with_wps cs) : has_wp (Block cs) (vc_gen cs qcs) =
| vc_sound cs qcs | false |
MiniValeSemantics.fst | MiniValeSemantics.eval_ins | val eval_ins (ins: ins) (s: state) : state | val eval_ins (ins: ins) (s: state) : state | let eval_ins (ins:ins) (s:state) : state =
match ins with
| Mov64 (OConst _) _ ->
unknown_state s
| Mov64 (OReg dst) src ->
update_reg s dst (eval_operand src s)
| Add64 (OConst _) _ ->
unknown_state s
| Add64 (OReg dst) src ->
update_reg s dst ((s dst + eval_operand src s) % 0x100000000000... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 73,
"end_line": 112,
"start_col": 0,
"start_line": 100
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ins: MiniValeSemantics.ins -> s: MiniValeSemantics.state -> MiniValeSemantics.state | Prims.Tot | [
"total"
] | [] | [
"MiniValeSemantics.ins",
"MiniValeSemantics.state",
"MiniValeSemantics.nat64",
"MiniValeSemantics.operand",
"MiniValeSemantics.unknown_state",
"MiniValeSemantics.reg",
"MiniValeSemantics.update_reg",
"MiniValeSemantics.eval_operand",
"Prims.op_Modulus",
"Prims.op_Addition"
] | [] | false | false | false | true | false | let eval_ins (ins: ins) (s: state) : state =
| match ins with
| Mov64 (OConst _) _ -> unknown_state s
| Mov64 (OReg dst) src -> update_reg s dst (eval_operand src s)
| Add64 (OConst _) _ -> unknown_state s
| Add64 (OReg dst) src -> update_reg s dst ((s dst + eval_operand src s) % 0x10000000000000000) | false |
MiniValeSemantics.fst | MiniValeSemantics.eval_code | val eval_code (c: code) (f: fuel) (s: state) : option state | val eval_code (c: code) (f: fuel) (s: state) : option state | let rec eval_code (c:code) (f:fuel) (s:state) : option state =
match c with
| Ins ins ->
Some (eval_ins ins s)
| Block cs ->
eval_codes cs f s
| WhileLessThan src1 src2 body ->
if f = 0 then None
else if eval_operand src1 s < eval_operand src2 s then
match eval_code body f s with
... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 139,
"start_col": 0,
"start_line": 117
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: MiniValeSemantics.code -> f: MiniValeSemantics.fuel -> s: MiniValeSemantics.state
-> FStar.Pervasives.Native.option MiniValeSemantics.state | Prims.Tot | [
"total"
] | [
"eval_code",
"eval_codes"
] | [
"MiniValeSemantics.code",
"MiniValeSemantics.fuel",
"MiniValeSemantics.state",
"MiniValeSemantics.ins",
"FStar.Pervasives.Native.Some",
"MiniValeSemantics.eval_ins",
"Prims.list",
"MiniValeSemantics.eval_codes",
"MiniValeSemantics.operand",
"Prims.op_Equality",
"Prims.int",
"FStar.Pervasives.N... | [
"mutual recursion"
] | false | false | false | true | false | let rec eval_code (c: code) (f: fuel) (s: state) : option state =
| match c with
| Ins ins -> Some (eval_ins ins s)
| Block cs -> eval_codes cs f s
| WhileLessThan src1 src2 body ->
if f = 0
then None
else
if eval_operand src1 s < eval_operand src2 s
then
match eval_code body f s with
| None -> None
| Some s -> eval_code c (f - 1) s
else Some s | false |
MiniValeSemantics.fst | MiniValeSemantics.inst_Move | val inst_Move (dst src: operand) : with_wp (Ins (Mov64 dst src)) | val inst_Move (dst src: operand) : with_wp (Ins (Mov64 dst src)) | let inst_Move (dst:operand) (src:operand) : with_wp (Ins (Mov64 dst src)) =
QProc (Ins (Mov64 dst src)) (wp_Move dst src) (hasWp_Move dst src) | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 340,
"start_col": 0,
"start_line": 339
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dst: MiniValeSemantics.operand -> src: MiniValeSemantics.operand
-> MiniValeSemantics.with_wp (MiniValeSemantics.Ins (MiniValeSemantics.Mov64 dst src)) | Prims.Tot | [
"total"
] | [] | [
"MiniValeSemantics.operand",
"MiniValeSemantics.QProc",
"MiniValeSemantics.Ins",
"MiniValeSemantics.Mov64",
"MiniValeSemantics.wp_Move",
"MiniValeSemantics.hasWp_Move",
"MiniValeSemantics.with_wp"
] | [] | false | false | false | false | false | let inst_Move (dst src: operand) : with_wp (Ins (Mov64 dst src)) =
| QProc (Ins (Mov64 dst src)) (wp_Move dst src) (hasWp_Move dst src) | false |
MiniValeSemantics.fst | MiniValeSemantics.eval_codes | val eval_codes (cs: list code) (f: fuel) (s: state) : option state | val eval_codes (cs: list code) (f: fuel) (s: state) : option state | let rec eval_code (c:code) (f:fuel) (s:state) : option state =
match c with
| Ins ins ->
Some (eval_ins ins s)
| Block cs ->
eval_codes cs f s
| WhileLessThan src1 src2 body ->
if f = 0 then None
else if eval_operand src1 s < eval_operand src2 s then
match eval_code body f s with
... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 139,
"start_col": 0,
"start_line": 117
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | cs: Prims.list MiniValeSemantics.code -> f: MiniValeSemantics.fuel -> s: MiniValeSemantics.state
-> FStar.Pervasives.Native.option MiniValeSemantics.state | Prims.Tot | [
"total"
] | [
"eval_code",
"eval_codes"
] | [
"Prims.list",
"MiniValeSemantics.code",
"MiniValeSemantics.fuel",
"MiniValeSemantics.state",
"FStar.Pervasives.Native.Some",
"MiniValeSemantics.eval_code",
"FStar.Pervasives.Native.None",
"MiniValeSemantics.eval_codes",
"FStar.Pervasives.Native.option"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec eval_codes (cs: list code) (f: fuel) (s: state) : option state =
| match cs with
| [] -> Some s
| c :: cs ->
match eval_code c f s with
| None -> None
| Some s -> eval_codes cs f s | false |
MiniValeSemantics.fst | MiniValeSemantics.increase_fuels | val increase_fuels (c:list code) (s0:state) (f0:fuel) (sN:state) (fN:fuel) : Lemma
(requires
eval_code (Block c) f0 s0 == Some sN /\
f0 <= fN)
(ensures
eval_code (Block c) fN s0 == Some sN)
(decreases %[f0; c]) | val increase_fuels (c:list code) (s0:state) (f0:fuel) (sN:state) (fN:fuel) : Lemma
(requires
eval_code (Block c) f0 s0 == Some sN /\
f0 <= fN)
(ensures
eval_code (Block c) fN s0 == Some sN)
(decreases %[f0; c]) | let rec increase_fuel (c:code) (s0:state) (f0:fuel) (sN:state) (fN:fuel) =
match c with
| Ins ins -> ()
| Block l -> increase_fuels l s0 f0 sN fN
| WhileLessThan src1 src2 body ->
if eval_operand src1 s0 < eval_operand src2 s0 then
match eval_code body f0 s0 with
| None -> ()
| Som... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 181,
"start_col": 0,
"start_line": 163
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
c: Prims.list MiniValeSemantics.code ->
s0: MiniValeSemantics.state ->
f0: MiniValeSemantics.fuel ->
sN: MiniValeSemantics.state ->
fN: MiniValeSemantics.fuel
-> FStar.Pervasives.Lemma
(requires
MiniValeSemantics.eval_code (MiniValeSemantics.Block c) f0 s0 ==
FStar.Pervasive... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [
"increase_fuel",
"increase_fuels"
] | [
"Prims.list",
"MiniValeSemantics.code",
"MiniValeSemantics.state",
"MiniValeSemantics.fuel",
"MiniValeSemantics.increase_fuels",
"Prims.unit",
"MiniValeSemantics.increase_fuel",
"FStar.Pervasives.Native.option",
"MiniValeSemantics.eval_code"
] | [
"mutual recursion"
] | false | false | true | false | false | let rec increase_fuels (c: list code) (s0: state) (f0: fuel) (sN: state) (fN: fuel) =
| match c with
| [] -> ()
| h :: t ->
let Some s1 = eval_code h f0 s0 in
increase_fuel h s0 f0 s1 fN;
increase_fuels t s1 f0 sN fN | false |
MiniValeSemantics.fst | MiniValeSemantics.inst_Add | val inst_Add (dst src: operand) : with_wp (Ins (Add64 dst src)) | val inst_Add (dst src: operand) : with_wp (Ins (Add64 dst src)) | let inst_Add (dst:operand) (src:operand) : with_wp (Ins (Add64 dst src)) =
QProc (Ins (Add64 dst src)) (wp_Add dst src) (hasWp_Add dst src) | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 372,
"start_col": 0,
"start_line": 371
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dst: MiniValeSemantics.operand -> src: MiniValeSemantics.operand
-> MiniValeSemantics.with_wp (MiniValeSemantics.Ins (MiniValeSemantics.Add64 dst src)) | Prims.Tot | [
"total"
] | [] | [
"MiniValeSemantics.operand",
"MiniValeSemantics.QProc",
"MiniValeSemantics.Ins",
"MiniValeSemantics.Add64",
"MiniValeSemantics.wp_Add",
"MiniValeSemantics.hasWp_Add",
"MiniValeSemantics.with_wp"
] | [] | false | false | false | false | false | let inst_Add (dst src: operand) : with_wp (Ins (Add64 dst src)) =
| QProc (Ins (Add64 dst src)) (wp_Add dst src) (hasWp_Add dst src) | false |
MiniValeSemantics.fst | MiniValeSemantics.normal_steps | val normal_steps:list string | val normal_steps:list string | let normal_steps : list string =
[
`%OReg?;
`%OReg?.r;
`%QProc?.wp;
] | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 383,
"start_col": 0,
"start_line": 378
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"Prims.string",
"Prims.Nil"
] | [] | false | false | false | true | false | let normal_steps:list string =
| [`%OReg?; `%OReg?.r; `%QProc?.wp] | false |
MiniValeSemantics.fst | MiniValeSemantics.normal | val normal (x: Type0) : Type0 | val normal (x: Type0) : Type0 | let normal (x:Type0) : Type0 =
norm [nbe; iota; zeta; simplify; primops; delta_attr [`%qattr]; delta_only normal_steps] x | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 92,
"end_line": 387,
"start_col": 0,
"start_line": 386
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.norm",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.nbe",
"FStar.Pervasives.iota",
"FStar.Pervasives.zeta",
"FStar.Pervasives.simplify",
"FStar.Pervasives.primops",
"FStar.Pervasives.delta_attr",
"Prims.string",
"Prims.Nil",
"FStar.Pervasives.delta_only",
"... | [] | false | false | false | true | true | let normal (x: Type0) : Type0 =
| norm [nbe; iota; zeta; simplify; primops; delta_attr [`%qattr]; delta_only normal_steps] x | false |
MiniValeSemantics.fst | MiniValeSemantics.vc_sound | val vc_sound (cs: list code) (qcs: with_wps cs) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | val vc_sound (cs: list code) (qcs: with_wps cs) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | let rec vc_sound (cs:list code)
(qcs:with_wps cs)
(k:state -> Type0)
(s0:state)
: Ghost (state * fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN)
= match qcs with
| QEmpty -> (s0, 0)
| QSeq ... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 300,
"start_col": 0,
"start_line": 283
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cs: Prims.list MiniValeSemantics.code ->
qcs: MiniValeSemantics.with_wps cs ->
k: (_: MiniValeSemantics.state -> Type0) ->
s0: MiniValeSemantics.state
-> Prims.Ghost (MiniValeSemantics.state * MiniValeSemantics.fuel) | Prims.Ghost | [] | [] | [
"Prims.list",
"MiniValeSemantics.code",
"MiniValeSemantics.with_wps",
"MiniValeSemantics.state",
"FStar.Pervasives.Native.Mktuple2",
"MiniValeSemantics.fuel",
"MiniValeSemantics.with_wp",
"MiniValeSemantics.lemma_merge",
"FStar.Pervasives.Native.tuple2",
"MiniValeSemantics.vc_sound",
"MiniValeSe... | [
"recursion"
] | false | false | false | false | false | let rec vc_sound (cs: list code) (qcs: with_wps cs) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) =
| match qcs with
| QEmpty -> (s0, 0)
| QSeq qc qcs ->
let Cons c cs' = cs in
let sM, fM = qc.hasWp (vc_gen cs' qcs k) s0 in
let sN, fN = vc_sound cs' qcs k sM in
let fN' = lemma_merge c cs' s0 fM sM fN sN in
(sN, fN')
| QLemma pre post lem qcs' ->
lem ();
vc_sound cs qcs' k s0 | false |
MiniValeSemantics.fst | MiniValeSemantics.vc_gen | val vc_gen (cs: list code) (qcs: with_wps cs) (k: t_post) : Tot (state -> Tot Type0 (decreases qcs)) | val vc_gen (cs: list code) (qcs: with_wps cs) (k: t_post) : Tot (state -> Tot Type0 (decreases qcs)) | let rec vc_gen (cs:list code) (qcs:with_wps cs) (k:t_post)
: Tot (state -> Tot Type0 (decreases qcs))
=
fun s0 ->
match qcs with
| QEmpty ->
k s0 //no instructions; prove the postcondition right away
| QSeq qc qcs ->
// let pre_tl = //compute the VC generator for the tail, a precondition
qc.wp ... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 280,
"start_col": 0,
"start_line": 264
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cs: Prims.list MiniValeSemantics.code ->
qcs: MiniValeSemantics.with_wps cs ->
k: MiniValeSemantics.t_post ->
_: MiniValeSemantics.state
-> Prims.Tot Type0 | Prims.Tot | [
"total",
""
] | [] | [
"Prims.list",
"MiniValeSemantics.code",
"MiniValeSemantics.with_wps",
"MiniValeSemantics.t_post",
"MiniValeSemantics.state",
"MiniValeSemantics.with_wp",
"MiniValeSemantics.__proj__QProc__item__wp",
"MiniValeSemantics.vc_gen",
"Prims.__proj__Cons__item__tl",
"MiniValeSemantics.t_lemma",
"Prims.l... | [
"recursion"
] | false | false | false | false | true | let rec vc_gen (cs: list code) (qcs: with_wps cs) (k: t_post)
: Tot (state -> Tot Type0 (decreases qcs)) =
| fun s0 ->
match qcs with
| QEmpty -> k s0
| QSeq qc qcs -> qc.wp (vc_gen (Cons?.tl cs) qcs k) s0
| QLemma pre post _ qcs -> pre /\ (post ==> vc_gen cs qcs k s0) | false |
MiniValeSemantics.fst | MiniValeSemantics.hasWp_Move | val hasWp_Move (dst src: operand) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM) | val hasWp_Move (dst src: operand) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM) | let hasWp_Move (dst:operand) (src:operand) (k:state -> Type0) (s0:state) : Ghost (state * fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM)
=
lemma_Move s0 dst src | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 336,
"start_col": 0,
"start_line": 332
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: MiniValeSemantics.operand ->
src: MiniValeSemantics.operand ->
k: (_: MiniValeSemantics.state -> Type0) ->
s0: MiniValeSemantics.state
-> Prims.Ghost (MiniValeSemantics.state * MiniValeSemantics.fuel) | Prims.Ghost | [] | [] | [
"MiniValeSemantics.operand",
"MiniValeSemantics.state",
"MiniValeSemantics.lemma_Move",
"FStar.Pervasives.Native.tuple2",
"MiniValeSemantics.fuel",
"MiniValeSemantics.wp_Move",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"MiniValeSemantics.eval_code",
"MiniValeSemantics.Ins",
... | [] | false | false | false | false | false | let hasWp_Move (dst src: operand) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM) =
| lemma_Move s0 dst src | false |
MiniValeSemantics.fst | MiniValeSemantics.lemma_Move | val lemma_Move (s0: state) (dst src: operand)
: Ghost (state * fuel)
(requires OReg? dst)
(ensures
fun (sM, fM) ->
eval_code (Ins (Mov64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand src s0 /\ sM == update_state (OReg?.r dst) sM s0) | val lemma_Move (s0: state) (dst src: operand)
: Ghost (state * fuel)
(requires OReg? dst)
(ensures
fun (sM, fM) ->
eval_code (Ins (Mov64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand src s0 /\ sM == update_state (OReg?.r dst) sM s0) | let lemma_Move (s0:state) (dst:operand) (src:operand)
: Ghost (state * fuel)
(requires OReg? dst)
(ensures fun (sM, fM) ->
eval_code (Ins (Mov64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand src s0 /\
sM == update_state (OReg?.r dst) sM s0
)
=
let Some sM = eval_code (Ins (Mo... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 322,
"start_col": 0,
"start_line": 312
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s0: MiniValeSemantics.state -> dst: MiniValeSemantics.operand -> src: MiniValeSemantics.operand
-> Prims.Ghost (MiniValeSemantics.state * MiniValeSemantics.fuel) | Prims.Ghost | [] | [] | [
"MiniValeSemantics.state",
"MiniValeSemantics.operand",
"FStar.Pervasives.Native.Mktuple2",
"MiniValeSemantics.fuel",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.option",
"MiniValeSemantics.eval_code",
"MiniValeSemantics.Ins",
"MiniValeSemantics.Mov64",
"Prims.b2t",
"MiniValeSeman... | [] | false | false | false | false | false | let lemma_Move (s0: state) (dst src: operand)
: Ghost (state * fuel)
(requires OReg? dst)
(ensures
fun (sM, fM) ->
eval_code (Ins (Mov64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand src s0 /\ sM == update_state (OReg?.r dst) sM s0) =
| let Some sM = eval_code (Ins (Mov64 dst src)) 0 s0 in
(sM, 0) | false |
MiniValeSemantics.fst | MiniValeSemantics.wp_Move | val wp_Move (dst src: operand) (k: (state -> Type0)) (s0: state) : Type0 | val wp_Move (dst src: operand) (k: (state -> Type0)) (s0: state) : Type0 | let wp_Move (dst:operand) (src:operand) (k:state -> Type0) (s0:state) : Type0 =
OReg? dst /\
(forall (x:nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand src s0 ==> k sM
) | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 330,
"start_col": 0,
"start_line": 325
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: MiniValeSemantics.operand ->
src: MiniValeSemantics.operand ->
k: (_: MiniValeSemantics.state -> Type0) ->
s0: MiniValeSemantics.state
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"MiniValeSemantics.operand",
"MiniValeSemantics.state",
"Prims.l_and",
"Prims.b2t",
"MiniValeSemantics.uu___is_OReg",
"Prims.l_Forall",
"MiniValeSemantics.nat64",
"Prims.l_imp",
"Prims.eq2",
"MiniValeSemantics.eval_operand",
"MiniValeSemantics.update_reg",
"MiniValeSemantics.__proj__OReg__item... | [] | false | false | false | true | true | let wp_Move (dst src: operand) (k: (state -> Type0)) (s0: state) : Type0 =
| OReg? dst /\
(forall (x: nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand src s0 ==> k sM) | false |
FStar.DM4F.OTP.Heap.fsti | FStar.DM4F.OTP.Heap.size | val size : Prims.int | let size = 10 | {
"file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.BitVector.fst.checked"
],
"interface_file": false,
"source_file": "FStar.DM4F.OTP.Heap.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.BitVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.OTP",
"short_module": null
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let size =
| 10 | false | |
FStar.DM4F.OTP.Heap.fsti | FStar.DM4F.OTP.Heap.sel | val sel : h: FStar.DM4F.OTP.Heap.tape -> i: FStar.DM4F.OTP.Heap.id -> FStar.DM4F.OTP.Heap.elem | let sel = index | {
"file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 40,
"start_col": 0,
"start_line": 40
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.BitVector.fst.checked"
],
"interface_file": false,
"source_file": "FStar.DM4F.OTP.Heap.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.BitVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.DM4F.OTP.Heap.tape -> i: FStar.DM4F.OTP.Heap.id -> FStar.DM4F.OTP.Heap.elem | Prims.Tot | [
"total"
] | [] | [
"FStar.DM4F.OTP.Heap.index"
] | [] | false | false | false | true | false | let sel =
| index | false | |
MiniValeSemantics.fst | MiniValeSemantics.lemma_merge | val lemma_merge (c: code) (cs: list code) (s0: state) (f0: fuel) (sM: state) (fM: fuel) (sN: state)
: Ghost fuel
(requires eval_code c f0 s0 == Some sM /\ eval_code (Block cs) fM sM == Some sN)
(ensures fun fN -> eval_code (Block (c :: cs)) fN s0 == Some sN) | val lemma_merge (c: code) (cs: list code) (s0: state) (f0: fuel) (sM: state) (fM: fuel) (sN: state)
: Ghost fuel
(requires eval_code c f0 s0 == Some sM /\ eval_code (Block cs) fM sM == Some sN)
(ensures fun fN -> eval_code (Block (c :: cs)) fN s0 == Some sN) | let lemma_merge (c:code) (cs:list code) (s0:state) (f0:fuel) (sM:state) (fM:fuel) (sN:state)
: Ghost fuel
(requires
eval_code c f0 s0 == Some sM /\
eval_code (Block cs) fM sM == Some sN)
(ensures fun fN ->
eval_code (Block (c::cs)) fN s0 == Some sN)
=
let f = if f0 > fM then f0 else fM in
increa... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 197,
"start_col": 0,
"start_line": 186
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
c: MiniValeSemantics.code ->
cs: Prims.list MiniValeSemantics.code ->
s0: MiniValeSemantics.state ->
f0: MiniValeSemantics.fuel ->
sM: MiniValeSemantics.state ->
fM: MiniValeSemantics.fuel ->
sN: MiniValeSemantics.state
-> Prims.Ghost MiniValeSemantics.fuel | Prims.Ghost | [] | [] | [
"MiniValeSemantics.code",
"Prims.list",
"MiniValeSemantics.state",
"MiniValeSemantics.fuel",
"Prims.unit",
"MiniValeSemantics.increase_fuel",
"MiniValeSemantics.Block",
"Prims.op_GreaterThan",
"Prims.bool",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"MiniValeSemantics.eval... | [] | false | false | false | false | false | let lemma_merge (c: code) (cs: list code) (s0: state) (f0: fuel) (sM: state) (fM: fuel) (sN: state)
: Ghost fuel
(requires eval_code c f0 s0 == Some sM /\ eval_code (Block cs) fM sM == Some sN)
(ensures fun fN -> eval_code (Block (c :: cs)) fN s0 == Some sN) =
| let f = if f0 > fM then f0 else fM in
increase_fuel c s0 f0 sM f;
increase_fuel (Block cs) sM fM sN f;
f | false |
MiniValeSemantics.fst | MiniValeSemantics.hasWp_Add | val hasWp_Add (dst src: operand) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM) | val hasWp_Add (dst src: operand) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM) | let hasWp_Add (dst:operand) (src:operand) (k:state -> Type0) (s0:state) : Ghost (state * fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM)
=
lemma_Add s0 dst src | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 368,
"start_col": 0,
"start_line": 364
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: MiniValeSemantics.operand ->
src: MiniValeSemantics.operand ->
k: (_: MiniValeSemantics.state -> Type0) ->
s0: MiniValeSemantics.state
-> Prims.Ghost (MiniValeSemantics.state * MiniValeSemantics.fuel) | Prims.Ghost | [] | [] | [
"MiniValeSemantics.operand",
"MiniValeSemantics.state",
"MiniValeSemantics.lemma_Add",
"FStar.Pervasives.Native.tuple2",
"MiniValeSemantics.fuel",
"MiniValeSemantics.wp_Add",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"MiniValeSemantics.eval_code",
"MiniValeSemantics.Ins",
"... | [] | false | false | false | false | false | let hasWp_Add (dst src: operand) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM) =
| lemma_Add s0 dst src | false |
Vale.Curve25519.X64.FastUtil.fst | Vale.Curve25519.X64.FastUtil.va_lemma_Fast_sub | val va_lemma_Fast_sub : va_b0:va_code -> va_s0:va_state -> dst_b:buffer64 -> inA_b:buffer64 ->
inB_b:buffer64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Fast_sub ()) va_s0 /\ va_get_ok va_s0 /\ (let
(a0:Vale.Def.Types_s.nat64) = Vale.X64.Decls.buffer64_read inA_b 0 (va_get_mem_he... | val va_lemma_Fast_sub : va_b0:va_code -> va_s0:va_state -> dst_b:buffer64 -> inA_b:buffer64 ->
inB_b:buffer64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Fast_sub ()) va_s0 /\ va_get_ok va_s0 /\ (let
(a0:Vale.Def.Types_s.nat64) = Vale.X64.Decls.buffer64_read inA_b 0 (va_get_mem_he... | let va_lemma_Fast_sub va_b0 va_s0 dst_b inA_b inB_b =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_mem_heaplet 0; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rR8; va_Mod_reg64 rRax; va_Mod_ok; va_Mod_mem] in
let va_qc = va_qcode_Fast_sub va_mods dst_b inA_b inB_b in
let (va_sM, va_... | {
"file_name": "obj/Vale.Curve25519.X64.FastUtil.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1441,
"start_col": 0,
"start_line": 1399
} | module Vale.Curve25519.X64.FastUtil
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsStack
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open FStar.Tactics
open Vale.Curve25519.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsStack.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64.... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.FastUtil_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_external",
"short_module": nul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst_b: Vale.X64.Memory.buffer64 ->
inA_b: Vale.X64.Memory.buffer64 ->
inB_b: Vale.X64.Memory.buffer64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Memory.buffer64",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_f... | [] | false | false | false | false | false | let va_lemma_Fast_sub va_b0 va_s0 dst_b inA_b inB_b =
| let va_mods:va_mods_t =
[
va_Mod_flags;
va_Mod_mem_heaplet 0;
va_Mod_reg64 rR11;
va_Mod_reg64 rR10;
va_Mod_reg64 rR9;
va_Mod_reg64 rR8;
va_Mod_reg64 rRax;
va_Mod_ok;
va_Mod_mem
]
in
let va_qc = va_qcode_Fast_sub va_mods dst_b inA_b inB_b in
let va_sM, va_fM, va_g =
va_wp_sound_... | false |
MiniValeSemantics.fst | MiniValeSemantics.wp_Add | val wp_Add (dst src: operand) (k: (state -> Type0)) (s0: state) : Type0 | val wp_Add (dst src: operand) (k: (state -> Type0)) (s0: state) : Type0 | let wp_Add (dst:operand) (src:operand) (k:state -> Type0) (s0:state) : Type0 =
OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64 /\
(forall (x:nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand dst s0 + eval_operand src s0 ==> k sM
) | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 362,
"start_col": 0,
"start_line": 357
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: MiniValeSemantics.operand ->
src: MiniValeSemantics.operand ->
k: (_: MiniValeSemantics.state -> Type0) ->
s0: MiniValeSemantics.state
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"MiniValeSemantics.operand",
"MiniValeSemantics.state",
"Prims.l_and",
"Prims.b2t",
"MiniValeSemantics.uu___is_OReg",
"Prims.op_LessThan",
"Prims.op_Addition",
"MiniValeSemantics.eval_operand",
"MiniValeSemantics.pow2_64",
"Prims.l_Forall",
"MiniValeSemantics.nat64",
"Prims.l_imp",
"Prims.eq... | [] | false | false | false | true | true | let wp_Add (dst src: operand) (k: (state -> Type0)) (s0: state) : Type0 =
| OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64 /\
(forall (x: nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand dst s0 + eval_operand src s0 ==> k sM) | false |
MiniValeSemantics.fst | MiniValeSemantics.codes_Triple | val codes_Triple:list code | val codes_Triple:list code | let codes_Triple : list code =
[Ins (Mov64 (OReg Rbx) (OReg Rax)); //mov rbx rax;
Ins (Mov64 (OReg Rbx) (OReg Rax)); //mov rbx rax;
Ins (Mov64 (OReg Rbx) (OReg Rax)); //mov rbx rax;
//1
Ins (Mov64 (OReg Rbx) (OReg Rax)); //mov rbx rax;
Ins (Mov64 (OReg Rbx) (OReg Rax)); //mov rbx rax;
Ins (Mo... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 672,
"start_col": 0,
"start_line": 406
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list MiniValeSemantics.code | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"MiniValeSemantics.code",
"MiniValeSemantics.Ins",
"MiniValeSemantics.Mov64",
"MiniValeSemantics.OReg",
"MiniValeSemantics.Rbx",
"MiniValeSemantics.Rax",
"MiniValeSemantics.Add64",
"Prims.Nil"
] | [] | false | false | false | true | false | let codes_Triple:list code =
| [
Ins (Mov64 (OReg Rbx) (OReg Rax)); Ins (Mov64 (OReg Rbx) (OReg Rax));
Ins (Mov64 (OReg Rbx) (OReg Rax)); Ins (Mov64 (OReg Rbx) (OReg Rax));
Ins (Mov64 (OReg Rbx) (OReg Rax)); Ins (Mov64 (OReg Rbx) (OReg Rax));
Ins (Mov64 (OReg Rbx) (OReg Rax)); Ins (Mov64 (OReg Rbx) (OReg Rax));
Ins (Mov64 (OReg Rbx) (OReg ... | false |
MiniValeSemantics.fst | MiniValeSemantics.vc_sound_norm | val vc_sound_norm (cs: list code) (qcs: with_wps cs) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | val vc_sound_norm (cs: list code) (qcs: with_wps cs) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | let vc_sound_norm
(cs:list code)
(qcs:with_wps cs)
(k:state -> Type0)
(s0:state)
: Ghost (state * fuel)
(requires
normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) ->
eval_code (Block cs) fN s0 == Some sN /\ k sN)
= vc_sound cs qcs k s0 | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 399,
"start_col": 0,
"start_line": 389
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cs: Prims.list MiniValeSemantics.code ->
qcs: MiniValeSemantics.with_wps cs ->
k: (_: MiniValeSemantics.state -> Type0) ->
s0: MiniValeSemantics.state
-> Prims.Ghost (MiniValeSemantics.state * MiniValeSemantics.fuel) | Prims.Ghost | [] | [] | [
"Prims.list",
"MiniValeSemantics.code",
"MiniValeSemantics.with_wps",
"MiniValeSemantics.state",
"MiniValeSemantics.vc_sound",
"FStar.Pervasives.Native.tuple2",
"MiniValeSemantics.fuel",
"MiniValeSemantics.normal",
"MiniValeSemantics.vc_gen",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Nativ... | [] | false | false | false | false | false | let vc_sound_norm (cs: list code) (qcs: with_wps cs) (k: (state -> Type0)) (s0: state)
: Ghost (state * fuel)
(requires normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) =
| vc_sound cs qcs k s0 | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.list_ref | val list_ref : (#a:Type) -> (#p:(a -> Type)) -> (l:list a) ->
Pure (list (x:a{p x}))
(requires (forallP p l))
(ensures (fun _ -> True)) | val list_ref : (#a:Type) -> (#p:(a -> Type)) -> (l:list a) ->
Pure (list (x:a{p x}))
(requires (forallP p l))
(ensures (fun _ -> True)) | let rec list_ref #a #p l =
match l with
| [] -> []
| x::xs -> x :: list_ref #a #p xs | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 43,
"start_col": 0,
"start_line": 40
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list a -> Prims.Pure (Prims.list (x: a{p x})) | Prims.Pure | [] | [] | [
"Prims.list",
"Prims.Nil",
"Prims.Cons",
"FStar.Reflection.V2.Derived.Lemmas.list_ref"
] | [
"recursion"
] | false | false | false | false | false | let rec list_ref #a #p l =
| match l with
| [] -> []
| x :: xs -> x :: list_ref #a #p xs | false |
MiniValeSemantics.fst | MiniValeSemantics.lemma_Add | val lemma_Add (s0: state) (dst src: operand)
: Ghost (state * fuel)
(requires OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64)
(ensures
fun (sM, fM) ->
eval_code (Ins (Add64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand dst s0 + eval_opera... | val lemma_Add (s0: state) (dst src: operand)
: Ghost (state * fuel)
(requires OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64)
(ensures
fun (sM, fM) ->
eval_code (Ins (Add64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand dst s0 + eval_opera... | let lemma_Add (s0:state) (dst:operand) (src:operand) : Ghost (state * fuel)
(requires OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64)
(ensures fun (sM, fM) ->
eval_code (Ins (Add64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand dst s0 + eval_operand src s0 /\
sM == u... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 354,
"start_col": 0,
"start_line": 345
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s0: MiniValeSemantics.state -> dst: MiniValeSemantics.operand -> src: MiniValeSemantics.operand
-> Prims.Ghost (MiniValeSemantics.state * MiniValeSemantics.fuel) | Prims.Ghost | [] | [] | [
"MiniValeSemantics.state",
"MiniValeSemantics.operand",
"FStar.Pervasives.Native.Mktuple2",
"MiniValeSemantics.fuel",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.option",
"MiniValeSemantics.eval_code",
"MiniValeSemantics.Ins",
"MiniValeSemantics.Add64",
"Prims.l_and",
"Prims.b2t",... | [] | false | false | false | false | false | let lemma_Add (s0: state) (dst src: operand)
: Ghost (state * fuel)
(requires OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64)
(ensures
fun (sM, fM) ->
eval_code (Ins (Add64 dst src)) fM s0 == Some sM /\
eval_operand dst sM == eval_operand dst s0 + eval_opera... | let Some sM = eval_code (Ins (Add64 dst src)) 0 s0 in
(sM, 0) | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_app_ref | val collect_app_ref : (t:term) -> (h:term{h == t \/ h << t}) * list (a:argv{fst a << t}) | val collect_app_ref : (t:term) -> (h:term{h == t \/ h << t}) * list (a:argv{fst a << t}) | let collect_app_ref t =
let h, a = collect_app_ln t in
collect_app_order t;
h, list_ref a | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 68,
"start_col": 0,
"start_line": 65
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> h:
FStar.Stubs.Reflection.Types.term{h == t \/ h << t} *
Prims.list (a: FStar.Stubs.Reflection.V2.Data.argv{FStar.Pervasives.Native.fst a << t}) | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Pervasives.Native.Mktuple2",
"Prims.l_or",
"Prims.eq2",
"Prims.precedes",
"FStar.Pervasives.Native.fst",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Reflection.V2.Derived.Lemmas.list_ref",
"Prims... | [] | false | false | false | false | false | let collect_app_ref t =
| let h, a = collect_app_ln t in
collect_app_order t;
h, list_ref a | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_app_order' | val collect_app_order' : (args:list argv) -> (tt:term) -> (t:term) ->
Lemma (requires args <<: tt /\ t << tt)
(ensures (let fn, args' = collect_app_ln' args t in
args' <<: tt /\ fn << tt))
(decreases t) | val collect_app_order' : (args:list argv) -> (tt:term) -> (t:term) ->
Lemma (requires args <<: tt /\ t << tt)
(ensures (let fn, args' = collect_app_ln' args t in
args' <<: tt /\ fn << tt))
(decreases t) | let rec collect_app_order' args tt t =
match inspect_ln_unascribe t with
| Tv_App l r -> collect_app_order' (r::args) tt l
| _ -> () | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 53,
"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.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"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 |
args: Prims.list FStar.Stubs.Reflection.V2.Data.argv ->
tt: FStar.Stubs.Reflection.Types.term ->
t: FStar.Stubs.Reflection.Types.term
-> FStar.Pervasives.Lemma (requires args <<: tt /\ t << tt)
(ensures
(let _ = FStar.Reflection.V2.Derived.collect_app_ln' args t in
(let FStar.Perv... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.list",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V2.Derived.inspect_ln_unascribe",
"FStar.Reflection.V2.Derived.Lemmas.collect_app_order'",
"Prims.Cons",
"FStar.Stubs.Reflection.V2.Data.term_view",
"Prims.unit"
] | [
"recursion"
] | false | false | true | false | false | let rec collect_app_order' args tt t =
| match inspect_ln_unascribe t with
| Tv_App l r -> collect_app_order' (r :: args) tt l
| _ -> () | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_app_order | val collect_app_order : (t:term) ->
Lemma (ensures (forall (f:term). forall (s:list argv). (f,s) == collect_app_ln t ==>
(f << t /\ s <<: t)
\/ (f == t /\ s == []))) | val collect_app_order : (t:term) ->
Lemma (ensures (forall (f:term). forall (s:list argv). (f,s) == collect_app_ln t ==>
(f << t /\ s <<: t)
\/ (f == t /\ s == []))) | let collect_app_order t =
match inspect_ln_unascribe t with
| Tv_App l r -> collect_app_order' [r] t l
| _ -> () | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 62,
"start_col": 0,
"start_line": 59
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> FStar.Pervasives.Lemma
(ensures
forall (f: FStar.Stubs.Reflection.Types.term)
(s: Prims.list FStar.Stubs.Reflection.V2.Data.argv).
(f, s) == FStar.Reflection.V2.Derived.collect_app_ln t ==>
f << t /\ s <<: t \/ f == t /\ s == []) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V2.Derived.inspect_ln_unascribe",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Reflection.V2.Derived.Lemmas.collect_app_order'",
"Prims.Cons",
"Prims.Nil",
"FStar.Stubs.Reflection.V2.Data.term_view",
"Prims.unit"
] | [] | false | false | true | false | false | let collect_app_order t =
| match inspect_ln_unascribe t with
| Tv_App l r -> collect_app_order' [r] t l
| _ -> () | false |
FStar.DM4F.OTP.Heap.fsti | FStar.DM4F.OTP.Heap.elem | val elem : Type0 | let elem = bv_t q | {
"file_name": "examples/dm4free/FStar.DM4F.OTP.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"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.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.BitVector.fst.checked"
],
"interface_file": false,
"source_file": "FStar.DM4F.OTP.Heap.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.BitVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.BitVector.bv_t",
"FStar.DM4F.OTP.Heap.q"
] | [] | false | false | false | true | true | let elem =
| bv_t q | false | |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_abs_order' | val collect_abs_order' (bds: binders) (tt t: term)
: Lemma (requires t << tt /\ bds <<: tt)
(ensures
(let bds', body = collect_abs' bds t in
(bds' <<: tt /\ body << tt)))
(decreases t) | val collect_abs_order' (bds: binders) (tt t: term)
: Lemma (requires t << tt /\ bds <<: tt)
(ensures
(let bds', body = collect_abs' bds t in
(bds' <<: tt /\ body << tt)))
(decreases t) | let rec collect_abs_order' (bds: binders) (tt t: term)
: Lemma (requires t << tt /\ bds <<: tt)
(ensures (let bds', body = collect_abs' bds t in
(bds' <<: tt /\ body << tt)))
(decreases t)
= match inspect_ln_unascribe t with
| Tv_Abs b body -> collect_abs_order' (b::bds) ... | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 78,
"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.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"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 |
bds: FStar.Stubs.Reflection.Types.binders ->
tt: FStar.Stubs.Reflection.Types.term ->
t: FStar.Stubs.Reflection.Types.term
-> FStar.Pervasives.Lemma (requires t << tt /\ bds <<: tt)
(ensures
(let _ = FStar.Reflection.V2.Derived.collect_abs' bds t in
(let FStar.Pervasives.Native.Mk... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Stubs.Reflection.Types.binders",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V2.Derived.inspect_ln_unascribe",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Reflection.V2.Derived.Lemmas.collect_abs_order'",
"Prims.Cons",
"FStar.Stubs.Reflection.V2.Data.term_view",
"Prims.unit",
"Pr... | [
"recursion"
] | false | false | true | false | false | let rec collect_abs_order' (bds: binders) (tt t: term)
: Lemma (requires t << tt /\ bds <<: tt)
(ensures
(let bds', body = collect_abs' bds t in
(bds' <<: tt /\ body << tt)))
(decreases t) =
| match inspect_ln_unascribe t with
| Tv_Abs b body -> collect_abs_order' (b :: bds) tt body
| _ -> () | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_arr_order' | val collect_arr_order' (bds: binders) (tt: term) (c: comp)
: Lemma (requires c << tt /\ bds <<: tt)
(ensures
(let bds', c' = collect_arr' bds c in
bds' <<: tt /\ c' << tt))
(decreases c) | val collect_arr_order' (bds: binders) (tt: term) (c: comp)
: Lemma (requires c << tt /\ bds <<: tt)
(ensures
(let bds', c' = collect_arr' bds c in
bds' <<: tt /\ c' << tt))
(decreases c) | let rec collect_arr_order' (bds: binders) (tt: term) (c: comp)
: Lemma (requires c << tt /\ bds <<: tt)
(ensures (let bds', c' = collect_arr' bds c in
bds' <<: tt /\ c' << tt))
(decreases c)
= match inspect_comp c with
| C_Total ret ->
( match inspect_ln_unascribe... | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 112,
"start_col": 0,
"start_line": 102
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"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 |
bds: FStar.Stubs.Reflection.Types.binders ->
tt: FStar.Stubs.Reflection.Types.term ->
c: FStar.Stubs.Reflection.Types.comp
-> FStar.Pervasives.Lemma (requires c << tt /\ bds <<: tt)
(ensures
(let _ = FStar.Reflection.V2.Derived.collect_arr' bds c in
(let FStar.Pervasives.Native.Mk... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Stubs.Reflection.Types.binders",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Stubs.Reflection.V2.Builtins.inspect_comp",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Reflection.V2.Derived.inspect_ln_unascribe",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Ref... | [
"recursion"
] | false | false | true | false | false | let rec collect_arr_order' (bds: binders) (tt: term) (c: comp)
: Lemma (requires c << tt /\ bds <<: tt)
(ensures
(let bds', c' = collect_arr' bds c in
bds' <<: tt /\ c' << tt))
(decreases c) =
| match inspect_comp c with
| C_Total ret ->
(match inspect_ln_unascribe ret with
| Tv_Arrow b c -> collect_arr_order' (b :: bds) tt c
| _ -> ())
| _ -> () | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_arr_ln_bs_order | val collect_arr_ln_bs_order : (t:term) ->
Lemma (ensures forall bds c.
(bds, c) == collect_arr_ln_bs t ==>
(c << t /\ bds <<: t)
\/ (c == pack_comp (C_Total t) /\ bds == [])
) | val collect_arr_ln_bs_order : (t:term) ->
Lemma (ensures forall bds c.
(bds, c) == collect_arr_ln_bs t ==>
(c << t /\ bds <<: t)
\/ (c == pack_comp (C_Total t) /\ bds == [])
) | let collect_arr_ln_bs_order t =
match inspect_ln_unascribe t with
| Tv_Arrow b c -> collect_arr_order' [b] t c;
Classical.forall_intro_2 (rev_memP #binder);
inspect_pack_comp_inv (C_Total t)
| _ -> inspect_pack_comp_inv (C_Total t) | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 125,
"start_col": 0,
"start_line": 120
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> FStar.Pervasives.Lemma
(ensures
forall (bds: Prims.list FStar.Stubs.Reflection.Types.binder)
(c: FStar.Stubs.Reflection.Types.comp).
(bds, c) == FStar.Reflection.V2.Derived.collect_arr_ln_bs t ==>
c << t /\ bds <<: t \/
c == FStar.Stubs... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V2.Derived.inspect_ln_unascribe",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Stubs.Reflection.V2.Builtins.inspect_pack_comp_inv",
"FStar.Stubs.Reflection.V2.Data.C_Total",
"Prims.unit",
"FStar.Classical.fora... | [] | false | false | true | false | false | let collect_arr_ln_bs_order t =
| match inspect_ln_unascribe t with
| Tv_Arrow b c ->
collect_arr_order' [b] t c;
Classical.forall_intro_2 (rev_memP #binder);
inspect_pack_comp_inv (C_Total t)
| _ -> inspect_pack_comp_inv (C_Total t) | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_abs_ln_order | val collect_abs_ln_order : (t:term) ->
Lemma (ensures forall bds body.
(bds, body) == collect_abs_ln t ==>
(body << t /\ bds <<: t)
\/ (body == t /\ bds == [])
) | val collect_abs_ln_order : (t:term) ->
Lemma (ensures forall bds body.
(bds, body) == collect_abs_ln t ==>
(body << t /\ bds <<: t)
\/ (body == t /\ bds == [])
) | let collect_abs_ln_order t =
match inspect_ln_unascribe t with
| Tv_Abs b body -> collect_abs_order' [b] t body;
let bds, body = collect_abs' [] t in
Classical.forall_intro (rev_memP bds)
| _ -> () | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 91,
"start_col": 0,
"start_line": 86
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> FStar.Pervasives.Lemma
(ensures
forall (bds: Prims.list FStar.Stubs.Reflection.Types.binder)
(body: FStar.Stubs.Reflection.Types.term).
(bds, body) == FStar.Reflection.V2.Derived.collect_abs_ln t ==>
body << t /\ bds <<: t \/ body == t /\ bds =... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V2.Derived.inspect_ln_unascribe",
"FStar.Stubs.Reflection.Types.binder",
"Prims.list",
"FStar.Classical.forall_intro",
"Prims.l_iff",
"FStar.List.Tot.Base.memP",
"FStar.List.Tot.Base.rev",
"FStar.List.Tot.Properties.rev_memP",
"Prims.unit",
... | [] | false | false | true | false | false | let collect_abs_ln_order t =
| match inspect_ln_unascribe t with
| Tv_Abs b body ->
collect_abs_order' [b] t body;
let bds, body = collect_abs' [] t in
Classical.forall_intro (rev_memP bds)
| _ -> () | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_arr_ln_bs_ref | val collect_arr_ln_bs_ref : (t:term) -> list (bd:binder{bd << t})
* (c:comp{ c == pack_comp (C_Total t) \/ c << t}) | val collect_arr_ln_bs_ref : (t:term) -> list (bd:binder{bd << t})
* (c:comp{ c == pack_comp (C_Total t) \/ c << t}) | let collect_arr_ln_bs_ref t =
let bds, c = collect_arr_ln_bs t in
collect_arr_ln_bs_order t;
list_ref bds, c | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 132,
"start_col": 0,
"start_line": 129
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> Prims.list (bd: FStar.Stubs.Reflection.Types.binder{bd << t}) *
c:
FStar.Stubs.Reflection.Types.comp
{ c == FStar.Stubs.Reflection.V2.Builtins.pack_comp (FStar.Stubs.Reflection.V2.Data.C_Total t) \/
c << t } | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Pervasives.Native.Mktuple2",
"Prims.precedes",
"Prims.l_or",
"Prims.eq2",
"FStar.Stubs.Reflection.V2.Builtins.pack_comp",
"FStar.Stubs.Reflection.V2.Data.C_Total",
... | [] | false | false | false | false | false | let collect_arr_ln_bs_ref t =
| let bds, c = collect_arr_ln_bs t in
collect_arr_ln_bs_order t;
list_ref bds, c | false |
FStar.Reflection.V2.Derived.Lemmas.fst | FStar.Reflection.V2.Derived.Lemmas.collect_abs_ln_ref | val collect_abs_ln_ref : (t:term) -> list (bd:binder{bd << t}) * (body:term{body == t \/ body << t}) | val collect_abs_ln_ref : (t:term) -> list (bd:binder{bd << t}) * (body:term{body == t \/ body << t}) | let collect_abs_ln_ref t =
let bds, body = collect_abs_ln t in
collect_abs_ln_order t;
list_ref bds, body | {
"file_name": "ulib/FStar.Reflection.V2.Derived.Lemmas.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 97,
"start_col": 0,
"start_line": 94
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stubs.Reflection.V2.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.V2.Derived.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V2.Data",
"short_module": null
},
{
"abbr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> Prims.list (bd: FStar.Stubs.Reflection.Types.binder{bd << t}) *
body:
FStar.Stubs.Reflection.Types.term{body == t \/ body << t} | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.Mktuple2",
"Prims.precedes",
"Prims.l_or",
"Prims.eq2",
"FStar.Reflection.V2.Derived.Lemmas.list_ref",
"Prims.unit",
"FStar.Reflection.V2.Derived.Lemmas.collect_abs_ln_order",
"FSta... | [] | false | false | false | false | false | let collect_abs_ln_ref t =
| let bds, body = collect_abs_ln t in
collect_abs_ln_order t;
list_ref bds, body | false |
Vale.Curve25519.X64.FastUtil.fst | Vale.Curve25519.X64.FastUtil.va_lemma_Cswap2_stdcall | val va_lemma_Cswap2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool -> bit_in:nat64 ->
p0_b:buffer64 -> p1_b:buffer64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Cswap2_stdcall win) va_s0 /\ va_get_ok va_s0 /\ (let
(p0_in:(va_int_range 0 18446744073709551615)) = (if win then... | val va_lemma_Cswap2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool -> bit_in:nat64 ->
p0_b:buffer64 -> p1_b:buffer64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Cswap2_stdcall win) va_s0 /\ va_get_ok va_s0 /\ (let
(p0_in:(va_int_range 0 18446744073709551615)) = (if win then... | let va_lemma_Cswap2_stdcall va_b0 va_s0 win bit_in p0_b p1_b =
let (va_mods:va_mods_t) = [va_Mod_stackTaint; va_Mod_stack; va_Mod_mem_layout; va_Mod_mem_heaplet
0; va_Mod_flags; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rR8; va_Mod_reg64 rRsp;
va_Mod_reg64 rRdi; va_Mod_reg64 rRsi; va_Mod_reg64 rRdx; v... | {
"file_name": "obj/Vale.Curve25519.X64.FastUtil.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 2182,
"start_col": 0,
"start_line": 2075
} | module Vale.Curve25519.X64.FastUtil
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsStack
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open FStar.Tactics
open Vale.Curve25519.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsStack.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64.... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.FastUtil_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_external",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
bit_in: Vale.X64.Memory.nat64 ->
p0_b: Vale.X64.Memory.buffer64 ->
p1_b: Vale.X64.Memory.buffer64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.buffer64",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.Quick... | [] | false | false | false | false | false | let va_lemma_Cswap2_stdcall va_b0 va_s0 win bit_in p0_b p1_b =
| let va_mods:va_mods_t =
[
va_Mod_stackTaint; va_Mod_stack; va_Mod_mem_layout; va_Mod_mem_heaplet 0; va_Mod_flags;
va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rR8; va_Mod_reg64 rRsp; va_Mod_reg64 rRdi;
va_Mod_reg64 rRsi; va_Mod_reg64 rRdx; va_Mod_ok; va_Mod_mem
]
in
let va_qc = va_qcode_Cswap2_stdc... | false |
Vale.Curve25519.X64.FastUtil.fst | Vale.Curve25519.X64.FastUtil.va_lemma_Cswap2 | val va_lemma_Cswap2 : va_b0:va_code -> va_s0:va_state -> bit_in:nat64 -> p0_b:buffer64 ->
p1_b:buffer64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Cswap2 ()) va_s0 /\ va_get_ok va_s0 /\ (let
(old_p0_0:Vale.Def.Types_s.nat64) = Vale.X64.Decls.buffer64_read p0_b 0 (va_get_mem va_s0... | val va_lemma_Cswap2 : va_b0:va_code -> va_s0:va_state -> bit_in:nat64 -> p0_b:buffer64 ->
p1_b:buffer64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Cswap2 ()) va_s0 /\ va_get_ok va_s0 /\ (let
(old_p0_0:Vale.Def.Types_s.nat64) = Vale.X64.Decls.buffer64_read p0_b 0 (va_get_mem va_s0... | let va_lemma_Cswap2 va_b0 va_s0 bit_in p0_b p1_b =
let (va_mods:va_mods_t) = [va_Mod_mem_layout; va_Mod_mem_heaplet 0; va_Mod_flags; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rR8; va_Mod_reg64 rRdi; va_Mod_ok; va_Mod_mem] in
let va_qc = va_qcode_Cswap2 va_mods bit_in p0_b p1_b in
let (va_sM, va_fM, va... | {
"file_name": "obj/Vale.Curve25519.X64.FastUtil.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1982,
"start_col": 0,
"start_line": 1870
} | module Vale.Curve25519.X64.FastUtil
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsStack
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open FStar.Tactics
open Vale.Curve25519.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsStack.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64.... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.FastUtil_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_external",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
bit_in: Vale.X64.Memory.nat64 ->
p0_b: Vale.X64.Memory.buffer64 ->
p1_b: Vale.X64.Memory.buffer64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Memory.nat64",
"Vale.X64.Memory.buffer64",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"... | [] | false | false | false | false | false | let va_lemma_Cswap2 va_b0 va_s0 bit_in p0_b p1_b =
| let va_mods:va_mods_t =
[
va_Mod_mem_layout;
va_Mod_mem_heaplet 0;
va_Mod_flags;
va_Mod_reg64 rR10;
va_Mod_reg64 rR9;
va_Mod_reg64 rR8;
va_Mod_reg64 rRdi;
va_Mod_ok;
va_Mod_mem
]
in
let va_qc = va_qcode_Cswap2 va_mods bit_in p0_b p1_b in
let va_sM, va_fM, va_g =
va_wp_sound_cod... | false |
Pulse.JoinComp.fst | Pulse.JoinComp.compute_iname_join | val compute_iname_join (is1 is2: term) : term | val compute_iname_join (is1 is2: term) : term | let compute_iname_join (is1 is2 : term) : term =
tm_join_inames is1 is2 | {
"file_name": "lib/steel/pulse/Pulse.JoinComp.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 34,
"start_col": 0,
"start_line": 33
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.Pure.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": t... | {
"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 | is1: Pulse.Syntax.Base.term -> is2: Pulse.Syntax.Base.term -> Pulse.Syntax.Base.term | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.term",
"Pulse.Typing.tm_join_inames"
] | [] | false | false | false | true | false | let compute_iname_join (is1 is2: term) : term =
| tm_join_inames is1 is2 | false |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.proj_g_pow2_192 | val proj_g_pow2_192:S.proj_point | val proj_g_pow2_192:S.proj_point | let proj_g_pow2_192 : S.proj_point =
[@inline_let]
let rX : S.felem = 0xc762a9c8ae1b2f7434ff8da70fe105e0d4f188594989f193de0dbdbf5f60cb9a in
[@inline_let]
let rY : S.felem = 0x1eddaf51836859e1369f1ae8d9ab02e4123b6f151d9b796e297a38fa5613d9bc in
[@inline_let]
let rZ : S.felem = 0xcb433ab3f67815707e398dc7910cc4... | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 90,
"start_col": 0,
"start_line": 83
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.proj_point | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.Mktuple3",
"Prims.nat",
"Spec.P256.PointOps.felem"
] | [] | false | false | false | true | false | let proj_g_pow2_192:S.proj_point =
| [@@ inline_let ]let rX:S.felem =
0xc762a9c8ae1b2f7434ff8da70fe105e0d4f188594989f193de0dbdbf5f60cb9a
in
[@@ inline_let ]let rY:S.felem =
0x1eddaf51836859e1369f1ae8d9ab02e4123b6f151d9b796e297a38fa5613d9bc
in
[@@ inline_let ]let rZ:S.felem =
0xcb433ab3f67815707e398dc7910cc4ec6ea115360060fc73c35b53dce02e2c72
in
(rX, ... | false |
FStar.Buffer.fst | FStar.Buffer.as_ref | val as_ref : b: FStar.Buffer.buffer a
-> Prims.GTot
(FStar.Monotonic.Heap.mref (FStar.Buffer.lseq a (FStar.Buffer.max_length b))
(FStar.Heap.trivial_preorder (FStar.Buffer.lseq a (FStar.Buffer.max_length b)))) | let as_ref #a (b:buffer a) = as_ref (content b) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 47,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a
-> Prims.GTot
(FStar.Monotonic.Heap.mref (FStar.Buffer.lseq a (FStar.Buffer.max_length b))
(FStar.Heap.trivial_preorder (FStar.Buffer.lseq a (FStar.Buffer.max_length b)))) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.as_ref",
"FStar.Buffer.lseq",
"FStar.Buffer.max_length",
"FStar.Heap.trivial_preorder",
"FStar.Buffer.content",
"FStar.Monotonic.Heap.mref"
] | [] | false | false | false | false | false | let as_ref #a (b: buffer a) =
| as_ref (content b) | false | |
FStar.Buffer.fst | FStar.Buffer.content | val content (#a: _) (b: buffer a) : GTot (reference (lseq a (max_length b))) | val content (#a: _) (b: buffer a) : GTot (reference (lseq a (max_length b))) | let content #a (b:buffer a) :
GTot (reference (lseq a (max_length b))) = b.content | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 65,
"start_col": 0,
"start_line": 64
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a
-> Prims.GTot (FStar.HyperStack.ST.reference (FStar.Buffer.lseq a (FStar.Buffer.max_length b))) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Buffer.__proj__MkBuffer__item__content",
"FStar.HyperStack.ST.reference",
"FStar.Buffer.lseq",
"FStar.Buffer.max_length"
] | [] | false | false | false | false | false | let content #a (b: buffer a) : GTot (reference (lseq a (max_length b))) =
| b.content | false |
FStar.Buffer.fst | FStar.Buffer.as_addr | val as_addr : b: FStar.Buffer.buffer a -> Prims.GTot Prims.pos | let as_addr #a (b:buffer a) = as_addr (content b) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 69,
"start_col": 0,
"start_line": 69
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> Prims.GTot Prims.pos | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.as_addr",
"FStar.Buffer.lseq",
"FStar.Buffer.max_length",
"FStar.Heap.trivial_preorder",
"FStar.Buffer.content",
"Prims.pos"
] | [] | false | false | false | false | false | let as_addr #a (b: buffer a) =
| as_addr (content b) | false | |
FStar.Buffer.fst | FStar.Buffer.frameOf | val frameOf (#a: _) (b: buffer a) : GTot HS.rid | val frameOf (#a: _) (b: buffer a) : GTot HS.rid | let frameOf #a (b:buffer a) : GTot HS.rid = HS.frameOf (content b) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 70,
"start_col": 0,
"start_line": 70
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> Prims.GTot FStar.Monotonic.HyperHeap.rid | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.frameOf",
"FStar.Buffer.lseq",
"FStar.Buffer.max_length",
"FStar.Heap.trivial_preorder",
"FStar.Buffer.content",
"FStar.Monotonic.HyperHeap.rid"
] | [] | false | false | false | false | false | let frameOf #a (b: buffer a) : GTot HS.rid =
| HS.frameOf (content b) | false |
FStar.Buffer.fst | FStar.Buffer.unmapped_in | val unmapped_in (#a: _) (b: buffer a) (h: mem) : GTot Type0 | val unmapped_in (#a: _) (b: buffer a) (h: mem) : GTot Type0 | let unmapped_in #a (b:buffer a) (h:mem) : GTot Type0 = unused_in b h | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 74,
"start_col": 0,
"start_line": 74
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.Buffer.unused_in"
] | [] | false | false | false | false | true | let unmapped_in #a (b: buffer a) (h: mem) : GTot Type0 =
| unused_in b h | false |
FStar.Buffer.fst | FStar.Buffer.length | val length (#a: _) (b: buffer a) : GTot nat | val length (#a: _) (b: buffer a) : GTot nat | let length #a (b:buffer a) : GTot nat = v b.length | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__length",
"Prims.nat"
] | [] | false | false | false | false | false | let length #a (b: buffer a) : GTot nat =
| v b.length | false |
FStar.Buffer.fst | FStar.Buffer.max_length | val max_length (#a: _) (b: buffer a) : GTot nat | val max_length (#a: _) (b: buffer a) : GTot nat | let max_length #a (b:buffer a) : GTot nat = v b.max_length | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"Prims.nat"
] | [] | false | false | false | false | false | let max_length #a (b: buffer a) : GTot nat =
| v b.max_length | false |
FStar.Buffer.fst | FStar.Buffer.disjoint | val disjoint (#a #a': _) (x: buffer a) (y: buffer a') : GTot Type0 | val disjoint (#a #a': _) (x: buffer a) (y: buffer a') : GTot Type0 | let disjoint #a #a' (x:buffer a) (y:buffer a') : GTot Type0 =
frameOf x =!= frameOf y \/ as_addr x =!= as_addr y
\/ (a == a' /\ as_addr x == as_addr y /\ frameOf x == frameOf y /\ x.max_length == y.max_length /\
(idx x + length x <= idx y \/ idx y + length y <= idx x)) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 124,
"start_col": 0,
"start_line": 121
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.Buffer.buffer a -> y: FStar.Buffer.buffer a' -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"Prims.l_or",
"Prims.l_not",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.frameOf",
"Prims.pos",
"FStar.Buffer.as_addr",
"Prims.l_and",
"FStar.UInt32.t",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims... | [] | false | false | false | false | true | let disjoint #a #a' (x: buffer a) (y: buffer a') : GTot Type0 =
| frameOf x =!= frameOf y \/ as_addr x =!= as_addr y \/
(a == a' /\ as_addr x == as_addr y /\ frameOf x == frameOf y /\ x.max_length == y.max_length /\
(idx x + length x <= idx y \/ idx y + length y <= idx x)) | false |
FStar.Buffer.fst | FStar.Buffer.idx | val idx (#a: _) (b: buffer a) : GTot nat | val idx (#a: _) (b: buffer a) : GTot nat | let idx #a (b:buffer a) : GTot nat = v b.idx | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__idx",
"Prims.nat"
] | [] | false | false | false | false | false | let idx #a (b: buffer a) : GTot nat =
| v b.idx | false |
FStar.Buffer.fst | FStar.Buffer.live | val live (#a: _) (h: mem) (b: buffer a) : GTot Type0 | val live (#a: _) (h: mem) (b: buffer a) : GTot Type0 | let live #a (h:mem) (b:buffer a) : GTot Type0 = HS.contains h b.content | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 71,
"end_line": 73,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> b: FStar.Buffer.buffer a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.contains",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FStar.Heap.trivial_preorder",
"FStar.Buffer.__proj__MkBuffer__item__content"
] | [] | false | false | false | false | true | let live #a (h: mem) (b: buffer a) : GTot Type0 =
| HS.contains h b.content | false |
FStar.Buffer.fst | FStar.Buffer.op_Plus_Plus | val op_Plus_Plus : x: FStar.TSet.set _ -> y: FStar.TSet.set _ -> FStar.TSet.set _ | let op_Plus_Plus = TSet.union | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 29,
"end_line": 160,
"start_col": 0,
"start_line": 160
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.TSet.set _ -> y: FStar.TSet.set _ -> FStar.TSet.set _ | Prims.Tot | [
"total"
] | [] | [
"FStar.TSet.union",
"FStar.TSet.set"
] | [] | false | false | false | true | false | let op_Plus_Plus =
| TSet.union | false | |
FStar.Buffer.fst | FStar.Buffer.op_Bang_Bang | val op_Bang_Bang : x: _ -> FStar.TSet.set _ | let op_Bang_Bang = TSet.singleton | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 159,
"start_col": 0,
"start_line": 159
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: _ -> FStar.TSet.set _ | Prims.Tot | [
"total"
] | [] | [
"FStar.TSet.singleton",
"FStar.TSet.set"
] | [] | false | false | false | true | false | let op_Bang_Bang =
| TSet.singleton | false | |
FStar.Buffer.fst | FStar.Buffer.only | val only (#t: _) (b: buffer t) : Tot (TSet.set abuffer) | val only (#t: _) (b: buffer t) : Tot (TSet.set abuffer) | let only #t (b:buffer t) : Tot (TSet.set abuffer) = FStar.TSet.singleton (Buff #t b) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 84,
"end_line": 155,
"start_col": 0,
"start_line": 155
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer t -> FStar.TSet.set FStar.Buffer.abuffer | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.TSet.singleton",
"FStar.Buffer.abuffer",
"FStar.Buffer.Buff",
"FStar.TSet.set"
] | [] | false | false | false | true | false | let only #t (b: buffer t) : Tot (TSet.set abuffer) =
| FStar.TSet.singleton (Buff #t b) | false |
FStar.Buffer.fst | FStar.Buffer.disjoint_from_bufs | val disjoint_from_bufs : b: FStar.Buffer.buffer a -> bufs: FStar.TSet.set FStar.Buffer.abuffer -> Prims.logical | let disjoint_from_bufs #a (b:buffer a) (bufs:TSet.set abuffer) =
forall b'. TSet.mem b' bufs ==> disjoint b b'.b | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 191,
"start_col": 0,
"start_line": 190
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> bufs: FStar.TSet.set FStar.Buffer.abuffer -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.TSet.mem",
"FStar.Buffer.disjoint",
"FStar.Buffer.__proj__Buff__item__t",
"FStar.Buffer.__proj__Buff__item__b",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_from_bufs #a (b: buffer a) (bufs: TSet.set abuffer) =
| forall b'. TSet.mem b' bufs ==> disjoint b b'.b | false | |
FStar.Buffer.fst | FStar.Buffer.recall | val recall: #a:Type
-> b:buffer a{is_eternal_region (frameOf b) /\ not (is_mm b.content)} -> Stack unit
(requires (fun m -> True))
(ensures (fun m0 _ m1 -> m0 == m1 /\ live m1 b)) | val recall: #a:Type
-> b:buffer a{is_eternal_region (frameOf b) /\ not (is_mm b.content)} -> Stack unit
(requires (fun m -> True))
(ensures (fun m0 _ m1 -> m0 == m1 /\ live m1 b)) | let recall #a b = recall b.content | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 80,
"start_col": 0,
"start_line": 80
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b:
FStar.Buffer.buffer a
{ FStar.HyperStack.ST.is_eternal_region (FStar.Buffer.frameOf b) /\
Prims.op_Negation (FStar.Monotonic.HyperStack.is_mm (MkBuffer?.content b)) }
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.HyperStack.ST.is_eternal_region",
"FStar.Buffer.frameOf",
"Prims.b2t",
"Prims.op_Negation",
"FStar.Monotonic.HyperStack.is_mm",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FStar.Heap.trivial_preorder",
... | [] | false | true | false | false | false | let recall #a b =
| recall b.content | false |
FStar.Buffer.fst | FStar.Buffer.disjoint_1 | val disjoint_1 : a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> Type0 | let disjoint_1 a b = disjoint a b | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 199,
"start_col": 0,
"start_line": 199
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Buffer.disjoint"
] | [] | false | false | false | true | true | let disjoint_1 a b =
| disjoint a b | false | |
FStar.Buffer.fst | FStar.Buffer.includes_as_seq | val includes_as_seq (#a h1 h2: _) (x y: buffer a)
: Lemma (requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y)) | val includes_as_seq (#a h1 h2: _) (x y: buffer a)
: Lemma (requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y)) | let includes_as_seq #a h1 h2 (x: buffer a) (y: buffer a)
: Lemma
(requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y))
= Seq.slice_slice (sel h1 x) (idx x) (idx x + length x) (idx y - idx x) (idx y - idx x + length y);
Seq.slice_slice (sel h2 x) (idx x) (idx x + length ... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 99,
"end_line": 112,
"start_col": 0,
"start_line": 107
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h1: FStar.Monotonic.HyperStack.mem ->
h2: FStar.Monotonic.HyperStack.mem ->
x: FStar.Buffer.buffer a ->
y: FStar.Buffer.buffer a
-> FStar.Pervasives.Lemma
(requires FStar.Buffer.includes x y /\ FStar.Buffer.as_seq h1 x == FStar.Buffer.as_seq h2 x)
(ensures FStar.Buffer.as_seq h1 y == FSta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Buffer.buffer",
"FStar.Seq.Properties.slice_slice",
"FStar.Buffer.sel",
"FStar.Buffer.idx",
"Prims.op_Addition",
"FStar.Buffer.length",
"Prims.op_Subtraction",
"Prims.unit",
"Prims.l_and",
"FStar.Buffer.includes",
"Prims.eq2",
"FStar.Seq.Base.seq",
... | [] | true | false | true | false | false | let includes_as_seq #a h1 h2 (x: buffer a) (y: buffer a)
: Lemma (requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y)) =
| Seq.slice_slice (sel h1 x) (idx x) (idx x + length x) (idx y - idx x) (idx y - idx x + length y);
Seq.slice_slice (sel h2 x) (idx x) (idx x + length x) (idx y - idx x) (idx y - idx x + length y) | false |
FStar.Buffer.fst | FStar.Buffer.disjoint_ref_1 | val disjoint_ref_1 : a: FStar.Buffer.buffer t -> r: FStar.HyperStack.ST.reference u401 -> Prims.logical | let disjoint_ref_1 (#t:Type) (#u:Type) (a:buffer t) (r:reference u) =
frameOf a =!= HS.frameOf r \/ as_addr a =!= HS.as_addr r | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 206,
"start_col": 0,
"start_line": 205
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Buffer.buffer t -> r: FStar.HyperStack.ST.reference u401 -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_or",
"Prims.l_not",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.frameOf",
"FStar.Monotonic.HyperStack.frameOf",
"FStar.Heap.trivial_preorder",
"Prims.pos",
"FStar.Buffer.as_addr",
"FStar.Monotonic.HyperStack.as_ad... | [] | false | false | false | true | true | let disjoint_ref_1 (#t #u: Type) (a: buffer t) (r: reference u) =
| frameOf a =!= HS.frameOf r \/ as_addr a =!= HS.as_addr r | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_2 | val disjoint_2 : a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> b': FStar.Buffer.buffer _ -> Prims.logical | let disjoint_2 a b b' = disjoint a b /\ disjoint a b' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 53,
"end_line": 200,
"start_col": 0,
"start_line": 200
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> b': FStar.Buffer.buffer _ -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_2 a b b' =
| disjoint a b /\ disjoint a b' | false | |
FStar.Buffer.fst | FStar.Buffer.lemma_arefs_1 | val lemma_arefs_1: s:TSet.set abuffer -> Lemma
(requires (s == TSet.empty #abuffer))
(ensures (arefs s == Set.empty #nat))
[SMTPat (arefs s)] | val lemma_arefs_1: s:TSet.set abuffer -> Lemma
(requires (s == TSet.empty #abuffer))
(ensures (arefs s == Set.empty #nat))
[SMTPat (arefs s)] | let lemma_arefs_1 s = Set.lemma_equal_intro (arefs s) (Set.empty) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 172,
"start_col": 0,
"start_line": 172
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.TSet.set FStar.Buffer.abuffer
-> FStar.Pervasives.Lemma (requires s == FStar.TSet.empty)
(ensures FStar.Buffer.arefs s == FStar.Set.empty)
[SMTPat (FStar.Buffer.arefs s)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Set.lemma_equal_intro",
"Prims.nat",
"FStar.Buffer.arefs",
"FStar.Set.empty",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_arefs_1 s =
| Set.lemma_equal_intro (arefs s) (Set.empty) | false |
FStar.Buffer.fst | FStar.Buffer.includes | val includes (#a: _) (x y: buffer a) : GTot Type0 | val includes (#a: _) (x y: buffer a) : GTot Type0 | let includes #a (x:buffer a) (y:buffer a) : GTot Type0 =
x.max_length == y.max_length /\
x.content === y.content /\
idx y >= idx x /\
idx x + length x >= idx y + length y | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 99,
"start_col": 0,
"start_line": 95
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.Buffer.buffer a -> y: FStar.Buffer.buffer a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"Prims.eq2",
"FStar.UInt32.t",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"Prims.op_Equals_Equals_Equals",
"FStar.HyperStack.ST.reference",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__content",
"Prims.b2t",
"Prims.o... | [] | false | false | false | false | true | let includes #a (x: buffer a) (y: buffer a) : GTot Type0 =
| x.max_length == y.max_length /\ x.content === y.content /\ idx y >= idx x /\
idx x + length x >= idx y + length y | false |
FStar.Buffer.fst | FStar.Buffer.disjoint_4 | val disjoint_4 : a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _
-> Prims.logical | let disjoint_4 a b b' b'' b''' = disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 99,
"end_line": 202,
"start_col": 0,
"start_line": 202
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_4 a b b' b'' b''' =
| disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_3 | val disjoint_3 : a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _
-> Prims.logical | let disjoint_3 a b b' b'' = disjoint a b /\ disjoint a b' /\ disjoint a b'' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 75,
"end_line": 201,
"start_col": 0,
"start_line": 201
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_3 a b b' b'' =
| disjoint a b /\ disjoint a b' /\ disjoint a b'' | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_ref_2 | val disjoint_ref_2 : a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _
-> Prims.logical | let disjoint_ref_2 a r r' = disjoint_ref_1 a r /\ disjoint_ref_1 a r' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 69,
"end_line": 207,
"start_col": 0,
"start_line": 207
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_and",
"FStar.Buffer.disjoint_ref_1",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_ref_2 a r r' =
| disjoint_ref_1 a r /\ disjoint_ref_1 a r' | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_5 | val disjoint_5 : a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _ ->
b'''': FStar.Buffer.buffer _
-> Prims.logical | let disjoint_5 a b b' b'' b''' b'''' = disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' /\ disjoint a b'''' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 125,
"end_line": 203,
"start_col": 0,
"start_line": 203
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _ ->
b'''': FStar.Buffer.buffer _
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_5 a b b' b'' b''' b'''' =
| disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' /\ disjoint a b'''' | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_ref_3 | val disjoint_ref_3 : a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _
-> Prims.logical | let disjoint_ref_3 a r r' r'' = disjoint_ref_1 a r /\ disjoint_ref_2 a r' r'' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 77,
"end_line": 208,
"start_col": 0,
"start_line": 208
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_and",
"FStar.Buffer.disjoint_ref_1",
"FStar.Buffer.disjoint_ref_2",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_ref_3 a r r' r'' =
| disjoint_ref_1 a r /\ disjoint_ref_2 a r' r'' | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_ref_5 | val disjoint_ref_5 : a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _ ->
r'''': FStar.HyperStack.ST.reference _
-> Prims.logical | let disjoint_ref_5 a r r' r'' r''' r'''' = disjoint_ref_1 a r /\ disjoint_ref_4 a r' r'' r''' r'''' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 99,
"end_line": 210,
"start_col": 0,
"start_line": 210
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _ ->
r'''': FStar.HyperStack.ST.reference _
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_and",
"FStar.Buffer.disjoint_ref_1",
"FStar.Buffer.disjoint_ref_4",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_ref_5 a r r' r'' r''' r'''' =
| disjoint_ref_1 a r /\ disjoint_ref_4 a r' r'' r''' r'''' | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_ref_4 | val disjoint_ref_4 : a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _
-> Prims.logical | let disjoint_ref_4 a r r' r'' r''' = disjoint_ref_1 a r /\ disjoint_ref_3 a r' r'' r''' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 87,
"end_line": 209,
"start_col": 0,
"start_line": 209
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_and",
"FStar.Buffer.disjoint_ref_1",
"FStar.Buffer.disjoint_ref_3",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_ref_4 a r r' r'' r''' =
| disjoint_ref_1 a r /\ disjoint_ref_3 a r' r'' r''' | false | |
FStar.Buffer.fst | FStar.Buffer.lemma_arefs_2 | val lemma_arefs_2: s1:TSet.set abuffer -> s2:TSet.set abuffer -> Lemma
(requires True)
(ensures (arefs (s1 ++ s2) == Set.union (arefs s1) (arefs s2)))
[SMTPatOr [
[SMTPat (arefs (s2 ++ s1))];
[SMTPat (arefs (s1 ++ s2))]
]] | val lemma_arefs_2: s1:TSet.set abuffer -> s2:TSet.set abuffer -> Lemma
(requires True)
(ensures (arefs (s1 ++ s2) == Set.union (arefs s1) (arefs s2)))
[SMTPatOr [
[SMTPat (arefs (s2 ++ s1))];
[SMTPat (arefs (s1 ++ s2))]
]] | let lemma_arefs_2 s1 s2 =
Set.lemma_equal_intro (arefs (s1 ++ s2)) (Set.union (arefs s1) (arefs s2)) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 76,
"end_line": 182,
"start_col": 0,
"start_line": 181
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: FStar.TSet.set FStar.Buffer.abuffer -> s2: FStar.TSet.set FStar.Buffer.abuffer
-> FStar.Pervasives.Lemma
(ensures
FStar.Buffer.arefs (s1 ++ s2) ==
FStar.Set.union (FStar.Buffer.arefs s1) (FStar.Buffer.arefs s2))
[
SMTPatOr [
[SMTPat (FStar.Buffer.arefs (s2 ++ s1))];... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Set.lemma_equal_intro",
"Prims.nat",
"FStar.Buffer.arefs",
"FStar.Buffer.op_Plus_Plus",
"FStar.Set.union",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_arefs_2 s1 s2 =
| Set.lemma_equal_intro (arefs (s1 ++ s2)) (Set.union (arefs s1) (arefs s2)) | false |
FStar.Buffer.fst | FStar.Buffer.modifies_bufs | val modifies_bufs : rid: FStar.Monotonic.HyperHeap.rid ->
buffs: FStar.TSet.set FStar.Buffer.abuffer ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | let modifies_bufs rid buffs h h' =
modifies_ref rid (arefs buffs) h h'
/\ (forall (#a:Type) (b:buffer a). (frameOf b == rid /\ live h b /\ disjoint_from_bufs b buffs) ==> equal h b h' b /\ live h' b) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 130,
"end_line": 234,
"start_col": 0,
"start_line": 232
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rid: FStar.Monotonic.HyperHeap.rid ->
buffs: FStar.TSet.set FStar.Buffer.abuffer ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Buffer.arefs",
"Prims.l_Forall",
"FStar.Buffer.buffer",
"Prims.l_imp",
"Prims.eq2",
"FStar.Buffer.frameOf",
"FStar.Buf... | [] | false | false | false | true | true | let modifies_bufs rid buffs h h' =
| modifies_ref rid (arefs buffs) h h' /\
(forall (#a: Type) (b: buffer a).
(frameOf b == rid /\ live h b /\ disjoint_from_bufs b buffs) ==> equal h b h' b /\ live h' b) | false | |
FStar.Buffer.fst | FStar.Buffer.modifies_none | val modifies_none : h:
m:
FStar.Monotonic.HyperStack.mem'
{ FStar.Monotonic.HyperStack.is_wf_with_ctr_and_tip (FStar.Monotonic.HyperStack.get_hmap m)
(FStar.Monotonic.HyperStack.get_rid_ctr m)
(FStar.Monotonic.HyperStack.get_tip m) } ->
h':
m:
FStar.Monotonic.... | let modifies_none h h' =
HS.get_tip h' == HS.get_tip h /\ HS.modifies_transitively Set.empty h h' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 237,
"start_col": 0,
"start_line": 236
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h:
m:
FStar.Monotonic.HyperStack.mem'
{ FStar.Monotonic.HyperStack.is_wf_with_ctr_and_tip (FStar.Monotonic.HyperStack.get_hmap m)
(FStar.Monotonic.HyperStack.get_rid_ctr m)
(FStar.Monotonic.HyperStack.get_tip m) } ->
h':
m:
FStar.Monotonic.HyperStack.mem'... | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem'",
"FStar.Monotonic.HyperStack.is_wf_with_ctr_and_tip",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.Monotonic.HyperStack.get_rid_ctr",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.modi... | [] | false | false | false | false | true | let modifies_none h h' =
| HS.get_tip h' == HS.get_tip h /\ HS.modifies_transitively Set.empty h h' | false | |
FStar.Buffer.fst | FStar.Buffer.disjoint_from_refs | val disjoint_from_refs : b: FStar.Buffer.buffer a -> set: FStar.Set.set Prims.nat -> Prims.logical | let disjoint_from_refs #a (b:buffer a) (set:Set.set nat) =
~(Set.mem (as_addr b) set) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 195,
"start_col": 0,
"start_line": 194
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> set: FStar.Set.set Prims.nat -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Set.set",
"Prims.nat",
"Prims.l_not",
"Prims.b2t",
"FStar.Set.mem",
"FStar.Buffer.as_addr",
"Prims.logical"
] | [] | false | false | false | true | true | let disjoint_from_refs #a (b: buffer a) (set: Set.set nat) =
| ~(Set.mem (as_addr b) set) | false | |
FStar.Buffer.fst | FStar.Buffer.modifies_buf_2 | val modifies_buf_2 : rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
b': FStar.Buffer.buffer t' ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | let modifies_buf_2 (#t:Type) (#t':Type) rid (b:buffer t) (b':buffer t') h h' =
modifies_ref rid (to_set_2 (as_addr b) (as_addr b')) h h'
/\ (forall (#tt:Type) (bb:buffer tt). (frameOf bb == rid /\ live h bb /\ disjoint b bb /\ disjoint b' bb)
==> equal h bb h' bb /\ live h' bb) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 253,
"start_col": 0,
"start_line": 250
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
b': FStar.Buffer.buffer t' ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Buffer.to_set_2",
"FStar.Buffer.as_addr",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.eq2",
"FStar.Buffer.frameOf",
"FStar.Buffer.live",
"FSt... | [] | false | false | false | true | true | let modifies_buf_2 (#t: Type) (#t': Type) rid (b: buffer t) (b': buffer t') h h' =
| modifies_ref rid (to_set_2 (as_addr b) (as_addr b')) h h' /\
(forall (#tt: Type) (bb: buffer tt).
(frameOf bb == rid /\ live h bb /\ disjoint b bb /\ disjoint b' bb) ==>
equal h bb h' bb /\ live h' bb) | false | |
FStar.Buffer.fst | FStar.Buffer.to_set_2 | val to_set_2 (n1 n2: nat) : Set.set nat | val to_set_2 (n1 n2: nat) : Set.set nat | let to_set_2 (n1:nat) (n2:nat) :Set.set nat = Set.union (Set.singleton n1) (Set.singleton n2) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 93,
"end_line": 248,
"start_col": 0,
"start_line": 248
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n1: Prims.nat -> n2: Prims.nat -> FStar.Set.set Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Set.set"
] | [] | false | false | false | true | false | let to_set_2 (n1 n2: nat) : Set.set nat =
| Set.union (Set.singleton n1) (Set.singleton n2) | false |
FStar.Buffer.fst | FStar.Buffer.modifies_buf_0 | val modifies_buf_0 : rid: FStar.Monotonic.HyperHeap.rid ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | let modifies_buf_0 rid h h' =
modifies_ref rid (Set.empty #nat) h h'
/\ (forall (#tt:Type) (bb:buffer tt). (frameOf bb == rid /\ live h bb) ==> equal h bb h' bb /\ live h' bb) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 108,
"end_line": 242,
"start_col": 0,
"start_line": 240
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rid: FStar.Monotonic.HyperHeap.rid ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Set.empty",
"Prims.nat",
"Prims.l_Forall",
"FStar.Buffer.buffer",
"Prims.l_imp",
"Prims.eq2",
"FStar.Buffer.frameOf",
"FStar.Buffer.live",
"FStar.Buffer.equal",... | [] | false | false | false | true | true | let modifies_buf_0 rid h h' =
| modifies_ref rid (Set.empty #nat) h h' /\
(forall (#tt: Type) (bb: buffer tt).
(frameOf bb == rid /\ live h bb) ==> equal h bb h' bb /\ live h' bb) | false | |
FStar.Buffer.fst | FStar.Buffer.modifies_buf_1 | val modifies_buf_1 : rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | let modifies_buf_1 (#t:Type) rid (b:buffer t) h h' = //would be good to drop the rid argument on these, since they can be computed from the buffers
modifies_ref rid (Set.singleton (Heap.addr_of (as_ref b))) h h'
/\ (forall (#tt:Type) (bb:buffer tt). (frameOf bb == rid /\ live h bb /\ disjoint b bb) ==> equal h bb h... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 125,
"end_line": 246,
"start_col": 0,
"start_line": 244
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Set.singleton",
"Prims.nat",
"FStar.Monotonic.Heap.addr_of",
"FStar.Buffer.lseq",
"FStar.Buffer.max_length",
"FStar.Heap.trivial_preorder",
... | [] | false | false | false | true | true | let modifies_buf_1 (#t: Type) rid (b: buffer t) h h' =
| modifies_ref rid (Set.singleton (Heap.addr_of (as_ref b))) h h' /\
(forall (#tt: Type) (bb: buffer tt).
(frameOf bb == rid /\ live h bb /\ disjoint b bb) ==> equal h bb h' bb /\ live h' bb) | false | |
FStar.Buffer.fst | FStar.Buffer.modifies_0 | val modifies_0 (h0 h1: mem) : Type0 | val modifies_0 (h0 h1: mem) : Type0 | let modifies_0 (h0 h1:mem) :Type0 =
modifies_one (HS.get_tip h0) h0 h1
/\ modifies_buf_0 (HS.get_tip h0) h0 h1
/\ HS.get_tip h0 == HS.get_tip h1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 385,
"start_col": 0,
"start_line": 382
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_one",
"FStar.Monotonic.HyperStack.get_tip",
"FStar.Buffer.modifies_buf_0",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid"
] | [] | false | false | false | true | true | let modifies_0 (h0 h1: mem) : Type0 =
| modifies_one (HS.get_tip h0) h0 h1 /\ modifies_buf_0 (HS.get_tip h0) h0 h1 /\
HS.get_tip h0 == HS.get_tip h1 | false |
FStar.Buffer.fst | FStar.Buffer.modifies_buf_3 | val modifies_buf_3 : rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
b': FStar.Buffer.buffer t' ->
b'': FStar.Buffer.buffer t'' ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | let modifies_buf_3 (#t:Type) (#t':Type) (#t'':Type) rid (b:buffer t) (b':buffer t') (b'':buffer t'') h h' =
modifies_ref rid (to_set_3 (as_addr b) (as_addr b') (as_addr b'')) h h'
/\ (forall (#tt:Type) (bb:buffer tt). (frameOf bb == rid /\ live h bb /\ disjoint b bb /\ disjoint b' bb /\ disjoint b'' bb)
==> ... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 260,
"start_col": 0,
"start_line": 257
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
b': FStar.Buffer.buffer t' ->
b'': FStar.Buffer.buffer t'' ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Buffer.to_set_3",
"FStar.Buffer.as_addr",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.eq2",
"FStar.Buffer.frameOf",
"FStar.Buffer.live",
"FSt... | [] | false | false | false | true | true | let modifies_buf_3
(#t: Type)
(#t': Type)
(#t'': Type)
rid
(b: buffer t)
(b': buffer t')
(b'': buffer t'')
h
h'
=
| modifies_ref rid (to_set_3 (as_addr b) (as_addr b') (as_addr b'')) h h' /\
(forall (#tt: Type) (bb: buffer tt).
(frameOf bb == rid /\ live h bb /\ disjoint b bb /\ disjoint b' bb /\ disjoint b'' bb) ==>
equal h bb h' bb /\ live h' bb) | false | |
FStar.Buffer.fst | FStar.Buffer.modifies_buf_4 | val modifies_buf_4 : rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
b': FStar.Buffer.buffer t' ->
b'': FStar.Buffer.buffer t'' ->
b''': FStar.Buffer.buffer t''' ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | let modifies_buf_4 (#t:Type) (#t':Type) (#t'':Type) (#t''':Type) rid (b:buffer t) (b':buffer t') (b'':buffer t'') (b''':buffer t''') h h' =
modifies_ref rid (to_set_4 (as_addr b) (as_addr b') (as_addr b'') (as_addr b''')) h h'
/\ (forall (#tt:Type) (bb:buffer tt). (frameOf bb == rid /\ live h bb /\ disjoint b bb /\... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 268,
"start_col": 0,
"start_line": 265
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
b': FStar.Buffer.buffer t' ->
b'': FStar.Buffer.buffer t'' ->
b''': FStar.Buffer.buffer t''' ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Buffer.to_set_4",
"FStar.Buffer.as_addr",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.eq2",
"FStar.Buffer.frameOf",
"FStar.Buffer.live",
"FSt... | [] | false | false | false | true | true | let modifies_buf_4
(#t: Type)
(#t': Type)
(#t'': Type)
(#t''': Type)
rid
(b: buffer t)
(b': buffer t')
(b'': buffer t'')
(b''': buffer t''')
h
h'
=
| modifies_ref rid (to_set_4 (as_addr b) (as_addr b') (as_addr b'') (as_addr b''')) h h' /\
(forall (#tt: Type) (bb: buffer tt).
(frameOf bb == rid /\ live h bb /\ disjoint b bb /\ disjoint b' bb /\ disjoint b'' bb /\
disjoint b''' bb) ==>
equal h bb h' bb /\ live h' bb) | false | |
FStar.Buffer.fst | FStar.Buffer.modifies_1 | val modifies_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | val modifies_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | let modifies_1 (#a:Type) (b:buffer a) (h0 h1:mem) :Type0 =
let rid = frameOf b in
modifies_one rid h0 h1 /\ modifies_buf_1 rid b h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 88,
"end_line": 392,
"start_col": 0,
"start_line": 390
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_one",
"FStar.Buffer.modifies_buf_1",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"FStar.Buffer.frameOf"
] | [] | false | false | false | true | true | let modifies_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 =
| let rid = frameOf b in
modifies_one rid h0 h1 /\ modifies_buf_1 rid b h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | false |
FStar.Buffer.fst | FStar.Buffer.to_set_3 | val to_set_3 (n1 n2 n3: nat) : Set.set nat | val to_set_3 (n1 n2 n3: nat) : Set.set nat | let to_set_3 (n1:nat) (n2:nat) (n3:nat) :Set.set nat = Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 133,
"end_line": 255,
"start_col": 0,
"start_line": 255
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n1: Prims.nat -> n2: Prims.nat -> n3: Prims.nat -> FStar.Set.set Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Set.set"
] | [] | false | false | false | true | false | let to_set_3 (n1 n2 n3: nat) : Set.set nat =
| Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3) | false |
FStar.Buffer.fst | FStar.Buffer.to_set_4 | val to_set_4 (n1 n2 n3 n4: nat) : Set.set nat | val to_set_4 (n1 n2 n3 n4: nat) : Set.set nat | let to_set_4 (n1:nat) (n2:nat) (n3:nat) (n4:nat) :Set.set nat =
Set.union (Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3)) (Set.singleton n4) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 111,
"end_line": 263,
"start_col": 0,
"start_line": 262
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n1: Prims.nat -> n2: Prims.nat -> n3: Prims.nat -> n4: Prims.nat -> FStar.Set.set Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Set.set"
] | [] | false | false | false | true | false | let to_set_4 (n1 n2 n3 n4: nat) : Set.set nat =
| Set.union (Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3))
(Set.singleton n4) | false |
FStar.Buffer.fst | FStar.Buffer.modifies_2_1 | val modifies_2_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | val modifies_2_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | let modifies_2_1 (#a:Type) (b:buffer a) (h0 h1:mem) :Type0 =
HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
((rid == HS.get_tip h0 /\ modifies_buf_1 rid b h0 h1 /\ modifies_one rid h0 h1)
\/ (rid =!= HS.get_tip h0 /\ HS.modifies (Set.union (Set.singleton rid) (Set.singleton (HS.get_tip h0))) h0 h1
... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 399,
"start_col": 0,
"start_line": 394
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_or",
"FStar.Buffer.modifies_buf_1",
"FStar.Monotonic.HyperStack.modifies_one",
"Prims.l_not",
"FStar.Monotonic.HyperStack.modifies"... | [] | false | false | false | true | true | let modifies_2_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 =
| HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
((rid == HS.get_tip h0 /\ modifies_buf_1 rid b h0 h1 /\ modifies_one rid h0 h1) \/
(rid =!= HS.get_tip h0 /\
HS.modifies (Set.union (Set.singleton rid) (Set.singleton (HS.get_tip h0))) h0 h1 /\
modifies_buf_1 rid b h0 h1 /\ modifies_buf_0 (HS.g... | false |
FStar.Buffer.fst | FStar.Buffer.modifies_2 | val modifies_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | val modifies_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | let modifies_2 (#a:Type) (#a':Type) (b:buffer a) (b':buffer a') (h0 h1:mem) :Type0 =
HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in let rid' = frameOf b' in
((rid == rid' /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1)
\/ (rid =!= rid' /\ HS.modifies (Set.union (Set.singleton rid) (Set.... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 72,
"end_line": 406,
"start_col": 0,
"start_line": 401
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: FStar.Buffer.buffer a ->
b': FStar.Buffer.buffer a' ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_or",
"FStar.Buffer.modifies_buf_2",
"FStar.Monotonic.HyperStack.modifies_one",
"Prims.l_not",
"FStar.Monotonic.HyperStack.modifies"... | [] | false | false | false | true | true | let modifies_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 =
| HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
let rid' = frameOf b' in
((rid == rid' /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1) \/
(rid =!= rid' /\ HS.modifies (Set.union (Set.singleton rid) (Set.singleton rid')) h0 h1 /\
modifies_buf_1 rid b h0 h1 /\ modifies_buf_1 rid' b' h0... | false |
FStar.Buffer.fst | FStar.Buffer.modifies_3 | val modifies_3 (#a #a' #a'': Type) (b: buffer a) (b': buffer a') (b'': buffer a'') (h0 h1: mem)
: Type0 | val modifies_3 (#a #a' #a'': Type) (b: buffer a) (b': buffer a') (b'': buffer a'') (h0 h1: mem)
: Type0 | let modifies_3 (#a:Type) (#a':Type) (#a'':Type) (b:buffer a) (b':buffer a') (b'':buffer a'') (h0 h1:mem) :Type0 =
HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in let rid' = frameOf b' in let rid'' = frameOf b'' in
((rid == rid' /\ rid' == rid'' /\ modifies_buf_3 rid b b' b'' h0 h1 /\ modifies_one rid ... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 105,
"end_line": 420,
"start_col": 0,
"start_line": 408
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: FStar.Buffer.buffer a ->
b': FStar.Buffer.buffer a' ->
b'': FStar.Buffer.buffer a'' ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_or",
"FStar.Buffer.modifies_buf_3",
"FStar.Monotonic.HyperStack.modifies_one",
"Prims.l_not",
"FStar.Buffer.modifies_buf_2",
"FSt... | [] | false | false | false | true | true | let modifies_3 (#a #a' #a'': Type) (b: buffer a) (b': buffer a') (b'': buffer a'') (h0 h1: mem)
: Type0 =
| HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
let rid' = frameOf b' in
let rid'' = frameOf b'' in
((rid == rid' /\ rid' == rid'' /\ modifies_buf_3 rid b b' b'' h0 h1 /\ modifies_one rid h0 h1) \/
(rid == rid' /\ rid' =!= rid'' /\ modifies_buf_2 rid b b' h0 h1 /\
modifies_buf_1 rid'' b'' h0 h... | false |
Pulse.JoinComp.fst | Pulse.JoinComp.lift_atomic_to_st | val lift_atomic_to_st (g: env) (e: st_term) (c: comp_st{C_STAtomic? c}) (d: st_typing g e c)
: Pure (c': comp_st & st_typing g e c')
(requires True)
(ensures
fun (| c' , _ |) -> st_comp_of_comp c' == st_comp_of_comp c /\ ctag_of_comp_st c' == STT) | val lift_atomic_to_st (g: env) (e: st_term) (c: comp_st{C_STAtomic? c}) (d: st_typing g e c)
: Pure (c': comp_st & st_typing g e c')
(requires True)
(ensures
fun (| c' , _ |) -> st_comp_of_comp c' == st_comp_of_comp c /\ ctag_of_comp_st c' == STT) | let lift_atomic_to_st
(g : env)
(e : st_term)
(c : comp_st{C_STAtomic? c})
(d : st_typing g e c)
: Pure (c':comp_st & st_typing g e c')
(requires True)
(ensures fun (| c', _ |) ->
st_comp_of_comp c' == st_comp_of_comp c /\
ctag_of_comp_st c' == STT)
= let C_STAtomic... | {
"file_name": "lib/steel/pulse/Pulse.JoinComp.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 51,
"start_col": 0,
"start_line": 36
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.Pure.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": t... | {
"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 |
g: Pulse.Typing.Env.env ->
e: Pulse.Syntax.Base.st_term ->
c: Pulse.Syntax.Base.comp_st{C_STAtomic? c} ->
d: Pulse.Typing.st_typing g e c
-> Prims.Pure (Prims.dtuple2 Pulse.Syntax.Base.comp_st (fun c' -> Pulse.Typing.st_typing g e c')) | Prims.Pure | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp_st",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_C_STAtomic",
"Pulse.Typing.st_typing",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.observability",
"Pulse.Syntax.Base.st_comp",
"Prims.Mkdtuple2",
"Pulse.Typing.T_Lift",
"... | [] | false | false | false | false | false | let lift_atomic_to_st (g: env) (e: st_term) (c: comp_st{C_STAtomic? c}) (d: st_typing g e c)
: Pure (c': comp_st & st_typing g e c')
(requires True)
(ensures
fun (| c' , _ |) -> st_comp_of_comp c' == st_comp_of_comp c /\ ctag_of_comp_st c' == STT) =
| let C_STAtomic _ _ c_st = c in
let c' = C_ST c_st in
let d':st_typing g e c' = T_Lift g e c c' d (Lift_STAtomic_ST g c) in
(| c', d' |) | false |
FStar.Buffer.fst | FStar.Buffer.modifies_region | val modifies_region (rid: rid) (bufs: TSet.set abuffer) (h0 h1: mem) : Type0 | val modifies_region (rid: rid) (bufs: TSet.set abuffer) (h0 h1: mem) : Type0 | let modifies_region (rid:rid) (bufs:TSet.set abuffer) (h0 h1:mem) :Type0 =
modifies_one rid h0 h1 /\ modifies_bufs rid bufs h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 90,
"end_line": 437,
"start_col": 0,
"start_line": 436
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rid: FStar.Monotonic.HyperHeap.rid ->
bufs: FStar.TSet.set FStar.Buffer.abuffer ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_one",
"FStar.Buffer.modifies_bufs",
"Prims.eq2",
"FStar.Monotonic.HyperStack.get_tip"
] | [] | false | false | false | true | true | let modifies_region (rid: rid) (bufs: TSet.set abuffer) (h0 h1: mem) : Type0 =
| modifies_one rid h0 h1 /\ modifies_bufs rid bufs h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | false |
FStar.Buffer.fst | FStar.Buffer.modifies_3_2 | val modifies_3_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | val modifies_3_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | let modifies_3_2 (#a:Type) (#a':Type) (b:buffer a) (b':buffer a') (h0 h1:mem) :Type0 =
HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in let rid' = frameOf b' in
((rid == rid' /\ rid' == HS.get_tip h0 /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1)
\/ (rid == rid' /\ rid' =!= HS.get_tip h0... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 111,
"end_line": 434,
"start_col": 0,
"start_line": 422
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: FStar.Buffer.buffer a ->
b': FStar.Buffer.buffer a' ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_or",
"FStar.Buffer.modifies_buf_2",
"FStar.Monotonic.HyperStack.modifies_one",
"Prims.l_not",
"FStar.Buffer.modifies_buf_0",
"FSt... | [] | false | false | false | true | true | let modifies_3_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 =
| HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
let rid' = frameOf b' in
((rid == rid' /\ rid' == HS.get_tip h0 /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1) \/
(rid == rid' /\ rid' =!= HS.get_tip h0 /\ modifies_buf_2 rid b b' h0 h1 /\
modifies_buf_0 (HS.get_tip h0) h0 h1 /\
... | false |
Hacl.Impl.Poly1305.Field32xN_256.fst | Hacl.Impl.Poly1305.Field32xN_256.load_acc4 | val load_acc4:
acc:felem 4
-> b:lbuffer uint8 64ul
-> Stack unit
(requires fun h ->
live h acc /\ live h b /\ disjoint acc b /\
felem_fits h acc (2, 2, 2, 2, 2))
(ensures fun h0 _ h1 ->
modifies (loc acc) h0 h1 /\
felem_fits h1 acc (3, 3, 3, 3, 3) /\
feval h1 acc == Vec.lo... | val load_acc4:
acc:felem 4
-> b:lbuffer uint8 64ul
-> Stack unit
(requires fun h ->
live h acc /\ live h b /\ disjoint acc b /\
felem_fits h acc (2, 2, 2, 2, 2))
(ensures fun h0 _ h1 ->
modifies (loc acc) h0 h1 /\
felem_fits h1 acc (3, 3, 3, 3, 3) /\
feval h1 acc == Vec.lo... | let load_acc4 acc b =
push_frame();
let e = create 5ul (zero 4) in
load_blocks e b;
let acc0 = acc.(0ul) in
let acc1 = acc.(1ul) in
let acc2 = acc.(2ul) in
let acc3 = acc.(3ul) in
let acc4 = acc.(4ul) in
let e0 = e.(0ul) in
let e1 = e.(1ul) in
let e2 = e.(2ul) in
let e3 = e.(3ul) in
let e4 = ... | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN_256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 71,
"start_col": 0,
"start_line": 48
} | module Hacl.Impl.Poly1305.Field32xN_256
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
include Hacl.Spec.Poly1305.Field32xN
open Hacl.Spec.Poly1305.Field32xN.Lemmas
module Vec = Hacl.Spec.Poly1305.Vec
module ST = FStar.HyperStack.ST
open Hacl.Impl.Poly1305.Field32x... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.Lemmas.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"Hacl.Impl.Poly1305.Field32xN.fst.che... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": "Vec"
},
{
"abbrev"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | acc: Hacl.Impl.Poly1305.Field32xN.felem 4 -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Poly1305.Field32xN.felem",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32... | [] | false | true | false | false | false | let load_acc4 acc b =
| push_frame ();
let e = create 5ul (zero 4) in
load_blocks e b;
let acc0 = acc.(0ul) in
let acc1 = acc.(1ul) in
let acc2 = acc.(2ul) in
let acc3 = acc.(3ul) in
let acc4 = acc.(4ul) in
let e0 = e.(0ul) in
let e1 = e.(1ul) in
let e2 = e.(2ul) in
let e3 = e.(3ul) in
let e4 = e.(4ul) in
let acc0, acc1, acc2, acc3, acc4 =
... | false |
Steel.Channel.Simplex.fst | Steel.Channel.Simplex.mk_chan | val mk_chan (#p: prot) (send recv: ref chan_val) (v: init_chan_val p)
: SteelT (chan_t_sr p send recv)
((pts_to send half v) `star` (pts_to recv half v))
(fun c -> chan_inv c) | val mk_chan (#p: prot) (send recv: ref chan_val) (v: init_chan_val p)
: SteelT (chan_t_sr p send recv)
((pts_to send half v) `star` (pts_to recv half v))
(fun c -> chan_inv c) | let mk_chan (#p:prot) (send recv:ref chan_val) (v:init_chan_val p)
: SteelT (chan_t_sr p send recv)
(pts_to send half v `star` pts_to recv half v)
(fun c -> chan_inv c)
= let tr: trace_ref p = MRef.alloc (extended_to #p) (initial_trace p) in
let c = Mkchan_t send recv tr in
rewrite_slp... | {
"file_name": "lib/steel/Steel.Channel.Simplex.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 13,
"end_line": 214,
"start_col": 0,
"start_line": 197
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Utils.fst.checked",
"Steel.SpinLock.fsti.checked",
"Steel.MonotonicHigherReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.HigherReference.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "H"
},
{
"abbrev": true,
"full_module": "Steel.MonotonicHigherReference",
"short_module": "MRef"
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
send: Steel.HigherReference.ref Steel.Channel.Simplex.chan_val ->
recv: Steel.HigherReference.ref Steel.Channel.Simplex.chan_val ->
v: Steel.Channel.Simplex.init_chan_val p
-> Steel.Effect.SteelT (Steel.Channel.Simplex.chan_t_sr p send recv) | Steel.Effect.SteelT | [] | [] | [
"Steel.Channel.Simplex.prot",
"Steel.HigherReference.ref",
"Steel.Channel.Simplex.chan_val",
"Steel.Channel.Simplex.init_chan_val",
"Steel.Effect.Atomic.return",
"Steel.Channel.Simplex.chan_t_sr",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.Channel.Simple... | [] | false | true | false | false | false | let mk_chan (#p: prot) (send recv: ref chan_val) (v: init_chan_val p)
: SteelT (chan_t_sr p send recv)
((pts_to send half v) `star` (pts_to recv half v))
(fun c -> chan_inv c) =
| let tr:trace_ref p = MRef.alloc (extended_to #p) (initial_trace p) in
let c = Mkchan_t send recv tr in
rewrite_slprop (MRef.pts_to tr full_perm (initial_trace p))
(MRef.pts_to c.trace full_perm (initial_trace p))
(fun _ -> ());
intro_trace_until_init c v;
rewrite_slprop ((pts_to send half v) `star` (pts_to recv hal... | false |
Hacl.Impl.Poly1305.Field32xN_256.fst | Hacl.Impl.Poly1305.Field32xN_256.fmul_r4_normalize | val fmul_r4_normalize:
out:felem 4
-> p:precomp_r 4
-> Stack unit
(requires fun h ->
live h out /\ live h p /\
felem_fits h out (3, 3, 3, 3, 3) /\
load_precompute_r_post h p)
(ensures fun h0 _ h1 ->
modifies (loc out) h0 h1 /\
felem_fits h1 out (2, 2, 2, 2, 2) /\
(let... | val fmul_r4_normalize:
out:felem 4
-> p:precomp_r 4
-> Stack unit
(requires fun h ->
live h out /\ live h p /\
felem_fits h out (3, 3, 3, 3, 3) /\
load_precompute_r_post h p)
(ensures fun h0 _ h1 ->
modifies (loc out) h0 h1 /\
felem_fits h1 out (2, 2, 2, 2, 2) /\
(let... | let fmul_r4_normalize out p =
let r = sub p 0ul 5ul in
let r_5 = sub p 5ul 5ul in
let r4 = sub p 10ul 5ul in
let a0 = out.(0ul) in
let a1 = out.(1ul) in
let a2 = out.(2ul) in
let a3 = out.(3ul) in
let a4 = out.(4ul) in
let r10 = r.(0ul) in
let r11 = r.(1ul) in
let r12 = r.(2ul) in
let r13 = r.... | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN_256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 123,
"start_col": 0,
"start_line": 87
} | module Hacl.Impl.Poly1305.Field32xN_256
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
include Hacl.Spec.Poly1305.Field32xN
open Hacl.Spec.Poly1305.Field32xN.Lemmas
module Vec = Hacl.Spec.Poly1305.Vec
module ST = FStar.HyperStack.ST
open Hacl.Impl.Poly1305.Field32x... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.Lemmas.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"Hacl.Impl.Poly1305.Field32xN.fst.che... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": "Vec"
},
{
"abbrev"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | out: Hacl.Impl.Poly1305.Field32xN.felem 4 -> p: Hacl.Impl.Poly1305.Field32xN.precomp_r 4
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Poly1305.Field32xN.felem",
"Hacl.Impl.Poly1305.Field32xN.precomp_r",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.Buffer.op_Array_Assignment",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.fmul_r4_normalize5",
"FStar.Pervas... | [] | false | true | false | false | false | let fmul_r4_normalize out p =
| let r = sub p 0ul 5ul in
let r_5 = sub p 5ul 5ul in
let r4 = sub p 10ul 5ul in
let a0 = out.(0ul) in
let a1 = out.(1ul) in
let a2 = out.(2ul) in
let a3 = out.(3ul) in
let a4 = out.(4ul) in
let r10 = r.(0ul) in
let r11 = r.(1ul) in
let r12 = r.(2ul) in
let r13 = r.(3ul) in
let r14 = r.(4ul) in
let r150 = r_5.(0ul) in
le... | false |
MiniValeSemantics.fst | MiniValeSemantics.state_eq | val state_eq (s0 s1: state) : Ghost Type0 (requires True) (ensures fun b -> b ==> s0 `feq` s1) | val state_eq (s0 s1: state) : Ghost Type0 (requires True) (ensures fun b -> b ==> s0 `feq` s1) | let state_eq (s0 s1:state) : Ghost Type0
(requires True)
(ensures fun b -> b ==> s0 `feq` s1)
=
s0 Rax == s1 Rax /\
s0 Rbx == s1 Rbx /\
s0 Rcx == s1 Rcx /\
s0 Rdx == s1 Rdx | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 969,
"start_col": 0,
"start_line": 962
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s0: MiniValeSemantics.state -> s1: MiniValeSemantics.state -> Prims.Ghost Type0 | Prims.Ghost | [] | [] | [
"MiniValeSemantics.state",
"Prims.l_and",
"Prims.eq2",
"MiniValeSemantics.nat64",
"MiniValeSemantics.Rax",
"MiniValeSemantics.Rbx",
"MiniValeSemantics.Rcx",
"MiniValeSemantics.Rdx",
"Prims.l_True",
"Prims.l_imp",
"FStar.FunctionalExtensionality.feq",
"MiniValeSemantics.reg"
] | [] | false | false | false | false | true | let state_eq (s0 s1: state) : Ghost Type0 (requires True) (ensures fun b -> b ==> s0 `feq` s1) =
| s0 Rax == s1 Rax /\ s0 Rbx == s1 Rbx /\ s0 Rcx == s1 Rcx /\ s0 Rdx == s1 Rdx | false |
Pulse.JoinComp.fst | Pulse.JoinComp.lift_ghost_to_atomic | val lift_ghost_to_atomic (g: env) (e: st_term) (c: comp_st{C_STGhost? c}) (d: st_typing g e c)
: TacS (c': comp_st & st_typing g e c')
(requires True)
(ensures
fun (| c' , _ |) ->
st_comp_of_comp c' == st_comp_of_comp c /\ ctag_of_comp_st c' == STT_Atomic /\
tm_emp_inames == ... | val lift_ghost_to_atomic (g: env) (e: st_term) (c: comp_st{C_STGhost? c}) (d: st_typing g e c)
: TacS (c': comp_st & st_typing g e c')
(requires True)
(ensures
fun (| c' , _ |) ->
st_comp_of_comp c' == st_comp_of_comp c /\ ctag_of_comp_st c' == STT_Atomic /\
tm_emp_inames == ... | let lift_ghost_to_atomic
(g : env)
(e : st_term)
(c : comp_st{C_STGhost? c})
(d : st_typing g e c)
: TacS (c':comp_st & st_typing g e c')
(requires True)
(ensures fun (| c', _ |) ->
st_comp_of_comp c' == st_comp_of_comp c /\
ctag_of_comp_st c' == STT_Atomic /\
... | {
"file_name": "lib/steel/pulse/Pulse.JoinComp.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 74,
"start_col": 0,
"start_line": 53
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.Pure.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": t... | {
"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 |
g: Pulse.Typing.Env.env ->
e: Pulse.Syntax.Base.st_term ->
c: Pulse.Syntax.Base.comp_st{C_STGhost? c} ->
d: Pulse.Typing.st_typing g e c
-> Pulse.JoinComp.TacS
(Prims.dtuple2 Pulse.Syntax.Base.comp_st (fun c' -> Pulse.Typing.st_typing g e c')) | Pulse.JoinComp.TacS | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp_st",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_C_STGhost",
"Pulse.Typing.st_typing",
"Pulse.Syntax.Base.st_comp",
"Prims.Mkdtuple2",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.... | [] | false | true | false | false | false | let lift_ghost_to_atomic (g: env) (e: st_term) (c: comp_st{C_STGhost? c}) (d: st_typing g e c)
: TacS (c': comp_st & st_typing g e c')
(requires True)
(ensures
fun (| c' , _ |) ->
st_comp_of_comp c' == st_comp_of_comp c /\ ctag_of_comp_st c' == STT_Atomic /\
tm_emp_inames == ... | let C_STGhost c_st = c in
let w:non_informative_c g c = get_non_informative_witness g (comp_u c) (comp_res c) in
FStar.Tactics.BreakVC.break_vc ();
let c' = C_STAtomic tm_emp_inames Neutral c_st in
let d':st_typing g e c' = T_Lift g e c c' d (Lift_Ghost_Neutral g c w) in
assert (st_comp_of_comp c' == st_comp_of_comp c)... | false |
MiniValeSemantics.fst | MiniValeSemantics.lemma_Triple_opt | val lemma_Triple_opt (s0: state)
: Ghost (state & fuel)
(requires s0 Rax < 100)
(ensures
fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\ sM Rbx == 3 * s0 Rax /\
sM `feq` (update_state Rax sM (update_state Rbx sM s0))) | val lemma_Triple_opt (s0: state)
: Ghost (state & fuel)
(requires s0 Rax < 100)
(ensures
fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\ sM Rbx == 3 * s0 Rax /\
sM `feq` (update_state Rax sM (update_state Rbx sM s0))) | let lemma_Triple_opt (s0:state)
: Ghost (state & fuel)
(requires
s0 Rax < 100)
(ensures fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\
sM Rbx == 3 * s0 Rax /\
sM `feq` update_state Rax sM (update_state Rbx sM s0)) =
// Optimized VC generation:
vc_sound_norm
... | {
"file_name": "examples/metatheory/MiniValeSemantics.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 6,
"end_line": 1005,
"start_col": 0,
"start_line": 992
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "MiniValeSemantics.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s0: MiniValeSemantics.state -> Prims.Ghost (MiniValeSemantics.state * MiniValeSemantics.fuel) | Prims.Ghost | [] | [] | [
"MiniValeSemantics.state",
"MiniValeSemantics.vc_sound_norm",
"MiniValeSemantics.codes_Triple",
"MiniValeSemantics.inst_Triple",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"MiniValeSemantics.Rbx",
"FStar.Mul.op_Star",
"MiniValeSemantics.Rax",
"MiniValeSemantics.state_eq",
"MiniValeSemantics.upda... | [] | false | false | false | false | false | let lemma_Triple_opt (s0: state)
: Ghost (state & fuel)
(requires s0 Rax < 100)
(ensures
fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\ sM Rbx == 3 * s0 Rax /\
sM `feq` (update_state Rax sM (update_state Rbx sM s0))) =
| vc_sound_norm codes_Triple
inst_Triple
(fun sM -> sM Rbx == 3 * s0 Rax /\ state_eq sM (update_state Rax sM (update_state Rbx sM s0)))
s0 | false |
FStar.Buffer.fst | FStar.Buffer.p | val p (#a: Type0) (init: list a) : GTot Type0 | val p (#a: Type0) (init: list a) : GTot Type0 | let p (#a:Type0) (init:list a) : GTot Type0 =
normalize (0 < FStar.List.Tot.length init) /\
normalize (FStar.List.Tot.length init <= UInt.max_int 32) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 828,
"start_col": 7,
"start_line": 826
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | init: Prims.list a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.list",
"Prims.l_and",
"FStar.Pervasives.normalize",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"Prims.op_LessThanOrEqual",
"FStar.UInt.max_int"
] | [] | false | false | false | false | true | let p (#a: Type0) (init: list a) : GTot Type0 =
| normalize (0 < FStar.List.Tot.length init) /\
normalize (FStar.List.Tot.length init <= UInt.max_int 32) | false |
FStar.Buffer.fst | FStar.Buffer.q | val q (#a: Type0) (len: nat) (buf: buffer a) : GTot Type0 | val q (#a: Type0) (len: nat) (buf: buffer a) : GTot Type0 | let q (#a:Type0) (len:nat) (buf:buffer a) : GTot Type0 =
normalize (length buf == len) | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 831,
"start_col": 7,
"start_line": 830
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | len: Prims.nat -> buf: FStar.Buffer.buffer a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.nat",
"FStar.Buffer.buffer",
"FStar.Pervasives.normalize",
"Prims.eq2",
"FStar.Buffer.length"
] | [] | false | false | false | false | true | let q (#a: Type0) (len: nat) (buf: buffer a) : GTot Type0 =
| normalize (length buf == len) | false |
FStar.Buffer.fst | FStar.Buffer.lemma_modifies_1_1 | val lemma_modifies_1_1 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1 h2: _)
: Lemma (requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)] | val lemma_modifies_1_1 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1 h2: _)
: Lemma (requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)] | let lemma_modifies_1_1 (#a:Type) (#a':Type) (b:buffer a) (b':buffer a') h0 h1 h2 : Lemma
(requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)]
= if frameOf b = fram... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 713,
"start_col": 0,
"start_line": 708
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: FStar.Buffer.buffer a ->
b': FStar.Buffer.buffer a' ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem ->
h2: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
FStar.Buffer.live h0 b /\ FStar.Buffer.live h0 b' /\ FStar.Buffer.modifies_1 b... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.op_Equality",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.frameOf",
"FStar.Buffer.modifies_trans_1_1'",
"Prims.bool",
"Prims.unit",
"Prims.l_and",
"FStar.Buffer.live",
"FStar.Buffer.modifies_1",
"Prims.squash",
"FStar.Buffer.... | [] | false | false | true | false | false | let lemma_modifies_1_1 (#a: Type) (#a': Type) (b: buffer a) (b': buffer a') h0 h1 h2
: Lemma (requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)] =
| if frameOf b = frameOf b' then modifies_trans_1_1' (frameOf b) b b' h0 h1 h2 | false |
FStar.Buffer.fst | FStar.Buffer.rcreate_post_common | val rcreate_post_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (b: buffer a) (h0 h1: mem)
: Type0 | val rcreate_post_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (b: buffer a) (h0 h1: mem)
: Type0 | let rcreate_post_common (#a:Type) (r:rid) (init:a) (len:UInt32.t) (b:buffer a) (h0 h1:mem) :Type0
= b `unused_in` h0
/\ live h1 b /\ idx b == 0 /\ length b == v len
/\ Map.domain (HS.get_hmap h1) == Map.domain (HS.get_hmap h0)
/\ HS.get_tip h1 == HS.get_tip h0
/\ modifies (Set.singleton r) h0 h1
/... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 874,
"start_col": 7,
"start_line": 867
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: FStar.Monotonic.HyperHeap.rid ->
init: a ->
len: FStar.UInt32.t ->
b: FStar.Buffer.buffer a ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.UInt32.t",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Buffer.unused_in",
"FStar.Buffer.live",
"Prims.eq2",
"Prims.int",
"FStar.Buffer.idx",
"Prims.l_or",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.UInt.size... | [] | false | false | false | true | true | let rcreate_post_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (b: buffer a) (h0 h1: mem)
: Type0 =
| b `unused_in` h0 /\ live h1 b /\ idx b == 0 /\ length b == v len /\
Map.domain (HS.get_hmap h1) == Map.domain (HS.get_hmap h0) /\ HS.get_tip h1 == HS.get_tip h0 /\
modifies (Set.singleton r) h0 h1 /\ modifies_ref r Set.empty h0 h1 /\
as_seq h1 b == Seq.create (v len) init | false |
FStar.Buffer.fst | FStar.Buffer.lemma_upd | val lemma_upd (#a: Type) (h: mem) (x: reference a {live_region h (HS.frameOf x)}) (v: a)
: Lemma (requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v)))) | val lemma_upd (#a: Type) (h: mem) (x: reference a {live_region h (HS.frameOf x)}) (v: a)
: Lemma (requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v)))) | let lemma_upd (#a:Type) (h:mem) (x:reference a{live_region h (HS.frameOf x)}) (v:a) : Lemma
(requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v))))
= let m = HS.get_hmap h in
let m' = Map.upd m (HS.frameOf x) (Heap.upd (Map.sel m (HS.frameOf x)) (HS.as_ref x) v) in
... | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 865,
"start_col": 0,
"start_line": 860
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.HyperStack.mem ->
x:
FStar.HyperStack.ST.reference a
{FStar.Monotonic.HyperStack.live_region h (FStar.Monotonic.HyperStack.frameOf x)} ->
v: a
-> FStar.Pervasives.Lemma
(ensures
FStar.Map.domain (FStar.Monotonic.HyperStack.get_hmap h) ==
FStar.Map.domain (... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.reference",
"Prims.b2t",
"FStar.Monotonic.HyperStack.live_region",
"FStar.Monotonic.HyperStack.frameOf",
"FStar.Heap.trivial_preorder",
"FStar.Set.lemma_equal_intro",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Map.domain",
"FStar.Monotonic.Heap.h... | [] | true | false | true | false | false | let lemma_upd (#a: Type) (h: mem) (x: reference a {live_region h (HS.frameOf x)}) (v: a)
: Lemma (requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v)))) =
| let m = HS.get_hmap h in
let m' = Map.upd m (HS.frameOf x) (Heap.upd (Map.sel m (HS.frameOf x)) (HS.as_ref x) v) in
Set.lemma_equal_intro (Map.domain m) (Map.domain m') | false |
FStar.Buffer.fst | FStar.Buffer.rcreate_mm | val rcreate_mm (#a: Type) (r: rid) (init: a) (len: UInt32.t)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures
(fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b)) | val rcreate_mm (#a: Type) (r: rid) (init: a) (len: UInt32.t)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures
(fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b)) | let rcreate_mm (#a:Type) (r:rid) (init:a) (len:UInt32.t)
:ST (buffer a) (requires (fun h0 -> is_eternal_region r))
(ensures (fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b))
= rcreate_common r init len true | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 913,
"start_col": 0,
"start_line": 910
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t
-> FStar.HyperStack.ST.ST (FStar.Buffer.buffer a) | FStar.HyperStack.ST.ST | [] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.UInt32.t",
"FStar.Buffer.rcreate_common",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.is_eternal_region",
"Prims.l_and",
"FStar.Buffer.rcreate_post_common",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_mm",
"FStar.Buffer.ls... | [] | false | true | false | false | false | let rcreate_mm (#a: Type) (r: rid) (init: a) (len: UInt32.t)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures
(fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b)) =
| rcreate_common r init len true | false |
FStar.Buffer.fst | FStar.Buffer.freeable | val freeable (#a: Type) (b: buffer a) : GTot Type0 | val freeable (#a: Type) (b: buffer a) : GTot Type0 | let freeable (#a: Type) (b: buffer a) : GTot Type0 =
is_mm b.content /\ is_eternal_region (frameOf b) /\ idx b == 0 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 64,
"end_line": 905,
"start_col": 0,
"start_line": 904
} | (*
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.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Buffer.buffer a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_mm",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FStar.Heap.trivial_preorder",
"FStar.Buffer.__proj__MkBuffer__item__content",
"FStar.HyperStack.ST.is_eternal_region",
... | [] | false | false | false | false | true | let freeable (#a: Type) (b: buffer a) : GTot Type0 =
| is_mm b.content /\ is_eternal_region (frameOf b) /\ idx b == 0 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.