effect
stringclasses
48 values
original_source_type
stringlengths
0
23k
opens_and_abbrevs
listlengths
2
92
isa_cross_project_example
bool
1 class
source_definition
stringlengths
9
57.9k
partial_definition
stringlengths
7
23.3k
is_div
bool
2 classes
is_type
null
is_proof
bool
2 classes
completed_definiton
stringlengths
1
250k
dependencies
dict
effect_flags
sequencelengths
0
2
ideal_premises
sequencelengths
0
236
mutual_with
sequencelengths
0
11
file_context
stringlengths
0
407k
interleaved
bool
1 class
is_simply_typed
bool
2 classes
file_name
stringlengths
5
48
vconfig
dict
is_simple_lemma
null
source_type
stringlengths
10
23k
proof_features
sequencelengths
0
1
name
stringlengths
8
95
source
dict
verbose_type
stringlengths
1
7.42k
source_range
dict
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let lor_qn = ["FStar" ; "UInt" ; "logor"]
let lor_qn =
false
null
false
["FStar"; "UInt"; "logor"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val lor_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.lor_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 45, "end_line": 71, "start_col": 17, "start_line": 71 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let udiv_qn = ["FStar" ; "UInt" ; "udiv"]
let udiv_qn =
false
null
false
["FStar"; "UInt"; "udiv"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"] let lxor_qn = ["FStar" ; "UInt" ; "logxor"] let lor_qn = ["FStar" ; "UInt" ; "logor"] let ladd_qn = ["FStar" ; "UInt" ; "add_mod"] let lsub_qn = ["FStar" ; "UInt" ; "sub_mod"] let shiftl_qn = ["FStar" ; "UInt" ; "shift_left"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val udiv_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.udiv_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 44, "end_line": 76, "start_col": 17, "start_line": 76 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let land_qn = ["FStar" ; "UInt" ; "logand"]
let land_qn =
false
null
false
["FStar"; "UInt"; "logand"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val land_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.land_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 46, "end_line": 69, "start_col": 17, "start_line": 69 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let shiftl_qn = ["FStar" ; "UInt" ; "shift_left"]
let shiftl_qn =
false
null
false
["FStar"; "UInt"; "shift_left"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"] let lxor_qn = ["FStar" ; "UInt" ; "logxor"] let lor_qn = ["FStar" ; "UInt" ; "logor"] let ladd_qn = ["FStar" ; "UInt" ; "add_mod"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val shiftl_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.shiftl_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 50, "end_line": 74, "start_col": 17, "start_line": 74 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let nat_bv_qn = ["FStar" ; "BV" ; "int2bv"]
let nat_bv_qn =
false
null
false
["FStar"; "BV"; "int2bv"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"] let lxor_qn = ["FStar" ; "UInt" ; "logxor"] let lor_qn = ["FStar" ; "UInt" ; "logor"] let ladd_qn = ["FStar" ; "UInt" ; "add_mod"] let lsub_qn = ["FStar" ; "UInt" ; "sub_mod"] let shiftl_qn = ["FStar" ; "UInt" ; "shift_left"] let shiftr_qn = ["FStar" ; "UInt" ; "shift_right"] let udiv_qn = ["FStar" ; "UInt" ; "udiv"] let umod_qn = ["FStar" ; "UInt" ; "mod"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val nat_bv_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.nat_bv_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 46, "end_line": 79, "start_col": 17, "start_line": 79 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let lsub_qn = ["FStar" ; "UInt" ; "sub_mod"]
let lsub_qn =
false
null
false
["FStar"; "UInt"; "sub_mod"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"] let lxor_qn = ["FStar" ; "UInt" ; "logxor"] let lor_qn = ["FStar" ; "UInt" ; "logor"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val lsub_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.lsub_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 47, "end_line": 73, "start_col": 17, "start_line": 73 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"]
let mktuple6_qn =
false
null
false
["FStar"; "Pervasives"; "Native"; "Mktuple6"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val mktuple6_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.mktuple6_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 64, "end_line": 65, "start_col": 19, "start_line": 65 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let mult_qn = ["Prims"; "op_Multiply"]
let mult_qn =
false
null
false
["Prims"; "op_Multiply"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val mult_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.mult_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 43, "end_line": 49, "start_col": 19, "start_line": 49 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let lxor_qn = ["FStar" ; "UInt" ; "logxor"]
let lxor_qn =
false
null
false
["FStar"; "UInt"; "logxor"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val lxor_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.lxor_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 46, "end_line": 70, "start_col": 17, "start_line": 70 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let shiftr_qn = ["FStar" ; "UInt" ; "shift_right"]
let shiftr_qn =
false
null
false
["FStar"; "UInt"; "shift_right"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"] let lxor_qn = ["FStar" ; "UInt" ; "logxor"] let lor_qn = ["FStar" ; "UInt" ; "logor"] let ladd_qn = ["FStar" ; "UInt" ; "add_mod"] let lsub_qn = ["FStar" ; "UInt" ; "sub_mod"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val shiftr_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.shiftr_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 51, "end_line": 75, "start_col": 17, "start_line": 75 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"]
let mktuple7_qn =
false
null
false
["FStar"; "Pervasives"; "Native"; "Mktuple7"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val mktuple7_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.mktuple7_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 64, "end_line": 66, "start_col": 19, "start_line": 66 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let umod_qn = ["FStar" ; "UInt" ; "mod"]
let umod_qn =
false
null
false
["FStar"; "UInt"; "mod"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"] let lxor_qn = ["FStar" ; "UInt" ; "logxor"] let lor_qn = ["FStar" ; "UInt" ; "logor"] let ladd_qn = ["FStar" ; "UInt" ; "add_mod"] let lsub_qn = ["FStar" ; "UInt" ; "sub_mod"] let shiftl_qn = ["FStar" ; "UInt" ; "shift_left"] let shiftr_qn = ["FStar" ; "UInt" ; "shift_right"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val umod_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.umod_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 43, "end_line": 77, "start_col": 17, "start_line": 77 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let mul_mod_qn = ["FStar" ; "UInt" ; "mul_mod"]
let mul_mod_qn =
false
null
false
["FStar"; "UInt"; "mul_mod"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"] let mktuple7_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple7"] let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"] let land_qn = ["FStar" ; "UInt" ; "logand"] let lxor_qn = ["FStar" ; "UInt" ; "logxor"] let lor_qn = ["FStar" ; "UInt" ; "logor"] let ladd_qn = ["FStar" ; "UInt" ; "add_mod"] let lsub_qn = ["FStar" ; "UInt" ; "sub_mod"] let shiftl_qn = ["FStar" ; "UInt" ; "shift_left"] let shiftr_qn = ["FStar" ; "UInt" ; "shift_right"] let udiv_qn = ["FStar" ; "UInt" ; "udiv"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val mul_mod_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.mul_mod_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 47, "end_line": 78, "start_col": 17, "start_line": 78 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let mktuple8_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple8"]
let mktuple8_qn =
false
null
false
["FStar"; "Pervasives"; "Native"; "Mktuple8"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"] let add_qn = ["Prims"; "op_Addition"] let neg_qn = ["Prims"; "op_Minus"] let minus_qn = ["Prims"; "op_Subtraction"] let mult_qn = ["Prims"; "op_Multiply"] let mult'_qn = ["FStar"; "Mul"; "op_Star"] let div_qn = ["Prims"; "op_Division"] let lt_qn = ["Prims"; "op_LessThan"] let lte_qn = ["Prims"; "op_LessThanOrEqual"] let gt_qn = ["Prims"; "op_GreaterThan"] let gte_qn = ["Prims"; "op_GreaterThanOrEqual"] let mod_qn = ["Prims"; "op_Modulus"] let nil_qn = ["Prims"; "Nil"] let cons_qn = ["Prims"; "Cons"] let mktuple2_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple2"] let mktuple3_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple3"] let mktuple4_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple4"] let mktuple5_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple5"] let mktuple6_qn = ["FStar"; "Pervasives"; "Native"; "Mktuple6"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val mktuple8_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.mktuple8_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 64, "end_line": 67, "start_col": 19, "start_line": 67 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection", "short_module": null }, { "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 } ]
false
let neg_qn = ["Prims"; "op_Minus"]
let neg_qn =
false
null
false
["Prims"; "op_Minus"]
{ "checked_file": "FStar.Reflection.Const.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Reflection.Const.fst" }
[ "total" ]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Reflection.Const (* Common lids *) // TODO: these are awful names // TODO: _qn vs _lid let imp_qn = ["Prims"; "l_imp"] let and_qn = ["Prims"; "l_and"] let or_qn = ["Prims"; "l_or"] let not_qn = ["Prims"; "l_not"] let iff_qn = ["Prims"; "l_iff"] let eq2_qn = ["Prims"; "eq2"] let eq1_qn = ["Prims"; "eq"] let true_qn = ["Prims"; "l_True"] let false_qn = ["Prims"; "l_False"] let b2t_qn = ["Prims"; "b2t"] let forall_qn = ["Prims"; "l_Forall"] let exists_qn = ["Prims"; "l_Exists"] let squash_qn = ["Prims"; "squash"] let prop_qn = ["Prims"; "prop"] let bool_true_qn = ["Prims"; "true"] let bool_false_qn = ["Prims"; "false"] let int_lid = ["Prims"; "int"] let bool_lid = ["Prims"; "bool"] let unit_lid = ["Prims"; "unit"] let string_lid = ["Prims"; "string"]
false
true
FStar.Reflection.Const.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val neg_qn : Prims.list Prims.string
[]
FStar.Reflection.Const.neg_qn
{ "file_name": "ulib/FStar.Reflection.Const.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
Prims.list Prims.string
{ "end_col": 40, "end_line": 47, "start_col": 19, "start_line": 47 }
Prims.Tot
val null (#a: Type0) : buffer a
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a)
val null (#a: Type0) : buffer a let null (#a: Type0) : buffer a =
false
null
false
mnull #a #(trivial_preorder a) #(trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[ "total" ]
[ "LowStar.Monotonic.Buffer.mnull", "LowStar.Buffer.trivial_preorder", "LowStar.Buffer.buffer" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val null (#a: Type0) : buffer a
[]
LowStar.Buffer.null
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
LowStar.Buffer.buffer a
{ "end_col": 91, "end_line": 37, "start_col": 39, "start_line": 37 }
Prims.Ghost
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
let gsub (#a: Type0) =
false
null
false
mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.mgsub", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.length", "Prims.l_True" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val gsub : b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> Prims.Ghost (LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a))
[]
LowStar.Buffer.gsub
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i: FStar.UInt32.t -> len: FStar.UInt32.t -> Prims.Ghost (LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a))
{ "end_col": 102, "end_line": 39, "start_col": 29, "start_line": 39 }
FStar.Pervasives.Lemma
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a)
let gsub_inj (#a: Type0) =
false
null
true
mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[ "lemma" ]
[ "LowStar.Monotonic.Buffer.mgsub_inj", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "Prims.unit", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.length", "Prims.op_Equals_Equals_Equals", "LowStar.Monotonic.Buffer.mgsub", "Prims.squash", "Prims.eq2", "Prims.l_imp", "Prims.nat", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val gsub_inj : b1: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> b2: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i1: FStar.UInt32.t -> i2: FStar.UInt32.t -> len1: FStar.UInt32.t -> len2: FStar.UInt32.t -> FStar.Pervasives.Lemma (requires FStar.UInt32.v i1 + FStar.UInt32.v len1 <= LowStar.Monotonic.Buffer.length b1 /\ FStar.UInt32.v i2 + FStar.UInt32.v len2 <= LowStar.Monotonic.Buffer.length b2 /\ LowStar.Monotonic.Buffer.mgsub (LowStar.Buffer.trivial_preorder a) b1 i1 len1 === LowStar.Monotonic.Buffer.mgsub (LowStar.Buffer.trivial_preorder a) b2 i2 len2) (ensures len1 == len2 /\ (b1 == b2 ==> i1 == i2) /\ (i1 == i2 /\ LowStar.Monotonic.Buffer.length b1 == LowStar.Monotonic.Buffer.length b2 ==> b1 == b2))
[]
LowStar.Buffer.gsub_inj
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b1: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> b2: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i1: FStar.UInt32.t -> i2: FStar.UInt32.t -> len1: FStar.UInt32.t -> len2: FStar.UInt32.t -> FStar.Pervasives.Lemma (requires FStar.UInt32.v i1 + FStar.UInt32.v len1 <= LowStar.Monotonic.Buffer.length b1 /\ FStar.UInt32.v i2 + FStar.UInt32.v len2 <= LowStar.Monotonic.Buffer.length b2 /\ LowStar.Monotonic.Buffer.mgsub (LowStar.Buffer.trivial_preorder a) b1 i1 len1 === LowStar.Monotonic.Buffer.mgsub (LowStar.Buffer.trivial_preorder a) b2 i2 len2) (ensures len1 == len2 /\ (b1 == b2 ==> i1 == i2) /\ (i1 == i2 /\ LowStar.Monotonic.Buffer.length b1 == LowStar.Monotonic.Buffer.length b2 ==> b1 == b2))
{ "end_col": 131, "end_line": 41, "start_col": 33, "start_line": 41 }
FStar.HyperStack.ST.Stack
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
let sub (#a: Type0) =
true
null
false
msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.msub", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Ghost.erased", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v", "FStar.Ghost.reveal", "LowStar.Monotonic.Buffer.length", "Prims.l_Forall", "FStar.Seq.Base.seq", "Prims.l_imp", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.Seq.Base.slice", "Prims.int", "Prims.op_Subtraction", "FStar.Seq.Properties.replace_subseq", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.mgsub" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1}
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val sub : b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i: FStar.UInt32.t -> len: FStar.Ghost.erased FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a))
[]
LowStar.Buffer.sub
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i: FStar.UInt32.t -> len: FStar.Ghost.erased FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a))
{ "end_col": 115, "end_line": 50, "start_col": 43, "start_line": 50 }
FStar.HyperStack.ST.Stack
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
let offset (#a: Type0) =
true
null
false
moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.moffset", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.length", "Prims.l_Forall", "FStar.Seq.Base.seq", "Prims.l_imp", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.Seq.Base.slice", "Prims.op_Addition", "FStar.UInt32.sub", "LowStar.Monotonic.Buffer.len", "Prims.int", "Prims.op_Subtraction", "FStar.Seq.Properties.replace_subseq", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.mgsub" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val offset : b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a))
[]
LowStar.Buffer.offset
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack (LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a))
{ "end_col": 121, "end_line": 52, "start_col": 46, "start_line": 52 }
Prims.Tot
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len
let lbuffer (a: Type0) (len: nat) =
false
null
false
lmbuffer a (trivial_preorder a) (trivial_preorder a) len
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[ "total" ]
[ "Prims.nat", "LowStar.Monotonic.Buffer.lmbuffer", "LowStar.Buffer.trivial_preorder" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a)
false
true
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val lbuffer : a: Type0 -> len: Prims.nat -> Type0
[]
LowStar.Buffer.lbuffer
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
a: Type0 -> len: Prims.nat -> Type0
{ "end_col": 97, "end_line": 54, "start_col": 41, "start_line": 54 }
FStar.HyperStack.ST.ST
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let gcmalloc (#a:Type0) = mgcmalloc #a #(trivial_preorder a)
let gcmalloc (#a: Type0) =
true
null
false
mgcmalloc #a #(trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.mgcmalloc", "LowStar.Buffer.trivial_preorder", "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.UInt32.v", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Monotonic.Buffer.frameOf", "LowStar.Monotonic.Buffer.recallable", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.is_eternal_region", "Prims.op_GreaterThan", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.unused_in", "FStar.Set.equal", "FStar.Map.domain", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.HyperStack.get_hmap", "FStar.Monotonic.HyperStack.get_tip", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_none", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "FStar.Seq.Base.create" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val gcmalloc : r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.UInt32.v len /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) }) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallable b})
[]
LowStar.Buffer.gcmalloc
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.UInt32.v len /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) }) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallable b})
{ "end_col": 82, "end_line": 56, "start_col": 48, "start_line": 56 }
FStar.HyperStack.ST.ST
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let malloc (#a:Type0) = mmalloc #a #(trivial_preorder a)
let malloc (#a: Type0) =
true
null
false
mmalloc #a #(trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.mmalloc", "LowStar.Buffer.trivial_preorder", "FStar.Monotonic.HyperHeap.rid", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.UInt32.v", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Monotonic.Buffer.frameOf", "LowStar.Monotonic.Buffer.freeable", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.is_eternal_region", "Prims.op_GreaterThan", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.unused_in", "FStar.Set.equal", "FStar.Map.domain", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.HyperStack.get_hmap", "FStar.Monotonic.HyperStack.get_tip", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_none", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "FStar.Seq.Base.create" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len inline_for_extraction let gcmalloc (#a:Type0) = mgcmalloc #a #(trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val malloc : r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.UInt32.v len /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) }) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.freeable b})
[]
LowStar.Buffer.malloc
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.ST (b: (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.UInt32.v len /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) }) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.freeable b})
{ "end_col": 78, "end_line": 58, "start_col": 46, "start_line": 58 }
FStar.HyperStack.ST.StackInline
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let alloca (#a:Type0) = malloca #a #(trivial_preorder a)
let alloca (#a: Type0) =
true
null
false
malloca #a #(trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.malloca", "LowStar.Buffer.trivial_preorder", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.UInt32.v", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "FStar.Monotonic.HyperStack.mem", "Prims.op_GreaterThan", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.unused_in", "FStar.Set.equal", "FStar.Monotonic.HyperHeap.rid", "FStar.Map.domain", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.HyperStack.get_hmap", "FStar.Monotonic.HyperStack.get_tip", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_none", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "FStar.Seq.Base.create", "LowStar.Monotonic.Buffer.frameOf" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len inline_for_extraction let gcmalloc (#a:Type0) = mgcmalloc #a #(trivial_preorder a) inline_for_extraction let malloc (#a:Type0) = mmalloc #a #(trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val alloca : init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.StackInline (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.UInt32.v len /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) })
[]
LowStar.Buffer.alloca
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
init: a -> len: FStar.UInt32.t -> FStar.HyperStack.ST.StackInline (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.UInt32.v len /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) })
{ "end_col": 78, "end_line": 60, "start_col": 46, "start_line": 60 }
FStar.HyperStack.ST.StackInline
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let alloca_of_list (#a:Type0) = malloca_of_list #a #(trivial_preorder a)
let alloca_of_list (#a: Type0) =
true
null
false
malloca_of_list #a #(trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.malloca_of_list", "LowStar.Buffer.trivial_preorder", "Prims.list", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "FStar.Monotonic.HyperStack.mem", "FStar.Pervasives.normalize", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "FStar.UInt.max_int", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.unused_in", "FStar.Set.equal", "FStar.Monotonic.HyperHeap.rid", "FStar.Map.domain", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.HyperStack.get_hmap", "FStar.Monotonic.HyperStack.get_tip", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_none", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "FStar.Seq.Properties.seq_of_list", "LowStar.Monotonic.Buffer.frameOf" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len inline_for_extraction let gcmalloc (#a:Type0) = mgcmalloc #a #(trivial_preorder a) inline_for_extraction let malloc (#a:Type0) = mmalloc #a #(trivial_preorder a) inline_for_extraction let alloca (#a:Type0) = malloca #a #(trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val alloca_of_list : init: Prims.list a -> FStar.HyperStack.ST.StackInline (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init) /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) })
[]
LowStar.Buffer.alloca_of_list
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
init: Prims.list a -> FStar.HyperStack.ST.StackInline (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init) /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) })
{ "end_col": 94, "end_line": 62, "start_col": 54, "start_line": 62 }
FStar.HyperStack.ST.ST
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let gcmalloc_of_list (#a:Type0) = mgcmalloc_of_list #a #(trivial_preorder a)
let gcmalloc_of_list (#a: Type0) =
true
null
false
mgcmalloc_of_list #a #(trivial_preorder a)
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[]
[ "LowStar.Monotonic.Buffer.mgcmalloc_of_list", "LowStar.Buffer.trivial_preorder", "FStar.Monotonic.HyperHeap.rid", "Prims.list", "LowStar.Monotonic.Buffer.mbuffer", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length", "Prims.b2t", "Prims.op_Negation", "LowStar.Monotonic.Buffer.g_is_null", "LowStar.Monotonic.Buffer.frameOf", "LowStar.Monotonic.Buffer.recallable", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.is_eternal_region", "FStar.Pervasives.normalize", "Prims.op_LessThanOrEqual", "FStar.UInt.max_int", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.unused_in", "FStar.Set.equal", "FStar.Map.domain", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.HyperStack.get_hmap", "FStar.Monotonic.HyperStack.get_tip", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_none", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "FStar.Seq.Properties.seq_of_list" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len inline_for_extraction let gcmalloc (#a:Type0) = mgcmalloc #a #(trivial_preorder a) inline_for_extraction let malloc (#a:Type0) = mmalloc #a #(trivial_preorder a) inline_for_extraction let alloca (#a:Type0) = malloca #a #(trivial_preorder a) inline_for_extraction let alloca_of_list (#a:Type0) = malloca_of_list #a #(trivial_preorder a)
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val gcmalloc_of_list : r: FStar.Monotonic.HyperHeap.rid -> init: Prims.list a -> FStar.HyperStack.ST.ST (b: (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init) /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) }) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallable b})
[]
LowStar.Buffer.gcmalloc_of_list
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
r: FStar.Monotonic.HyperHeap.rid -> init: Prims.list a -> FStar.HyperStack.ST.ST (b: (b: LowStar.Monotonic.Buffer.mbuffer a (LowStar.Buffer.trivial_preorder a) (LowStar.Buffer.trivial_preorder a) { LowStar.Monotonic.Buffer.length b == FStar.Pervasives.normalize_term (FStar.List.Tot.Base.length init) /\ Prims.op_Negation (LowStar.Monotonic.Buffer.g_is_null b) }) {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallable b})
{ "end_col": 98, "end_line": 64, "start_col": 56, "start_line": 64 }
Prims.Tot
val trivial_preorder (a: Type0) : srel a
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let trivial_preorder (a:Type0) :srel a = fun _ _ -> True
val trivial_preorder (a: Type0) : srel a let trivial_preorder (a: Type0) : srel a =
false
null
false
fun _ _ -> True
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[ "total" ]
[ "FStar.Seq.Base.seq", "Prims.l_True", "Prims.logical", "LowStar.Monotonic.Buffer.srel" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val trivial_preorder (a: Type0) : srel a
[]
LowStar.Buffer.trivial_preorder
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
a: Type0 -> LowStar.Monotonic.Buffer.srel a
{ "end_col": 56, "end_line": 33, "start_col": 41, "start_line": 33 }
Prims.Tot
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let assign_list_t #a (l: list a) = (b: buffer a) -> HST.Stack unit (requires (fun h0 -> live h0 b /\ length b = L.length l)) (ensures (fun h0 _ h1 -> live h1 b /\ (modifies (loc_buffer b) h0 h1) /\ as_seq h1 b == Seq.seq_of_list l))
let assign_list_t #a (l: list a) =
false
null
false
b: buffer a -> HST.Stack unit (requires (fun h0 -> live h0 b /\ length b = L.length l)) (ensures (fun h0 _ h1 -> live h1 b /\ (modifies (loc_buffer b) h0 h1) /\ as_seq h1 b == Seq.seq_of_list l))
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[ "total" ]
[ "Prims.list", "LowStar.Buffer.buffer", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "LowStar.Buffer.trivial_preorder", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.List.Tot.Base.length", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_buffer", "Prims.eq2", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "FStar.Seq.Properties.seq_of_list" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len inline_for_extraction let gcmalloc (#a:Type0) = mgcmalloc #a #(trivial_preorder a) inline_for_extraction let malloc (#a:Type0) = mmalloc #a #(trivial_preorder a) inline_for_extraction let alloca (#a:Type0) = malloca #a #(trivial_preorder a) inline_for_extraction let alloca_of_list (#a:Type0) = malloca_of_list #a #(trivial_preorder a) inline_for_extraction let gcmalloc_of_list (#a:Type0) = mgcmalloc_of_list #a #(trivial_preorder a) module L = FStar.List.Tot
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val assign_list_t : l: Prims.list a -> Type0
[]
LowStar.Buffer.assign_list_t
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
l: Prims.list a -> Type0
{ "end_col": 38, "end_line": 76, "start_col": 35, "start_line": 69 }
Prims.Tot
val assign_list (#a: _) (l: list a) : assign_list_t l
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "abbrev": false, "full_module": "LowStar", "short_module": null }, { "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 } ]
false
let rec assign_list #a (l: list a): assign_list_t l = fun b -> Seq.lemma_seq_of_list_induction l; match l with | [] -> let h = HST.get () in assert (length b = 0); assert (Seq.length (as_seq h b) = 0); assert (Seq.equal (as_seq h b) (Seq.empty #a)); assert (Seq.seq_of_list [] `Seq.equal` Seq.empty #a) | hd :: tl -> let b_hd = sub b 0ul 1ul in let b_tl = offset b 1ul in let h = HST.get () in upd b_hd 0ul hd; let h0 = HST.get () in assign_list tl b_tl; let h1 = HST.get () in assert (as_seq h1 b_hd == as_seq h0 b_hd); assert (get h1 b_hd 0 == hd); assert (as_seq h1 b_tl == Seq.seq_of_list tl); assert (Seq.equal (as_seq h1 b) (Seq.append (as_seq h1 b_hd) (as_seq h1 b_tl))); assert ((Seq.seq_of_list l) == (Seq.cons hd (Seq.seq_of_list tl)))
val assign_list (#a: _) (l: list a) : assign_list_t l let rec assign_list #a (l: list a) : assign_list_t l =
false
null
false
fun b -> Seq.lemma_seq_of_list_induction l; match l with | [] -> let h = HST.get () in assert (length b = 0); assert (Seq.length (as_seq h b) = 0); assert (Seq.equal (as_seq h b) (Seq.empty #a)); assert ((Seq.seq_of_list []) `Seq.equal` (Seq.empty #a)) | hd :: tl -> let b_hd = sub b 0ul 1ul in let b_tl = offset b 1ul in let h = HST.get () in upd b_hd 0ul hd; let h0 = HST.get () in assign_list tl b_tl; let h1 = HST.get () in assert (as_seq h1 b_hd == as_seq h0 b_hd); assert (get h1 b_hd 0 == hd); assert (as_seq h1 b_tl == Seq.seq_of_list tl); assert (Seq.equal (as_seq h1 b) (Seq.append (as_seq h1 b_hd) (as_seq h1 b_tl))); assert ((Seq.seq_of_list l) == (Seq.cons hd (Seq.seq_of_list tl)))
{ "checked_file": "LowStar.Buffer.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "LowStar.Buffer.fst" }
[ "total" ]
[ "Prims.list", "LowStar.Buffer.buffer", "Prims._assert", "FStar.Seq.Base.equal", "FStar.Seq.Properties.seq_of_list", "Prims.Nil", "FStar.Seq.Base.empty", "Prims.unit", "LowStar.Monotonic.Buffer.as_seq", "LowStar.Buffer.trivial_preorder", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "LowStar.Monotonic.Buffer.length", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "Prims.eq2", "FStar.Seq.Base.seq", "FStar.Seq.Properties.cons", "FStar.Seq.Base.append", "LowStar.Monotonic.Buffer.get", "LowStar.Buffer.assign_list", "LowStar.Monotonic.Buffer.upd", "FStar.UInt32.__uint_to_t", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.offset", "LowStar.Buffer.sub", "FStar.Ghost.hide", "FStar.UInt32.t", "FStar.Seq.Properties.lemma_seq_of_list_induction" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module LowStar.Buffer include LowStar.Monotonic.Buffer module P = FStar.Preorder module G = FStar.Ghost module U32 = FStar.UInt32 module Seq = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST (* * Wrapper over LowStar.Monotonic.Buffer, with trivial preorders * -- functions that take explicit preorder as arguments (e.g. sub etc.) * -- these include allocation functions also *) let trivial_preorder (a:Type0) :srel a = fun _ _ -> True type buffer (a:Type0) = mbuffer a (trivial_preorder a) (trivial_preorder a) unfold let null (#a:Type0) :buffer a = mnull #a #(trivial_preorder a) #(trivial_preorder a) unfold let gsub (#a:Type0) = mgsub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let gsub_inj (#a:Type0) = mgsub_inj #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) (trivial_preorder a) [@@unifier_hint_injective] inline_for_extraction type pointer (a:Type0) = b:buffer a{length b == 1} inline_for_extraction type pointer_or_null (a:Type0) = b:buffer a{if g_is_null b then True else length b == 1} inline_for_extraction let sub (#a:Type0) = msub #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) inline_for_extraction let offset (#a:Type0) = moffset #a #(trivial_preorder a) #(trivial_preorder a) (trivial_preorder a) unfold let lbuffer (a:Type0) (len:nat) = lmbuffer a (trivial_preorder a) (trivial_preorder a) len inline_for_extraction let gcmalloc (#a:Type0) = mgcmalloc #a #(trivial_preorder a) inline_for_extraction let malloc (#a:Type0) = mmalloc #a #(trivial_preorder a) inline_for_extraction let alloca (#a:Type0) = malloca #a #(trivial_preorder a) inline_for_extraction let alloca_of_list (#a:Type0) = malloca_of_list #a #(trivial_preorder a) inline_for_extraction let gcmalloc_of_list (#a:Type0) = mgcmalloc_of_list #a #(trivial_preorder a) module L = FStar.List.Tot unfold let assign_list_t #a (l: list a) = (b: buffer a) -> HST.Stack unit (requires (fun h0 -> live h0 b /\ length b = L.length l)) (ensures (fun h0 _ h1 -> live h1 b /\ (modifies (loc_buffer b) h0 h1) /\ as_seq h1 b == Seq.seq_of_list l))
false
false
LowStar.Buffer.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val assign_list (#a: _) (l: list a) : assign_list_t l
[ "recursion" ]
LowStar.Buffer.assign_list
{ "file_name": "ulib/LowStar.Buffer.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
l: Prims.list a -> LowStar.Buffer.assign_list_t l
{ "end_col": 72, "end_line": 100, "start_col": 2, "start_line": 79 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Curve25519.Fast_defs", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let u512 = b:B.buffer UInt64.t{B.length b == 8}
let u512 =
false
null
false
b: B.buffer UInt64.t {B.length b == 8}
{ "checked_file": "Vale.Wrapper.X64.Fadd.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Curve25519.Fast_defs.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.Fadd.fsti" }
[ "total" ]
[ "LowStar.Buffer.buffer", "FStar.UInt64.t", "Prims.eq2", "Prims.int", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder" ]
[]
module Vale.Wrapper.X64.Fadd open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack open Vale.Curve25519.Fast_defs open FStar.Mul unfold let u256 = b:B.buffer UInt64.t{B.length b == 4}
false
true
Vale.Wrapper.X64.Fadd.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val u512 : Type0
[]
Vale.Wrapper.X64.Fadd.u512
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Fadd.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 47, "end_line": 13, "start_col": 11, "start_line": 13 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Curve25519.Fast_defs", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let u256 = b:B.buffer UInt64.t{B.length b == 4}
let u256 =
false
null
false
b: B.buffer UInt64.t {B.length b == 4}
{ "checked_file": "Vale.Wrapper.X64.Fadd.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Curve25519.Fast_defs.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.Fadd.fsti" }
[ "total" ]
[ "LowStar.Buffer.buffer", "FStar.UInt64.t", "Prims.eq2", "Prims.int", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder" ]
[]
module Vale.Wrapper.X64.Fadd open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack open Vale.Curve25519.Fast_defs open FStar.Mul
false
true
Vale.Wrapper.X64.Fadd.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val u256 : Type0
[]
Vale.Wrapper.X64.Fadd.u256
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Fadd.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 47, "end_line": 11, "start_col": 11, "start_line": 11 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Curve25519.Fast_defs", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let u1024 = b:B.buffer UInt64.t{B.length b == 16}
let u1024 =
false
null
false
b: B.buffer UInt64.t {B.length b == 16}
{ "checked_file": "Vale.Wrapper.X64.Fadd.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Curve25519.Fast_defs.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.Fadd.fsti" }
[ "total" ]
[ "LowStar.Buffer.buffer", "FStar.UInt64.t", "Prims.eq2", "Prims.int", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder" ]
[]
module Vale.Wrapper.X64.Fadd open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack open Vale.Curve25519.Fast_defs open FStar.Mul unfold let u256 = b:B.buffer UInt64.t{B.length b == 4} unfold let u512 = b:B.buffer UInt64.t{B.length b == 8}
false
true
Vale.Wrapper.X64.Fadd.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val u1024 : Type0
[]
Vale.Wrapper.X64.Fadd.u1024
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Fadd.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 49, "end_line": 15, "start_col": 12, "start_line": 15 }
Prims.GTot
val as_nat (b: B.buffer UInt64.t {B.length b == 4}) (h: HS.mem) : GTot nat
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Curve25519.Fast_defs", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let as_nat (b:B.buffer UInt64.t{B.length b == 4}) (h:HS.mem) : GTot nat = let s = B.as_seq h b in let s0 = UInt64.v (Seq.index s 0) in let s1 = UInt64.v (Seq.index s 1) in let s2 = UInt64.v (Seq.index s 2) in let s3 = UInt64.v (Seq.index s 3) in pow2_four s0 s1 s2 s3
val as_nat (b: B.buffer UInt64.t {B.length b == 4}) (h: HS.mem) : GTot nat let as_nat (b: B.buffer UInt64.t {B.length b == 4}) (h: HS.mem) : GTot nat =
false
null
false
let s = B.as_seq h b in let s0 = UInt64.v (Seq.index s 0) in let s1 = UInt64.v (Seq.index s 1) in let s2 = UInt64.v (Seq.index s 2) in let s3 = UInt64.v (Seq.index s 3) in pow2_four s0 s1 s2 s3
{ "checked_file": "Vale.Wrapper.X64.Fadd.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Curve25519.Fast_defs.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.Fadd.fsti" }
[ "sometrivial" ]
[ "LowStar.Buffer.buffer", "FStar.UInt64.t", "Prims.eq2", "Prims.int", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder", "FStar.Monotonic.HyperStack.mem", "Vale.Curve25519.Fast_defs.pow2_four", "FStar.UInt.uint_t", "FStar.UInt64.v", "FStar.Seq.Base.index", "FStar.Seq.Base.seq", "LowStar.Monotonic.Buffer.as_seq", "Prims.nat" ]
[]
module Vale.Wrapper.X64.Fadd open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack open Vale.Curve25519.Fast_defs open FStar.Mul unfold let u256 = b:B.buffer UInt64.t{B.length b == 4} unfold let u512 = b:B.buffer UInt64.t{B.length b == 8} unfold let u1024 = b:B.buffer UInt64.t{B.length b == 16}
false
false
Vale.Wrapper.X64.Fadd.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val as_nat (b: B.buffer UInt64.t {B.length b == 4}) (h: HS.mem) : GTot nat
[]
Vale.Wrapper.X64.Fadd.as_nat
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Fadd.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: LowStar.Buffer.buffer FStar.UInt64.t {LowStar.Monotonic.Buffer.length b == 4} -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot Prims.nat
{ "end_col": 23, "end_line": 23, "start_col": 73, "start_line": 17 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "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 } ]
false
let op_Star = Prims.op_Multiply
let op_Star =
false
null
false
Prims.op_Multiply
{ "checked_file": "FStar.Mul.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Mul.fst" }
[ "total" ]
[ "Prims.op_Multiply" ]
[]
(* 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *) module FStar.Mul //If we're not doing anything with tuples,
false
true
FStar.Mul.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val op_Star : _: Prims.int -> _: Prims.int -> Prims.int
[]
FStar.Mul.op_Star
{ "file_name": "ulib/FStar.Mul.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
_: Prims.int -> _: Prims.int -> Prims.int
{ "end_col": 38, "end_line": 19, "start_col": 21, "start_line": 19 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point51 = lbuffer uint64 10ul
let point51 =
false
null
false
lbuffer uint64 10ul
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "total" ]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *)
false
true
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point51 : Type0
[]
Hacl.Impl.Curve25519.AddAndDouble.point51
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 33, "end_line": 28, "start_col": 14, "start_line": 28 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point64 = lbuffer uint64 8ul
let point64 =
false
null
false
lbuffer uint64 8ul
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "total" ]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul
false
true
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point64 : Type0
[]
Hacl.Impl.Curve25519.AddAndDouble.point64
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 32, "end_line": 30, "start_col": 14, "start_line": 30 }
Prims.GTot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let fget_xz (#s:field_spec) (h:mem) (p:point s) = fget_x h p, fget_z h p
let fget_xz (#s: field_spec) (h: mem) (p: point s) =
false
null
false
fget_x h p, fget_z h p
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "sometrivial" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Curve25519.AddAndDouble.point", "FStar.Pervasives.Native.Mktuple2", "Spec.Curve25519.elem", "Hacl.Impl.Curve25519.AddAndDouble.fget_x", "Hacl.Impl.Curve25519.AddAndDouble.fget_z", "FStar.Pervasives.Native.tuple2" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s) let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s))
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val fget_xz : h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot (Spec.Curve25519.elem * Spec.Curve25519.elem)
[]
Hacl.Impl.Curve25519.AddAndDouble.fget_xz
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot (Spec.Curve25519.elem * Spec.Curve25519.elem)
{ "end_col": 72, "end_line": 38, "start_col": 50, "start_line": 38 }
Prims.Tot
val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point_post_sub_t #s h f = match s with | M51 -> F51.felem_fits h f (9, 10, 9, 9, 9) | M64 -> True
val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_sub_t #s h f =
false
null
false
match s with | M51 -> F51.felem_fits h f (9, 10, 9, 9, 9) | M64 -> True
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "total" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Curve25519.Fields.Core.felem", "Hacl.Impl.Curve25519.Field51.felem_fits", "FStar.Pervasives.Native.Mktuple5", "Prims.nat", "Prims.l_True" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s) let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s)) let fget_z (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p (nlimb s) (nlimb s)) let fget_xz (#s:field_spec) (h:mem) (p:point s) = fget_x h p, fget_z h p val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0
[]
Hacl.Impl.Curve25519.AddAndDouble.point_post_sub_t
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: FStar.Monotonic.HyperStack.mem -> f: Hacl.Impl.Curve25519.Fields.Core.felem s -> Type0
{ "end_col": 15, "end_line": 44, "start_col": 2, "start_line": 42 }
Prims.Tot
val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point_post_add_t #s h f = match s with | M51 -> F51.felem_fits h f (2, 4, 2, 2, 2) | M64 -> True
val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_add_t #s h f =
false
null
false
match s with | M51 -> F51.felem_fits h f (2, 4, 2, 2, 2) | M64 -> True
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "total" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Curve25519.Fields.Core.felem", "Hacl.Impl.Curve25519.Field51.felem_fits", "FStar.Pervasives.Native.Mktuple5", "Prims.nat", "Prims.l_True" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s) let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s)) let fget_z (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p (nlimb s) (nlimb s)) let fget_xz (#s:field_spec) (h:mem) (p:point s) = fget_x h p, fget_z h p val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_sub_t #s h f = match s with | M51 -> F51.felem_fits h f (9, 10, 9, 9, 9) | M64 -> True val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0
[]
Hacl.Impl.Curve25519.AddAndDouble.point_post_add_t
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: FStar.Monotonic.HyperStack.mem -> f: Hacl.Impl.Curve25519.Fields.Core.felem s -> Type0
{ "end_col": 15, "end_line": 50, "start_col": 2, "start_line": 48 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s)
let point (s: field_spec) =
false
null
false
lbuffer (limb s) (nlimb s +! nlimb s)
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "total" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Curve25519.Fields.Core.nlimb" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options"
false
true
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point : s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> Type0
[]
Hacl.Impl.Curve25519.AddAndDouble.point
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> Type0
{ "end_col": 64, "end_line": 24, "start_col": 27, "start_line": 24 }
Prims.GTot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s)
let get_z #s (p: point s) =
false
null
false
gsub p (nlimb s) (nlimb s)
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "sometrivial" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.gsub", "Lib.Buffer.MUT", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Lib.Buffer.lbuffer_t" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *)
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val get_z : p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot (Lib.Buffer.lbuffer_t Lib.Buffer.MUT (Hacl.Impl.Curve25519.Fields.Core.limb s) (Hacl.Impl.Curve25519.Fields.Core.nlimb s))
[]
Hacl.Impl.Curve25519.AddAndDouble.get_z
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot (Lib.Buffer.lbuffer_t Lib.Buffer.MUT (Hacl.Impl.Curve25519.Fields.Core.limb s) (Hacl.Impl.Curve25519.Fields.Core.nlimb s))
{ "end_col": 53, "end_line": 34, "start_col": 27, "start_line": 34 }
Prims.GTot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let get_x #s (p:point s) = gsub p 0ul (nlimb s)
let get_x #s (p: point s) =
false
null
false
gsub p 0ul (nlimb s)
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "sometrivial" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.gsub", "Lib.Buffer.MUT", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "FStar.UInt32.__uint_to_t", "Lib.Buffer.lbuffer_t" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *)
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val get_x : p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot (Lib.Buffer.lbuffer_t Lib.Buffer.MUT (Hacl.Impl.Curve25519.Fields.Core.limb s) (Hacl.Impl.Curve25519.Fields.Core.nlimb s))
[]
Hacl.Impl.Curve25519.AddAndDouble.get_x
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot (Lib.Buffer.lbuffer_t Lib.Buffer.MUT (Hacl.Impl.Curve25519.Fields.Core.limb s) (Hacl.Impl.Curve25519.Fields.Core.nlimb s))
{ "end_col": 47, "end_line": 33, "start_col": 27, "start_line": 33 }
Prims.GTot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let fget_z (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p (nlimb s) (nlimb s))
let fget_z (#s: field_spec) (h: mem) (p: point s) =
false
null
false
feval h (gsub p (nlimb s) (nlimb s))
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "sometrivial" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Curve25519.AddAndDouble.point", "Hacl.Impl.Curve25519.Fields.Core.feval", "Lib.Buffer.gsub", "Lib.Buffer.MUT", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Spec.Curve25519.elem" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s)
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val fget_z : h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot Spec.Curve25519.elem
[]
Hacl.Impl.Curve25519.AddAndDouble.fget_z
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot Spec.Curve25519.elem
{ "end_col": 85, "end_line": 37, "start_col": 49, "start_line": 37 }
Prims.GTot
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s))
let fget_x (#s: field_spec) (h: mem) (p: point s) =
false
null
false
feval h (gsub p 0ul (nlimb s))
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[ "sometrivial" ]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Curve25519.AddAndDouble.point", "Hacl.Impl.Curve25519.Fields.Core.feval", "Lib.Buffer.gsub", "Lib.Buffer.MUT", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "FStar.UInt32.__uint_to_t", "Spec.Curve25519.elem" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s)
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val fget_x : h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot Spec.Curve25519.elem
[]
Hacl.Impl.Curve25519.AddAndDouble.fget_x
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Curve25519.AddAndDouble.point s -> Prims.GTot Spec.Curve25519.elem
{ "end_col": 79, "end_line": 36, "start_col": 49, "start_line": 36 }
FStar.HyperStack.ST.Stack
val point_add_and_double0: #s:field_spec -> nq_p1:point s -> ab:lbuffer (limb s) (2ul *! nlimb s) -> dc:lbuffer (limb s) (2ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq_p1 /\ live h0 ab /\ live h0 dc /\ live h0 tmp2 /\ disjoint nq_p1 ab /\ disjoint nq_p1 dc /\ disjoint nq_p1 tmp2 /\ disjoint ab dc /\ disjoint ab tmp2 /\ disjoint dc tmp2 /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1) /\ point_post_add_t h0 (gsub ab 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub ab (nlimb s) (nlimb s))) (ensures fun h0 _ h1 -> modifies (loc nq_p1 |+| loc dc |+| loc tmp2) h0 h1 /\ point_post_add_t h1 (get_x nq_p1) /\ point_post_sub_t h1 (get_z nq_p1) /\ fget_xz h1 nq_p1 == S.add_and_double1_0 (fget_x h0 ab) (fget_z h0 ab) (fget_xz h0 nq_p1))
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point_add_and_double0 #s nq_p1 ab dc tmp2 = let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub ab 0ul (nlimb s) in let b : felem s = sub ab (nlimb s) (nlimb s) in let d : felem s = sub dc 0ul (nlimb s) in let c : felem s = sub dc (nlimb s) (nlimb s) in fadd c x3 z3; // c = x3 + z3 fsub d x3 z3; // d = x3 - z3 (* CAN RUN IN PARALLEL *) //fmul d d a; // d = da = d * a //fmul c c b; // c = cb = c * b fmul2 dc dc ab tmp2; // d|c = d*a|c*b fadd x3 d c; // x3 = da + cb fsub z3 d c
val point_add_and_double0: #s:field_spec -> nq_p1:point s -> ab:lbuffer (limb s) (2ul *! nlimb s) -> dc:lbuffer (limb s) (2ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq_p1 /\ live h0 ab /\ live h0 dc /\ live h0 tmp2 /\ disjoint nq_p1 ab /\ disjoint nq_p1 dc /\ disjoint nq_p1 tmp2 /\ disjoint ab dc /\ disjoint ab tmp2 /\ disjoint dc tmp2 /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1) /\ point_post_add_t h0 (gsub ab 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub ab (nlimb s) (nlimb s))) (ensures fun h0 _ h1 -> modifies (loc nq_p1 |+| loc dc |+| loc tmp2) h0 h1 /\ point_post_add_t h1 (get_x nq_p1) /\ point_post_sub_t h1 (get_z nq_p1) /\ fget_xz h1 nq_p1 == S.add_and_double1_0 (fget_x h0 ab) (fget_z h0 ab) (fget_xz h0 nq_p1)) let point_add_and_double0 #s nq_p1 ab dc tmp2 =
true
null
false
let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a:felem s = sub ab 0ul (nlimb s) in let b:felem s = sub ab (nlimb s) (nlimb s) in let d:felem s = sub dc 0ul (nlimb s) in let c:felem s = sub dc (nlimb s) (nlimb s) in fadd c x3 z3; fsub d x3 z3; fmul2 dc dc ab tmp2; fadd x3 d c; fsub z3 d c
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Hacl.Impl.Curve25519.Fields.Core.felem_wide2", "Hacl.Impl.Curve25519.Fields.Core.fsub", "Prims.unit", "Hacl.Impl.Curve25519.Fields.Core.fadd", "Hacl.Impl.Curve25519.Fields.Core.fmul2", "Hacl.Impl.Curve25519.Fields.Core.felem", "Lib.Buffer.sub", "Lib.Buffer.MUT", "Lib.Buffer.lbuffer_t", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.uint_to_t", "FStar.UInt32.t", "Lib.IntTypes.op_Plus_Bang" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s) let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s)) let fget_z (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p (nlimb s) (nlimb s)) let fget_xz (#s:field_spec) (h:mem) (p:point s) = fget_x h p, fget_z h p val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_sub_t #s h f = match s with | M51 -> F51.felem_fits h f (9, 10, 9, 9, 9) | M64 -> True val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_add_t #s h f = match s with | M51 -> F51.felem_fits h f (2, 4, 2, 2, 2) | M64 -> True val point_add_and_double0: #s:field_spec -> nq_p1:point s -> ab:lbuffer (limb s) (2ul *! nlimb s) -> dc:lbuffer (limb s) (2ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq_p1 /\ live h0 ab /\ live h0 dc /\ live h0 tmp2 /\ disjoint nq_p1 ab /\ disjoint nq_p1 dc /\ disjoint nq_p1 tmp2 /\ disjoint ab dc /\ disjoint ab tmp2 /\ disjoint dc tmp2 /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1) /\ point_post_add_t h0 (gsub ab 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub ab (nlimb s) (nlimb s))) (ensures fun h0 _ h1 -> modifies (loc nq_p1 |+| loc dc |+| loc tmp2) h0 h1 /\ point_post_add_t h1 (get_x nq_p1) /\ point_post_sub_t h1 (get_z nq_p1) /\ fget_xz h1 nq_p1 == S.add_and_double1_0 (fget_x h0 ab) (fget_z h0 ab) (fget_xz h0 nq_p1))
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point_add_and_double0: #s:field_spec -> nq_p1:point s -> ab:lbuffer (limb s) (2ul *! nlimb s) -> dc:lbuffer (limb s) (2ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq_p1 /\ live h0 ab /\ live h0 dc /\ live h0 tmp2 /\ disjoint nq_p1 ab /\ disjoint nq_p1 dc /\ disjoint nq_p1 tmp2 /\ disjoint ab dc /\ disjoint ab tmp2 /\ disjoint dc tmp2 /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1) /\ point_post_add_t h0 (gsub ab 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub ab (nlimb s) (nlimb s))) (ensures fun h0 _ h1 -> modifies (loc nq_p1 |+| loc dc |+| loc tmp2) h0 h1 /\ point_post_add_t h1 (get_x nq_p1) /\ point_post_sub_t h1 (get_z nq_p1) /\ fget_xz h1 nq_p1 == S.add_and_double1_0 (fget_x h0 ab) (fget_z h0 ab) (fget_xz h0 nq_p1))
[]
Hacl.Impl.Curve25519.AddAndDouble.point_add_and_double0
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
nq_p1: Hacl.Impl.Curve25519.AddAndDouble.point s -> ab: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (2ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> dc: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (2ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> tmp2: Hacl.Impl.Curve25519.Fields.Core.felem_wide2 s -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 13, "end_line": 87, "start_col": 47, "start_line": 71 }
FStar.HyperStack.ST.Stack
val point_double: #s:field_spec -> nq:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ fget_xz h1 nq == P.double (fget_xz h0 nq))
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point_double #s nq tmp1 tmp2 = let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let d : felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c : felem s = sub tmp1 (3ul *! nlimb s) (nlimb s) in let ab : felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc : felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in let h0 = ST.get () in assert (gsub nq 0ul (nlimb s) == x2); assert (gsub nq (nlimb s) (nlimb s) == z2); assert (gsub ab 0ul (nlimb s) == a); assert (gsub ab (nlimb s) (nlimb s) == b); assert (gsub dc 0ul (nlimb s) == d); assert (gsub dc (nlimb s) (nlimb s) == c); fadd a x2 z2; // a = x2 + z2 fsub b x2 z2; // b = x2 - z2 (* CAN RUN IN PARALLEL *) //fsqr d a; // d = aa = a^2 //fsqr c b; // c = bb = b^2 fsqr2 dc ab tmp2; // d|c = aa | bb copy_felem a c; // a = bb fsub c d c; // c = e = aa - bb assert_norm (121665 < pow2 17); fmul1 b c (u64 121665); // b = e * 121665 fadd b b d; // b = (e * 121665) + aa (* CAN RUN IN PARALLEL *) //fmul x2 d a; // x2 = aa * bb //fmul z2 c b; // z2 = e * (aa + (e * 121665)) fmul2 nq dc ab tmp2
val point_double: #s:field_spec -> nq:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ fget_xz h1 nq == P.double (fget_xz h0 nq)) let point_double #s nq tmp1 tmp2 =
true
null
false
let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let a:felem s = sub tmp1 0ul (nlimb s) in let b:felem s = sub tmp1 (nlimb s) (nlimb s) in let d:felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c:felem s = sub tmp1 (3ul *! nlimb s) (nlimb s) in let ab:felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc:felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in let h0 = ST.get () in assert (gsub nq 0ul (nlimb s) == x2); assert (gsub nq (nlimb s) (nlimb s) == z2); assert (gsub ab 0ul (nlimb s) == a); assert (gsub ab (nlimb s) (nlimb s) == b); assert (gsub dc 0ul (nlimb s) == d); assert (gsub dc (nlimb s) (nlimb s) == c); fadd a x2 z2; fsub b x2 z2; fsqr2 dc ab tmp2; copy_felem a c; fsub c d c; assert_norm (121665 < pow2 17); fmul1 b c (u64 121665); fadd b b d; fmul2 nq dc ab tmp2
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Hacl.Impl.Curve25519.Fields.Core.felem_wide2", "Hacl.Impl.Curve25519.Fields.Core.fmul2", "Prims.unit", "Hacl.Impl.Curve25519.Fields.Core.fadd", "Hacl.Impl.Curve25519.Fields.Core.fmul1", "Lib.IntTypes.u64", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Hacl.Impl.Curve25519.Fields.Core.fsub", "Hacl.Impl.Curve25519.Fields.copy_felem", "Hacl.Impl.Curve25519.Fields.Core.fsqr2", "Prims._assert", "Prims.eq2", "Lib.Buffer.lbuffer_t", "Lib.Buffer.MUT", "Lib.Buffer.gsub", "Lib.IntTypes.op_Plus_Dot", "Lib.IntTypes.op_Plus_Bang", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "Hacl.Impl.Curve25519.Fields.Core.felem2", "Lib.Buffer.sub", "Hacl.Impl.Curve25519.Fields.Core.felem", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.uint_to_t", "FStar.UInt32.t" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s) let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s)) let fget_z (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p (nlimb s) (nlimb s)) let fget_xz (#s:field_spec) (h:mem) (p:point s) = fget_x h p, fget_z h p val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_sub_t #s h f = match s with | M51 -> F51.felem_fits h f (9, 10, 9, 9, 9) | M64 -> True val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_add_t #s h f = match s with | M51 -> F51.felem_fits h f (2, 4, 2, 2, 2) | M64 -> True val point_add_and_double0: #s:field_spec -> nq_p1:point s -> ab:lbuffer (limb s) (2ul *! nlimb s) -> dc:lbuffer (limb s) (2ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq_p1 /\ live h0 ab /\ live h0 dc /\ live h0 tmp2 /\ disjoint nq_p1 ab /\ disjoint nq_p1 dc /\ disjoint nq_p1 tmp2 /\ disjoint ab dc /\ disjoint ab tmp2 /\ disjoint dc tmp2 /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1) /\ point_post_add_t h0 (gsub ab 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub ab (nlimb s) (nlimb s))) (ensures fun h0 _ h1 -> modifies (loc nq_p1 |+| loc dc |+| loc tmp2) h0 h1 /\ point_post_add_t h1 (get_x nq_p1) /\ point_post_sub_t h1 (get_z nq_p1) /\ fget_xz h1 nq_p1 == S.add_and_double1_0 (fget_x h0 ab) (fget_z h0 ab) (fget_xz h0 nq_p1)) [@ Meta.Attribute.inline_ ] let point_add_and_double0 #s nq_p1 ab dc tmp2 = let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub ab 0ul (nlimb s) in let b : felem s = sub ab (nlimb s) (nlimb s) in let d : felem s = sub dc 0ul (nlimb s) in let c : felem s = sub dc (nlimb s) (nlimb s) in fadd c x3 z3; // c = x3 + z3 fsub d x3 z3; // d = x3 - z3 (* CAN RUN IN PARALLEL *) //fmul d d a; // d = da = d * a //fmul c c b; // c = cb = c * b fmul2 dc dc ab tmp2; // d|c = d*a|c*b fadd x3 d c; // x3 = da + cb fsub z3 d c // z3 = da - cb val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint nq_p1 tmp1 /\ disjoint nq_p1 tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ point_post_add_t h0 (gsub tmp1 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub tmp1 (nlimb s) (nlimb s)) /\ point_post_add_t h0 (get_x nq_p1) /\ point_post_sub_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc nq_p1 |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (fget_xz h1 nq, fget_xz h1 nq_p1) == S.add_and_double1_1 (feval h0 (gsub tmp1 0ul (nlimb s))) (feval h0 (gsub tmp1 (nlimb s) (nlimb s))) (fget_xz h0 nq_p1)) [@ Meta.Attribute.inline_ ] let point_add_and_double1 #s nq nq_p1 tmp1 tmp2 = let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let d : felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c : felem s = sub tmp1 (3ul *! nlimb s) (nlimb s) in let ab : felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc : felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in (* CAN RUN IN PARALLEL *) //fsqr d a; // d = aa = a^2 //fsqr c b; // c = bb = b^2 fsqr2 dc ab tmp2; // d|c = aa | bb (* CAN RUN IN PARALLEL *) //fsqr x3 x3; // x3 = (da + cb) ^ 2 //fsqr z3 z3; // z3 = (da - cb) ^ 2 fsqr2 nq_p1 nq_p1 tmp2; // x3|z3 = x3*x3|z3*z3 copy_felem a c; // a = bb fsub c d c; // c = e = aa - bb assert_norm (121665 < pow2 17); fmul1 b c (u64 121665); // b = e * 121665 fadd b b d; // b = (e * 121665) + aa (* CAN RUN IN PARALLEL *) //fmul x2 d a; // x2 = aa * bb //fmul z2 c b; // z2 = e * (aa + (e * 121665)) fmul2 nq dc ab tmp2 // x2|z2 = aa * bb | e * (aa + (e * 121665)) val point_add_and_double: #s:field_spec -> q:point s -> p01_tmp1:lbuffer (limb s) (8ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in live h0 q /\ live h0 p01_tmp1 /\ live h0 tmp2 /\ disjoint q p01_tmp1 /\ disjoint q tmp2 /\ disjoint p01_tmp1 tmp2 /\ state_inv_t h0 (get_x q) /\ state_inv_t h0 (get_z q) /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> ( let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in modifies (loc p01_tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (let p2, p3 = P.add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1) in fget_xz h1 nq == p2 /\ fget_xz h1 nq_p1 == p3))) [@ Meta.Attribute.specialize ] let point_add_and_double #s q p01_tmp1 tmp2 = let h0 = ST.get () in let nq : point s = sub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 : point s = sub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in let tmp1 = sub p01_tmp1 (4ul *! nlimb s) (4ul *! nlimb s) in let x1 = sub q 0ul (nlimb s) in let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let ab : felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc : felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in fadd a x2 z2; // a = x2 + z2 fsub b x2 z2; // b = x2 - z2 point_add_and_double0 #s nq_p1 ab dc tmp2; point_add_and_double1 #s nq nq_p1 tmp1 tmp2; fmul z3 z3 x1 tmp2; // z3 = x1 * (da - cb) ^ 2 S.lemma_add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1) val point_double: #s:field_spec -> nq:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ fget_xz h1 nq == P.double (fget_xz h0 nq))
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point_double: #s:field_spec -> nq:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ fget_xz h1 nq == P.double (fget_xz h0 nq))
[]
Hacl.Impl.Curve25519.AddAndDouble.point_double
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
nq: Hacl.Impl.Curve25519.AddAndDouble.point s -> tmp1: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (4ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> tmp2: Hacl.Impl.Curve25519.Fields.Core.felem_wide2 s -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 21, "end_line": 243, "start_col": 34, "start_line": 208 }
FStar.HyperStack.ST.Stack
val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint nq_p1 tmp1 /\ disjoint nq_p1 tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ point_post_add_t h0 (gsub tmp1 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub tmp1 (nlimb s) (nlimb s)) /\ point_post_add_t h0 (get_x nq_p1) /\ point_post_sub_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc nq_p1 |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (fget_xz h1 nq, fget_xz h1 nq_p1) == S.add_and_double1_1 (feval h0 (gsub tmp1 0ul (nlimb s))) (feval h0 (gsub tmp1 (nlimb s) (nlimb s))) (fget_xz h0 nq_p1))
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point_add_and_double1 #s nq nq_p1 tmp1 tmp2 = let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let d : felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c : felem s = sub tmp1 (3ul *! nlimb s) (nlimb s) in let ab : felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc : felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in (* CAN RUN IN PARALLEL *) //fsqr d a; // d = aa = a^2 //fsqr c b; // c = bb = b^2 fsqr2 dc ab tmp2; // d|c = aa | bb (* CAN RUN IN PARALLEL *) //fsqr x3 x3; // x3 = (da + cb) ^ 2 //fsqr z3 z3; // z3 = (da - cb) ^ 2 fsqr2 nq_p1 nq_p1 tmp2; // x3|z3 = x3*x3|z3*z3 copy_felem a c; // a = bb fsub c d c; // c = e = aa - bb assert_norm (121665 < pow2 17); fmul1 b c (u64 121665); // b = e * 121665 fadd b b d; // b = (e * 121665) + aa (* CAN RUN IN PARALLEL *) //fmul x2 d a; // x2 = aa * bb //fmul z2 c b; // z2 = e * (aa + (e * 121665)) fmul2 nq dc ab tmp2
val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint nq_p1 tmp1 /\ disjoint nq_p1 tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ point_post_add_t h0 (gsub tmp1 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub tmp1 (nlimb s) (nlimb s)) /\ point_post_add_t h0 (get_x nq_p1) /\ point_post_sub_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc nq_p1 |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (fget_xz h1 nq, fget_xz h1 nq_p1) == S.add_and_double1_1 (feval h0 (gsub tmp1 0ul (nlimb s))) (feval h0 (gsub tmp1 (nlimb s) (nlimb s))) (fget_xz h0 nq_p1)) let point_add_and_double1 #s nq nq_p1 tmp1 tmp2 =
true
null
false
let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a:felem s = sub tmp1 0ul (nlimb s) in let b:felem s = sub tmp1 (nlimb s) (nlimb s) in let d:felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c:felem s = sub tmp1 (3ul *! nlimb s) (nlimb s) in let ab:felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc:felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in fsqr2 dc ab tmp2; fsqr2 nq_p1 nq_p1 tmp2; copy_felem a c; fsub c d c; assert_norm (121665 < pow2 17); fmul1 b c (u64 121665); fadd b b d; fmul2 nq dc ab tmp2
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Hacl.Impl.Curve25519.Fields.Core.felem_wide2", "Hacl.Impl.Curve25519.Fields.Core.fmul2", "Prims.unit", "Hacl.Impl.Curve25519.Fields.Core.fadd", "Hacl.Impl.Curve25519.Fields.Core.fmul1", "Lib.IntTypes.u64", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Hacl.Impl.Curve25519.Fields.Core.fsub", "Hacl.Impl.Curve25519.Fields.copy_felem", "Hacl.Impl.Curve25519.Fields.Core.fsqr2", "Hacl.Impl.Curve25519.Fields.Core.felem2", "Lib.Buffer.sub", "Lib.Buffer.MUT", "Lib.Buffer.lbuffer_t", "Hacl.Impl.Curve25519.Fields.Core.felem", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.uint_to_t", "FStar.UInt32.t", "Lib.IntTypes.op_Plus_Bang" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s) let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s)) let fget_z (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p (nlimb s) (nlimb s)) let fget_xz (#s:field_spec) (h:mem) (p:point s) = fget_x h p, fget_z h p val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_sub_t #s h f = match s with | M51 -> F51.felem_fits h f (9, 10, 9, 9, 9) | M64 -> True val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_add_t #s h f = match s with | M51 -> F51.felem_fits h f (2, 4, 2, 2, 2) | M64 -> True val point_add_and_double0: #s:field_spec -> nq_p1:point s -> ab:lbuffer (limb s) (2ul *! nlimb s) -> dc:lbuffer (limb s) (2ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq_p1 /\ live h0 ab /\ live h0 dc /\ live h0 tmp2 /\ disjoint nq_p1 ab /\ disjoint nq_p1 dc /\ disjoint nq_p1 tmp2 /\ disjoint ab dc /\ disjoint ab tmp2 /\ disjoint dc tmp2 /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1) /\ point_post_add_t h0 (gsub ab 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub ab (nlimb s) (nlimb s))) (ensures fun h0 _ h1 -> modifies (loc nq_p1 |+| loc dc |+| loc tmp2) h0 h1 /\ point_post_add_t h1 (get_x nq_p1) /\ point_post_sub_t h1 (get_z nq_p1) /\ fget_xz h1 nq_p1 == S.add_and_double1_0 (fget_x h0 ab) (fget_z h0 ab) (fget_xz h0 nq_p1)) [@ Meta.Attribute.inline_ ] let point_add_and_double0 #s nq_p1 ab dc tmp2 = let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub ab 0ul (nlimb s) in let b : felem s = sub ab (nlimb s) (nlimb s) in let d : felem s = sub dc 0ul (nlimb s) in let c : felem s = sub dc (nlimb s) (nlimb s) in fadd c x3 z3; // c = x3 + z3 fsub d x3 z3; // d = x3 - z3 (* CAN RUN IN PARALLEL *) //fmul d d a; // d = da = d * a //fmul c c b; // c = cb = c * b fmul2 dc dc ab tmp2; // d|c = d*a|c*b fadd x3 d c; // x3 = da + cb fsub z3 d c // z3 = da - cb val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint nq_p1 tmp1 /\ disjoint nq_p1 tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ point_post_add_t h0 (gsub tmp1 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub tmp1 (nlimb s) (nlimb s)) /\ point_post_add_t h0 (get_x nq_p1) /\ point_post_sub_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc nq_p1 |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (fget_xz h1 nq, fget_xz h1 nq_p1) == S.add_and_double1_1 (feval h0 (gsub tmp1 0ul (nlimb s))) (feval h0 (gsub tmp1 (nlimb s) (nlimb s))) (fget_xz h0 nq_p1))
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint nq_p1 tmp1 /\ disjoint nq_p1 tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ point_post_add_t h0 (gsub tmp1 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub tmp1 (nlimb s) (nlimb s)) /\ point_post_add_t h0 (get_x nq_p1) /\ point_post_sub_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc nq_p1 |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (fget_xz h1 nq, fget_xz h1 nq_p1) == S.add_and_double1_1 (feval h0 (gsub tmp1 0ul (nlimb s))) (feval h0 (gsub tmp1 (nlimb s) (nlimb s))) (fget_xz h0 nq_p1))
[]
Hacl.Impl.Curve25519.AddAndDouble.point_add_and_double1
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
nq: Hacl.Impl.Curve25519.AddAndDouble.point s -> nq_p1: Hacl.Impl.Curve25519.AddAndDouble.point s -> tmp1: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (4ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> tmp2: Hacl.Impl.Curve25519.Fields.Core.felem_wide2 s -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 21, "end_line": 143, "start_col": 49, "start_line": 112 }
FStar.HyperStack.ST.Stack
val point_add_and_double: #s:field_spec -> q:point s -> p01_tmp1:lbuffer (limb s) (8ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in live h0 q /\ live h0 p01_tmp1 /\ live h0 tmp2 /\ disjoint q p01_tmp1 /\ disjoint q tmp2 /\ disjoint p01_tmp1 tmp2 /\ state_inv_t h0 (get_x q) /\ state_inv_t h0 (get_z q) /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> ( let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in modifies (loc p01_tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (let p2, p3 = P.add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1) in fget_xz h1 nq == p2 /\ fget_xz h1 nq_p1 == p3)))
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "F51" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519.Fields", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Curve25519", "short_module": null }, { "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 } ]
false
let point_add_and_double #s q p01_tmp1 tmp2 = let h0 = ST.get () in let nq : point s = sub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 : point s = sub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in let tmp1 = sub p01_tmp1 (4ul *! nlimb s) (4ul *! nlimb s) in let x1 = sub q 0ul (nlimb s) in let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let ab : felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc : felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in fadd a x2 z2; // a = x2 + z2 fsub b x2 z2; // b = x2 - z2 point_add_and_double0 #s nq_p1 ab dc tmp2; point_add_and_double1 #s nq nq_p1 tmp1 tmp2; fmul z3 z3 x1 tmp2; // z3 = x1 * (da - cb) ^ 2 S.lemma_add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1)
val point_add_and_double: #s:field_spec -> q:point s -> p01_tmp1:lbuffer (limb s) (8ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in live h0 q /\ live h0 p01_tmp1 /\ live h0 tmp2 /\ disjoint q p01_tmp1 /\ disjoint q tmp2 /\ disjoint p01_tmp1 tmp2 /\ state_inv_t h0 (get_x q) /\ state_inv_t h0 (get_z q) /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> ( let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in modifies (loc p01_tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (let p2, p3 = P.add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1) in fget_xz h1 nq == p2 /\ fget_xz h1 nq_p1 == p3))) let point_add_and_double #s q p01_tmp1 tmp2 =
true
null
false
let h0 = ST.get () in let nq:point s = sub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1:point s = sub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in let tmp1 = sub p01_tmp1 (4ul *! nlimb s) (4ul *! nlimb s) in let x1 = sub q 0ul (nlimb s) in let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a:felem s = sub tmp1 0ul (nlimb s) in let b:felem s = sub tmp1 (nlimb s) (nlimb s) in let ab:felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc:felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in fadd a x2 z2; fsub b x2 z2; point_add_and_double0 #s nq_p1 ab dc tmp2; point_add_and_double1 #s nq nq_p1 tmp1 tmp2; fmul z3 z3 x1 tmp2; S.lemma_add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1)
{ "checked_file": "Hacl.Impl.Curve25519.AddAndDouble.fst.checked", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fields.fst.checked", "Hacl.Impl.Curve25519.Field64.fst.checked", "Hacl.Impl.Curve25519.Field51.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Impl.Curve25519.AddAndDouble.fst" }
[]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Hacl.Impl.Curve25519.Fields.Core.felem_wide2", "Hacl.Spec.Curve25519.AddAndDouble.lemma_add_and_double", "Hacl.Impl.Curve25519.AddAndDouble.fget_xz", "Prims.unit", "Hacl.Impl.Curve25519.Fields.Core.fmul", "Hacl.Impl.Curve25519.AddAndDouble.point_add_and_double1", "Hacl.Impl.Curve25519.AddAndDouble.point_add_and_double0", "Hacl.Impl.Curve25519.Fields.Core.fsub", "Hacl.Impl.Curve25519.Fields.Core.fadd", "Hacl.Impl.Curve25519.Fields.Core.felem2", "Lib.Buffer.sub", "Lib.Buffer.MUT", "Lib.Buffer.lbuffer_t", "Hacl.Impl.Curve25519.Fields.Core.felem", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.uint_to_t", "FStar.UInt32.t", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.mul", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get" ]
[]
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module P = Spec.Curve25519 module S = Hacl.Spec.Curve25519.AddAndDouble #reset-options "--z3rlimit 300 --fuel 0 --ifuel 1 --using_facts_from '* -FStar.Seq' --record_options" inline_for_extraction noextract let point (s:field_spec) = lbuffer (limb s) (nlimb s +! nlimb s) (* NEEDED ONLY FOR WRAPPERS *) inline_for_extraction noextract let point51 = lbuffer uint64 10ul inline_for_extraction noextract let point64 = lbuffer uint64 8ul (* NEEDED ONLY FOR WRAPPERS *) let get_x #s (p:point s) = gsub p 0ul (nlimb s) let get_z #s (p:point s) = gsub p (nlimb s) (nlimb s) let fget_x (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p 0ul (nlimb s)) let fget_z (#s:field_spec) (h:mem) (p:point s) = feval h (gsub p (nlimb s) (nlimb s)) let fget_xz (#s:field_spec) (h:mem) (p:point s) = fget_x h p, fget_z h p val point_post_sub_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_sub_t #s h f = match s with | M51 -> F51.felem_fits h f (9, 10, 9, 9, 9) | M64 -> True val point_post_add_t:#s:field_spec -> h:mem -> f:felem s -> Type0 let point_post_add_t #s h f = match s with | M51 -> F51.felem_fits h f (2, 4, 2, 2, 2) | M64 -> True val point_add_and_double0: #s:field_spec -> nq_p1:point s -> ab:lbuffer (limb s) (2ul *! nlimb s) -> dc:lbuffer (limb s) (2ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq_p1 /\ live h0 ab /\ live h0 dc /\ live h0 tmp2 /\ disjoint nq_p1 ab /\ disjoint nq_p1 dc /\ disjoint nq_p1 tmp2 /\ disjoint ab dc /\ disjoint ab tmp2 /\ disjoint dc tmp2 /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1) /\ point_post_add_t h0 (gsub ab 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub ab (nlimb s) (nlimb s))) (ensures fun h0 _ h1 -> modifies (loc nq_p1 |+| loc dc |+| loc tmp2) h0 h1 /\ point_post_add_t h1 (get_x nq_p1) /\ point_post_sub_t h1 (get_z nq_p1) /\ fget_xz h1 nq_p1 == S.add_and_double1_0 (fget_x h0 ab) (fget_z h0 ab) (fget_xz h0 nq_p1)) [@ Meta.Attribute.inline_ ] let point_add_and_double0 #s nq_p1 ab dc tmp2 = let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub ab 0ul (nlimb s) in let b : felem s = sub ab (nlimb s) (nlimb s) in let d : felem s = sub dc 0ul (nlimb s) in let c : felem s = sub dc (nlimb s) (nlimb s) in fadd c x3 z3; // c = x3 + z3 fsub d x3 z3; // d = x3 - z3 (* CAN RUN IN PARALLEL *) //fmul d d a; // d = da = d * a //fmul c c b; // c = cb = c * b fmul2 dc dc ab tmp2; // d|c = d*a|c*b fadd x3 d c; // x3 = da + cb fsub z3 d c // z3 = da - cb val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2 /\ disjoint nq_p1 tmp1 /\ disjoint nq_p1 tmp2 /\ disjoint tmp1 tmp2 /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ point_post_add_t h0 (gsub tmp1 0ul (nlimb s)) /\ point_post_sub_t h0 (gsub tmp1 (nlimb s) (nlimb s)) /\ point_post_add_t h0 (get_x nq_p1) /\ point_post_sub_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> modifies (loc nq |+| loc nq_p1 |+| loc tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (fget_xz h1 nq, fget_xz h1 nq_p1) == S.add_and_double1_1 (feval h0 (gsub tmp1 0ul (nlimb s))) (feval h0 (gsub tmp1 (nlimb s) (nlimb s))) (fget_xz h0 nq_p1)) [@ Meta.Attribute.inline_ ] let point_add_and_double1 #s nq nq_p1 tmp1 tmp2 = let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let d : felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c : felem s = sub tmp1 (3ul *! nlimb s) (nlimb s) in let ab : felem2 s = sub tmp1 0ul (2ul *! nlimb s) in let dc : felem2 s = sub tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in (* CAN RUN IN PARALLEL *) //fsqr d a; // d = aa = a^2 //fsqr c b; // c = bb = b^2 fsqr2 dc ab tmp2; // d|c = aa | bb (* CAN RUN IN PARALLEL *) //fsqr x3 x3; // x3 = (da + cb) ^ 2 //fsqr z3 z3; // z3 = (da - cb) ^ 2 fsqr2 nq_p1 nq_p1 tmp2; // x3|z3 = x3*x3|z3*z3 copy_felem a c; // a = bb fsub c d c; // c = e = aa - bb assert_norm (121665 < pow2 17); fmul1 b c (u64 121665); // b = e * 121665 fadd b b d; // b = (e * 121665) + aa (* CAN RUN IN PARALLEL *) //fmul x2 d a; // x2 = aa * bb //fmul z2 c b; // z2 = e * (aa + (e * 121665)) fmul2 nq dc ab tmp2 // x2|z2 = aa * bb | e * (aa + (e * 121665)) val point_add_and_double: #s:field_spec -> q:point s -> p01_tmp1:lbuffer (limb s) (8ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in live h0 q /\ live h0 p01_tmp1 /\ live h0 tmp2 /\ disjoint q p01_tmp1 /\ disjoint q tmp2 /\ disjoint p01_tmp1 tmp2 /\ state_inv_t h0 (get_x q) /\ state_inv_t h0 (get_z q) /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> ( let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in modifies (loc p01_tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (let p2, p3 = P.add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1) in fget_xz h1 nq == p2 /\ fget_xz h1 nq_p1 == p3)))
false
false
Hacl.Impl.Curve25519.AddAndDouble.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 300, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val point_add_and_double: #s:field_spec -> q:point s -> p01_tmp1:lbuffer (limb s) (8ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in live h0 q /\ live h0 p01_tmp1 /\ live h0 tmp2 /\ disjoint q p01_tmp1 /\ disjoint q tmp2 /\ disjoint p01_tmp1 tmp2 /\ state_inv_t h0 (get_x q) /\ state_inv_t h0 (get_z q) /\ state_inv_t h0 (get_x nq) /\ state_inv_t h0 (get_z nq) /\ state_inv_t h0 (get_x nq_p1) /\ state_inv_t h0 (get_z nq_p1)) (ensures fun h0 _ h1 -> ( let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in modifies (loc p01_tmp1 |+| loc tmp2) h0 h1 /\ state_inv_t h1 (get_x nq) /\ state_inv_t h1 (get_z nq) /\ state_inv_t h1 (get_x nq_p1) /\ state_inv_t h1 (get_z nq_p1) /\ (let p2, p3 = P.add_and_double (fget_xz h0 q) (fget_xz h0 nq) (fget_xz h0 nq_p1) in fget_xz h1 nq == p2 /\ fget_xz h1 nq_p1 == p3)))
[]
Hacl.Impl.Curve25519.AddAndDouble.point_add_and_double
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
q: Hacl.Impl.Curve25519.AddAndDouble.point s -> p01_tmp1: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (8ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> tmp2: Hacl.Impl.Curve25519.Fields.Core.felem_wide2 s -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 74, "end_line": 191, "start_col": 45, "start_line": 169 }
Prims.GTot
val low_buffer_read (src t: base_typ) (h: HS.mem) (b: (buf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t)
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.MemoryAdapters", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop", "short_module": "I" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "Vale.X64.Lemmas", "short_module": "VL" }, { "abbrev": true, "full_module": "Vale.X64.StateLemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Vale.AsLowStar.LowStarSig", "short_module": "LSig" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.X64.State", "short_module": "VS" }, { "abbrev": true, "full_module": "Vale.X64.Decls", "short_module": "V" }, { "abbrev": true, "full_module": "Vale.Interop.Assumptions", "short_module": "IA" }, { "abbrev": true, "full_module": "Vale.X64.Machine_s", "short_module": "MS" }, { "abbrev": true, "full_module": "Vale.X64.Stack_Sems", "short_module": "VSS" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "SI" }, { "abbrev": true, "full_module": "Vale.X64.Memory_Sems", "short_module": "MES" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.MemoryAdapters", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar", "short_module": null }, { "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 } ]
false
let low_buffer_read (src t:base_typ) (h:HS.mem) (b:(buf_t src t){B.live h b}) (i:nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t) = let view = LSig.view_of_base_typ t in let db = get_downview b in DV.length_eq db; let b_v = UV.mk_buffer db view in UV.length_eq b_v; UV.sel h b_v i
val low_buffer_read (src t: base_typ) (h: HS.mem) (b: (buf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t) let low_buffer_read (src t: base_typ) (h: HS.mem) (b: (buf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t) =
false
null
false
let view = LSig.view_of_base_typ t in let db = get_downview b in DV.length_eq db; let b_v = UV.mk_buffer db view in UV.length_eq b_v; UV.sel h b_v i
{ "checked_file": "Vale.AsLowStar.MemoryHelpers.fsti.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Stack_Sems.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Interop.X64.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.Assumptions.fst.checked", "Vale.Interop.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.AsLowStar.ValeSig.fst.checked", "Vale.AsLowStar.LowStarSig.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.List.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Vale.AsLowStar.MemoryHelpers.fsti" }
[ "sometrivial" ]
[ "Vale.Arch.HeapTypes_s.base_typ", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.buf_t", "LowStar.Monotonic.Buffer.live", "Vale.Interop.Types.base_typ_as_type", "LowStar.Buffer.trivial_preorder", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Interop.Types.view_n", "LowStar.BufferView.Up.sel", "Prims.unit", "LowStar.BufferView.Up.length_eq", "LowStar.BufferView.Up.buffer", "LowStar.BufferView.Up.mk_buffer", "LowStar.BufferView.Down.length_eq", "LowStar.BufferView.Down.buffer", "LowStar.BufferView.Up.view", "Vale.AsLowStar.LowStarSig.view_of_base_typ" ]
[]
module Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module BS = Vale.X64.Machine_Semantics_s module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up module HS = FStar.HyperStack module ME = Vale.X64.Memory module MES = Vale.X64.Memory_Sems module SI = Vale.X64.Stack_i module VSS = Vale.X64.Stack_Sems module MS = Vale.X64.Machine_s module IA = Vale.Interop.Assumptions module V = Vale.X64.Decls module VS = Vale.X64.State module IX64 = Vale.Interop.X64 module VSig = Vale.AsLowStar.ValeSig module LSig = Vale.AsLowStar.LowStarSig module SL = Vale.X64.StateLemmas module VL = Vale.X64.Lemmas module ST = FStar.HyperStack.ST module I = Vale.Interop open Vale.Arch.Heap open Vale.Arch.HeapImpl open FStar.Mul val as_vale_buffer_len (#src #t:base_typ) (x:buf_t src t) : Lemma (V.buffer_length (as_vale_buffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_buffer x))] val as_vale_immbuffer_len (#src #t:base_typ) (x:ibuf_t src t) : Lemma (V.buffer_length (as_vale_immbuffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_immbuffer x))] val state_eq_down_mem (va_s1:V.va_state) (s1:BS.machine_state) : Lemma (requires VL.state_eq_opt true (Some (SL.state_to_S va_s1)) (Some s1)) (ensures ( heap_create_machine (as_mem va_s1.VS.vs_heap.vf_heap) == heap_get s1.BS.ms_heap)) val relate_modifies (args:list arg) (m0 m1:ME.vale_full_heap) : Lemma (requires ME.modifies (VSig.mloc_modified_args args) (ME.get_vale_heap m0) (ME.get_vale_heap m1)) (ensures B.modifies (loc_modified_args args) (hs_of_mem (as_mem m0.vf_heap)) (hs_of_mem (as_mem m1.vf_heap))) val reveal_readable (#src #t:base_typ) (x:buf_t src t) (h:ME.vale_heap) : Lemma ( List.memP (mut_to_b8 src x) (ptrs_of_mem (as_mem h)) <==> ME.buffer_readable h (as_vale_buffer x) ) val reveal_imm_readable (#src #t:base_typ) (x:ibuf_t src t) (h:ME.vale_heap) : Lemma ( List.memP (imm_to_b8 src x) (ptrs_of_mem (as_mem h)) <==> ME.buffer_readable h (as_vale_immbuffer x) ) val readable_live (#src #t:base_typ) (x:buf_t src t) (h:ME.vale_heap) : Lemma ( ME.buffer_readable h (as_vale_buffer x) ==> B.live (hs_of_mem (as_mem h)) x) val readable_imm_live (#src #t:base_typ) (x:ibuf_t src t) (h:ME.vale_heap) : Lemma ( ME.buffer_readable h (as_vale_immbuffer x) ==> B.live (hs_of_mem (as_mem h)) x) val buffer_readable_reveal (#max_arity:nat) (src bt:base_typ) (x:buf_t src bt) (args:IX64.arity_ok max_arity arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma ( let mem = mk_mem args h0 in ME.buffer_readable (create_initial_vale_heap mem) (as_vale_buffer x) <==> List.memP (mut_to_b8 src x) (ptrs_of_mem mem)) val lemma_as_mem_as_vale_mem (h:interop_heap) : Lemma (ensures as_mem (create_initial_vale_heap h) == h) [SMTPat (as_mem (create_initial_vale_heap h))] val mk_stack_reveal (stack:BS.machine_stack) : Lemma (VSS.stack_to_s (as_vale_stack stack) == stack /\ SI.init_rsp (as_vale_stack stack) == stack.BS.initial_rsp) val buffer_as_seq_reveal (src t:ME.base_typ) (x:buf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_buffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_initial_vale_heap mem) y)) (UV.as_seq h0 (UV.mk_buffer db (LSig.view_of_base_typ t)))) val immbuffer_as_seq_reveal (src t:ME.base_typ) (x:ibuf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_immbuffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_initial_vale_heap mem) y)) (UV.as_seq h0 (UV.mk_buffer db (LSig.view_of_base_typ t)))) val buffer_as_seq_reveal2 (src t:ME.base_typ) (x:buf_t src t) (va_s:V.va_state) : Lemma (let y = as_vale_buffer x in let db = get_downview x in DV.length_eq db; let h = hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap) in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (ME.get_vale_heap va_s.VS.vs_heap) y)) (UV.as_seq h (UV.mk_buffer db (LSig.view_of_base_typ t)))) val immbuffer_as_seq_reveal2 (src t:ME.base_typ) (x:ibuf_t src t) (va_s:V.va_state) : Lemma (let y = as_vale_immbuffer x in let db = get_downview x in DV.length_eq db; let h = hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap) in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (ME.get_vale_heap va_s.VS.vs_heap) y)) (UV.as_seq h (UV.mk_buffer db (LSig.view_of_base_typ t)))) val buffer_addr_reveal (src t:ME.base_typ) (x:buf_t src t) (args:list arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let mem = mk_mem args h0 in addrs_of_mem mem (mut_to_b8 src x) == ME.buffer_addr (as_vale_buffer x) (create_initial_vale_heap mem)) val immbuffer_addr_reveal (src t:ME.base_typ) (x:ibuf_t src t) (args:list arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let mem = mk_mem args h0 in addrs_of_mem mem (imm_to_b8 src x) == ME.buffer_addr (as_vale_immbuffer x) (create_initial_vale_heap mem)) val fuel_eq : squash (V.va_fuel == nat) val decls_eval_code_reveal (c:BS.code) (va_s0 va_s1:V.va_state) (f:V.va_fuel) : Lemma (requires (V.eval_code c va_s0 f va_s1)) (ensures (VL.eval_code c va_s0 (coerce f) va_s1)) val as_vale_buffer_disjoint (#src1 #src2 #t1 #t2:base_typ) (x:buf_t src1 t1) (y:buf_t src2 t2) : Lemma (B.disjoint x y ==> ME.loc_disjoint (ME.loc_buffer (as_vale_buffer x)) (ME.loc_buffer (as_vale_buffer y))) [SMTPat (ME.loc_disjoint (ME.loc_buffer (as_vale_buffer x)) (ME.loc_buffer (as_vale_buffer y)))] val as_vale_buffer_imm_disjoint (#src1 #src2 #t1 #t2:base_typ) (x:ibuf_t src1 t1) (y:buf_t src2 t2) : Lemma (B.disjoint x y ==> ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_buffer y))) [SMTPat (ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_buffer y)))] val as_vale_immbuffer_imm_disjoint (#src1 #src2 #t1 #t2:base_typ) (x:ibuf_t src1 t1) (y:ibuf_t src2 t2) : Lemma (B.disjoint x y ==> ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_immbuffer y))) [SMTPat (ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_immbuffer y)))] val modifies_same_roots (s:ME.loc) (h0 h1:ME.vale_full_heap) : Lemma (requires ME.modifies s (ME.get_vale_heap h0) (ME.get_vale_heap h1)) (ensures ptrs_of_mem (as_mem h0.vf_heap) == ptrs_of_mem (as_mem h1.vf_heap)) val modifies_equal_domains (s:ME.loc) (h0 h1:ME.vale_full_heap) : Lemma (requires ME.modifies s (ME.get_vale_heap h0) (ME.get_vale_heap h1)) (ensures FStar.HyperStack.ST.equal_domains (hs_of_mem (as_mem h0.vf_heap)) (hs_of_mem (as_mem h1.vf_heap))) val loc_disjoint_sym (x y:ME.loc) : Lemma (ME.loc_disjoint x y <==> ME.loc_disjoint y x) [SMTPat (ME.loc_disjoint x y)] val core_create_lemma_taint_hyp (#max_arity:nat) (#arg_reg:IX64.arg_reg_relation max_arity) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (ensures (let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in LSig.taint_hyp args va_s)) val buffer_writeable_reveal (src t:ME.base_typ) (x:buf_t src t) : Lemma (ME.buffer_writeable (as_vale_buffer x))
false
false
Vale.AsLowStar.MemoryHelpers.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val low_buffer_read (src t: base_typ) (h: HS.mem) (b: (buf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t)
[]
Vale.AsLowStar.MemoryHelpers.low_buffer_read
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> h: FStar.Monotonic.HyperStack.mem -> b: Vale.Interop.Base.buf_t src t {LowStar.Monotonic.Buffer.live h b} -> i: Prims.nat { i < LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) / Vale.Interop.Types.view_n t } -> Prims.GTot (Vale.Interop.Types.base_typ_as_type t)
{ "end_col": 16, "end_line": 212, "start_col": 158, "start_line": 206 }
Prims.GTot
val imm_low_buffer_read (src t: base_typ) (h: HS.mem) (b: (ibuf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t)
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.MemoryAdapters", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop", "short_module": "I" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "Vale.X64.Lemmas", "short_module": "VL" }, { "abbrev": true, "full_module": "Vale.X64.StateLemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Vale.AsLowStar.LowStarSig", "short_module": "LSig" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.X64.State", "short_module": "VS" }, { "abbrev": true, "full_module": "Vale.X64.Decls", "short_module": "V" }, { "abbrev": true, "full_module": "Vale.Interop.Assumptions", "short_module": "IA" }, { "abbrev": true, "full_module": "Vale.X64.Machine_s", "short_module": "MS" }, { "abbrev": true, "full_module": "Vale.X64.Stack_Sems", "short_module": "VSS" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "SI" }, { "abbrev": true, "full_module": "Vale.X64.Memory_Sems", "short_module": "MES" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.MemoryAdapters", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar", "short_module": null }, { "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 } ]
false
let imm_low_buffer_read (src t:base_typ) (h:HS.mem) (b:(ibuf_t src t){B.live h b}) (i:nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t) = let view = LSig.view_of_base_typ t in let db = get_downview b in DV.length_eq db; let b_v = UV.mk_buffer db view in UV.length_eq b_v; UV.sel h b_v i
val imm_low_buffer_read (src t: base_typ) (h: HS.mem) (b: (ibuf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t) let imm_low_buffer_read (src t: base_typ) (h: HS.mem) (b: (ibuf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t) =
false
null
false
let view = LSig.view_of_base_typ t in let db = get_downview b in DV.length_eq db; let b_v = UV.mk_buffer db view in UV.length_eq b_v; UV.sel h b_v i
{ "checked_file": "Vale.AsLowStar.MemoryHelpers.fsti.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Stack_Sems.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Interop.X64.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.Assumptions.fst.checked", "Vale.Interop.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.AsLowStar.ValeSig.fst.checked", "Vale.AsLowStar.LowStarSig.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.List.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Vale.AsLowStar.MemoryHelpers.fsti" }
[ "sometrivial" ]
[ "Vale.Arch.HeapTypes_s.base_typ", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.ibuf_t", "LowStar.Monotonic.Buffer.live", "Vale.Interop.Types.base_typ_as_type", "LowStar.ImmutableBuffer.immutable_preorder", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Interop.Types.view_n", "LowStar.BufferView.Up.sel", "Prims.unit", "LowStar.BufferView.Up.length_eq", "LowStar.BufferView.Up.buffer", "LowStar.BufferView.Up.mk_buffer", "LowStar.BufferView.Down.length_eq", "LowStar.BufferView.Down.buffer", "LowStar.BufferView.Up.view", "Vale.AsLowStar.LowStarSig.view_of_base_typ" ]
[]
module Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module BS = Vale.X64.Machine_Semantics_s module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up module HS = FStar.HyperStack module ME = Vale.X64.Memory module MES = Vale.X64.Memory_Sems module SI = Vale.X64.Stack_i module VSS = Vale.X64.Stack_Sems module MS = Vale.X64.Machine_s module IA = Vale.Interop.Assumptions module V = Vale.X64.Decls module VS = Vale.X64.State module IX64 = Vale.Interop.X64 module VSig = Vale.AsLowStar.ValeSig module LSig = Vale.AsLowStar.LowStarSig module SL = Vale.X64.StateLemmas module VL = Vale.X64.Lemmas module ST = FStar.HyperStack.ST module I = Vale.Interop open Vale.Arch.Heap open Vale.Arch.HeapImpl open FStar.Mul val as_vale_buffer_len (#src #t:base_typ) (x:buf_t src t) : Lemma (V.buffer_length (as_vale_buffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_buffer x))] val as_vale_immbuffer_len (#src #t:base_typ) (x:ibuf_t src t) : Lemma (V.buffer_length (as_vale_immbuffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_immbuffer x))] val state_eq_down_mem (va_s1:V.va_state) (s1:BS.machine_state) : Lemma (requires VL.state_eq_opt true (Some (SL.state_to_S va_s1)) (Some s1)) (ensures ( heap_create_machine (as_mem va_s1.VS.vs_heap.vf_heap) == heap_get s1.BS.ms_heap)) val relate_modifies (args:list arg) (m0 m1:ME.vale_full_heap) : Lemma (requires ME.modifies (VSig.mloc_modified_args args) (ME.get_vale_heap m0) (ME.get_vale_heap m1)) (ensures B.modifies (loc_modified_args args) (hs_of_mem (as_mem m0.vf_heap)) (hs_of_mem (as_mem m1.vf_heap))) val reveal_readable (#src #t:base_typ) (x:buf_t src t) (h:ME.vale_heap) : Lemma ( List.memP (mut_to_b8 src x) (ptrs_of_mem (as_mem h)) <==> ME.buffer_readable h (as_vale_buffer x) ) val reveal_imm_readable (#src #t:base_typ) (x:ibuf_t src t) (h:ME.vale_heap) : Lemma ( List.memP (imm_to_b8 src x) (ptrs_of_mem (as_mem h)) <==> ME.buffer_readable h (as_vale_immbuffer x) ) val readable_live (#src #t:base_typ) (x:buf_t src t) (h:ME.vale_heap) : Lemma ( ME.buffer_readable h (as_vale_buffer x) ==> B.live (hs_of_mem (as_mem h)) x) val readable_imm_live (#src #t:base_typ) (x:ibuf_t src t) (h:ME.vale_heap) : Lemma ( ME.buffer_readable h (as_vale_immbuffer x) ==> B.live (hs_of_mem (as_mem h)) x) val buffer_readable_reveal (#max_arity:nat) (src bt:base_typ) (x:buf_t src bt) (args:IX64.arity_ok max_arity arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma ( let mem = mk_mem args h0 in ME.buffer_readable (create_initial_vale_heap mem) (as_vale_buffer x) <==> List.memP (mut_to_b8 src x) (ptrs_of_mem mem)) val lemma_as_mem_as_vale_mem (h:interop_heap) : Lemma (ensures as_mem (create_initial_vale_heap h) == h) [SMTPat (as_mem (create_initial_vale_heap h))] val mk_stack_reveal (stack:BS.machine_stack) : Lemma (VSS.stack_to_s (as_vale_stack stack) == stack /\ SI.init_rsp (as_vale_stack stack) == stack.BS.initial_rsp) val buffer_as_seq_reveal (src t:ME.base_typ) (x:buf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_buffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_initial_vale_heap mem) y)) (UV.as_seq h0 (UV.mk_buffer db (LSig.view_of_base_typ t)))) val immbuffer_as_seq_reveal (src t:ME.base_typ) (x:ibuf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_immbuffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_initial_vale_heap mem) y)) (UV.as_seq h0 (UV.mk_buffer db (LSig.view_of_base_typ t)))) val buffer_as_seq_reveal2 (src t:ME.base_typ) (x:buf_t src t) (va_s:V.va_state) : Lemma (let y = as_vale_buffer x in let db = get_downview x in DV.length_eq db; let h = hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap) in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (ME.get_vale_heap va_s.VS.vs_heap) y)) (UV.as_seq h (UV.mk_buffer db (LSig.view_of_base_typ t)))) val immbuffer_as_seq_reveal2 (src t:ME.base_typ) (x:ibuf_t src t) (va_s:V.va_state) : Lemma (let y = as_vale_immbuffer x in let db = get_downview x in DV.length_eq db; let h = hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap) in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (ME.get_vale_heap va_s.VS.vs_heap) y)) (UV.as_seq h (UV.mk_buffer db (LSig.view_of_base_typ t)))) val buffer_addr_reveal (src t:ME.base_typ) (x:buf_t src t) (args:list arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let mem = mk_mem args h0 in addrs_of_mem mem (mut_to_b8 src x) == ME.buffer_addr (as_vale_buffer x) (create_initial_vale_heap mem)) val immbuffer_addr_reveal (src t:ME.base_typ) (x:ibuf_t src t) (args:list arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let mem = mk_mem args h0 in addrs_of_mem mem (imm_to_b8 src x) == ME.buffer_addr (as_vale_immbuffer x) (create_initial_vale_heap mem)) val fuel_eq : squash (V.va_fuel == nat) val decls_eval_code_reveal (c:BS.code) (va_s0 va_s1:V.va_state) (f:V.va_fuel) : Lemma (requires (V.eval_code c va_s0 f va_s1)) (ensures (VL.eval_code c va_s0 (coerce f) va_s1)) val as_vale_buffer_disjoint (#src1 #src2 #t1 #t2:base_typ) (x:buf_t src1 t1) (y:buf_t src2 t2) : Lemma (B.disjoint x y ==> ME.loc_disjoint (ME.loc_buffer (as_vale_buffer x)) (ME.loc_buffer (as_vale_buffer y))) [SMTPat (ME.loc_disjoint (ME.loc_buffer (as_vale_buffer x)) (ME.loc_buffer (as_vale_buffer y)))] val as_vale_buffer_imm_disjoint (#src1 #src2 #t1 #t2:base_typ) (x:ibuf_t src1 t1) (y:buf_t src2 t2) : Lemma (B.disjoint x y ==> ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_buffer y))) [SMTPat (ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_buffer y)))] val as_vale_immbuffer_imm_disjoint (#src1 #src2 #t1 #t2:base_typ) (x:ibuf_t src1 t1) (y:ibuf_t src2 t2) : Lemma (B.disjoint x y ==> ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_immbuffer y))) [SMTPat (ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer x)) (ME.loc_buffer (as_vale_immbuffer y)))] val modifies_same_roots (s:ME.loc) (h0 h1:ME.vale_full_heap) : Lemma (requires ME.modifies s (ME.get_vale_heap h0) (ME.get_vale_heap h1)) (ensures ptrs_of_mem (as_mem h0.vf_heap) == ptrs_of_mem (as_mem h1.vf_heap)) val modifies_equal_domains (s:ME.loc) (h0 h1:ME.vale_full_heap) : Lemma (requires ME.modifies s (ME.get_vale_heap h0) (ME.get_vale_heap h1)) (ensures FStar.HyperStack.ST.equal_domains (hs_of_mem (as_mem h0.vf_heap)) (hs_of_mem (as_mem h1.vf_heap))) val loc_disjoint_sym (x y:ME.loc) : Lemma (ME.loc_disjoint x y <==> ME.loc_disjoint y x) [SMTPat (ME.loc_disjoint x y)] val core_create_lemma_taint_hyp (#max_arity:nat) (#arg_reg:IX64.arg_reg_relation max_arity) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (ensures (let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in LSig.taint_hyp args va_s)) val buffer_writeable_reveal (src t:ME.base_typ) (x:buf_t src t) : Lemma (ME.buffer_writeable (as_vale_buffer x)) let low_buffer_read (src t:base_typ) (h:HS.mem) (b:(buf_t src t){B.live h b}) (i:nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t) = let view = LSig.view_of_base_typ t in let db = get_downview b in DV.length_eq db; let b_v = UV.mk_buffer db view in UV.length_eq b_v; UV.sel h b_v i val buffer_read_reveal (src t:base_typ) (h:HS.mem) (s:ME.vale_heap) (b:(buf_t src t){B.live h b}) (i:nat{i < DV.length (get_downview b) / view_n t}) : Lemma (requires ( DV.length_eq (get_downview b); Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq s (as_vale_buffer b))) (UV.as_seq h (UV.mk_buffer (get_downview b) (LSig.view_of_base_typ t))))) (ensures LSig.nat_to_uint t (ME.buffer_read (as_vale_buffer b) i s) == low_buffer_read src t h b i ) [SMTPat (low_buffer_read src t h b i); SMTPat (ME.buffer_read (as_vale_buffer b) i s)]
false
false
Vale.AsLowStar.MemoryHelpers.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val imm_low_buffer_read (src t: base_typ) (h: HS.mem) (b: (ibuf_t src t){B.live h b}) (i: nat{i < DV.length (get_downview b) / view_n t}) : GTot (base_typ_as_type t)
[]
Vale.AsLowStar.MemoryHelpers.imm_low_buffer_read
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> h: FStar.Monotonic.HyperStack.mem -> b: Vale.Interop.Base.ibuf_t src t {LowStar.Monotonic.Buffer.live h b} -> i: Prims.nat { i < LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) / Vale.Interop.Types.view_n t } -> Prims.GTot (Vale.Interop.Types.base_typ_as_type t)
{ "end_col": 16, "end_line": 230, "start_col": 163, "start_line": 224 }
Prims.Tot
[ { "abbrev": false, "full_module": "Hacl.Poly1305_32", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Meta.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let poly1305_padded_32 = Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded #M32
let poly1305_padded_32 =
false
null
false
Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded #M32
{ "checked_file": "Hacl.Chacha20Poly1305_32.fst.checked", "dependencies": [ "prims.fst.checked", "Hacl.Poly1305_32.fsti.checked", "Hacl.Meta.Chacha20Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Chacha20Poly1305.PolyCore.fst.checked", "Hacl.Impl.Chacha20Poly1305.fst.checked", "Hacl.Chacha20.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20Poly1305_32.fst" }
[ "total" ]
[ "Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded", "Hacl.Impl.Poly1305.Fields.M32" ]
[]
module Hacl.Chacha20Poly1305_32 open Hacl.Meta.Chacha20Poly1305 open Hacl.Impl.Chacha20Poly1305 open Hacl.Impl.Poly1305.Fields open Hacl.Poly1305_32 #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" [@CInline]
false
true
Hacl.Chacha20Poly1305_32.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 50, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val poly1305_padded_32 : Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded_st Hacl.Impl.Poly1305.Fields.M32
[]
Hacl.Chacha20Poly1305_32.poly1305_padded_32
{ "file_name": "code/chacha20poly1305/Hacl.Chacha20Poly1305_32.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded_st Hacl.Impl.Poly1305.Fields.M32
{ "end_col": 81, "end_line": 12, "start_col": 25, "start_line": 12 }
Prims.Tot
val aead_encrypt:aead_encrypt_st M32
[ { "abbrev": false, "full_module": "Hacl.Poly1305_32", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Meta.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let aead_encrypt : aead_encrypt_st M32 = chacha20poly1305_aead_encrypt_higher #M32 True poly1305_do_32 Hacl.Chacha20.chacha20_encrypt
val aead_encrypt:aead_encrypt_st M32 let aead_encrypt:aead_encrypt_st M32 =
false
null
false
chacha20poly1305_aead_encrypt_higher #M32 True poly1305_do_32 Hacl.Chacha20.chacha20_encrypt
{ "checked_file": "Hacl.Chacha20Poly1305_32.fst.checked", "dependencies": [ "prims.fst.checked", "Hacl.Poly1305_32.fsti.checked", "Hacl.Meta.Chacha20Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Chacha20Poly1305.PolyCore.fst.checked", "Hacl.Impl.Chacha20Poly1305.fst.checked", "Hacl.Chacha20.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20Poly1305_32.fst" }
[ "total" ]
[ "Hacl.Meta.Chacha20Poly1305.chacha20poly1305_aead_encrypt_higher", "Hacl.Impl.Poly1305.Fields.M32", "Prims.l_True", "Hacl.Chacha20Poly1305_32.poly1305_do_32", "Hacl.Chacha20.chacha20_encrypt" ]
[]
module Hacl.Chacha20Poly1305_32 open Hacl.Meta.Chacha20Poly1305 open Hacl.Impl.Chacha20Poly1305 open Hacl.Impl.Poly1305.Fields open Hacl.Poly1305_32 #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" [@CInline] private let poly1305_padded_32 = Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded #M32 [@CInline] private let poly1305_do_32 = chacha20poly1305_poly1305_do_higher #M32 True poly1305_finish poly1305_init poly1305_padded_32 [@@ Comment "Encrypt a message `m` with key `k`. The arguments `k`, `n`, `aadlen`, and `aad` are same in encryption/decryption. Note: Encryption and decryption can be executed in-place, i.e., `m` and `cipher` can point to the same memory. @param k Pointer to 32 bytes of memory where the AEAD key is read from. @param n Pointer to 12 bytes of memory where the AEAD nonce is read from. @param aadlen Length of the associated data. @param aad Pointer to `aadlen` bytes of memory where the associated data is read from. @param mlen Length of the message. @param m Pointer to `mlen` bytes of memory where the message is read from. @param cipher Pointer to `mlen` bytes of memory where the ciphertext is written to. @param mac Pointer to 16 bytes of memory where the mac is written to."]
false
false
Hacl.Chacha20Poly1305_32.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 50, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val aead_encrypt:aead_encrypt_st M32
[]
Hacl.Chacha20Poly1305_32.aead_encrypt
{ "file_name": "code/chacha20poly1305/Hacl.Chacha20Poly1305_32.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Impl.Chacha20Poly1305.aead_encrypt_st Hacl.Impl.Poly1305.Fields.M32
{ "end_col": 94, "end_line": 33, "start_col": 2, "start_line": 33 }
Prims.Tot
val aead_decrypt:aead_decrypt_st M32
[ { "abbrev": false, "full_module": "Hacl.Poly1305_32", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Meta.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let aead_decrypt : aead_decrypt_st M32 = chacha20poly1305_aead_decrypt_higher #M32 True Hacl.Chacha20.chacha20_encrypt poly1305_do_32
val aead_decrypt:aead_decrypt_st M32 let aead_decrypt:aead_decrypt_st M32 =
false
null
false
chacha20poly1305_aead_decrypt_higher #M32 True Hacl.Chacha20.chacha20_encrypt poly1305_do_32
{ "checked_file": "Hacl.Chacha20Poly1305_32.fst.checked", "dependencies": [ "prims.fst.checked", "Hacl.Poly1305_32.fsti.checked", "Hacl.Meta.Chacha20Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Chacha20Poly1305.PolyCore.fst.checked", "Hacl.Impl.Chacha20Poly1305.fst.checked", "Hacl.Chacha20.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20Poly1305_32.fst" }
[ "total" ]
[ "Hacl.Meta.Chacha20Poly1305.chacha20poly1305_aead_decrypt_higher", "Hacl.Impl.Poly1305.Fields.M32", "Prims.l_True", "Hacl.Chacha20.chacha20_encrypt", "Hacl.Chacha20Poly1305_32.poly1305_do_32" ]
[]
module Hacl.Chacha20Poly1305_32 open Hacl.Meta.Chacha20Poly1305 open Hacl.Impl.Chacha20Poly1305 open Hacl.Impl.Poly1305.Fields open Hacl.Poly1305_32 #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" [@CInline] private let poly1305_padded_32 = Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded #M32 [@CInline] private let poly1305_do_32 = chacha20poly1305_poly1305_do_higher #M32 True poly1305_finish poly1305_init poly1305_padded_32 [@@ Comment "Encrypt a message `m` with key `k`. The arguments `k`, `n`, `aadlen`, and `aad` are same in encryption/decryption. Note: Encryption and decryption can be executed in-place, i.e., `m` and `cipher` can point to the same memory. @param k Pointer to 32 bytes of memory where the AEAD key is read from. @param n Pointer to 12 bytes of memory where the AEAD nonce is read from. @param aadlen Length of the associated data. @param aad Pointer to `aadlen` bytes of memory where the associated data is read from. @param mlen Length of the message. @param m Pointer to `mlen` bytes of memory where the message is read from. @param cipher Pointer to `mlen` bytes of memory where the ciphertext is written to. @param mac Pointer to 16 bytes of memory where the mac is written to."] let aead_encrypt : aead_encrypt_st M32 = chacha20poly1305_aead_encrypt_higher #M32 True poly1305_do_32 Hacl.Chacha20.chacha20_encrypt [@@ Comment "Decrypt a ciphertext `cipher` with key `k`. The arguments `k`, `n`, `aadlen`, and `aad` are same in encryption/decryption. Note: Encryption and decryption can be executed in-place, i.e., `m` and `cipher` can point to the same memory. If decryption succeeds, the resulting plaintext is stored in `m` and the function returns the success code 0. If decryption fails, the array `m` remains unchanged and the function returns the error code 1. @param k Pointer to 32 bytes of memory where the AEAD key is read from. @param n Pointer to 12 bytes of memory where the AEAD nonce is read from. @param aadlen Length of the associated data. @param aad Pointer to `aadlen` bytes of memory where the associated data is read from. @param mlen Length of the ciphertext. @param m Pointer to `mlen` bytes of memory where the message is written to. @param cipher Pointer to `mlen` bytes of memory where the ciphertext is read from. @param mac Pointer to 16 bytes of memory where the mac is read from. @returns 0 on succeess; 1 on failure."]
false
false
Hacl.Chacha20Poly1305_32.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 50, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val aead_decrypt:aead_decrypt_st M32
[]
Hacl.Chacha20Poly1305_32.aead_decrypt
{ "file_name": "code/chacha20poly1305/Hacl.Chacha20Poly1305_32.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Impl.Chacha20Poly1305.aead_decrypt_st Hacl.Impl.Poly1305.Fields.M32
{ "end_col": 94, "end_line": 55, "start_col": 2, "start_line": 55 }
Prims.Tot
[ { "abbrev": false, "full_module": "Hacl.Poly1305_32", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Meta.Chacha20Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let poly1305_do_32 = chacha20poly1305_poly1305_do_higher #M32 True poly1305_finish poly1305_init poly1305_padded_32
let poly1305_do_32 =
false
null
false
chacha20poly1305_poly1305_do_higher #M32 True poly1305_finish poly1305_init poly1305_padded_32
{ "checked_file": "Hacl.Chacha20Poly1305_32.fst.checked", "dependencies": [ "prims.fst.checked", "Hacl.Poly1305_32.fsti.checked", "Hacl.Meta.Chacha20Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Chacha20Poly1305.PolyCore.fst.checked", "Hacl.Impl.Chacha20Poly1305.fst.checked", "Hacl.Chacha20.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20Poly1305_32.fst" }
[ "total" ]
[ "Hacl.Meta.Chacha20Poly1305.chacha20poly1305_poly1305_do_higher", "Hacl.Impl.Poly1305.Fields.M32", "Prims.l_True", "Hacl.Poly1305_32.poly1305_finish", "Hacl.Poly1305_32.poly1305_init", "Hacl.Chacha20Poly1305_32.poly1305_padded_32" ]
[]
module Hacl.Chacha20Poly1305_32 open Hacl.Meta.Chacha20Poly1305 open Hacl.Impl.Chacha20Poly1305 open Hacl.Impl.Poly1305.Fields open Hacl.Poly1305_32 #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" [@CInline] private let poly1305_padded_32 = Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded #M32 [@CInline]
false
true
Hacl.Chacha20Poly1305_32.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 50, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val poly1305_do_32 : Hacl.Meta.Chacha20Poly1305.chacha20poly1305_poly1305_do_higher_t Prims.l_True
[]
Hacl.Chacha20Poly1305_32.poly1305_do_32
{ "file_name": "code/chacha20poly1305/Hacl.Chacha20Poly1305_32.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Meta.Chacha20Poly1305.chacha20poly1305_poly1305_do_higher_t Prims.l_True
{ "end_col": 115, "end_line": 16, "start_col": 21, "start_line": 16 }
Prims.Tot
val pow (a: int) (k: nat) : int
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "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 } ]
false
let rec pow (a:int) (k:nat) : int = if k = 0 then 1 else a * pow a (k - 1)
val pow (a: int) (k: nat) : int let rec pow (a: int) (k: nat) : int =
false
null
false
if k = 0 then 1 else a * pow a (k - 1)
{ "checked_file": "FStar.Math.Fermat.fsti.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Euclid.fsti.checked" ], "interface_file": false, "source_file": "FStar.Math.Fermat.fsti" }
[ "total" ]
[ "Prims.int", "Prims.nat", "Prims.op_Equality", "Prims.bool", "FStar.Mul.op_Star", "FStar.Math.Fermat.pow", "Prims.op_Subtraction" ]
[]
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Euclid /// Fermat's Little Theorem (and Binomial Theorem) /// /// Proven by induction from the Freshman's dream identity /// /// pow (a + b) p % p = (pow a p + pow b p) % p /// /// which follows from the Binomial Theorem /// /// pow (a + b) n = sum_{i=0}^n (binomial n k * pow a (n - i) * pow b i) /// /// which in turn can be proved by induction from Pascal's identity /// /// binomial n k + binomial n (k - 1) = binomial (n + 1) k /// /// See /// https://github.com/coqtail/coqtail/blob/master/src/Hierarchy/Commutative_ring_binomial.v /// https://github.com/coq-contribs/rsa/blob/master/Binomials.v /// #set-options "--fuel 0 --ifuel 0"
false
true
FStar.Math.Fermat.fsti
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val pow (a: int) (k: nat) : int
[ "recursion" ]
FStar.Math.Fermat.pow
{ "file_name": "ulib/FStar.Math.Fermat.fsti", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
a: Prims.int -> k: Prims.nat -> Prims.int
{ "end_col": 24, "end_line": 29, "start_col": 2, "start_line": 28 }
Prims.Tot
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let uint8_p = B.buffer UInt8.t
let uint8_p =
false
null
false
B.buffer UInt8.t
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "total" ]
[ "LowStar.Buffer.buffer", "FStar.UInt8.t" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic
false
true
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val uint8_p : Type0
[]
Vale.Wrapper.X64.GCMdecryptOpt.uint8_p
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 30, "end_line": 24, "start_col": 14, "start_line": 24 }
Prims.Tot
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2
let disjoint_or_eq (b1 b2: uint8_p) =
false
null
false
B.disjoint b1 b2 \/ b1 == b2
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "total" ]
[ "Vale.Wrapper.X64.GCMdecryptOpt.uint8_p", "Prims.l_or", "LowStar.Monotonic.Buffer.disjoint", "FStar.UInt8.t", "LowStar.Buffer.trivial_preorder", "Prims.eq2", "Prims.logical" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic let uint8_p = B.buffer UInt8.t let uint64 = UInt64.t
false
true
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val disjoint_or_eq : b1: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> b2: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> Prims.logical
[]
Vale.Wrapper.X64.GCMdecryptOpt.disjoint_or_eq
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b1: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> b2: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> Prims.logical
{ "end_col": 65, "end_line": 27, "start_col": 37, "start_line": 27 }
Prims.Tot
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let uint64 = UInt64.t
let uint64 =
false
null
false
UInt64.t
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "total" ]
[ "FStar.UInt64.t" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic
false
true
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val uint64 : Prims.eqtype
[]
Vale.Wrapper.X64.GCMdecryptOpt.uint64
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Prims.eqtype
{ "end_col": 21, "end_line": 25, "start_col": 13, "start_line": 25 }
FStar.Pervasives.Lemma
val length_aux3 (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0)
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let length_aux3 (b:uint8_p) (n:nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_mod n 16
val length_aux3 (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) let length_aux3 (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) =
false
null
true
let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_mod n 16
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "lemma" ]
[ "Vale.Wrapper.X64.GCMdecryptOpt.uint8_p", "Prims.nat", "FStar.Math.Lemmas.cancel_mul_mod", "Prims.unit", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "LowStar.BufferView.Down.buffer", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.length", "FStar.Mul.op_Star", "Prims.squash", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic let uint8_p = B.buffer UInt8.t let uint64 = UInt64.t let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2 let length_aux (b:uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux2 (b:uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux3 (b:uint8_p) (n:nat) : Lemma
false
false
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val length_aux3 (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0)
[]
Vale.Wrapper.X64.GCMdecryptOpt.length_aux3
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> n: Prims.nat -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 16 * n) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 16 = 0)
{ "end_col": 41, "end_line": 46, "start_col": 49, "start_line": 43 }
FStar.Pervasives.Lemma
val length_aux4 (b: uint8_p) : Lemma (requires B.length b = 16) (ensures DV.length (get_downview b) % 16 = 0)
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let length_aux4 (b:uint8_p) : Lemma (requires B.length b = 16) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db
val length_aux4 (b: uint8_p) : Lemma (requires B.length b = 16) (ensures DV.length (get_downview b) % 16 = 0) let length_aux4 (b: uint8_p) : Lemma (requires B.length b = 16) (ensures DV.length (get_downview b) % 16 = 0) =
false
null
true
let db = get_downview b in DV.length_eq db
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "lemma" ]
[ "Vale.Wrapper.X64.GCMdecryptOpt.uint8_p", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "LowStar.BufferView.Down.buffer", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.length", "Prims.squash", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic let uint8_p = B.buffer UInt8.t let uint64 = UInt64.t let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2 let length_aux (b:uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux2 (b:uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux3 (b:uint8_p) (n:nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_mod n 16 let length_aux4 (b:uint8_p) : Lemma
false
false
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val length_aux4 (b: uint8_p) : Lemma (requires B.length b = 16) (ensures DV.length (get_downview b) % 16 = 0)
[]
Vale.Wrapper.X64.GCMdecryptOpt.length_aux4
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 16) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 16 = 0)
{ "end_col": 19, "end_line": 52, "start_col": 49, "start_line": 50 }
FStar.Pervasives.Lemma
val length_aux (b: uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0)
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let length_aux (b:uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db
val length_aux (b: uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) let length_aux (b: uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) =
false
null
true
let db = get_downview b in DV.length_eq db
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "lemma" ]
[ "Vale.Wrapper.X64.GCMdecryptOpt.uint8_p", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "LowStar.BufferView.Down.buffer", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.length", "Prims.squash", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic let uint8_p = B.buffer UInt8.t let uint64 = UInt64.t let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2 let length_aux (b:uint8_p) : Lemma
false
false
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val length_aux (b: uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0)
[]
Vale.Wrapper.X64.GCMdecryptOpt.length_aux
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 176) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 16 = 0)
{ "end_col": 19, "end_line": 33, "start_col": 49, "start_line": 31 }
FStar.Pervasives.Lemma
val length_aux2 (b: uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0)
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let length_aux2 (b:uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db
val length_aux2 (b: uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0) let length_aux2 (b: uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0) =
false
null
true
let db = get_downview b in DV.length_eq db
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "lemma" ]
[ "Vale.Wrapper.X64.GCMdecryptOpt.uint8_p", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "LowStar.BufferView.Down.buffer", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.length", "Prims.squash", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic let uint8_p = B.buffer UInt8.t let uint64 = UInt64.t let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2 let length_aux (b:uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux2 (b:uint8_p) : Lemma
false
false
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val length_aux2 (b: uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0)
[]
Vale.Wrapper.X64.GCMdecryptOpt.length_aux2
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 240) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 16 = 0)
{ "end_col": 19, "end_line": 39, "start_col": 49, "start_line": 37 }
FStar.Pervasives.Lemma
val length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0)
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let length_aux5 (b:uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db
val length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0) let length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0) =
false
null
true
let db = get_downview b in DV.length_eq db
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "lemma" ]
[ "Vale.Wrapper.X64.GCMdecryptOpt.uint8_p", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "LowStar.BufferView.Down.buffer", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.length", "Prims.squash", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic let uint8_p = B.buffer UInt8.t let uint64 = UInt64.t let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2 let length_aux (b:uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux2 (b:uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux3 (b:uint8_p) (n:nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_mod n 16 let length_aux4 (b:uint8_p) : Lemma (requires B.length b = 16) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux5 (b:uint8_p) : Lemma
false
false
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0)
[]
Vale.Wrapper.X64.GCMdecryptOpt.length_aux5
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCMdecryptOpt.uint8_p -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 128) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 16 = 0)
{ "end_col": 19, "end_line": 58, "start_col": 49, "start_line": 56 }
Prims.Tot
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCM_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Up", "short_module": "UV" }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.Wrapper.X64", "short_module": null }, { "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 } ]
false
let decrypt_opt_stdcall_st (a: algorithm { a = AES_128 \/ a = AES_256 }) = key:Ghost.erased (Seq.seq nat32) -> iv:Ghost.erased supported_iv_LE -> cipher_b:uint8_p -> cipher_len:uint64 -> auth_b:uint8_p -> auth_len:uint64 -> iv_b:uint8_p -> out_b:uint8_p -> tag_b:uint8_p -> keys_b:uint8_p -> hkeys_b:uint8_p -> scratch_b:uint8_p -> Stack UInt64.t (requires fun h0 -> B.disjoint tag_b out_b /\ B.disjoint tag_b hkeys_b /\ B.disjoint tag_b cipher_b /\ B.disjoint tag_b auth_b /\ B.disjoint tag_b iv_b /\ disjoint_or_eq tag_b keys_b /\ B.disjoint iv_b keys_b /\ B.disjoint iv_b out_b /\ B.disjoint iv_b cipher_b /\ B.disjoint iv_b hkeys_b /\ B.disjoint iv_b auth_b /\ B.disjoint out_b keys_b /\ B.disjoint out_b hkeys_b /\ B.disjoint out_b auth_b /\ disjoint_or_eq out_b cipher_b /\ B.disjoint cipher_b keys_b /\ B.disjoint cipher_b hkeys_b /\ B.disjoint cipher_b auth_b /\ disjoint_or_eq keys_b hkeys_b /\ B.disjoint keys_b auth_b /\ B.disjoint hkeys_b auth_b /\ B.disjoint cipher_b scratch_b /\ B.disjoint auth_b scratch_b /\ B.disjoint iv_b scratch_b /\ B.disjoint out_b scratch_b /\ B.disjoint tag_b scratch_b /\ B.disjoint keys_b scratch_b /\ B.disjoint hkeys_b scratch_b /\ B.live h0 auth_b /\ B.live h0 keys_b /\ B.live h0 iv_b /\ B.live h0 hkeys_b /\ B.live h0 out_b /\ B.live h0 cipher_b /\ B.live h0 tag_b /\ B.live h0 scratch_b /\ B.length auth_b = UInt64.v auth_len /\ B.length iv_b = 16 /\ B.length cipher_b = UInt64.v cipher_len /\ B.length out_b = B.length cipher_b /\ B.length hkeys_b = 128 /\ B.length tag_b == 16 /\ B.length keys_b = Vale.Wrapper.X64.AES.key_offset a /\ B.length scratch_b = 176 /\ aesni_enabled /\ pclmulqdq_enabled /\ avx_enabled /\ sse_enabled /\ movbe_enabled /\ is_aes_key_LE a (Ghost.reveal key) /\ (Seq.equal (B.as_seq h0 keys_b) (seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes (key_to_round_keys_LE a (Ghost.reveal key))))) /\ hkeys_reqs_pub (le_bytes_to_seq_quad32 (seq_uint8_to_seq_nat8 (B.as_seq h0 hkeys_b))) (reverse_bytes_quad32 (aes_encrypt_LE a (Ghost.reveal key) (Mkfour 0 0 0 0))) /\ (le_bytes_to_quad32 (seq_uint8_to_seq_nat8 (B.as_seq h0 iv_b)) == compute_iv_BE (aes_encrypt_LE a (Ghost.reveal key) (Mkfour 0 0 0 0)) (Ghost.reveal iv)) ) (ensures fun h0 c h1 -> B.modifies (B.loc_union (B.loc_buffer scratch_b) (B.loc_union (B.loc_buffer iv_b) (B.loc_buffer out_b))) h0 h1 /\ (let cipher = seq_uint8_to_seq_nat8 (B.as_seq h0 cipher_b) in let auth = seq_uint8_to_seq_nat8 (B.as_seq h0 auth_b) in let expected_tag = seq_uint8_to_seq_nat8 (B.as_seq h0 tag_b) in let plain, result = gcm_decrypt_LE a (seq_nat32_to_seq_nat8_LE (Ghost.reveal key)) (Ghost.reveal iv) cipher auth expected_tag in Seq.equal (seq_uint8_to_seq_nat8 (B.as_seq h1 out_b)) plain /\ (UInt64.v c = 0) == result) )
let decrypt_opt_stdcall_st (a: algorithm{a = AES_128 \/ a = AES_256}) =
false
null
false
key: Ghost.erased (Seq.seq nat32) -> iv: Ghost.erased supported_iv_LE -> cipher_b: uint8_p -> cipher_len: uint64 -> auth_b: uint8_p -> auth_len: uint64 -> iv_b: uint8_p -> out_b: uint8_p -> tag_b: uint8_p -> keys_b: uint8_p -> hkeys_b: uint8_p -> scratch_b: uint8_p -> Stack UInt64.t (requires fun h0 -> B.disjoint tag_b out_b /\ B.disjoint tag_b hkeys_b /\ B.disjoint tag_b cipher_b /\ B.disjoint tag_b auth_b /\ B.disjoint tag_b iv_b /\ disjoint_or_eq tag_b keys_b /\ B.disjoint iv_b keys_b /\ B.disjoint iv_b out_b /\ B.disjoint iv_b cipher_b /\ B.disjoint iv_b hkeys_b /\ B.disjoint iv_b auth_b /\ B.disjoint out_b keys_b /\ B.disjoint out_b hkeys_b /\ B.disjoint out_b auth_b /\ disjoint_or_eq out_b cipher_b /\ B.disjoint cipher_b keys_b /\ B.disjoint cipher_b hkeys_b /\ B.disjoint cipher_b auth_b /\ disjoint_or_eq keys_b hkeys_b /\ B.disjoint keys_b auth_b /\ B.disjoint hkeys_b auth_b /\ B.disjoint cipher_b scratch_b /\ B.disjoint auth_b scratch_b /\ B.disjoint iv_b scratch_b /\ B.disjoint out_b scratch_b /\ B.disjoint tag_b scratch_b /\ B.disjoint keys_b scratch_b /\ B.disjoint hkeys_b scratch_b /\ B.live h0 auth_b /\ B.live h0 keys_b /\ B.live h0 iv_b /\ B.live h0 hkeys_b /\ B.live h0 out_b /\ B.live h0 cipher_b /\ B.live h0 tag_b /\ B.live h0 scratch_b /\ B.length auth_b = UInt64.v auth_len /\ B.length iv_b = 16 /\ B.length cipher_b = UInt64.v cipher_len /\ B.length out_b = B.length cipher_b /\ B.length hkeys_b = 128 /\ B.length tag_b == 16 /\ B.length keys_b = Vale.Wrapper.X64.AES.key_offset a /\ B.length scratch_b = 176 /\ aesni_enabled /\ pclmulqdq_enabled /\ avx_enabled /\ sse_enabled /\ movbe_enabled /\ is_aes_key_LE a (Ghost.reveal key) /\ (Seq.equal (B.as_seq h0 keys_b) (seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes (key_to_round_keys_LE a (Ghost.reveal key))))) /\ hkeys_reqs_pub (le_bytes_to_seq_quad32 (seq_uint8_to_seq_nat8 (B.as_seq h0 hkeys_b))) (reverse_bytes_quad32 (aes_encrypt_LE a (Ghost.reveal key) (Mkfour 0 0 0 0))) /\ (le_bytes_to_quad32 (seq_uint8_to_seq_nat8 (B.as_seq h0 iv_b)) == compute_iv_BE (aes_encrypt_LE a (Ghost.reveal key) (Mkfour 0 0 0 0)) (Ghost.reveal iv))) (ensures fun h0 c h1 -> B.modifies (B.loc_union (B.loc_buffer scratch_b) (B.loc_union (B.loc_buffer iv_b) (B.loc_buffer out_b))) h0 h1 /\ (let cipher = seq_uint8_to_seq_nat8 (B.as_seq h0 cipher_b) in let auth = seq_uint8_to_seq_nat8 (B.as_seq h0 auth_b) in let expected_tag = seq_uint8_to_seq_nat8 (B.as_seq h0 tag_b) in let plain, result = gcm_decrypt_LE a (seq_nat32_to_seq_nat8_LE (Ghost.reveal key)) (Ghost.reveal iv) cipher auth expected_tag in Seq.equal (seq_uint8_to_seq_nat8 (B.as_seq h1 out_b)) plain /\ (UInt64.v c = 0) == result))
{ "checked_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti.checked", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Vale.Wrapper.X64.AES.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.OptPublic.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale.AES.GCTR_s.fst.checked", "Vale.AES.GCTR.fsti.checked", "Vale.AES.GCM_s.fst.checked", "Vale.AES.GCM_helpers.fsti.checked", "Vale.AES.AES_s.fst.checked", "prims.fst.checked", "LowStar.BufferView.Up.fsti.checked", "LowStar.BufferView.Down.fsti.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Vale.Wrapper.X64.GCMdecryptOpt.fsti" }
[ "total" ]
[ "Vale.AES.AES_common_s.algorithm", "Prims.l_or", "Prims.b2t", "Prims.op_Equality", "Vale.AES.AES_common_s.AES_128", "Vale.AES.AES_common_s.AES_256", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat32", "Vale.AES.GCM_s.supported_iv_LE", "Vale.Wrapper.X64.GCMdecryptOpt.uint8_p", "Vale.Wrapper.X64.GCMdecryptOpt.uint64", "FStar.UInt64.t", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.disjoint", "FStar.UInt8.t", "LowStar.Buffer.trivial_preorder", "Vale.Wrapper.X64.GCMdecryptOpt.disjoint_or_eq", "LowStar.Monotonic.Buffer.live", "Prims.int", "Prims.op_GreaterThanOrEqual", "FStar.UInt.size", "FStar.UInt64.n", "LowStar.Monotonic.Buffer.length", "FStar.UInt64.v", "Prims.nat", "Prims.eq2", "Vale.Wrapper.X64.AES.key_offset", "Vale.X64.CPU_Features_s.aesni_enabled", "Vale.X64.CPU_Features_s.pclmulqdq_enabled", "Vale.X64.CPU_Features_s.avx_enabled", "Vale.X64.CPU_Features_s.sse_enabled", "Vale.X64.CPU_Features_s.movbe_enabled", "Vale.AES.AES_s.is_aes_key_LE", "FStar.Ghost.reveal", "FStar.Seq.Base.equal", "LowStar.Monotonic.Buffer.as_seq", "Vale.Def.Words.Seq_s.seq_nat8_to_seq_uint8", "Vale.Def.Types_s.le_seq_quad32_to_bytes", "Vale.AES.AES_s.key_to_round_keys_LE", "Vale.AES.OptPublic.hkeys_reqs_pub", "Vale.Def.Types_s.le_bytes_to_seq_quad32", "Vale.Def.Words.Seq_s.seq_uint8_to_seq_nat8", "Vale.Def.Types_s.reverse_bytes_quad32", "Vale.AES.AES_s.aes_encrypt_LE", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.quad32", "Vale.Def.Types_s.le_bytes_to_quad32", "Vale.AES.GCM_s.compute_iv_BE", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_union", "LowStar.Monotonic.Buffer.loc_buffer", "Vale.Def.Types_s.nat8", "Prims.bool", "Vale.Def.Words_s.nat8", "Prims.logical", "FStar.Pervasives.Native.tuple2", "Vale.AES.GCM_s.gcm_decrypt_LE", "Vale.Def.Words.Seq_s.seq_nat32_to_seq_nat8_LE" ]
[]
module Vale.Wrapper.X64.GCMdecryptOpt open Vale.X64.CPU_Features_s open FStar.HyperStack.ST module B = LowStar.Buffer module HS = FStar.HyperStack module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up open Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.AES.GCM_helpers open Vale.AES.AES_s open Vale.AES.GCM_s open Vale.AES.GHash_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.Interop.Base open Vale.Arch.Types open Vale.AES.OptPublic let uint8_p = B.buffer UInt8.t let uint64 = UInt64.t let disjoint_or_eq (b1 b2:uint8_p) = B.disjoint b1 b2 \/ b1 == b2 let length_aux (b:uint8_p) : Lemma (requires B.length b = 176) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux2 (b:uint8_p) : Lemma (requires B.length b = 240) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux3 (b:uint8_p) (n:nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_mod n 16 let length_aux4 (b:uint8_p) : Lemma (requires B.length b = 16) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db let length_aux5 (b:uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" inline_for_extraction noextract
false
false
Vale.Wrapper.X64.GCMdecryptOpt.fsti
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 30, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val decrypt_opt_stdcall_st : a: Vale.AES.AES_common_s.algorithm {a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256} -> Type0
[]
Vale.Wrapper.X64.GCMdecryptOpt.decrypt_opt_stdcall_st
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCMdecryptOpt.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Vale.AES.AES_common_s.algorithm {a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256} -> Type0
{ "end_col": 3, "end_line": 137, "start_col": 2, "start_line": 64 }
Prims.Tot
val canon_vprop (vp: term) : term
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "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 } ]
false
let canon_vprop (vp:term) : term = list_as_vprop (vprop_as_list vp)
val canon_vprop (vp: term) : term let canon_vprop (vp: term) : term =
false
null
false
list_as_vprop (vprop_as_list vp)
{ "checked_file": "Pulse.Checker.VPropEquiv.fsti.checked", "dependencies": [ "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Pulse.Checker.VPropEquiv.fsti" }
[ "total" ]
[ "Pulse.Syntax.Base.term", "Pulse.Typing.Combinators.list_as_vprop", "Pulse.Typing.Combinators.vprop_as_list" ]
[]
module Pulse.Checker.VPropEquiv open FStar.List.Tot open Pulse.Syntax open Pulse.Typing open Pulse.Typing.Combinators open Pulse.Checker.Base let canon_vprop (vp:term)
false
true
Pulse.Checker.VPropEquiv.fsti
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val canon_vprop (vp: term) : term
[]
Pulse.Checker.VPropEquiv.canon_vprop
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fsti", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
vp: Pulse.Syntax.Base.term -> Pulse.Syntax.Base.term
{ "end_col": 36, "end_line": 13, "start_col": 4, "start_line": 13 }
Prims.Tot
val vprop_equiv_typing_fwd (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g ctxt p) : tot_typing g p tm_vprop
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "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 } ]
false
let vprop_equiv_typing_fwd (#g:env) (#ctxt:_) (ctxt_typing:tot_typing g ctxt tm_vprop) (#p:_) (d:vprop_equiv g ctxt p) : tot_typing g p tm_vprop = let fwd, _ = vprop_equiv_typing d in fwd ctxt_typing
val vprop_equiv_typing_fwd (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g ctxt p) : tot_typing g p tm_vprop let vprop_equiv_typing_fwd (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g ctxt p) : tot_typing g p tm_vprop =
false
null
false
let fwd, _ = vprop_equiv_typing d in fwd ctxt_typing
{ "checked_file": "Pulse.Checker.VPropEquiv.fsti.checked", "dependencies": [ "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Pulse.Checker.VPropEquiv.fsti" }
[ "total" ]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "Pulse.Typing.vprop_equiv", "FStar.Pervasives.Native.tuple2", "Pulse.Typing.Combinators.vprop_equiv_typing" ]
[]
module Pulse.Checker.VPropEquiv open FStar.List.Tot open Pulse.Syntax open Pulse.Typing open Pulse.Typing.Combinators open Pulse.Checker.Base let canon_vprop (vp:term) : term = list_as_vprop (vprop_as_list vp) val ve_unit_r (g:env) (p:term) : vprop_equiv g (tm_star p tm_emp) p val list_as_vprop_append (g:env) (vp0 vp1:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (tm_star (list_as_vprop vp0) (list_as_vprop vp1))) val list_as_vprop_comm (g:env) (vp0 vp1:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp1 @ vp0))) val list_as_vprop_assoc (g:env) (vp0 vp1 vp2:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ (vp1 @ vp2))) (list_as_vprop ((vp0 @ vp1) @ vp2))) val list_as_vprop_ctx (g:env) (vp0 vp0' vp1 vp1':list term) (_:vprop_equiv g (list_as_vprop vp0) (list_as_vprop vp0')) (_:vprop_equiv g (list_as_vprop vp1) (list_as_vprop vp1')) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp0' @ vp1'))) val list_as_vprop_singleton (g:env) (p q:term) (d:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop [p]) (list_as_vprop [q])) val vprop_list_equiv (g:env) (vp:term) : GTot (vprop_equiv g vp (canon_vprop vp)) val vprop_equiv_swap_equiv (g:_) (l0 l2:list term) (p q:term) (d_p_q:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) (list_as_vprop ([p] @ (l0 @ l2)))) val vprop_equiv_split_frame (g:_) (ctxt req:term) (frame:list term) (d:vprop_equiv g (list_as_vprop (vprop_as_list req @ frame)) (list_as_vprop (vprop_as_list ctxt))) : vprop_equiv g (tm_star req (list_as_vprop frame)) ctxt let vprop_equiv_typing_fwd (#g:env) (#ctxt:_) (ctxt_typing:tot_typing g ctxt tm_vprop) (#p:_) (d:vprop_equiv g ctxt p)
false
false
Pulse.Checker.VPropEquiv.fsti
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val vprop_equiv_typing_fwd (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g ctxt p) : tot_typing g p tm_vprop
[]
Pulse.Checker.VPropEquiv.vprop_equiv_typing_fwd
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fsti", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
ctxt_typing: Pulse.Typing.tot_typing g ctxt Pulse.Syntax.Base.tm_vprop -> d: Pulse.Typing.vprop_equiv g ctxt p -> Pulse.Typing.tot_typing g p Pulse.Syntax.Base.tm_vprop
{ "end_col": 19, "end_line": 57, "start_col": 3, "start_line": 56 }
Prims.Tot
val vprop_equiv_typing_bk (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g p ctxt) : tot_typing g p tm_vprop
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker", "short_module": null }, { "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 } ]
false
let vprop_equiv_typing_bk (#g:env) (#ctxt:_) (ctxt_typing:tot_typing g ctxt tm_vprop) (#p:_) (d:vprop_equiv g p ctxt) : tot_typing g p tm_vprop = let _, bk = vprop_equiv_typing d in bk ctxt_typing
val vprop_equiv_typing_bk (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g p ctxt) : tot_typing g p tm_vprop let vprop_equiv_typing_bk (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g p ctxt) : tot_typing g p tm_vprop =
false
null
false
let _, bk = vprop_equiv_typing d in bk ctxt_typing
{ "checked_file": "Pulse.Checker.VPropEquiv.fsti.checked", "dependencies": [ "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Pulse.Checker.VPropEquiv.fsti" }
[ "total" ]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "Pulse.Typing.vprop_equiv", "FStar.Pervasives.Native.tuple2", "Pulse.Typing.Combinators.vprop_equiv_typing" ]
[]
module Pulse.Checker.VPropEquiv open FStar.List.Tot open Pulse.Syntax open Pulse.Typing open Pulse.Typing.Combinators open Pulse.Checker.Base let canon_vprop (vp:term) : term = list_as_vprop (vprop_as_list vp) val ve_unit_r (g:env) (p:term) : vprop_equiv g (tm_star p tm_emp) p val list_as_vprop_append (g:env) (vp0 vp1:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (tm_star (list_as_vprop vp0) (list_as_vprop vp1))) val list_as_vprop_comm (g:env) (vp0 vp1:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp1 @ vp0))) val list_as_vprop_assoc (g:env) (vp0 vp1 vp2:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ (vp1 @ vp2))) (list_as_vprop ((vp0 @ vp1) @ vp2))) val list_as_vprop_ctx (g:env) (vp0 vp0' vp1 vp1':list term) (_:vprop_equiv g (list_as_vprop vp0) (list_as_vprop vp0')) (_:vprop_equiv g (list_as_vprop vp1) (list_as_vprop vp1')) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp0' @ vp1'))) val list_as_vprop_singleton (g:env) (p q:term) (d:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop [p]) (list_as_vprop [q])) val vprop_list_equiv (g:env) (vp:term) : GTot (vprop_equiv g vp (canon_vprop vp)) val vprop_equiv_swap_equiv (g:_) (l0 l2:list term) (p q:term) (d_p_q:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) (list_as_vprop ([p] @ (l0 @ l2)))) val vprop_equiv_split_frame (g:_) (ctxt req:term) (frame:list term) (d:vprop_equiv g (list_as_vprop (vprop_as_list req @ frame)) (list_as_vprop (vprop_as_list ctxt))) : vprop_equiv g (tm_star req (list_as_vprop frame)) ctxt let vprop_equiv_typing_fwd (#g:env) (#ctxt:_) (ctxt_typing:tot_typing g ctxt tm_vprop) (#p:_) (d:vprop_equiv g ctxt p) : tot_typing g p tm_vprop = let fwd, _ = vprop_equiv_typing d in fwd ctxt_typing let vprop_equiv_typing_bk (#g:env) (#ctxt:_) (ctxt_typing:tot_typing g ctxt tm_vprop) (#p:_) (d:vprop_equiv g p ctxt)
false
false
Pulse.Checker.VPropEquiv.fsti
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": true, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val vprop_equiv_typing_bk (#g: env) (#ctxt: _) (ctxt_typing: tot_typing g ctxt tm_vprop) (#p: _) (d: vprop_equiv g p ctxt) : tot_typing g p tm_vprop
[]
Pulse.Checker.VPropEquiv.vprop_equiv_typing_bk
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fsti", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
ctxt_typing: Pulse.Typing.tot_typing g ctxt Pulse.Syntax.Base.tm_vprop -> d: Pulse.Typing.vprop_equiv g p ctxt -> Pulse.Typing.tot_typing g p Pulse.Syntax.Base.tm_vprop
{ "end_col": 18, "end_line": 64, "start_col": 3, "start_line": 63 }
FStar.HyperStack.ST.Stack
val hsalsa20: out:lbuffer uint8 32ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.hsalsa20 (as_seq h0 key) (as_seq h0 n))
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let hsalsa20 out key n = Hacl.Impl.HSalsa20.hsalsa20 out key n
val hsalsa20: out:lbuffer uint8 32ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.hsalsa20 (as_seq h0 key) (as_seq h0 n)) let hsalsa20 out key n =
true
null
false
Hacl.Impl.HSalsa20.hsalsa20 out key n
{ "checked_file": "Hacl.Salsa20.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Salsa20.fst.checked", "Hacl.Impl.HSalsa20.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Salsa20.fst" }
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.HSalsa20.hsalsa20", "Prims.unit" ]
[]
module Hacl.Salsa20 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer module Spec = Spec.Salsa20 val salsa20_encrypt: len:size_t -> out:lbuffer uint8 len -> text:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_encrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 text)) let salsa20_encrypt len out text key n ctr = Hacl.Impl.Salsa20.salsa20_encrypt len out text key n ctr val salsa20_decrypt: len:size_t -> out:lbuffer uint8 len -> cipher:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_decrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 cipher)) let salsa20_decrypt len out cipher key n ctr = Hacl.Impl.Salsa20.salsa20_decrypt len out cipher key n ctr val salsa20_key_block0: out:lbuffer uint8 64ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.Salsa20.salsa20_key_block0 (as_seq h0 key) (as_seq h0 n)) let salsa20_key_block0 out key n = Hacl.Impl.Salsa20.salsa20_key_block0 out key n val hsalsa20: out:lbuffer uint8 32ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.hsalsa20 (as_seq h0 key) (as_seq h0 n))
false
false
Hacl.Salsa20.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val hsalsa20: out:lbuffer uint8 32ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.hsalsa20 (as_seq h0 key) (as_seq h0 n))
[]
Hacl.Salsa20.hsalsa20
{ "file_name": "code/salsa20/Hacl.Salsa20.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 39, "end_line": 66, "start_col": 2, "start_line": 66 }
FStar.HyperStack.ST.Stack
val salsa20_key_block0: out:lbuffer uint8 64ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.Salsa20.salsa20_key_block0 (as_seq h0 key) (as_seq h0 n))
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let salsa20_key_block0 out key n = Hacl.Impl.Salsa20.salsa20_key_block0 out key n
val salsa20_key_block0: out:lbuffer uint8 64ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.Salsa20.salsa20_key_block0 (as_seq h0 key) (as_seq h0 n)) let salsa20_key_block0 out key n =
true
null
false
Hacl.Impl.Salsa20.salsa20_key_block0 out key n
{ "checked_file": "Hacl.Salsa20.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Salsa20.fst.checked", "Hacl.Impl.HSalsa20.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Salsa20.fst" }
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Salsa20.salsa20_key_block0", "Prims.unit" ]
[]
module Hacl.Salsa20 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer module Spec = Spec.Salsa20 val salsa20_encrypt: len:size_t -> out:lbuffer uint8 len -> text:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_encrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 text)) let salsa20_encrypt len out text key n ctr = Hacl.Impl.Salsa20.salsa20_encrypt len out text key n ctr val salsa20_decrypt: len:size_t -> out:lbuffer uint8 len -> cipher:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_decrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 cipher)) let salsa20_decrypt len out cipher key n ctr = Hacl.Impl.Salsa20.salsa20_decrypt len out cipher key n ctr val salsa20_key_block0: out:lbuffer uint8 64ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.Salsa20.salsa20_key_block0 (as_seq h0 key) (as_seq h0 n))
false
false
Hacl.Salsa20.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val salsa20_key_block0: out:lbuffer uint8 64ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.Salsa20.salsa20_key_block0 (as_seq h0 key) (as_seq h0 n))
[]
Hacl.Salsa20.salsa20_key_block0
{ "file_name": "code/salsa20/Hacl.Salsa20.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 8ul -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 48, "end_line": 53, "start_col": 2, "start_line": 53 }
FStar.HyperStack.ST.Stack
val salsa20_encrypt: len:size_t -> out:lbuffer uint8 len -> text:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_encrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 text))
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let salsa20_encrypt len out text key n ctr = Hacl.Impl.Salsa20.salsa20_encrypt len out text key n ctr
val salsa20_encrypt: len:size_t -> out:lbuffer uint8 len -> text:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_encrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 text)) let salsa20_encrypt len out text key n ctr =
true
null
false
Hacl.Impl.Salsa20.salsa20_encrypt len out text key n ctr
{ "checked_file": "Hacl.Salsa20.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Salsa20.fst.checked", "Hacl.Impl.HSalsa20.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Salsa20.fst" }
[]
[ "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Salsa20.salsa20_encrypt", "Prims.unit" ]
[]
module Hacl.Salsa20 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer module Spec = Spec.Salsa20 val salsa20_encrypt: len:size_t -> out:lbuffer uint8 len -> text:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_encrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 text))
false
false
Hacl.Salsa20.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val salsa20_encrypt: len:size_t -> out:lbuffer uint8 len -> text:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_encrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 text))
[]
Hacl.Salsa20.salsa20_encrypt
{ "file_name": "code/salsa20/Hacl.Salsa20.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
len: Lib.IntTypes.size_t -> out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len -> text: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len -> key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 8ul -> ctr: Lib.IntTypes.size_t -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 58, "end_line": 24, "start_col": 2, "start_line": 24 }
FStar.HyperStack.ST.Stack
val salsa20_decrypt: len:size_t -> out:lbuffer uint8 len -> cipher:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_decrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 cipher))
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "abbrev": false, "full_module": "Hacl", "short_module": null }, { "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 } ]
false
let salsa20_decrypt len out cipher key n ctr = Hacl.Impl.Salsa20.salsa20_decrypt len out cipher key n ctr
val salsa20_decrypt: len:size_t -> out:lbuffer uint8 len -> cipher:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_decrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 cipher)) let salsa20_decrypt len out cipher key n ctr =
true
null
false
Hacl.Impl.Salsa20.salsa20_decrypt len out cipher key n ctr
{ "checked_file": "Hacl.Salsa20.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Salsa20.fst.checked", "Hacl.Impl.HSalsa20.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.All.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Salsa20.fst" }
[]
[ "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Salsa20.salsa20_decrypt", "Prims.unit" ]
[]
module Hacl.Salsa20 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer module Spec = Spec.Salsa20 val salsa20_encrypt: len:size_t -> out:lbuffer uint8 len -> text:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h text /\ live h out /\ eq_or_disjoint text out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_encrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 text)) let salsa20_encrypt len out text key n ctr = Hacl.Impl.Salsa20.salsa20_encrypt len out text key n ctr val salsa20_decrypt: len:size_t -> out:lbuffer uint8 len -> cipher:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_decrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 cipher))
false
false
Hacl.Salsa20.fst
{ "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_elim_box": false, "smtencoding_l_arith_repr": "boxwrap", "smtencoding_nl_arith_repr": "boxwrap", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val salsa20_decrypt: len:size_t -> out:lbuffer uint8 len -> cipher:lbuffer uint8 len -> key:lbuffer uint8 32ul -> n:lbuffer uint8 8ul -> ctr:size_t -> Stack unit (requires fun h -> live h key /\ live h n /\ live h cipher /\ live h out /\ eq_or_disjoint cipher out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.salsa20_decrypt_bytes (as_seq h0 key) (as_seq h0 n) (v ctr) (as_seq h0 cipher))
[]
Hacl.Salsa20.salsa20_decrypt
{ "file_name": "code/salsa20/Hacl.Salsa20.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
len: Lib.IntTypes.size_t -> out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len -> cipher: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len -> key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 8ul -> ctr: Lib.IntTypes.size_t -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 60, "end_line": 40, "start_col": 2, "start_line": 40 }
Prims.Tot
val va_ffalse (reason:string) : va_pbool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let va_ffalse = Vale.Def.PossiblyMonad.ffalse
val va_ffalse (reason:string) : va_pbool let va_ffalse =
false
null
false
Vale.Def.PossiblyMonad.ffalse
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.Def.PossiblyMonad.ffalse" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_ffalse (reason:string) : va_pbool
[]
Vale.X64.Decls.va_ffalse
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
reason: Prims.string -> Vale.X64.Decls.va_pbool
{ "end_col": 45, "end_line": 32, "start_col": 16, "start_line": 32 }
FStar.Pervasives.Lemma
val mul_nat_helper (x y:nat) : Lemma (x * y >= 0)
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y
val mul_nat_helper (x y:nat) : Lemma (x * y >= 0) let mul_nat_helper x y =
false
null
true
FStar.Math.Lemmas.nat_times_nat_is_nat x y
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "lemma" ]
[ "Prims.nat", "FStar.Math.Lemmas.nat_times_nat_is_nat", "Prims.unit" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val mul_nat_helper (x y:nat) : Lemma (x * y >= 0)
[]
Vale.X64.Decls.mul_nat_helper
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Prims.nat -> y: Prims.nat -> FStar.Pervasives.Lemma (ensures x * y >= 0)
{ "end_col": 44, "end_line": 40, "start_col": 2, "start_line": 40 }
Prims.Tot
val ins : Type0
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let ins = BS.ins
val ins : Type0 let ins =
false
null
false
BS.ins
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Machine_Semantics_s.ins" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val ins : Type0
[]
Vale.X64.Decls.ins
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 16, "end_line": 26, "start_col": 10, "start_line": 26 }
Prims.Tot
val va_ttrue (_:unit) : va_pbool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let va_ttrue () = Vale.Def.PossiblyMonad.ttrue
val va_ttrue (_:unit) : va_pbool let va_ttrue () =
false
null
false
Vale.Def.PossiblyMonad.ttrue
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Prims.unit", "Vale.Def.PossiblyMonad.ttrue", "Vale.X64.Decls.va_pbool" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_ttrue (_:unit) : va_pbool
[]
Vale.X64.Decls.va_ttrue
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> Vale.X64.Decls.va_pbool
{ "end_col": 46, "end_line": 31, "start_col": 18, "start_line": 31 }
Prims.GTot
val eval_ocmp : s:va_state -> c:ocmp -> GTot bool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let eval_ocmp = Lemmas.eval_ocmp
val eval_ocmp : s:va_state -> c:ocmp -> GTot bool let eval_ocmp =
false
null
false
Lemmas.eval_ocmp
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "sometrivial" ]
[ "Vale.X64.Lemmas.eval_ocmp" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val eval_ocmp : s:va_state -> c:ocmp -> GTot bool
[]
Vale.X64.Decls.eval_ocmp
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: Vale.X64.Decls.va_state -> c: Vale.X64.Decls.ocmp -> Prims.GTot Prims.bool
{ "end_col": 32, "end_line": 113, "start_col": 16, "start_line": 113 }
Prims.Tot
val havoc_flags : Flags.t
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let havoc_flags = Lemmas.havoc_flags
val havoc_flags : Flags.t let havoc_flags =
false
null
false
Lemmas.havoc_flags
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Lemmas.havoc_flags" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val havoc_flags : Flags.t
[]
Vale.X64.Decls.havoc_flags
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Vale.X64.Flags.t
{ "end_col": 36, "end_line": 115, "start_col": 18, "start_line": 115 }
Prims.Tot
val eval_code (c:va_code) (s0:va_state) (f0:va_fuel) (sN:va_state) : prop0
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let eval_code = Lemmas.eval_code
val eval_code (c:va_code) (s0:va_state) (f0:va_fuel) (sN:va_state) : prop0 let eval_code =
false
null
false
Lemmas.eval_code
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Lemmas.eval_code" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val eval_code (c:va_code) (s0:va_state) (f0:va_fuel) (sN:va_state) : prop0
[]
Vale.X64.Decls.eval_code
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c: Vale.X64.Decls.va_code -> s0: Vale.X64.Decls.va_state -> f0: Vale.X64.Decls.va_fuel -> sN: Vale.X64.Decls.va_state -> Vale.Def.Prop_s.prop0
{ "end_col": 32, "end_line": 101, "start_col": 16, "start_line": 101 }
Prims.Tot
val gcc_linux : printer
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let gcc_linux = P.gcc_linux
val gcc_linux : printer let gcc_linux =
false
null
false
P.gcc_linux
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Print_s.gcc_linux" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total let printer = P.printer let print_string = FStar.IO.print_string let print_header = P.print_header let print_proc = P.print_proc let print_footer = P.print_footer let masm = P.masm
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val gcc_linux : printer
[]
Vale.X64.Decls.gcc_linux
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Vale.X64.Decls.printer
{ "end_col": 27, "end_line": 151, "start_col": 16, "start_line": 151 }
Prims.GTot
val valid_ocmp : c:ocmp -> s:va_state -> GTot bool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let valid_ocmp = Lemmas.valid_ocmp
val valid_ocmp : c:ocmp -> s:va_state -> GTot bool let valid_ocmp =
false
null
false
Lemmas.valid_ocmp
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "sometrivial" ]
[ "Vale.X64.Lemmas.valid_ocmp" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val valid_ocmp : c:ocmp -> s:va_state -> GTot bool
[]
Vale.X64.Decls.valid_ocmp
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c: Vale.X64.Decls.ocmp -> s: Vale.X64.Decls.va_state -> Prims.GTot Prims.bool
{ "end_col": 34, "end_line": 114, "start_col": 17, "start_line": 114 }
Prims.Ghost
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let va_eval_ins = Lemmas.eval_ins
let va_eval_ins =
false
null
false
Lemmas.eval_ins
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[]
[ "Vale.X64.Lemmas.eval_ins" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_eval_ins : c: Vale.X64.Lemmas.code -> s0: Vale.X64.State.vale_state -> Prims.Ghost (Vale.X64.State.vale_state * Vale.X64.Lemmas.fuel)
[]
Vale.X64.Decls.va_eval_ins
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c: Vale.X64.Lemmas.code -> s0: Vale.X64.State.vale_state -> Prims.Ghost (Vale.X64.State.vale_state * Vale.X64.Lemmas.fuel)
{ "end_col": 40, "end_line": 117, "start_col": 25, "start_line": 117 }
FStar.All.ML
val print_string : string -> FStar.All.ML unit
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let print_string = FStar.IO.print_string
val print_string : string -> FStar.All.ML unit let print_string =
true
null
false
FStar.IO.print_string
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "ml" ]
[ "FStar.IO.print_string" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val print_string : string -> FStar.All.ML unit
[]
Vale.X64.Decls.print_string
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.string -> FStar.All.ML Prims.unit
{ "end_col": 40, "end_line": 145, "start_col": 19, "start_line": 145 }
Prims.Tot
val gcc : printer
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let gcc = P.gcc
val gcc : printer let gcc =
false
null
false
P.gcc
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Print_s.gcc" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total let printer = P.printer let print_string = FStar.IO.print_string let print_header = P.print_header let print_proc = P.print_proc let print_footer = P.print_footer
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val gcc : printer
[]
Vale.X64.Decls.gcc
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Vale.X64.Decls.printer
{ "end_col": 15, "end_line": 150, "start_col": 10, "start_line": 150 }
FStar.All.ML
val print_footer : printer -> FStar.All.ML unit
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let print_footer = P.print_footer
val print_footer : printer -> FStar.All.ML unit let print_footer =
true
null
false
P.print_footer
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "ml" ]
[ "Vale.X64.Print_s.print_footer" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total let printer = P.printer let print_string = FStar.IO.print_string let print_header = P.print_header
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val print_footer : printer -> FStar.All.ML unit
[]
Vale.X64.Decls.print_footer
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Vale.X64.Decls.printer -> FStar.All.ML Prims.unit
{ "end_col": 33, "end_line": 148, "start_col": 19, "start_line": 148 }
FStar.All.ML
val print_header : printer -> FStar.All.ML unit
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let print_header = P.print_header
val print_header : printer -> FStar.All.ML unit let print_header =
true
null
false
P.print_header
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "ml" ]
[ "Vale.X64.Print_s.print_header" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total let printer = P.printer
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val print_header : printer -> FStar.All.ML unit
[]
Vale.X64.Decls.print_header
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Vale.X64.Decls.printer -> FStar.All.ML Prims.unit
{ "end_col": 33, "end_line": 146, "start_col": 19, "start_line": 146 }
Prims.Tot
val masm : printer
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let masm = P.masm
val masm : printer let masm =
false
null
false
P.masm
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Print_s.masm" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total let printer = P.printer let print_string = FStar.IO.print_string let print_header = P.print_header let print_proc = P.print_proc
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val masm : printer
[]
Vale.X64.Decls.masm
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Vale.X64.Decls.printer
{ "end_col": 17, "end_line": 149, "start_col": 11, "start_line": 149 }
FStar.All.ML
val print_proc : (name:string) -> (code:va_code) -> (label:int) -> (p:printer) -> FStar.All.ML int
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let print_proc = P.print_proc
val print_proc : (name:string) -> (code:va_code) -> (label:int) -> (p:printer) -> FStar.All.ML int let print_proc =
true
null
false
P.print_proc
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "ml" ]
[ "Vale.X64.Print_s.print_proc" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total let printer = P.printer let print_string = FStar.IO.print_string
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val print_proc : (name:string) -> (code:va_code) -> (label:int) -> (p:printer) -> FStar.All.ML int
[]
Vale.X64.Decls.print_proc
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
name: Prims.string -> code: Vale.X64.Decls.va_code -> label: Prims.int -> p: Vale.X64.Decls.printer -> FStar.All.ML Prims.int
{ "end_col": 29, "end_line": 147, "start_col": 17, "start_line": 147 }
Prims.Tot
val printer : Type0
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let printer = P.printer
val printer : Type0 let printer =
false
null
false
P.printer
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Print_s.printer" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = () let va_compute_merge_total = Lemmas.compute_merge_total let va_lemma_merge_total b0 s0 f0 sM fM sN = Lemmas.lemma_merge_total b0 s0 f0 sM fM sN; Lemmas.compute_merge_total f0 fM let va_lemma_empty_total = Lemmas.lemma_empty_total let va_lemma_ifElse_total = Lemmas.lemma_ifElse_total let va_lemma_ifElseTrue_total = Lemmas.lemma_ifElseTrue_total let va_lemma_ifElseFalse_total = Lemmas.lemma_ifElseFalse_total let va_lemma_while_total = Lemmas.lemma_while_total let va_lemma_whileTrue_total = Lemmas.lemma_whileTrue_total let va_lemma_whileFalse_total = Lemmas.lemma_whileFalse_total let va_lemma_whileMerge_total = Lemmas.lemma_whileMerge_total
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val printer : Type0
[]
Vale.X64.Decls.printer
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 23, "end_line": 144, "start_col": 14, "start_line": 144 }
Prims.Tot
val va_fuel_default : unit -> va_fuel
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let va_fuel_default () = 0
val va_fuel_default : unit -> va_fuel let va_fuel_default () =
false
null
false
0
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Prims.unit", "Vale.X64.Decls.va_fuel" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_fuel_default : unit -> va_fuel
[]
Vale.X64.Decls.va_fuel_default
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> Vale.X64.Decls.va_fuel
{ "end_col": 26, "end_line": 42, "start_col": 25, "start_line": 42 }
Prims.Tot
val va_pbool_and (x y:va_pbool) : va_pbool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y
val va_pbool_and (x y:va_pbool) : va_pbool let va_pbool_and x y =
false
null
false
Vale.Def.PossiblyMonad.(( &&. )) x y
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Decls.va_pbool", "Vale.Def.PossiblyMonad.op_Amp_Amp_Dot" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_pbool_and (x y:va_pbool) : va_pbool
[]
Vale.X64.Decls.va_pbool_and
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Vale.X64.Decls.va_pbool -> y: Vale.X64.Decls.va_pbool -> Vale.X64.Decls.va_pbool
{ "end_col": 57, "end_line": 33, "start_col": 23, "start_line": 33 }
Prims.Tot
val taint_at (memTaint:M.memtaint) (addr:int) : taint
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let taint_at memTaint addr = Map.sel memTaint addr
val taint_at (memTaint:M.memtaint) (addr:int) : taint let taint_at memTaint addr =
false
null
false
Map.sel memTaint addr
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Memory.memtaint", "Prims.int", "FStar.Map.sel", "Vale.Arch.HeapTypes_s.taint" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val taint_at (memTaint:M.memtaint) (addr:int) : taint
[]
Vale.X64.Decls.taint_at
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
memTaint: Vale.X64.Memory.memtaint -> addr: Prims.int -> Vale.Arch.HeapTypes_s.taint
{ "end_col": 50, "end_line": 92, "start_col": 29, "start_line": 92 }
Prims.Tot
val eval_while_inv (c:va_code) (s0:va_state) (fW:va_fuel) (sW:va_state) : prop0
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let eval_while_inv = Lemmas.eval_while_inv
val eval_while_inv (c:va_code) (s0:va_state) (fW:va_fuel) (sW:va_state) : prop0 let eval_while_inv =
false
null
false
Lemmas.eval_while_inv
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Lemmas.eval_while_inv" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val eval_while_inv (c:va_code) (s0:va_state) (fW:va_fuel) (sW:va_state) : prop0
[]
Vale.X64.Decls.eval_while_inv
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c: Vale.X64.Decls.va_code -> s0: Vale.X64.Decls.va_state -> fW: Vale.X64.Decls.va_fuel -> sW: Vale.X64.Decls.va_state -> Vale.Def.Prop_s.prop0
{ "end_col": 42, "end_line": 102, "start_col": 21, "start_line": 102 }
Prims.Tot
val va_compute_merge_total (f0:va_fuel) (fM:va_fuel) : va_fuel
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let va_compute_merge_total = Lemmas.compute_merge_total
val va_compute_merge_total (f0:va_fuel) (fM:va_fuel) : va_fuel let va_compute_merge_total =
false
null
false
Lemmas.compute_merge_total
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Lemmas.compute_merge_total" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2 let va_cmp_lt o1 o2 = BC.OLt o1 o2 let va_cmp_gt o1 o2 = BC.OGt o1 o2 let eval_code = Lemmas.eval_code let eval_while_inv = Lemmas.eval_while_inv let va_ins_lemma (c0:va_code) (s0:va_state) : Lemma (requires True) (ensures (forall (i:ins) (s:BS.machine_state).{:pattern (BS.machine_eval_code_ins i s)} BS.machine_eval_code_ins i s == BS.machine_eval_code_ins_def i s) ) = reveal_opaque (`%BS.machine_eval_code_ins) BS.machine_eval_code_ins let eval_ocmp = Lemmas.eval_ocmp let valid_ocmp = Lemmas.valid_ocmp let havoc_flags = Lemmas.havoc_flags unfold let va_eval_ins = Lemmas.eval_ins let lemma_cmp_eq s o1 o2 = () let lemma_cmp_ne s o1 o2 = () let lemma_cmp_le s o1 o2 = () let lemma_cmp_ge s o1 o2 = () let lemma_cmp_lt s o1 o2 = () let lemma_cmp_gt s o1 o2 = () let lemma_valid_cmp_eq s o1 o2 = () let lemma_valid_cmp_ne s o1 o2 = () let lemma_valid_cmp_le s o1 o2 = () let lemma_valid_cmp_ge s o1 o2 = () let lemma_valid_cmp_lt s o1 o2 = () let lemma_valid_cmp_gt s o1 o2 = ()
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_compute_merge_total (f0:va_fuel) (fM:va_fuel) : va_fuel
[]
Vale.X64.Decls.va_compute_merge_total
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
f0: Vale.X64.Decls.va_fuel -> fM: Vale.X64.Decls.va_fuel -> Vale.X64.Decls.va_fuel
{ "end_col": 55, "end_line": 133, "start_col": 29, "start_line": 133 }
Prims.Tot
val cf (flags:Flags.t) : bool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false
val cf (flags:Flags.t) : bool let cf flags =
false
null
false
match Lemmas.cf flags with | Some v -> v | None -> false
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Flags.t", "Vale.X64.Lemmas.cf", "Prims.bool" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2"
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val cf (flags:Flags.t) : bool
[]
Vale.X64.Decls.cf
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
flags: Vale.X64.Flags.t -> Prims.bool
{ "end_col": 71, "end_line": 18, "start_col": 15, "start_line": 18 }
Prims.Tot
val overflow (flags:Flags.t) : bool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false
val overflow (flags:Flags.t) : bool let overflow flags =
false
null
false
match Lemmas.overflow flags with | Some v -> v | None -> false
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Flags.t", "Vale.X64.Lemmas.overflow", "Prims.bool" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2"
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val overflow (flags:Flags.t) : bool
[]
Vale.X64.Decls.overflow
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
flags: Vale.X64.Flags.t -> Prims.bool
{ "end_col": 83, "end_line": 19, "start_col": 21, "start_line": 19 }
Prims.Tot
val valid_of (flags:Flags.t) : bool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false
val valid_of (flags:Flags.t) : bool let valid_of flags =
false
null
false
match Lemmas.overflow flags with | Some v -> true | None -> false
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Flags.t", "Vale.X64.Lemmas.overflow", "Prims.bool" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val valid_of (flags:Flags.t) : bool
[]
Vale.X64.Decls.valid_of
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
flags: Vale.X64.Flags.t -> Prims.bool
{ "end_col": 86, "end_line": 21, "start_col": 21, "start_line": 21 }
Prims.Tot
val valid_cf (flags:Flags.t) : bool
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false
val valid_cf (flags:Flags.t) : bool let valid_cf flags =
false
null
false
match Lemmas.cf flags with | Some v -> true | None -> false
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Flags.t", "Vale.X64.Lemmas.cf", "Prims.bool" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false
false
true
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val valid_cf (flags:Flags.t) : bool
[]
Vale.X64.Decls.valid_cf
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
flags: Vale.X64.Flags.t -> Prims.bool
{ "end_col": 80, "end_line": 20, "start_col": 21, "start_line": 20 }
Prims.Tot
val va_cmp_gt (o1:operand64{ not (OMem? o1 || OStack? o1) }) (o2:operand64{ not (OMem? o2 || OStack? o2) }) : ocmp
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let va_cmp_gt o1 o2 = BC.OGt o1 o2
val va_cmp_gt (o1:operand64{ not (OMem? o1 || OStack? o1) }) (o2:operand64{ not (OMem? o2 || OStack? o2) }) : ocmp let va_cmp_gt o1 o2 =
false
null
false
BC.OGt o1 o2
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[ "total" ]
[ "Vale.X64.Machine_s.operand64", "Prims.b2t", "Prims.op_Negation", "Prims.op_BarBar", "Vale.X64.Machine_s.uu___is_OMem", "Vale.X64.Machine_s.nat64", "Vale.X64.Machine_s.reg_64", "Vale.X64.Machine_s.uu___is_OStack", "Vale.X64.Bytes_Code_s.OGt", "Vale.X64.Decls.ocmp" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf let maintained_cf new_flags flags = Lemmas.cf new_flags = Lemmas.cf flags let maintained_of new_flags flags = Lemmas.overflow new_flags = Lemmas.overflow flags let ins = BS.ins type ocmp = BS.ocmp type va_fuel = nat type va_pbool = Vale.Def.PossiblyMonad.pbool let va_ttrue () = Vale.Def.PossiblyMonad.ttrue let va_ffalse = Vale.Def.PossiblyMonad.ffalse let va_pbool_and x y = Vale.Def.PossiblyMonad.((&&.)) x y let get_reason p = match p with | Vale.Def.PossiblyMonad.Ok () -> None | Vale.Def.PossiblyMonad.Err reason -> Some reason let mul_nat_helper x y = FStar.Math.Lemmas.nat_times_nat_is_nat x y let va_fuel_default () = 0 let lemma_opr_Mem64 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (b:M.buffer64) (index:int) (t:taint) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf64 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 8 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand (va_opr_code_Mem64 id base offset t) s /\ M.load_mem64 (M.buffer_addr b h + 8 * index) (s.vs_heap.vf_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem64_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem64 id base offset t in M.lemma_valid_mem64 b index h; let OMem (m, t) = t in assert (valid_buf_maddr64 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem64 b index h let lemma_opr_Mem128 (id:heaplet_id) (s:va_state) (base:operand64) (offset:int) (t:taint) (b:M.buffer128) (index:int) : Lemma (requires ( let h = Map16.sel s.vs_heap.vf_heaplets id in M.mem_inv s.vs_heap /\ OReg? base /\ valid_src_addr h b index /\ M.valid_layout_buffer b (s.vs_heap.vf_layout) h false /\ M.valid_taint_buf128 b h (full_heap_taint s.vs_heap) t /\ eval_operand base s + offset == M.buffer_addr b h + 16 * index )) (ensures ( let h = Map16.sel s.vs_heap.vf_heaplets id in valid_operand128 (va_opr_code_Mem128 id base offset t) s /\ M.load_mem128 (M.buffer_addr b h + 16 * index) (M.get_vale_heap s.vs_heap) == M.buffer_read b index h )) = Vale.X64.Memory_Sems.low_lemma_load_mem128_full b index s.vs_heap t id; let h = M.get_vale_heap s.vs_heap in let t = va_opr_code_Mem128 id base offset t in M.lemma_valid_mem128 b index h; let OMem (m, t) = t in assert (valid_buf_maddr128 (eval_maddr m s) h s.vs_heap.vf_layout b index t); M.lemma_load_mem128 b index h let taint_at memTaint addr = Map.sel memTaint addr let va_cmp_eq o1 o2 = BC.OEq o1 o2 let va_cmp_ne o1 o2 = BC.ONe o1 o2 let va_cmp_le o1 o2 = BC.OLe o1 o2 let va_cmp_ge o1 o2 = BC.OGe o1 o2
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_cmp_gt (o1:operand64{ not (OMem? o1 || OStack? o1) }) (o2:operand64{ not (OMem? o2 || OStack? o2) }) : ocmp
[]
Vale.X64.Decls.va_cmp_gt
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
o1: Vale.X64.Machine_s.operand64{Prims.op_Negation (OMem? o1 || OStack? o1)} -> o2: Vale.X64.Machine_s.operand64{Prims.op_Negation (OMem? o2 || OStack? o2)} -> Vale.X64.Decls.ocmp
{ "end_col": 34, "end_line": 99, "start_col": 22, "start_line": 99 }
Prims.Pure
val updated_cf (new_flags:Flags.t) (new_cf:bool) : Pure bool (requires True) (ensures fun b -> b <==> cf new_flags == new_cf /\ valid_cf new_flags)
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let updated_cf new_flags new_cf = Lemmas.cf new_flags = Some new_cf
val updated_cf (new_flags:Flags.t) (new_cf:bool) : Pure bool (requires True) (ensures fun b -> b <==> cf new_flags == new_cf /\ valid_cf new_flags) let updated_cf new_flags new_cf =
false
null
false
Lemmas.cf new_flags = Some new_cf
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[]
[ "Vale.X64.Flags.t", "Prims.bool", "Prims.op_Equality", "FStar.Pervasives.Native.option", "Vale.X64.Lemmas.cf", "FStar.Pervasives.Native.Some" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val updated_cf (new_flags:Flags.t) (new_cf:bool) : Pure bool (requires True) (ensures fun b -> b <==> cf new_flags == new_cf /\ valid_cf new_flags)
[]
Vale.X64.Decls.updated_cf
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
new_flags: Vale.X64.Flags.t -> new_cf: Prims.bool -> Prims.Pure Prims.bool
{ "end_col": 67, "end_line": 22, "start_col": 34, "start_line": 22 }
Prims.Pure
val updated_of (new_flags:Flags.t) (new_of:bool) : Pure bool (requires True) (ensures fun b -> b <==> overflow new_flags == new_of /\ valid_of new_flags)
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "BS" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.StateLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Prop_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.Lib.Map16", "short_module": "Map16" }, { "abbrev": true, "full_module": "Vale.X64.Stack_i", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "M" }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "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 } ]
false
let updated_of new_flags new_cf = Lemmas.overflow new_flags = Some new_cf
val updated_of (new_flags:Flags.t) (new_of:bool) : Pure bool (requires True) (ensures fun b -> b <==> overflow new_flags == new_of /\ valid_of new_flags) let updated_of new_flags new_cf =
false
null
false
Lemmas.overflow new_flags = Some new_cf
{ "checked_file": "Vale.X64.Decls.fst.checked", "dependencies": [ "Vale.X64.StateLemmas.fsti.checked", "Vale.X64.State.fsti.checked", "Vale.X64.Print_s.fst.checked", "Vale.X64.Memory_Sems.fsti.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Lemmas.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMonad.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Map.fsti.checked", "FStar.IO.fst.checked" ], "interface_file": true, "source_file": "Vale.X64.Decls.fst" }
[]
[ "Vale.X64.Flags.t", "Prims.bool", "Prims.op_Equality", "FStar.Pervasives.Native.option", "Vale.X64.Lemmas.overflow", "FStar.Pervasives.Native.Some" ]
[]
module Vale.X64.Decls open FStar.Mul open Vale.X64.Machine_s open Vale.X64 open Vale.X64.State open Vale.X64.StateLemmas open FStar.UInt module P = Vale.X64.Print_s module BC = Vale.X64.Bytes_Code_s module BS = Vale.X64.Machine_Semantics_s #reset-options "--max_fuel 0 --max_ifuel 0 --smtencoding.elim_box true --smtencoding.l_arith_repr boxwrap --smtencoding.nl_arith_repr boxwrap --z3cliopt smt.arith.nl=true --using_facts_from 'Prims FStar.UInt Vale.Def.Words_s FStar.UInt64'" let lemma_mul_in_bounds (x y:nat64) : Lemma (requires x * y < pow2_64) (ensures FStar.UInt.mul_mod #64 x y == x * y) = () #reset-options "--z3cliopt smt.arith.nl=true --using_facts_from Prims --using_facts_from FStar.Math" let lemma_mul_nat (x:nat) (y:nat) : Lemma (ensures 0 <= (x * y)) = () #reset-options "--initial_fuel 2 --max_fuel 2" let cf flags = match Lemmas.cf flags with | Some v -> v | None -> false let overflow flags = match Lemmas.overflow flags with | Some v -> v | None -> false let valid_cf flags = match Lemmas.cf flags with | Some v -> true | None -> false let valid_of flags = match Lemmas.overflow flags with | Some v -> true | None -> false
false
false
Vale.X64.Decls.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "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_elim_box": true, "smtencoding_l_arith_repr": "native", "smtencoding_nl_arith_repr": "wrapped", "smtencoding_valid_elim": false, "smtencoding_valid_intro": true, "tcnorm": true, "trivial_pre_for_unannotated_effectful_fns": false, "z3cliopt": [ "smt.arith.nl=false", "smt.QI.EAGER_THRESHOLD=100", "smt.CASE_SPLIT=3" ], "z3refresh": false, "z3rlimit": 5, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val updated_of (new_flags:Flags.t) (new_of:bool) : Pure bool (requires True) (ensures fun b -> b <==> overflow new_flags == new_of /\ valid_of new_flags)
[]
Vale.X64.Decls.updated_of
{ "file_name": "vale/code/arch/x64/Vale.X64.Decls.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
new_flags: Vale.X64.Flags.t -> new_of: Prims.bool -> Prims.Pure Prims.bool
{ "end_col": 73, "end_line": 23, "start_col": 34, "start_line": 23 }