file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
FStar.UInt16.fsti
FStar.UInt16.op_Plus_Question_Hat
val op_Plus_Question_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Plus_Question_Hat = add_underspec
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 317, "start_col": 7, "start_line": 317 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.add_underspec" ]
[]
false
false
false
false
false
let op_Plus_Question_Hat =
add_underspec
false
FStar.UInt16.fsti
FStar.UInt16.op_Plus_Hat
val op_Plus_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Plus_Hat = add
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 316, "start_col": 7, "start_line": 316 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.add" ]
[]
false
false
false
false
false
let op_Plus_Hat =
add
false
FStar.UInt16.fsti
FStar.UInt16.op_Star_Hat
val op_Star_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Star_Hat = mul
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 322, "start_col": 7, "start_line": 322 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.mul" ]
[]
false
false
false
false
false
let op_Star_Hat =
mul
false
FStar.UInt16.fsti
FStar.UInt16.op_Subtraction_Question_Hat
val op_Subtraction_Question_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Subtraction_Question_Hat = sub_underspec
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 54, "end_line": 320, "start_col": 7, "start_line": 320 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.sub_underspec" ]
[]
false
false
false
false
false
let op_Subtraction_Question_Hat =
sub_underspec
false
FStar.UInt16.fsti
FStar.UInt16.op_Percent_Hat
val op_Percent_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t{FStar.UInt16.v b <> 0} -> Prims.Pure FStar.UInt16.t
let op_Percent_Hat = rem
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 326, "start_col": 7, "start_line": 326 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t{FStar.UInt16.v b <> 0} -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.rem" ]
[]
false
false
false
false
false
let op_Percent_Hat =
rem
false
FStar.UInt16.fsti
FStar.UInt16.op_Star_Question_Hat
val op_Star_Question_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Star_Question_Hat = mul_underspec
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 323, "start_col": 7, "start_line": 323 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.mul_underspec" ]
[]
false
false
false
false
false
let op_Star_Question_Hat =
mul_underspec
false
FStar.UInt16.fsti
FStar.UInt16.op_Amp_Hat
val op_Amp_Hat : x: FStar.UInt16.t -> y: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Amp_Hat = logand
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 328, "start_col": 7, "start_line": 328 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt16.t -> y: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.logand" ]
[]
false
false
false
false
false
let op_Amp_Hat =
logand
false
FStar.UInt16.fsti
FStar.UInt16.op_Star_Percent_Hat
val op_Star_Percent_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Star_Percent_Hat = mul_mod
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 324, "start_col": 7, "start_line": 324 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.mul_mod" ]
[]
false
false
false
false
false
let op_Star_Percent_Hat =
mul_mod
false
FStar.UInt16.fsti
FStar.UInt16.op_Bar_Hat
val op_Bar_Hat : x: FStar.UInt16.t -> y: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Bar_Hat = logor
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 329, "start_col": 7, "start_line": 329 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt16.t -> y: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.logor" ]
[]
false
false
false
false
false
let op_Bar_Hat =
logor
false
FStar.UInt16.fsti
FStar.UInt16.op_Less_Less_Hat
val op_Less_Less_Hat : a: FStar.UInt16.t -> s: FStar.UInt32.t -> Prims.Pure FStar.UInt16.t
let op_Less_Less_Hat = shift_left
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 330, "start_col": 7, "start_line": 330 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> s: FStar.UInt32.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.shift_left" ]
[]
false
false
false
false
false
let op_Less_Less_Hat =
shift_left
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.reification
val reification (#a: Type) (unquotea: (term -> Tac a)) (quotea: (a -> Tac term)) (tadd topp tmone tmult: term) (munit: a) (ts: list term) : Tac (list (polynomial a) * vmap a)
val reification (#a: Type) (unquotea: (term -> Tac a)) (quotea: (a -> Tac term)) (tadd topp tmone tmult: term) (munit: a) (ts: list term) : Tac (list (polynomial a) * vmap a)
let reification (#a:Type) (unquotea:term -> Tac a) (quotea:a -> Tac term) (tadd topp tmone tmult:term) (munit:a) (ts:list term) : Tac (list (polynomial a) * vmap a) = // Be careful not to normalize operations too much // E.g. we don't want to turn ( +% ) into (a + b) % prime // or we won't be able to spot ring ...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 1595, "start_col": 0, "start_line": 1578 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
unquotea: (_: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac a) -> quotea: (_: a -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term) -> tadd: FStar.Tactics.NamedView.term -> topp: FStar.Tactics.NamedView.term -> tmone: FStar.Tactics.NamedView.term -> tmult: FStar.Tactics.NamedVi...
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "Prims.list", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "FStar.Tactics.Util.fold_left", "FS...
[]
false
true
false
false
false
let reification (#a: Type) (unquotea: (term -> Tac a)) (quotea: (a -> Tac term)) (tadd topp tmone tmult: term) (munit: a) (ts: list term) : Tac (list (polynomial a) * vmap a) =
let add = tadd in let opp = topp in let mone = tmone in let mult = tmult in let ts = Tactics.Util.map (norm_term steps) ts in let es, _, vm = Tactics.Util.fold_left (fun (es, vs, vm) t -> let e, vs, vm = reification_aux unquotea vs vm add opp mone mult t in (e :: es, vs, vm)) ([], [], ([], munit))...
false
FStar.UInt16.fsti
FStar.UInt16.op_Hat_Hat
val op_Hat_Hat : x: FStar.UInt16.t -> y: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
let op_Hat_Hat = logxor
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 327, "start_col": 7, "start_line": 327 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt16.t -> y: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.logxor" ]
[]
false
false
false
false
false
let op_Hat_Hat =
logxor
false
FStar.UInt16.fsti
FStar.UInt16.op_Greater_Greater_Hat
val op_Greater_Greater_Hat : a: FStar.UInt16.t -> s: FStar.UInt32.t -> Prims.Pure FStar.UInt16.t
let op_Greater_Greater_Hat = shift_right
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 331, "start_col": 7, "start_line": 331 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> s: FStar.UInt32.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.shift_right" ]
[]
false
false
false
false
false
let op_Greater_Greater_Hat =
shift_right
false
FStar.UInt16.fsti
FStar.UInt16.op_Slash_Hat
val op_Slash_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t{FStar.UInt16.v b <> 0} -> Prims.Pure FStar.UInt16.t
let op_Slash_Hat = div
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 325, "start_col": 7, "start_line": 325 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t{FStar.UInt16.v b <> 0} -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.div" ]
[]
false
false
false
false
false
let op_Slash_Hat =
div
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.ddump
val ddump : m: Prims.string -> FStar.Tactics.Effect.Tac Prims.unit
let ddump m = if debugging () then dump m
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 1498, "start_col": 0, "start_line": 1498 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Prims.string -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.string", "FStar.Stubs.Tactics.V2.Builtins.dump", "Prims.unit", "Prims.bool", "FStar.Stubs.Tactics.V2.Builtins.debugging" ]
[]
false
true
false
false
false
let ddump m =
if debugging () then dump m
false
FStar.UInt16.fsti
FStar.UInt16.op_Greater_Equals_Hat
val op_Greater_Equals_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
let op_Greater_Equals_Hat = gte
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 334, "start_col": 7, "start_line": 334 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.gte" ]
[]
false
false
false
true
false
let op_Greater_Equals_Hat =
gte
false
FStar.UInt16.fsti
FStar.UInt16.op_Greater_Hat
val op_Greater_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
let op_Greater_Hat = gt
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 333, "start_col": 7, "start_line": 333 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.gt" ]
[]
false
false
false
true
false
let op_Greater_Hat =
gt
false
FStar.UInt16.fsti
FStar.UInt16.op_Less_Equals_Hat
val op_Less_Equals_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
let op_Less_Equals_Hat = lte
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 336, "start_col": 7, "start_line": 336 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.lte" ]
[]
false
false
false
true
false
let op_Less_Equals_Hat =
lte
false
FStar.UInt16.fsti
FStar.UInt16.op_Less_Hat
val op_Less_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
let op_Less_Hat = lt
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 335, "start_col": 7, "start_line": 335 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.lt" ]
[]
false
false
false
true
false
let op_Less_Hat =
lt
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.steps
val steps : Prims.list FStar.Pervasives.norm_step
let steps = [ primops; iota; zeta; delta_attr [`%canon_attr]; delta_only [ `%FStar.Mul.op_Star; // For integer ring `%FStar.Algebra.CommMonoid.int_plus_cm; // For integer ring `%FStar.Algebra.CommMonoid.int_multiply_cm; // For integer ring `%FStar...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1574, "start_col": 0, "start_line": 1551 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list FStar.Pervasives.norm_step
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.primops", "FStar.Pervasives.iota", "FStar.Pervasives.zeta", "FStar.Pervasives.delta_attr", "Prims.string", "Prims.Nil", "FStar.Pervasives.delta_only" ]
[]
false
false
false
true
false
let steps =
[ primops; iota; zeta; delta_attr [`%canon_attr]; delta_only [ `%FStar.Mul.op_Star; `%FStar.Algebra.CommMonoid.int_plus_cm; `%FStar.Algebra.CommMonoid.int_multiply_cm; `%FStar.Algebra.CommMonoid.__proj__CM__item__mult; `%FStar.Algebra.CommMonoid.__proj__CM__item__unit; `%__proj__CR__item__cm...
false
FStar.UInt16.fsti
FStar.UInt16.minus
val minus : a: FStar.UInt16.t -> FStar.UInt16.t
let minus (a:t) = add_mod (lognot a) (uint_to_t 1)
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 239, "start_col": 0, "start_line": 239 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> FStar.UInt16.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.t", "FStar.UInt16.add_mod", "FStar.UInt16.lognot", "FStar.UInt16.uint_to_t" ]
[]
false
false
false
true
false
let minus (a: t) =
add_mod (lognot a) (uint_to_t 1)
false
FStar.UInt16.fsti
FStar.UInt16.op_Equals_Hat
val op_Equals_Hat : a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
let op_Equals_Hat = eq
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 332, "start_col": 7, "start_line": 332 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.eq" ]
[]
false
false
false
true
false
let op_Equals_Hat =
eq
false
FStar.UInt16.fsti
FStar.UInt16.n_minus_one
val n_minus_one : FStar.UInt32.t
let n_minus_one = UInt32.uint_to_t (n - 1)
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 244, "start_col": 0, "start_line": 244 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.uint_to_t", "Prims.op_Subtraction", "FStar.UInt16.n" ]
[]
false
false
false
true
false
let n_minus_one =
UInt32.uint_to_t (n - 1)
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.varlist_insert_ok
val varlist_insert_ok: #a:eqtype -> r:cr a -> vm:vmap a -> l1:varlist -> s2:canonical_sum a -> Lemma (interp_cs r vm (varlist_insert r l1 s2) == r.cm_add.mult (interp_vl r vm l1) (interp_cs r vm s2))
val varlist_insert_ok: #a:eqtype -> r:cr a -> vm:vmap a -> l1:varlist -> s2:canonical_sum a -> Lemma (interp_cs r vm (varlist_insert r l1 s2) == r.cm_add.mult (interp_vl r vm l1) (interp_cs r vm s2))
let varlist_insert_ok #a r vm l1 s2 = let aone = r.cm_mult.unit in monom_insert_ok r vm aone l1 s2
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 1045, "start_col": 0, "start_line": 1043 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> l1: FStar.Tactics.CanonCommSemiring.varlist -> s2: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FSta...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Tactics.CanonCommSemiring.canonical_sum", "FStar.Tactics.CanonCommSemiring.monom_insert_ok", "FStar.Algebra.CommMonoid.__proj__CM__item__unit", "FStar.Tactics...
[]
true
false
true
false
false
let varlist_insert_ok #a r vm l1 s2 =
let aone = r.cm_mult.unit in monom_insert_ok r vm aone l1 s2
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canon_norm
val canon_norm: Prims.unit -> Tac unit
val canon_norm: Prims.unit -> Tac unit
let canon_norm () : Tac unit = norm steps
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 1576, "start_col": 0, "start_line": 1576 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.norm", "FStar.Tactics.CanonCommSemiring.steps" ]
[]
false
true
false
false
false
let canon_norm () : Tac unit =
norm steps
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canon_semiring
val canon_semiring (#a: eqtype) (r: cr a) : Tac unit
val canon_semiring (#a: eqtype) (r: cr a) : Tac unit
let canon_semiring (#a:eqtype) (r:cr a) : Tac unit = canon_semiring_aux a (quote a) (unquote #a) (fun (x:a) -> quote x) (quote r) (norm_term steps (quote r.cm_add.mult)) (norm_term steps (quote r.opp)) (norm_term steps (quote (r.opp r.cm_mult.unit))) (norm_term steps (quote r.cm_mult.mult)) r....
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 1682, "start_col": 0, "start_line": 1675 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.canon_semiring_aux", "FStar.Stubs.Tactics.V2.Builtins.unquote", "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.NamedView.term", "FStar.Algebra.CommMonoid.__proj__CM__item__unit", "FStar.Tactics.CanonCommSemirin...
[]
false
true
false
false
false
let canon_semiring (#a: eqtype) (r: cr a) : Tac unit =
canon_semiring_aux a (quote a) (unquote #a) (fun (x: a) -> quote x) (quote r) (norm_term steps (quote r.cm_add.mult)) (norm_term steps (quote r.opp)) (norm_term steps (quote (r.opp r.cm_mult.unit))) (norm_term steps (quote r.cm_mult.mult)) r.cm_add.unit
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.varlist_merge_ok
val varlist_merge_ok (#a:eqtype) (r:cr a) (vm:vmap a) (x y:varlist) : Lemma (ensures interp_vl r vm (varlist_merge x y) == r.cm_mult.mult (interp_vl r vm x) (interp_vl r vm y)) (decreases %[x; y; 0])
val varlist_merge_ok (#a:eqtype) (r:cr a) (vm:vmap a) (x y:varlist) : Lemma (ensures interp_vl r vm (varlist_merge x y) == r.cm_mult.mult (interp_vl r vm x) (interp_vl r vm y)) (decreases %[x; y; 0])
let rec varlist_merge_ok #a r vm x y = let amult = r.cm_mult.mult in match x, y with | Cons_var v1 t1, Nil_var -> () | Cons_var v1 t1, Cons_var v2 t2 -> if v1 < v2 then begin varlist_merge_ok r vm t1 y; assert ( interp_vl r vm (varlist_merge x y) == amult (interp_var vm...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 611, "start_col": 0, "start_line": 557 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> x: FStar.Tactics.CanonCommSemiring.varlist -> y: FStar.Tactics.CanonCommSemiring.varlist -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_vl r vm (FStar....
FStar.Pervasives.Lemma
[ "lemma", "" ]
[ "varlist_merge_ok", "vm_aux_ok" ]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.CanonCommSemiring.index", "Prims.op_LessThan", "FStar.Algebra.CommMonoid.__proj__CM__item__associativity", "FSta...
[ "mutual recursion" ]
false
false
true
false
false
let rec varlist_merge_ok #a r vm x y =
let amult = r.cm_mult.mult in match x, y with | Cons_var v1 t1, Nil_var -> () | Cons_var v1 t1, Cons_var v2 t2 -> if v1 < v2 then (varlist_merge_ok r vm t1 y; assert (interp_vl r vm (varlist_merge x y) == amult (interp_var vm v1) (amult (interp_vl r vm t1) (interp_vl r vm y))); r.cm_mult.a...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.int_semiring
val int_semiring: Prims.unit -> Tac unit
val int_semiring: Prims.unit -> Tac unit
let int_semiring () : Tac unit = (* Check to see if goal is a `nat` equality, change the equality to `int` beforehand *) match term_as_formula (cur_goal ()) with | Comp (Eq (Some t)) _ _ -> if term_eq t (`Prims.nat) then (apply_lemma (`eq_nat_via_int); canon_semiring int_cr) else can...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 1701, "start_col": 0, "start_line": 1693 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Stubs.Reflection.Types.typ", "FStar.Tactics.NamedView.term", "FStar.Tactics.CanonCommSemiring.canon_semiring", "Prims.int", "FStar.Tactics.CanonCommSemiring.int_cr", "FStar.Tactics.V2.Derived.apply_lemma", "Prims.bool", "FStar.Tactics.CanonCommSemiring.term_eq", "FStar.Reflect...
[]
false
true
false
false
false
let int_semiring () : Tac unit =
match term_as_formula (cur_goal ()) with | Comp (Eq (Some t)) _ _ -> if term_eq t (`Prims.nat) then (apply_lemma (`eq_nat_via_int); canon_semiring int_cr) else canon_semiring int_cr | _ -> canon_semiring int_cr
false
Vale.SHA.SHA_helpers.fst
Vale.SHA.SHA_helpers.lemma_endian_relation
val lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA...
val lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA...
let lemma_endian_relation (quads qs:seq quad32) (input2:seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA2_256...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 99, "end_line": 870, "start_col": 0, "start_line": 800 }
module Vale.SHA.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.X64.CryptoInstructions_s open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop w...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.X64.CryptoInstructions_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.c...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt32", "short_module": null }, { ...
{ "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_el...
false
quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> qs: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> input2: FStar.Seq.Base.seq FStar.UInt8.t -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length qs == 4 /\ FStar.Seq.Base.length input2 == 64 /\ qs == Vale.Arch.Types.reverse_by...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "FStar.UInt8.t", "Prims._assert", "FStar.Seq.Base.equal", "Vale.SHA.SHA_helpers.word", "Vale.SHA.SHA_helpers.quads_to_block", "Spec.Hash.Definitions.words_of_bytes", "Spec.Hash.Definitions.SHA2_256", "Spec.Hash.Definitions.block_word_length", "Pri...
[]
false
false
true
false
false
let lemma_endian_relation (quads qs: seq quad32) (input2: seq UInt8.t) : Lemma (requires length qs == 4 /\ length input2 == 64 /\ qs == reverse_bytes_nat32_quad32_seq quads /\ input2 == seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes quads)) (ensures quads_to_block qs == words_of_bytes SHA...
let fi (i: nat{i < length (quads_to_block qs)}) : Lemma ((quads_to_block qs).[ i ] == (words_of_bytes SHA2_256 #(block_word_length SHA2_256) input2).[ i ]) = let open Vale.Def.Words.Four_s in let open Vale.Lib.Seqs_s in let ni = (seq_four_to_seq_LE quads).[ i ] in let b = slice input2 (4 * i) (4 *...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.spolynomial_simplify_ok
val spolynomial_simplify_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:spolynomial a -> Lemma (interp_cs r vm (spolynomial_simplify r p) == interp_sp r vm p)
val spolynomial_simplify_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:spolynomial a -> Lemma (interp_cs r vm (spolynomial_simplify r p) == interp_sp r vm p)
let spolynomial_simplify_ok #a r vm p = canonical_sum_simplify_ok r vm (spolynomial_normalize r p); spolynomial_normalize_ok r vm p
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 1356, "start_col": 0, "start_line": 1354 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> p: FStar.Tactics.CanonCommSemiring.spolynomial a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FStar.Tactics.CanonCommSemiring.spolynomial_simplify r p) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.spolynomial", "FStar.Tactics.CanonCommSemiring.spolynomial_normalize_ok", "Prims.unit", "FStar.Tactics.CanonCommSemiring.canonical_sum_simplify_ok", "FStar.Tactics.CanonCommSe...
[]
true
false
true
false
false
let spolynomial_simplify_ok #a r vm p =
canonical_sum_simplify_ok r vm (spolynomial_normalize r p); spolynomial_normalize_ok r vm p
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canon_semiring_aux
val canon_semiring_aux (a: Type) (ta: term) (unquotea: (term -> Tac a)) (quotea: (a -> Tac term)) (tr tadd topp tmone tmult: term) (munit: a) : Tac unit
val canon_semiring_aux (a: Type) (ta: term) (unquotea: (term -> Tac a)) (quotea: (a -> Tac term)) (tr tadd topp tmone tmult: term) (munit: a) : Tac unit
let canon_semiring_aux (a: Type) (ta: term) (unquotea: term -> Tac a) (quotea: a -> Tac term) (tr tadd topp tmone tmult: term) (munit: a) : Tac unit = focus (fun () -> norm []; // Do not normalize anything implicitly let g = cur_goal () in match term_as_formula g with | Comp (Eq (Some t)) t1 t2 ...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 1673, "start_col": 0, "start_line": 1621 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> ta: FStar.Tactics.NamedView.term -> unquotea: (_: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac a) -> quotea: (_: a -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term) -> tr: FStar.Tactics.NamedView.term -> tadd: FStar.Tactics.NamedView.term -> topp: FStar.Tactic...
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.Derived.focus", "Prims.unit", "FStar.Stubs.Reflection.Types.typ", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.V2.Derived.trefl", "FStar.Tactics.CanonCommSemiring.canon_norm", "FStar.Tactics.V2....
[]
false
true
false
false
false
let canon_semiring_aux (a: Type) (ta: term) (unquotea: (term -> Tac a)) (quotea: (a -> Tac term)) (tr tadd topp tmone tmult: term) (munit: a) : Tac unit =
focus (fun () -> norm []; let g = cur_goal () in match term_as_formula g with | Comp (Eq (Some t)) t1 t2 -> if term_eq t ta then match reification unquotea quotea tadd topp tmone tmult munit [t1; t2] with | [e1 ; e2], vm -> let tvm = quote_vm ta qu...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canonical_sum_simplify_ok
val canonical_sum_simplify_ok: #a:eqtype -> r:cr a -> vm:vmap a -> s:canonical_sum a -> Lemma (interp_cs r vm (canonical_sum_simplify r s) == interp_cs r vm s)
val canonical_sum_simplify_ok: #a:eqtype -> r:cr a -> vm:vmap a -> s:canonical_sum a -> Lemma (interp_cs r vm (canonical_sum_simplify r s) == interp_cs r vm s)
let rec canonical_sum_simplify_ok #a r vm s = let azero = r.cm_add.unit in let aone = r.cm_mult.unit in match s with | Cons_monom c _ t -> canonical_sum_simplify_ok r vm t | Cons_varlist _ t -> canonical_sum_simplify_ok r vm t | Nil_monom -> ()
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 1350, "start_col": 0, "start_line": 1344 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> s: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FStar.Tactics.CanonCommSemiring.canonical_sum_simplify r...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.canonical_sum", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Tactics.CanonCommSemiring.canonical_sum_simplify_ok", "Prims.unit", "FStar.Algebra.CommMonoid.__proj__CM__ite...
[ "recursion" ]
false
false
true
false
false
let rec canonical_sum_simplify_ok #a r vm s =
let azero = r.cm_add.unit in let aone = r.cm_mult.unit in match s with | Cons_monom c _ t -> canonical_sum_simplify_ok r vm t | Cons_varlist _ t -> canonical_sum_simplify_ok r vm t | Nil_monom -> ()
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.reification_aux
val reification_aux (#a: Type) (unquotea: (term -> Tac a)) (ts: list term) (vm: vmap a) (add opp mone mult t: term) : Tac (polynomial a * list term * vmap a)
val reification_aux (#a: Type) (unquotea: (term -> Tac a)) (ts: list term) (vm: vmap a) (add opp mone mult t: term) : Tac (polynomial a * list term * vmap a)
let rec reification_aux (#a:Type) (unquotea:term -> Tac a) (ts:list term) (vm:vmap a) (add opp mone mult t: term) : Tac (polynomial a * list term * vmap a) = // ddump ("term = " ^ term_to_string t ^ "\n"); let hd, tl = collect_app_ref t in match inspect hd, list_unref tl with | Tv_FVar fv, [(t1, _) ; (t2, _)] -...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 1545, "start_col": 0, "start_line": 1521 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
unquotea: (_: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac a) -> ts: Prims.list FStar.Tactics.NamedView.term -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> add: FStar.Tactics.NamedView.term -> opp: FStar.Tactics.NamedView.term -> mone: FStar.Tactics.NamedView.term -> mult: FSt...
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "Prims.list", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Stubs.Reflection.Types.term", "Prims.l_or", "Prims.eq2", "Prims.precedes", "FStar.Stubs.Reflection.V2.Data.argv", "FStar.Pervasives.Native.fst", "FStar.Stubs.Reflection.V2.Data.aqualv", "FStar.Stubs.Refl...
[ "recursion" ]
false
true
false
false
false
let rec reification_aux (#a: Type) (unquotea: (term -> Tac a)) (ts: list term) (vm: vmap a) (add opp mone mult t: term) : Tac (polynomial a * list term * vmap a) =
let hd, tl = collect_app_ref t in match inspect hd, list_unref tl with | Tv_FVar fv, [t1, _ ; t2, _] -> let binop (op: (polynomial a -> polynomial a -> polynomial a)) : Tac ((polynomial a * list term) * vmap a) = let e1, ts, vm = reification_aux unquotea ts vm add opp mone mult t1 in let e2, ts, vm = re...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.spolynomial_normalize_ok
val spolynomial_normalize_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:spolynomial a -> Lemma (interp_cs r vm (spolynomial_normalize r p) == interp_sp r vm p)
val spolynomial_normalize_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:spolynomial a -> Lemma (interp_cs r vm (spolynomial_normalize r p) == interp_sp r vm p)
let rec spolynomial_normalize_ok #a r vm p = match p with | SPvar _ -> () | SPconst _ -> () | SPplus l q -> canonical_sum_merge_ok r vm (spolynomial_normalize r l) (spolynomial_normalize r q); spolynomial_normalize_ok r vm l; spolynomial_normalize_ok r vm q | SPmult l q -> canonical_sum_...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 1340, "start_col": 0, "start_line": 1327 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> p: FStar.Tactics.CanonCommSemiring.spolynomial a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FStar.Tactics.CanonCommSemiring.spolynomial_normalize r p)...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.spolynomial", "FStar.Tactics.CanonCommSemiring.index", "FStar.Tactics.CanonCommSemiring.spolynomial_normalize_ok", "Prims.unit", "FStar.Tactics.CanonCommSemiring.canonical_sum...
[ "recursion" ]
false
false
true
false
false
let rec spolynomial_normalize_ok #a r vm p =
match p with | SPvar _ -> () | SPconst _ -> () | SPplus l q -> canonical_sum_merge_ok r vm (spolynomial_normalize r l) (spolynomial_normalize r q); spolynomial_normalize_ok r vm l; spolynomial_normalize_ok r vm q | SPmult l q -> canonical_sum_prod_ok r vm (spolynomial_normalize r l) (spolynomial_normalize r q);...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.test
val test : a: Prims.int -> Prims.unit
let test (a:int) = let open FStar.Mul in assert (a + - a + 2 * a + - a == -a + 2 * a) by (int_semiring ())
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 67, "end_line": 1707, "start_col": 0, "start_line": 1705 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": true, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_eli...
false
a: Prims.int -> Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "FStar.Tactics.Effect.assert_by_tactic", "Prims.eq2", "Prims.op_Addition", "Prims.op_Minus", "FStar.Mul.op_Star", "Prims.unit", "FStar.Tactics.CanonCommSemiring.int_semiring" ]
[]
false
false
false
true
false
let test (a: int) =
let open FStar.Mul in FStar.Tactics.Effect.assert_by_tactic (a + - a + 2 * a + - a == - a + 2 * a) (fun _ -> (); (int_semiring ()))
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.polynomial_normalize
val polynomial_normalize: #a:eqtype -> cr a -> polynomial a -> canonical_sum a
val polynomial_normalize: #a:eqtype -> cr a -> polynomial a -> canonical_sum a
let rec polynomial_normalize #a r p = match p with | Pvar i -> Cons_varlist (Cons_var i Nil_var) Nil_monom | Pconst c -> Cons_monom c Nil_var Nil_monom | Pplus l q -> canonical_sum_merge r (polynomial_normalize r l) (polynomial_normalize r q) | Pmult l q -> canonical_sum_prod r (polynomial_normalize r...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 85, "end_line": 1383, "start_col": 0, "start_line": 1374 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> p: FStar.Tactics.CanonCommSemiring.polynomial a -> FStar.Tactics.CanonCommSemiring.canonical_sum a
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.index", "FStar.Tactics.CanonCommSemiring.Cons_varlist", "FStar.Tactics.CanonCommSemiring.Cons_var", "FStar.Tactics.CanonCommSemiring.Nil_var", "FStar.Tactics.CanonCommSe...
[ "recursion" ]
false
false
false
false
false
let rec polynomial_normalize #a r p =
match p with | Pvar i -> Cons_varlist (Cons_var i Nil_var) Nil_monom | Pconst c -> Cons_monom c Nil_var Nil_monom | Pplus l q -> canonical_sum_merge r (polynomial_normalize r l) (polynomial_normalize r q) | Pmult l q -> canonical_sum_prod r (polynomial_normalize r l) (polynomial_normalize r q) | Popp p -> canonical_sum...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.make_fvar
val make_fvar (#a: Type) (t: term) (unquotea: (term -> Tac a)) (ts: list term) (vm: vmap a) : Tac (polynomial a * list term * vmap a)
val make_fvar (#a: Type) (t: term) (unquotea: (term -> Tac a)) (ts: list term) (vm: vmap a) : Tac (polynomial a * list term * vmap a)
let make_fvar (#a:Type) (t:term) (unquotea:term -> Tac a) (ts:list term) (vm:vmap a) : Tac (polynomial a * list term * vmap a) = match find t ts with | Some v -> (Pvar v, ts, vm) | None -> let vfresh = length ts in let z = unquotea t in (Pvar vfresh, ts @ [t], update vfresh z vm)
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 1518, "start_col": 0, "start_line": 1511 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Tactics.NamedView.term -> unquotea: (_: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac a) -> ts: Prims.list FStar.Tactics.NamedView.term -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> FStar.Tactics.Effect.Tac ((FStar.Tactics.CanonCommSemiring.polynomial a * Prims.list FStar.T...
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "Prims.list", "FStar.Tactics.CanonCommSemiring.vmap", "Prims.nat", "FStar.Pervasives.Native.Mktuple3", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.Pvar", "FStar.Pervasives.Native.tuple3", "FStar.List.Tot.Base.op_At", "Prims.Cons", ...
[]
false
true
false
false
false
let make_fvar (#a: Type) (t: term) (unquotea: (term -> Tac a)) (ts: list term) (vm: vmap a) : Tac (polynomial a * list term * vmap a) =
match find t ts with | Some v -> (Pvar v, ts, vm) | None -> let vfresh = length ts in let z = unquotea t in (Pvar vfresh, ts @ [t], update vfresh z vm)
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.spolynomial_of_ok
val spolynomial_of_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:polynomial a -> Lemma (interp_p r vm p == interp_sp r vm (spolynomial_of r p))
val spolynomial_of_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:polynomial a -> Lemma (interp_p r vm p == interp_sp r vm (spolynomial_of r p))
let rec spolynomial_of_ok #a r vm p = match p with | Pconst c -> () | Pvar i -> () | Pplus p1 p2 -> spolynomial_of_ok r vm p1; spolynomial_of_ok r vm p2 | Pmult p1 p2 -> spolynomial_of_ok r vm p1; spolynomial_of_ok r vm p2 | Popp p -> spolynomial_of_ok r vm p; let x = interp_sp r vm ...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 1434, "start_col": 0, "start_line": 1419 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> p: FStar.Tactics.CanonCommSemiring.polynomial a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_p r vm p == FStar.Tactics.CanonCommSemiring.interp_sp r vm (FS...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.index", "FStar.Tactics.CanonCommSemiring.spolynomial_of_ok", "Prims.unit", "FStar.Tactics.CanonCommSemiring.opp_unique", "FStar...
[ "recursion" ]
false
false
true
false
false
let rec spolynomial_of_ok #a r vm p =
match p with | Pconst c -> () | Pvar i -> () | Pplus p1 p2 -> spolynomial_of_ok r vm p1; spolynomial_of_ok r vm p2 | Pmult p1 p2 -> spolynomial_of_ok r vm p1; spolynomial_of_ok r vm p2 | Popp p -> spolynomial_of_ok r vm p; let x = interp_sp r vm (spolynomial_of r p) in let y = r.cm_mult.mult (r.opp r.cm_m...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.spolynomial_of
val spolynomial_of: #a:eqtype -> cr a -> polynomial a -> spolynomial a
val spolynomial_of: #a:eqtype -> cr a -> polynomial a -> spolynomial a
let rec spolynomial_of #a r p = match p with | Pvar i -> SPvar i | Pconst c -> SPconst c | Pplus l q -> SPplus (spolynomial_of r l) (spolynomial_of r q) | Pmult l q -> SPmult (spolynomial_of r l) (spolynomial_of r q) | Popp p -> SPmult (SPconst (r.opp r.cm_mult.unit)) (spolynomial_of r p)
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 74, "end_line": 1402, "start_col": 0, "start_line": 1396 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> p: FStar.Tactics.CanonCommSemiring.polynomial a -> FStar.Tactics.CanonCommSemiring.spolynomial a
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.index", "FStar.Tactics.CanonCommSemiring.SPvar", "FStar.Tactics.CanonCommSemiring.SPconst", "FStar.Tactics.CanonCommSemiring.SPplus", "FStar.Tactics.CanonCommSemiring.sp...
[ "recursion" ]
false
false
false
false
false
let rec spolynomial_of #a r p =
match p with | Pvar i -> SPvar i | Pconst c -> SPconst c | Pplus l q -> SPplus (spolynomial_of r l) (spolynomial_of r q) | Pmult l q -> SPmult (spolynomial_of r l) (spolynomial_of r q) | Popp p -> SPmult (SPconst (r.opp r.cm_mult.unit)) (spolynomial_of r p)
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canonical_sum_prod_ok
val canonical_sum_prod_ok: #a:eqtype -> r:cr a -> vm:vmap a -> s1:canonical_sum a -> s2:canonical_sum a -> Lemma (interp_cs r vm (canonical_sum_prod r s1 s2) == r.cm_mult.mult (interp_cs r vm s1) (interp_cs r vm s2))
val canonical_sum_prod_ok: #a:eqtype -> r:cr a -> vm:vmap a -> s1:canonical_sum a -> s2:canonical_sum a -> Lemma (interp_cs r vm (canonical_sum_prod r s1 s2) == r.cm_mult.mult (interp_cs r vm s1) (interp_cs r vm s2))
let rec canonical_sum_prod_ok #a r vm s1 s2 = let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s1 with | Cons_monom c1 l1 t1 -> calc (==) { interp_cs r vm (canonical_sum_prod r s1 s2); == { } interp_cs r vm (canonical_sum_merge r (can...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 1323, "start_col": 0, "start_line": 1272 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> s1: FStar.Tactics.CanonCommSemiring.canonical_sum a -> s2: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.canonical_sum", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar.Tactics.CanonCommSemiri...
[ "recursion" ]
false
false
true
false
false
let rec canonical_sum_prod_ok #a r vm s1 s2 =
let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s1 with | Cons_monom c1 l1 t1 -> calc ( == ) { interp_cs r vm (canonical_sum_prod r s1 s2); ( == ) { () } interp_cs r vm (canonical_sum_merge r (canonical_sum_scalar3 r c1 l1 s2) (canonical_sum_prod r...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canonical_sum_scalar_ok
val canonical_sum_scalar_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c0:a -> s:canonical_sum a -> Lemma ( interp_cs r vm (canonical_sum_scalar r c0 s) == r.cm_mult.mult c0 (interp_cs r vm s))
val canonical_sum_scalar_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c0:a -> s:canonical_sum a -> Lemma ( interp_cs r vm (canonical_sum_scalar r c0 s) == r.cm_mult.mult c0 (interp_cs r vm s))
let rec canonical_sum_scalar_ok #a r vm c0 s = let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s with | Cons_monom c l t -> calc (==) { interp_cs r vm (canonical_sum_scalar r c0 s); == { } interp_cs r vm (Cons_monom (amult c0 c) l (canonical...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 1098, "start_col": 0, "start_line": 1052 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> c0: a -> s: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FStar.Tactics.CanonCommSemiring.canonical_s...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.canonical_sum", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar.Tactics.CanonCommSemiri...
[ "recursion" ]
false
false
true
false
false
let rec canonical_sum_scalar_ok #a r vm c0 s =
let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s with | Cons_monom c l t -> calc ( == ) { interp_cs r vm (canonical_sum_scalar r c0 s); ( == ) { () } interp_cs r vm (Cons_monom (amult c0 c) l (canonical_sum_scalar r c0 t)); ( == ) { () } aplus (amult ...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canonical_sum_scalar2_ok
val canonical_sum_scalar2_ok: #a:eqtype -> r:cr a -> vm:vmap a -> l0:varlist -> s:canonical_sum a -> Lemma ( interp_cs r vm (canonical_sum_scalar2 r l0 s) == r.cm_mult.mult (interp_vl r vm l0) (interp_cs r vm s))
val canonical_sum_scalar2_ok: #a:eqtype -> r:cr a -> vm:vmap a -> l0:varlist -> s:canonical_sum a -> Lemma ( interp_cs r vm (canonical_sum_scalar2 r l0 s) == r.cm_mult.mult (interp_vl r vm l0) (interp_cs r vm s))
let rec canonical_sum_scalar2_ok #a r vm l0 s = let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s with | Cons_monom c l t -> calc (==) { interp_cs r vm (canonical_sum_scalar2 r l0 s); == { } interp_cs r vm (monom_insert r c (varlist_...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 1175, "start_col": 0, "start_line": 1105 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> l0: FStar.Tactics.CanonCommSemiring.varlist -> s: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FStar...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Tactics.CanonCommSemiring.canonical_sum", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar.Tactics.CanonCommSemiri...
[ "recursion" ]
false
false
true
false
false
let rec canonical_sum_scalar2_ok #a r vm l0 s =
let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s with | Cons_monom c l t -> calc ( == ) { interp_cs r vm (canonical_sum_scalar2 r l0 s); ( == ) { () } interp_cs r vm (monom_insert r c (varlist_merge l0 l) (canonical_sum_scalar2 r l0 t)); ( == ) { monom_in...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.int_cr
val int_cr:cr int
val int_cr:cr int
let int_cr : cr int = CR int_plus_cm int_multiply_cm op_Minus (fun x -> ()) (fun x y z -> ()) (fun x -> ())
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 87, "end_line": 1688, "start_col": 0, "start_line": 1687 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Tactics.CanonCommSemiring.cr Prims.int
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommSemiring.CR", "Prims.int", "FStar.Algebra.CommMonoid.int_plus_cm", "FStar.Algebra.CommMonoid.int_multiply_cm", "Prims.op_Minus", "Prims.unit" ]
[]
false
false
false
true
false
let int_cr:cr int =
CR int_plus_cm int_multiply_cm op_Minus (fun x -> ()) (fun x y z -> ()) (fun x -> ())
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.polynomial_simplify_ok
val polynomial_simplify_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:polynomial a -> Lemma (interp_cs r vm (polynomial_simplify r p) == interp_p r vm p)
val polynomial_simplify_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:polynomial a -> Lemma (interp_cs r vm (polynomial_simplify r p) == interp_p r vm p)
let polynomial_simplify_ok #a r vm p = calc (==) { interp_cs r vm (polynomial_simplify r p); == { } interp_cs r vm (canonical_sum_simplify r (polynomial_normalize r p)); == { canonical_sum_simplify_ok r vm (polynomial_normalize r p) } interp_cs r vm (polynomial_normalize r p); == { polynomial_...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1490, "start_col": 0, "start_line": 1477 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> p: FStar.Tactics.CanonCommSemiring.polynomial a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FStar.Tactics.CanonCommSemiring.polynomial_simplify r p) ==...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar.Tactics.CanonCommSemiring.polynomial_simplify", "FStar.Tactics.CanonC...
[]
false
false
true
false
false
let polynomial_simplify_ok #a r vm p =
calc ( == ) { interp_cs r vm (polynomial_simplify r p); ( == ) { () } interp_cs r vm (canonical_sum_simplify r (polynomial_normalize r p)); ( == ) { canonical_sum_simplify_ok r vm (polynomial_normalize r p) } interp_cs r vm (polynomial_normalize r p); ( == ) { polynomial_normalize_ok r vm p } interp_cs r ...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.interp_p
val interp_p (#a: Type) (r: cr a) (vm: vmap a) (p: polynomial a) : a
val interp_p (#a: Type) (r: cr a) (vm: vmap a) (p: polynomial a) : a
let rec interp_p (#a:Type) (r:cr a) (vm:vmap a) (p:polynomial a) : a = let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match p with | Pconst c -> c | Pvar i -> interp_var vm i | Pplus p1 p2 -> aplus (interp_p r vm p1) (interp_p r vm p2) | Pmult p1 p2 -> amult (interp_p r vm p1) (interp_p r vm p...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 1414, "start_col": 0, "start_line": 1406 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> p: FStar.Tactics.CanonCommSemiring.polynomial a -> a
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.index", "FStar.Tactics.CanonCommSemiring.interp_var", "FStar.Tactics.CanonCommSemiring.interp_p", "FStar.Tactics.CanonCommSemiring.__proj__CR__item...
[ "recursion" ]
false
false
false
true
false
let rec interp_p (#a: Type) (r: cr a) (vm: vmap a) (p: polynomial a) : a =
let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match p with | Pconst c -> c | Pvar i -> interp_var vm i | Pplus p1 p2 -> aplus (interp_p r vm p1) (interp_p r vm p2) | Pmult p1 p2 -> amult (interp_p r vm p1) (interp_p r vm p2) | Popp p -> r.opp (interp_p r vm p)
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.find_aux
val find_aux (n: nat) (x: term) (xs: list term) : Tac (option nat)
val find_aux (n: nat) (x: term) (xs: list term) : Tac (option nat)
let rec find_aux (n:nat) (x:term) (xs:list term) : Tac (option nat) = match xs with | [] -> None | x'::xs' -> if term_eq x x' then Some n else find_aux (n+1) x xs'
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 68, "end_line": 1507, "start_col": 0, "start_line": 1504 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> x: FStar.Tactics.NamedView.term -> xs: Prims.list FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option Prims.nat)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.nat", "FStar.Tactics.NamedView.term", "Prims.list", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.Some", "Prims.bool", "FStar.Tactics.CanonCommSemiring.find_aux", "Prims.op_Addition", "FStar.Tactics.CanonCommSemiring.term_eq" ]
[ "recursion" ]
false
true
false
false
false
let rec find_aux (n: nat) (x: term) (xs: list term) : Tac (option nat) =
match xs with | [] -> None | x' :: xs' -> if term_eq x x' then Some n else find_aux (n + 1) x xs'
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.semiring_reflect
val semiring_reflect: #a: eqtype -> r: cr a -> vm: vmap a -> e1: polynomial a -> e2: polynomial a -> a1: a -> a2: a -> squash (interp_cs r vm (polynomial_simplify r e1) == interp_cs r vm (polynomial_simplify r e2)) -> squash (a1 == interp_p r vm e1) -> squash (a2 == interp_p r vm...
val semiring_reflect: #a: eqtype -> r: cr a -> vm: vmap a -> e1: polynomial a -> e2: polynomial a -> a1: a -> a2: a -> squash (interp_cs r vm (polynomial_simplify r e1) == interp_cs r vm (polynomial_simplify r e2)) -> squash (a1 == interp_p r vm e1) -> squash (a2 == interp_p r vm...
let semiring_reflect (#a:eqtype) (r:cr a) (vm:vmap a) (e1 e2:polynomial a) (a1 a2:a) (_ : squash ( interp_cs r vm (polynomial_simplify r e1) == interp_cs r vm (polynomial_simplify r e2))) (_ : squash (a1 == interp_p r vm e1)) (_ : squash (a2 == interp_p r vm e2)) : squash (a1 == a2) = po...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 1618, "start_col": 0, "start_line": 1609 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> e1: FStar.Tactics.CanonCommSemiring.polynomial a -> e2: FStar.Tactics.CanonCommSemiring.polynomial a -> a1: a -> a2: a -> _: Prims.squash (FStar.Tactics.CanonCommSemiring.interp_cs r v...
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.polynomial", "Prims.squash", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar.Tactics.CanonCommSemiring.polynomial_simplify", "FStar.Tactics.CanonCommSemirin...
[]
false
false
true
false
false
let semiring_reflect (#a: eqtype) (r: cr a) (vm: vmap a) (e1: polynomial a) (e2: polynomial a) (a1: a) (a2: a) (_: squash (interp_cs r vm (polynomial_simplify r e1) == interp_cs r vm (polynomial_simplify r e2))) (_: squash (a1 == interp_p r v...
polynomial_simplify_ok r vm e1; polynomial_simplify_ok r vm e2
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.polynomial_normalize_ok
val polynomial_normalize_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:polynomial a -> Lemma (interp_cs r vm (polynomial_normalize r p) == interp_cs r vm (spolynomial_normalize r (spolynomial_of r p)))
val polynomial_normalize_ok: #a:eqtype -> r:cr a -> vm:vmap a -> p:polynomial a -> Lemma (interp_cs r vm (polynomial_normalize r p) == interp_cs r vm (spolynomial_normalize r (spolynomial_of r p)))
let rec polynomial_normalize_ok #a r vm p = match p with | Pvar _ -> () | Pconst _ -> () | Pplus l q -> canonical_sum_merge_ok r vm (polynomial_normalize r l) (polynomial_normalize r q); canonical_sum_merge_ok r vm (spolynomial_normalize r (spolynomial_of r l)) (spolynomial_norma...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 1472, "start_col": 0, "start_line": 1440 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> p: FStar.Tactics.CanonCommSemiring.polynomial a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm (FStar.Tactics.CanonCommSemiring.polynomial_normalize r p) =...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Tactics.CanonCommSemiring.index", "FStar.Tactics.CanonCommSemiring.polynomial_normalize_ok", "Prims.unit", "FStar.Tactics.CanonCommSemiring.canonical_sum_m...
[ "recursion" ]
false
false
true
false
false
let rec polynomial_normalize_ok #a r vm p =
match p with | Pvar _ -> () | Pconst _ -> () | Pplus l q -> canonical_sum_merge_ok r vm (polynomial_normalize r l) (polynomial_normalize r q); canonical_sum_merge_ok r vm (spolynomial_normalize r (spolynomial_of r l)) (spolynomial_normalize r (spolynomial_of r q)); polynomial_normalize_ok r vm l; po...
false
FStar.UInt16.fsti
FStar.UInt16.gte_mask
val gte_mask (a b: t) : Pure t (requires True) (ensures (fun c -> (v a >= v b ==> v c = pow2 n - 1) /\ (v a < v b ==> v c = 0)))
val gte_mask (a b: t) : Pure t (requires True) (ensures (fun c -> (v a >= v b ==> v c = pow2 n - 1) /\ (v a < v b ==> v c = 0)))
let gte_mask (a:t) (b:t) : Pure t (requires True) (ensures (fun c -> (v a >= v b ==> v c = pow2 n - 1) /\ (v a < v b ==> v c = 0))) = let x = a in let y = b in let x_xor_y = logxor x y in let x_sub_y = sub_mod x y in let x_sub_y_xor_y = logxor x_sub_y y in let q = ...
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 312, "start_col": 0, "start_line": 295 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.t", "Prims.unit", "FStar.UInt.lemma_msb_gte", "FStar.UInt16.n", "FStar.UInt16.v", "FStar.UInt16.lemma_sub_msbs", "FStar.UInt16.sub_mod", "FStar.UInt16.uint_to_t", "FStar.UInt16.shift_right", "FStar.UInt16.n_minus_one", "FStar.UInt16.logxor", "FStar.UInt16.logor", "Prims.l_True"...
[]
false
false
false
false
false
let gte_mask (a b: t) : Pure t (requires True) (ensures (fun c -> (v a >= v b ==> v c = pow2 n - 1) /\ (v a < v b ==> v c = 0))) =
let x = a in let y = b in let x_xor_y = logxor x y in let x_sub_y = sub_mod x y in let x_sub_y_xor_y = logxor x_sub_y y in let q = logor x_xor_y x_sub_y_xor_y in let x_xor_q = logxor x q in let x_xor_q_ = shift_right x_xor_q n_minus_one in let c = sub_mod x_xor_q_ (uint_to_t 1) in lemma_sub_msbs x y; lemma_msb_gte (v x...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.monom_insert_ok
val monom_insert_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c1:a -> l1:varlist -> s2:canonical_sum a -> Lemma (interp_cs r vm (monom_insert r c1 l1 s2) == r.cm_add.mult (r.cm_mult.mult c1 (interp_vl r vm l1)) (interp_cs r vm s2))
val monom_insert_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c1:a -> l1:varlist -> s2:canonical_sum a -> Lemma (interp_cs r vm (monom_insert r c1 l1 s2) == r.cm_add.mult (r.cm_mult.mult c1 (interp_vl r vm l1)) (interp_cs r vm s2))
let rec monom_insert_ok #a r vm c1 l1 s2 = let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in let aone = r.cm_mult.unit in match s2 with | Cons_monom c2 l2 t2 -> if l1 = l2 then calc (==) { interp_cs r vm (monom_insert r c1 l1 s2); == { } interp_cs r vm (Cons_mon...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 1037, "start_col": 0, "start_line": 909 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> c1: a -> l1: FStar.Tactics.CanonCommSemiring.varlist -> s2: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Tactics.CanonCommSemiring.canonical_sum", "Prims.op_Equality", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar....
[ "recursion" ]
false
false
true
false
false
let rec monom_insert_ok #a r vm c1 l1 s2 =
let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in let aone = r.cm_mult.unit in match s2 with | Cons_monom c2 l2 t2 -> if l1 = l2 then calc ( == ) { interp_cs r vm (monom_insert r c1 l1 s2); ( == ) { () } interp_cs r vm (Cons_monom (aplus c1 c2) l1 t2); ( == ) { () } ics_au...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.canonical_sum_scalar3_ok
val canonical_sum_scalar3_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c0:a -> l0:varlist -> s:canonical_sum a -> Lemma ( interp_cs r vm (canonical_sum_scalar3 r c0 l0 s) == r.cm_mult.mult (r.cm_mult.mult c0 (interp_vl r vm l0)) (interp_cs r vm s))
val canonical_sum_scalar3_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c0:a -> l0:varlist -> s:canonical_sum a -> Lemma ( interp_cs r vm (canonical_sum_scalar3 r c0 l0 s) == r.cm_mult.mult (r.cm_mult.mult c0 (interp_vl r vm l0)) (interp_cs r vm s))
let rec canonical_sum_scalar3_ok #a r vm c0 l0 s = let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s with | Cons_monom c l t -> calc (==) { interp_cs r vm (canonical_sum_scalar3 r c0 l0 s); == { } interp_cs r vm (monom_insert r (amul...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 1266, "start_col": 0, "start_line": 1182 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> c0: a -> l0: FStar.Tactics.CanonCommSemiring.varlist -> s: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures FStar.Tactics.CanonCommSemiring.interp_cs r vm ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Tactics.CanonCommSemiring.canonical_sum", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar.Tactics.CanonCommSemiri...
[ "recursion" ]
false
false
true
false
false
let rec canonical_sum_scalar3_ok #a r vm c0 l0 s =
let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s with | Cons_monom c l t -> calc ( == ) { interp_cs r vm (canonical_sum_scalar3 r c0 l0 s); ( == ) { () } interp_cs r vm (monom_insert r (amult c0 c) (varlist_merge l0 l) (canonical_sum_scalar3 r c0 ...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.quote_polynomial
val quote_polynomial (#a: Type) (ta: term) (quotea: (a -> Tac term)) (e: polynomial a) : Tac term
val quote_polynomial (#a: Type) (ta: term) (quotea: (a -> Tac term)) (e: polynomial a) : Tac term
let rec quote_polynomial (#a:Type) (ta:term) (quotea:a -> Tac term) (e:polynomial a) : Tac term = match e with | Pconst c -> mk_app (`Pconst) [(ta, Q_Implicit); (quotea c, Q_Explicit)] | Pvar x -> mk_e_app (`Pvar) [pack (Tv_Const (C_Int x))] | Pplus e1 e2 -> mk_e_app (`Pplus) [quote_polynomial ta quotea e1;...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 1606, "start_col": 0, "start_line": 1598 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ta: FStar.Tactics.NamedView.term -> quotea: (_: a -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term) -> e: FStar.Tactics.CanonCommSemiring.polynomial a -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.CanonCommSemiring.polynomial", "FStar.Reflection.V2.Derived.mk_app", "Prims.list", "FStar.Stubs.Reflection.V2.Data.argv", "Prims.Cons", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V2.Data.aqualv", "...
[ "recursion" ]
false
true
false
false
false
let rec quote_polynomial (#a: Type) (ta: term) (quotea: (a -> Tac term)) (e: polynomial a) : Tac term =
match e with | Pconst c -> mk_app (`Pconst) [(ta, Q_Implicit); (quotea c, Q_Explicit)] | Pvar x -> mk_e_app (`Pvar) [pack (Tv_Const (C_Int x))] | Pplus e1 e2 -> mk_e_app (`Pplus) [quote_polynomial ta quotea e1; quote_polynomial ta quotea e2] | Pmult e1 e2 -> mk_e_app (`Pmult) [quote_polynomial ta quotea e1; quote_polyn...
false
FStar.Tactics.CanonCommSemiring.fst
FStar.Tactics.CanonCommSemiring.csm_aux_ok
val csm_aux_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c1:a -> l1:varlist -> t1:canonical_sum a -> s2:canonical_sum a -> Lemma (ensures interp_cs r vm (csm_aux r c1 l1 t1 s2) == r.cm_add.mult (interp_cs r vm (Cons_monom c1 l1 t1)) (interp_cs r vm s2)) (decreases %[t1; s2; 1])
val csm_aux_ok: #a:eqtype -> r:cr a -> vm:vmap a -> c1:a -> l1:varlist -> t1:canonical_sum a -> s2:canonical_sum a -> Lemma (ensures interp_cs r vm (csm_aux r c1 l1 t1 s2) == r.cm_add.mult (interp_cs r vm (Cons_monom c1 l1 t1)) (interp_cs r vm s2)) (decreases %[t1; s2; 1])
let rec canonical_sum_merge_ok #a r vm s1 s2 = let aone = r.cm_mult.unit in let aplus = r.cm_add.mult in let amult = r.cm_mult.mult in match s1 with | Cons_monom c1 l1 t1 -> csm_aux_ok #a r vm c1 l1 t1 s2 | Cons_varlist l1 t1 -> calc (==) { interp_cs r vm (canonical_sum_merge r s1 s2); == ...
{ "file_name": "ulib/FStar.Tactics.CanonCommSemiring.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 902, "start_col": 0, "start_line": 667 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasive...
[ { "abbrev": false, "full_module": "FStar.Algebra.CommMonoid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Tactics.CanonCommSemiring.cr a -> vm: FStar.Tactics.CanonCommSemiring.vmap a -> c1: a -> l1: FStar.Tactics.CanonCommSemiring.varlist -> t1: FStar.Tactics.CanonCommSemiring.canonical_sum a -> s2: FStar.Tactics.CanonCommSemiring.canonical_sum a -> FStar.Pervasives.Lemma (ensures ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[ "canonical_sum_merge_ok", "csm_aux_ok" ]
[ "Prims.eqtype", "FStar.Tactics.CanonCommSemiring.cr", "FStar.Tactics.CanonCommSemiring.vmap", "FStar.Tactics.CanonCommSemiring.varlist", "FStar.Tactics.CanonCommSemiring.canonical_sum", "Prims.op_Equality", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Tactics.CanonCommSemiring.interp_cs", "FStar....
[ "mutual recursion" ]
false
false
true
false
false
let rec csm_aux_ok #a r vm c1 l1 t1 s2 =
let aplus = r.cm_add.mult in let aone = r.cm_mult.unit in let amult = r.cm_mult.mult in match s2 with | Nil_monom -> () | Cons_monom c2 l2 t2 -> let s1 = Cons_monom c1 l1 t1 in if l1 = l2 then calc ( == ) { interp_cs r vm (csm_aux r c1 l1 t1 s2); ( == ) { () } ics_aux r vm (interp_m r vm (ap...
false
FStar.UInt16.fsti
FStar.UInt16.eq_mask
val eq_mask (a b: t) : Pure t (requires True) (ensures (fun c -> (v a = v b ==> v c = pow2 n - 1) /\ (v a <> v b ==> v c = 0)))
val eq_mask (a b: t) : Pure t (requires True) (ensures (fun c -> (v a = v b ==> v c = pow2 n - 1) /\ (v a <> v b ==> v c = 0)))
let eq_mask (a:t) (b:t) : Pure t (requires True) (ensures (fun c -> (v a = v b ==> v c = pow2 n - 1) /\ (v a <> v b ==> v c = 0))) = let x = logxor a b in let minus_x = minus x in let x_or_minus_x = logor x minus_x in let xnx = shift_right x_or_minus_x n_minus_one in l...
{ "file_name": "ulib/FStar.UInt16.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 283, "start_col": 0, "start_line": 256 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt16.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.UInt", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt16.t -> b: FStar.UInt16.t -> Prims.Pure FStar.UInt16.t
Prims.Pure
[]
[]
[ "FStar.UInt16.t", "Prims.unit", "Prims.op_Equality", "Prims._assert", "Prims.b2t", "FStar.UInt.uint_t", "FStar.UInt16.n", "FStar.UInt16.v", "FStar.UInt.ones", "Prims.l_and", "Prims.int", "FStar.UInt.logor_lemma_1", "FStar.UInt.lognot_lemma_1", "FStar.UInt.logxor_self", "Prims.bool", "F...
[]
false
false
false
false
false
let eq_mask (a b: t) : Pure t (requires True) (ensures (fun c -> (v a = v b ==> v c = pow2 n - 1) /\ (v a <> v b ==> v c = 0))) =
let x = logxor a b in let minus_x = minus x in let x_or_minus_x = logor x minus_x in let xnx = shift_right x_or_minus_x n_minus_one in let c = sub_mod xnx (uint_to_t 1) in if a = b then (logxor_self (v a); lognot_lemma_1 #n; logor_lemma_1 (v x); assert (v x = 0 /\ v minus_x = 0 /\ v x_or_minus_x = 0 /\ v ...
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_get_len
val bn_field_get_len: #t:limb_t -> bn_field_get_len_st t
val bn_field_get_len: #t:limb_t -> bn_field_get_len_st t
let bn_field_get_len #t k = let open LowStar.BufferOps in let k1 = !*k in k1.len
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 8, "end_line": 36, "start_col": 0, "start_line": 33 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.MontArithmetic.bn_field_get_len_st t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx'__item__len", "Hacl.Bignum.MontArithmetic.lb", "Hacl.Bignum.MontArithmetic.ll", "Hacl.Bignum.meta_len", "Hacl.Bignum.MontArithmetic.bn_mont_ctx", "LowStar.BufferOps.op_Bang_St...
[]
false
false
false
false
false
let bn_field_get_len #t k =
let open LowStar.BufferOps in let k1 = !*k in k1.len
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_check_modulus
val bn_field_check_modulus: #t:limb_t -> km:BM.mont t -> bn_field_check_modulus_st t km.BM.bn.BN.len
val bn_field_check_modulus: #t:limb_t -> km:BM.mont t -> bn_field_check_modulus_st t km.BM.bn.BN.len
let bn_field_check_modulus #t km n = let m = km.BM.mont_check n in BB.unsafe_bool_of_limb m
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 41, "start_col": 0, "start_line": 39 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_check_modulus_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Hacl.Spec.Bignum.Base.unsafe_bool_of_limb", "Prims.bool", "Hacl.Bignum.Definitions.limb", "Hacl.Bignum.Montgo...
[]
false
false
false
false
false
let bn_field_check_modulus #t km n =
let m = km.BM.mont_check n in BB.unsafe_bool_of_limb m
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_one
val bn_field_one: #t:limb_t -> km:BM.mont t -> bn_field_one_st t km.BM.bn.BN.len
val bn_field_one: #t:limb_t -> km:BM.mont t -> bn_field_one_st t km.BM.bn.BN.len
let bn_field_one #t km k oneM = let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in BM.bn_mont_one km.BM.bn.BN.len km.BM.from k1.n k1.mu k1.r2 oneM; let h1 = ST.get () in assert (as_seq h1 oneM == S.bn_field_one (as_pctx h0 k))
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 139, "start_col": 0, "start_line": 133 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_one_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Prims._assert", "Prims.eq2", "Lib.Sequence.seq", "Hacl.Bignum.De...
[]
false
false
false
false
false
let bn_field_one #t km k oneM =
let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in BM.bn_mont_one km.BM.bn.BN.len km.BM.from k1.n k1.mu k1.r2 oneM; let h1 = ST.get () in assert (as_seq h1 oneM == S.bn_field_one (as_pctx h0 k))
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_free
val bn_field_free: #t:limb_t -> bn_field_free_st t
val bn_field_free: #t:limb_t -> bn_field_free_st t
let bn_field_free #t k = let open LowStar.BufferOps in let k1 = !*k in let n : buffer (limb t) = k1.n in let r2 : buffer (limb t) = k1.r2 in B.free n; B.freeable_disjoint n r2; B.free r2; B.free k
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 76, "start_col": 0, "start_line": 68 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.MontArithmetic.bn_field_free_st t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "LowStar.Monotonic.Buffer.free", "Hacl.Bignum.MontArithmetic.bn_mont_ctx", "LowStar.Buffer.trivial_preorder", "Prims.unit", "Hacl.Bignum.Definitions.limb", "LowStar.Monotonic.Buffer.freeable_disjoint", "Lib.Buffer.buffer_t"...
[]
false
false
false
false
false
let bn_field_free #t k =
let open LowStar.BufferOps in let k1 = !*k in let n:buffer (limb t) = k1.n in let r2:buffer (limb t) = k1.r2 in B.free n; B.freeable_disjoint n r2; B.free r2; B.free k
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_to_field
val bn_to_field: #t:limb_t -> km:BM.mont t -> bn_to_field_st t km.BM.bn.BN.len
val bn_to_field: #t:limb_t -> km:BM.mont t -> bn_to_field_st t km.BM.bn.BN.len
let bn_to_field #t km k a aM = let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.to k1.n k1.mu k1.r2 a aM; let h1 = ST.get () in assert (as_seq h1 aM == S.bn_to_field (as_pctx h0 k) (as_seq h0 a))
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 69, "end_line": 85, "start_col": 0, "start_line": 79 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_to_field_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Prims._assert", "Prims.eq2", "Lib.Sequence.seq", "Hacl.Bignum.De...
[]
false
false
false
false
false
let bn_to_field #t km k a aM =
let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.to k1.n k1.mu k1.r2 a aM; let h1 = ST.get () in assert (as_seq h1 aM == S.bn_to_field (as_pctx h0 k) (as_seq h0 a))
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_add
val bn_field_add: #t:limb_t -> km:BM.mont t -> bn_field_add_st t km.BM.bn.BN.len
val bn_field_add: #t:limb_t -> km:BM.mont t -> bn_field_add_st t km.BM.bn.BN.len
let bn_field_add #t km k aM bM cM = let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.bn.BN.add_mod_n k1.n aM bM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_add (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM))
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 86, "end_line": 103, "start_col": 0, "start_line": 97 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_add_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Prims._assert", "Prims.eq2", "Lib.Sequence.seq", "Hacl.Bignum.De...
[]
false
false
false
false
false
let bn_field_add #t km k aM bM cM =
let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.bn.BN.add_mod_n k1.n aM bM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_add (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM))
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_mul
val bn_field_mul: #t:limb_t -> km:BM.mont t -> bn_field_mul_st t km.BM.bn.BN.len
val bn_field_mul: #t:limb_t -> km:BM.mont t -> bn_field_mul_st t km.BM.bn.BN.len
let bn_field_mul #t km k aM bM cM = let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.mul k1.n k1.mu aM bM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_mul (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM))
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 86, "end_line": 121, "start_col": 0, "start_line": 115 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_mul_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Prims._assert", "Prims.eq2", "Lib.Sequence.seq", "Hacl.Bignum.De...
[]
false
false
false
false
false
let bn_field_mul #t km k aM bM cM =
let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.mul k1.n k1.mu aM bM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_mul (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM))
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_sqr
val bn_field_sqr: #t:limb_t -> km:BM.mont t -> bn_field_sqr_st t km.BM.bn.BN.len
val bn_field_sqr: #t:limb_t -> km:BM.mont t -> bn_field_sqr_st t km.BM.bn.BN.len
let bn_field_sqr #t km k aM cM = let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.sqr k1.n k1.mu aM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_sqr (as_pctx h0 k) (as_seq h0 aM))
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 130, "start_col": 0, "start_line": 124 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_sqr_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Prims._assert", "Prims.eq2", "Lib.Sequence.seq", "Hacl.Bignum.De...
[]
false
false
false
false
false
let bn_field_sqr #t km k aM cM =
let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.sqr k1.n k1.mu aM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_sqr (as_pctx h0 k) (as_seq h0 aM))
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_from_field
val bn_from_field: #t:limb_t -> km:BM.mont t -> bn_from_field_st t km.BM.bn.BN.len
val bn_from_field: #t:limb_t -> km:BM.mont t -> bn_from_field_st t km.BM.bn.BN.len
let bn_from_field #t km k aM a = let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.from k1.n k1.mu aM a; let h1 = ST.get () in assert (as_seq h1 a == S.bn_from_field (as_pctx h0 k) (as_seq h0 aM))
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 94, "start_col": 0, "start_line": 88 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_from_field_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Prims._assert", "Prims.eq2", "Lib.Sequence.seq", "Hacl.Bignum.De...
[]
false
false
false
false
false
let bn_from_field #t km k aM a =
let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.from k1.n k1.mu aM a; let h1 = ST.get () in assert (as_seq h1 a == S.bn_from_field (as_pctx h0 k) (as_seq h0 aM))
false
FStar.Stubs.Reflection.V2.Data.fsti
FStar.Stubs.Reflection.V2.Data.ppname_t
val ppname_t : Type0
let ppname_t = FStar.Sealed.Inhabited.sealed ""
{ "file_name": "ulib/FStar.Stubs.Reflection.V2.Data.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 23, "start_col": 0, "start_line": 23 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Stubs.Syntax.Syntax.fsti.checked", "FStar.Stubs.Reflection.Types.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Stubs.Reflection.V2.D...
[ { "abbrev": false, "full_module": "FStar.Stubs.Reflection.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Syntax.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V2", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Sealed.Inhabited.sealed", "Prims.string" ]
[]
false
false
false
true
true
let ppname_t =
FStar.Sealed.Inhabited.sealed ""
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_sub
val bn_field_sub: #t:limb_t -> km:BM.mont t -> bn_field_sub_st t km.BM.bn.BN.len
val bn_field_sub: #t:limb_t -> km:BM.mont t -> bn_field_sub_st t km.BM.bn.BN.len
let bn_field_sub #t km k aM bM cM = let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.bn.BN.sub_mod_n k1.n aM bM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_sub (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM))
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 86, "end_line": 112, "start_col": 0, "start_line": 106 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_sub_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Prims._assert", "Prims.eq2", "Lib.Sequence.seq", "Hacl.Bignum.De...
[]
false
false
false
false
false
let bn_field_sub #t km k aM bM cM =
let open LowStar.BufferOps in let k1 = !*k in let h0 = ST.get () in km.BM.bn.BN.sub_mod_n k1.n aM bM cM; let h1 = ST.get () in assert (as_seq h1 cM == S.bn_field_sub (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM))
false
FStar.Stubs.Reflection.V2.Data.fsti
FStar.Stubs.Reflection.V2.Data.notAscription
val notAscription (tv: term_view) : bool
val notAscription (tv: term_view) : bool
let notAscription (tv:term_view) : bool = not (Tv_AscribedT? tv) && not (Tv_AscribedC? tv)
{ "file_name": "ulib/FStar.Stubs.Reflection.V2.Data.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 158, "start_col": 0, "start_line": 157 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Stubs.Syntax.Syntax.fsti.checked", "FStar.Stubs.Reflection.Types.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Stubs.Reflection.V2.D...
[ { "abbrev": false, "full_module": "FStar.Stubs.Reflection.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Syntax.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V2", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tv: FStar.Stubs.Reflection.V2.Data.term_view -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Reflection.V2.Data.term_view", "Prims.op_AmpAmp", "Prims.op_Negation", "FStar.Stubs.Reflection.V2.Data.uu___is_Tv_AscribedT", "FStar.Stubs.Reflection.V2.Data.uu___is_Tv_AscribedC", "Prims.bool" ]
[]
false
false
false
true
false
let notAscription (tv: term_view) : bool =
not (Tv_AscribedT? tv) && not (Tv_AscribedC? tv)
false
FStar.Stubs.Reflection.V2.Data.fsti
FStar.Stubs.Reflection.V2.Data.as_ppname
val as_ppname (x: string) : ppname_t
val as_ppname (x: string) : ppname_t
let as_ppname (x:string) : ppname_t = FStar.Sealed.Inhabited.seal x
{ "file_name": "ulib/FStar.Stubs.Reflection.V2.Data.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 67, "end_line": 24, "start_col": 0, "start_line": 24 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Stubs.Syntax.Syntax.fsti.checked", "FStar.Stubs.Reflection.Types.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Stubs.Reflection.V2.D...
[ { "abbrev": false, "full_module": "FStar.Stubs.Reflection.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Syntax.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V2", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.string -> FStar.Stubs.Reflection.V2.Data.ppname_t
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.Sealed.Inhabited.seal", "FStar.Stubs.Reflection.V2.Data.ppname_t" ]
[]
false
false
false
true
false
let as_ppname (x: string) : ppname_t =
FStar.Sealed.Inhabited.seal x
false
FStar.Stubs.Reflection.V2.Data.fsti
FStar.Stubs.Reflection.V2.Data.var
val var:eqtype
val var:eqtype
let var : eqtype = nat
{ "file_name": "ulib/FStar.Stubs.Reflection.V2.Data.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 241, "start_col": 0, "start_line": 241 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Stubs.Syntax.Syntax.fsti.checked", "FStar.Stubs.Reflection.Types.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Stubs.Reflection.V2.D...
[ { "abbrev": false, "full_module": "FStar.Stubs.Reflection.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Syntax.Syntax", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Reflection.V2", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "Prims.nat" ]
[]
false
false
false
true
false
let var:eqtype =
nat
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_init
val bn_field_init: #t:limb_t -> len:BN.meta_len t -> precomp_r2:BM.bn_precomp_r2_mod_n_st t len -> bn_field_init_st t len
val bn_field_init: #t:limb_t -> len:BN.meta_len t -> precomp_r2:BM.bn_precomp_r2_mod_n_st t len -> bn_field_init_st t len
let bn_field_init #t len precomp_r2 r n = let h0 = ST.get () in let r2 : buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in let n1 : buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in let h1 = ST.get () in B.(modifies_only_not_unused_in loc_none h0 h1); assert (B.length r2 == FStar.UInt32.v len); as...
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 65, "start_col": 0, "start_line": 44 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Bignum.meta_len t -> precomp_r2: Hacl.Bignum.Montgomery.bn_precomp_r2_mod_n_st t len -> Hacl.Bignum.MontArithmetic.bn_field_init_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Montgomery.bn_precomp_r2_mod_n_st", "FStar.Monotonic.HyperHeap.rid", "Hacl.Bignum.Definitions.lbignum", "LowStar.Buffer.malloc", "Hacl.Bignum.MontArithmetic.bn_mont_ctx", "FStar.UInt32.__uint_to_t", "LowStar.Monotonic.Buffer.mbuf...
[]
false
false
false
false
false
let bn_field_init #t len precomp_r2 r n =
let h0 = ST.get () in let r2:buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in let n1:buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in let h1 = ST.get () in (let open B in modifies_only_not_unused_in loc_none h0 h1); assert (B.length r2 == FStar.UInt32.v len); assert (B.length n1 == FStar.UInt32.v len); let r2...
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_exp_consttime
val bn_field_exp_consttime: #t:limb_t -> km:BM.mont t -> bn_field_exp_consttime_st t km.BM.bn.BN.len
val bn_field_exp_consttime: #t:limb_t -> km:BM.mont t -> bn_field_exp_consttime_st t km.BM.bn.BN.len
let bn_field_exp_consttime #t km k aM bBits b resM = let open LowStar.BufferOps in let k1 = !*k in push_frame (); let aMc = create k1.len (uint #t #SEC 0) in copy aMc aM; ME.bn_exp_mont_consttime #t km k1.n k1.mu k1.r2 aMc bBits b resM; let h0 = ST.get () in assert (bn_v h0 aM < bn_v_n h0 k); BD.bn_ev...
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 154, "start_col": 0, "start_line": 142 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_exp_consttime_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks0", "Lib.IntT...
[]
false
false
false
false
false
let bn_field_exp_consttime #t km k aM bBits b resM =
let open LowStar.BufferOps in let k1 = !*k in push_frame (); let aMc = create k1.len (uint #t #SEC 0) in copy aMc aM; ME.bn_exp_mont_consttime #t km k1.n k1.mu k1.r2 aMc bBits b resM; let h0 = ST.get () in assert (bn_v h0 aM < bn_v_n h0 k); BD.bn_eval_inj (v k1.len) (S.bn_field_exp_consttime (as_pctx h0 k) (as_seq h0...
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_exp_vartime
val bn_field_exp_vartime: #t:limb_t -> km:BM.mont t -> bn_field_exp_vartime_st t km.BM.bn.BN.len
val bn_field_exp_vartime: #t:limb_t -> km:BM.mont t -> bn_field_exp_vartime_st t km.BM.bn.BN.len
let bn_field_exp_vartime #t km k aM bBits b resM = let open LowStar.BufferOps in let k1 = !*k in push_frame (); let aMc = create k1.len (uint #t #SEC 0) in copy aMc aM; ME.bn_exp_mont_vartime #t km k1.n k1.mu k1.r2 aMc bBits b resM; let h0 = ST.get () in assert (bn_v h0 aM < bn_v_n h0 k); BD.bn_eval_i...
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 169, "start_col": 0, "start_line": 157 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
km: Hacl.Bignum.Montgomery.mont t -> Hacl.Bignum.MontArithmetic.bn_field_exp_vartime_st t (Mkbn?.len (Mkmont?.bn km))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Montgomery.mont", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks0", "Lib.IntT...
[]
false
false
false
false
false
let bn_field_exp_vartime #t km k aM bBits b resM =
let open LowStar.BufferOps in let k1 = !*k in push_frame (); let aMc = create k1.len (uint #t #SEC 0) in copy aMc aM; ME.bn_exp_mont_vartime #t km k1.n k1.mu k1.r2 aMc bBits b resM; let h0 = ST.get () in assert (bn_v h0 aM < bn_v_n h0 k); BD.bn_eval_inj (v k1.len) (S.bn_field_exp_vartime (as_pctx h0 k) (as_seq h0 aM)...
false
Hacl.Bignum.MontArithmetic.fst
Hacl.Bignum.MontArithmetic.bn_field_inv
val bn_field_inv: #t:limb_t -> len:Ghost.erased _ -> bn_field_exp_vartime:bn_field_exp_vartime_st t len -> bn_field_inv_st t len
val bn_field_inv: #t:limb_t -> len:Ghost.erased _ -> bn_field_exp_vartime:bn_field_exp_vartime_st t len -> bn_field_inv_st t len
let bn_field_inv #t len bn_field_exp_vartime k aM aInvM = let open LowStar.BufferOps in let k1 = !*k in let len = k1.len in push_frame (); let n2 = create len (uint #t #SEC 0) in BI.bn_mod_inv_prime_n2 len k1.n n2; bn_field_exp_vartime k aM (k1.len *! size (bits t)) n2 aInvM; pop_frame ()
{ "file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 180, "start_col": 0, "start_line": 172 }
module Hacl.Bignum.MontArithmetic open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module B = LowStar.Buffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module S = Hacl.Spec.Bignum.MontArithmetic module BD = Hacl.Spec.Bign...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spec.Bignum.MontArithmetic.fst.checked", "Hacl.Spe...
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Bignum.Lib", "short_module": "BL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: FStar.Ghost.erased (Hacl.Bignum.meta_len t) -> bn_field_exp_vartime: Hacl.Bignum.MontArithmetic.bn_field_exp_vartime_st t (FStar.Ghost.reveal len) -> Hacl.Bignum.MontArithmetic.bn_field_inv_st t (FStar.Ghost.reveal len)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "FStar.Ghost.erased", "Hacl.Bignum.meta_len", "Hacl.Bignum.MontArithmetic.bn_field_exp_vartime_st", "FStar.Ghost.reveal", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum.Definitions.lbignum", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Lib.IntTypes.op_...
[]
false
false
false
false
false
let bn_field_inv #t len bn_field_exp_vartime k aM aInvM =
let open LowStar.BufferOps in let k1 = !*k in let len = k1.len in push_frame (); let n2 = create len (uint #t #SEC 0) in BI.bn_mod_inv_prime_n2 len k1.n n2; bn_field_exp_vartime k aM (k1.len *! size (bits t)) n2 aInvM; pop_frame ()
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_384_512
val lemma_spec_update_384_512 (b st: _) : Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st)
val lemma_spec_update_384_512 (b st: _) : Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st)
let lemma_spec_update_384_512 b st: Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st) = calc (==) { Hacl.Spec.SHA2.update SHA2_512 b st; (==) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_512 b st } Spec.Agile.Hash.update SHA2_512 st b; (==) { Spec.SHA2.Lemmas...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 158, "start_col": 0, "start_line": 146 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: s: Lib.Sequence.seq Lib.IntTypes.uint8 { FStar.Seq.Base.length s == Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_512 /\ FStar.Seq.Base.length s == Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_384 } -> st: s: Lib....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.Sequence.seq", "Lib.IntTypes.uint8", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Spec.Hash.Definitions.block_length", "Spec.Hash.Definitions.SHA2_512", "Spec.Hash.Definitions.SHA2_384", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.state_word_length", "FStar....
[]
false
false
true
false
false
let lemma_spec_update_384_512 b st : Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st) =
calc ( == ) { Hacl.Spec.SHA2.update SHA2_512 b st; ( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_512 b st } Spec.Agile.Hash.update SHA2_512 st b; ( == ) { Spec.SHA2.Lemmas.update_384_512 st b } Spec.Agile.Hash.update SHA2_384 st b; ( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_384 b st } H...
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_224_256
val lemma_spec_update_224_256 (b st: _) : Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st)
val lemma_spec_update_224_256 (b st: _) : Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st)
let lemma_spec_update_224_256 b st: Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st) = calc (==) { Hacl.Spec.SHA2.update SHA2_256 b st; (==) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_256 b st } Spec.Agile.Hash.update SHA2_256 st b; (==) { Spec.SHA2.Lemmas...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 48, "start_col": 0, "start_line": 36 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: s: Lib.Sequence.seq Lib.IntTypes.uint8 { FStar.Seq.Base.length s == Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_256 /\ FStar.Seq.Base.length s == Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_224 } -> st: s: Lib....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.Sequence.seq", "Lib.IntTypes.uint8", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Spec.Hash.Definitions.block_length", "Spec.Hash.Definitions.SHA2_256", "Spec.Hash.Definitions.SHA2_224", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.state_word_length", "FStar....
[]
false
false
true
false
false
let lemma_spec_update_224_256 b st : Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st) =
calc ( == ) { Hacl.Spec.SHA2.update SHA2_256 b st; ( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_256 b st } Spec.Agile.Hash.update SHA2_256 st b; ( == ) { Spec.SHA2.Lemmas.update_224_256 st b } Spec.Agile.Hash.update SHA2_224 st b; ( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_224 b st } H...
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_vec_224_256
val lemma_spec_update_vec_224_256 (b0 st0: _) : Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0)
val lemma_spec_update_vec_224_256 (b0 st0: _) : Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0)
let lemma_spec_update_vec_224_256 b0 st0 : Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0) = let open Lib.Sequence in let open Lib.MultiBuffer in let st1 = SpecVec.update #SHA2_256 #M32 b0 st0 in let st0_m32 = (state_spec_v st0).[0] <: words_state SHA2_256 in ...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 72, "start_col": 0, "start_line": 50 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b0: Hacl.Spec.SHA2.Vec.multiblock_spec Spec.Hash.Definitions.SHA2_224 Hacl.Spec.SHA2.Vec.M32 -> st0: s: Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_256 Hacl.Spec.SHA2.Vec.M32) {FStar.Seq.Base.length s == 8 /\ FStar.Seq.Base.length s == 8} -> FStar.Pervasi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.SHA2.Vec.multiblock_spec", "Spec.Hash.Definitions.SHA2_224", "Hacl.Spec.SHA2.Vec.M32", "Lib.Sequence.seq", "Hacl.Spec.SHA2.Vec.element_t", "Spec.Hash.Definitions.SHA2_256", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Hacl.SHA2.Scalar32.Lemmas.state_spec_v_extens...
[]
false
false
true
false
false
let lemma_spec_update_vec_224_256 b0 st0 : Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0) =
let open Lib.Sequence in let open Lib.MultiBuffer in let st1 = SpecVec.update #SHA2_256 #M32 b0 st0 in let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_256 in let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_256 in calc ( == ) { st1_m32; ( == ) { () } (state_spec_v (SpecVec.update #SHA2_256 b0...
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_vec_384_512
val lemma_spec_update_vec_384_512 (b0 st0: _) : Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0)
val lemma_spec_update_vec_384_512 (b0 st0: _) : Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0)
let lemma_spec_update_vec_384_512 b0 st0 : Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0) = let open Lib.Sequence in let open Lib.MultiBuffer in let st1 = SpecVec.update #SHA2_512 #M32 b0 st0 in let st0_m32 = (state_spec_v st0).[0] <: words_state SHA2_512 in ...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 182, "start_col": 0, "start_line": 160 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b0: Hacl.Spec.SHA2.Vec.multiblock_spec Spec.Hash.Definitions.SHA2_384 Hacl.Spec.SHA2.Vec.M32 -> st0: s: Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_512 Hacl.Spec.SHA2.Vec.M32) {FStar.Seq.Base.length s == 8 /\ FStar.Seq.Base.length s == 8} -> FStar.Pervasi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.SHA2.Vec.multiblock_spec", "Spec.Hash.Definitions.SHA2_384", "Hacl.Spec.SHA2.Vec.M32", "Lib.Sequence.seq", "Hacl.Spec.SHA2.Vec.element_t", "Spec.Hash.Definitions.SHA2_512", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Hacl.SHA2.Scalar32.Lemmas.state_spec_v_extens...
[]
false
false
true
false
false
let lemma_spec_update_vec_384_512 b0 st0 : Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0) =
let open Lib.Sequence in let open Lib.MultiBuffer in let st1 = SpecVec.update #SHA2_512 #M32 b0 st0 in let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_512 in let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_512 in calc ( == ) { st1_m32; ( == ) { () } (state_spec_v (SpecVec.update #SHA2_512 b0...
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.state_spec_v_extensionality
val state_spec_v_extensionality (a: hash_alg{is_sha2 a}) (acc1 acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32)) : Lemma (requires (let open Hacl.Spec.SHA2.Vec in Lib.Sequence.index (state_spec_v acc1) 0 == Lib.Sequence.index (state_spec_v acc2) 0)) (ensures acc1 == acc2)
val state_spec_v_extensionality (a: hash_alg{is_sha2 a}) (acc1 acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32)) : Lemma (requires (let open Hacl.Spec.SHA2.Vec in Lib.Sequence.index (state_spec_v acc1) 0 == Lib.Sequence.index (state_spec_v acc2) 0)) (ensures acc1 == acc2)
let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32)) : Lemma (requires (let open Hacl.Spec.SHA2.Vec in Lib.Sequence.index (state_spec_v acc1) 0 == Lib.Sequence.index (state_spec_v acc2) 0)) (ensures a...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 34, "start_col": 0, "start_line": 10 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg{Spec.Hash.Definitions.is_sha2 a} -> acc1: Hacl.Spec.SHA2.Vec.state_spec a Hacl.Spec.SHA2.Vec.M32 -> acc2: Hacl.Spec.SHA2.Vec.state_spec a Hacl.Spec.SHA2.Vec.M32 -> FStar.Pervasives.Lemma (requires Lib.Sequence.index (Hacl.Spec.SHA2.Vec.state_spec_v acc1) 0 ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.Hash.Definitions.is_sha2", "Hacl.Spec.SHA2.Vec.state_spec", "Hacl.Spec.SHA2.Vec.M32", "Lib.Sequence.eq_intro", "Hacl.Spec.SHA2.Vec.element_t", "Prims.unit", "FStar.Classical.forall_intro", "Prims.nat", "Prims.op_LessThan", "Prims.eq2", "Pr...
[]
false
false
true
false
false
let state_spec_v_extensionality (a: hash_alg{is_sha2 a}) (acc1 acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32)) : Lemma (requires (let open Hacl.Spec.SHA2.Vec in Lib.Sequence.index (state_spec_v acc1) 0 == Lib.Sequence.index (state_spec_v acc2) 0)) (ensures acc1 == acc2) =
let open Lib.Sequence in let open Lib.IntVector in let open Hacl.Spec.SHA2.Vec in allow_inversion hash_alg; let acc1_s = (state_spec_v acc1).[ 0 ] <: lseq (word a) 8 in let acc2_s = (state_spec_v acc2).[ 0 ] <: lseq (word a) 8 in let aux (i: nat{i < 8}) : Lemma (acc1.[ i ] == acc2.[ i ]) = assert (index (vec_v acc1.[...
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_nblocks_vec_384_512
val lemma_spec_update_nblocks_vec_384_512 (len: size_t) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0))
val lemma_spec_update_nblocks_vec_384_512 (len: size_t) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0))
let lemma_spec_update_nblocks_vec_384_512 (len:size_t) b0 st0 : Lemma (ensures ( Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0)) = let open Lib.IntTypes in let open Lib.Sequence in...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 221, "start_col": 0, "start_line": 184 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_t -> b0: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_384 Hacl.Spec.SHA2.Vec.M32) (Lib.IntTypes.v len) -> st0: s: Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_512 Hacl.S...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.size_t", "Hacl.Spec.SHA2.Vec.multiseq", "Hacl.Spec.SHA2.Vec.lanes", "Spec.Hash.Definitions.SHA2_384", "Hacl.Spec.SHA2.Vec.M32", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Sequence.seq", "Hacl.Spec.SHA2.Vec.element_t", "Spec.Hash.Definitions.SHA2_512", "Prims.l...
[]
false
false
true
false
false
let lemma_spec_update_nblocks_vec_384_512 (len: size_t) b0 st0 : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0)) =
let open Lib.IntTypes in let open Lib.Sequence in let open Lib.MultiBuffer in Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; let st1 = SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0 in let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_512 in let b0_m32' = Seq.slice b0.(| 0 |) 0 (Seq.l...
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_nblocks_vec_224_256
val lemma_spec_update_nblocks_vec_224_256 (len: size_t) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0))
val lemma_spec_update_nblocks_vec_224_256 (len: size_t) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0))
let lemma_spec_update_nblocks_vec_224_256 (len:size_t) b0 st0 : Lemma (ensures ( Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0)) = let open Lib.IntTypes in let open Lib.Sequence in...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 111, "start_col": 0, "start_line": 74 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_t -> b0: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_224 Hacl.Spec.SHA2.Vec.M32) (Lib.IntTypes.v len) -> st0: s: Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_256 Hacl.S...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.size_t", "Hacl.Spec.SHA2.Vec.multiseq", "Hacl.Spec.SHA2.Vec.lanes", "Spec.Hash.Definitions.SHA2_224", "Hacl.Spec.SHA2.Vec.M32", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Sequence.seq", "Hacl.Spec.SHA2.Vec.element_t", "Spec.Hash.Definitions.SHA2_256", "Prims.l...
[]
false
false
true
false
false
let lemma_spec_update_nblocks_vec_224_256 (len: size_t) b0 st0 : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 == SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0)) =
let open Lib.IntTypes in let open Lib.Sequence in let open Lib.MultiBuffer in Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; let st1 = SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0 in let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_256 in let b0_m32' = Seq.slice b0.(| 0 |) 0 (Seq.l...
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_last_vec_224_256
val lemma_spec_update_last_vec_224_256 (totlen: _) (len: size_t{v len <= block_length SHA2_256}) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 == SpecVec.update_last ...
val lemma_spec_update_last_vec_224_256 (totlen: _) (len: size_t{v len <= block_length SHA2_256}) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 == SpecVec.update_last ...
let lemma_spec_update_last_vec_224_256 totlen (len:size_t{v len <= block_length SHA2_256}) b0 st0 : Lemma (ensures ( Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 == SpecVec.update_last #SHA2_256 #M32 totlen (v len) b0 st0)) = let open ...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 143, "start_col": 0, "start_line": 113 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
totlen: Spec.Hash.Definitions.len_t Spec.Hash.Definitions.SHA2_224 -> len: Lib.IntTypes.size_t {Lib.IntTypes.v len <= Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_256} -> b0: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_224 ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.len_t", "Spec.Hash.Definitions.SHA2_224", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.Hash.Definitions.block_length", "Spec.Hash.Definitions.SHA2_256", "Hacl.Spec.SHA2.Vec.multiseq", "Hac...
[]
false
false
true
false
false
let lemma_spec_update_last_vec_224_256 totlen (len: size_t{v len <= block_length SHA2_256}) b0 st0 : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 == SpecVec.update_last #SHA2_256 #M32 totlen (v len...
let open Lib.Sequence in let open Lib.MultiBuffer in let st1 = SpecVec.update_last #SHA2_256 #M32 totlen (v len) b0 st0 in let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_256 in let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_256 in Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len; ...
false
Spec.Chacha20.fst
Spec.Chacha20.size_key
val size_key : Prims.int
let size_key = 32
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 14, "start_col": 0, "start_line": 14 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let size_key =
32
false
Spec.Chacha20.fst
Spec.Chacha20.size_nonce
val size_nonce : Prims.int
let size_nonce = 12
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 16, "start_col": 0, "start_line": 16 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let size_nonce =
12
false
Spec.Chacha20.fst
Spec.Chacha20.size_block
val size_block : Prims.int
let size_block = 64
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 15, "start_col": 0, "start_line": 15 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let size_block =
64
false
Spec.Chacha20.fst
Spec.Chacha20.keylen
val keylen : Prims.int
let keylen = 32
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 19, "start_col": 0, "start_line": 19 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let keylen =
32
false
Hacl.SHA2.Scalar32.Lemmas.fst
Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_last_vec_384_512
val lemma_spec_update_last_vec_384_512 (totlen: _) (len: size_t{v len <= block_length SHA2_512}) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 == SpecVec.update_last ...
val lemma_spec_update_last_vec_384_512 (totlen: _) (len: size_t{v len <= block_length SHA2_512}) (b0 st0: _) : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 == SpecVec.update_last ...
let lemma_spec_update_last_vec_384_512 totlen (len:size_t{v len <= block_length SHA2_512}) b0 st0 : Lemma (ensures ( Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 == SpecVec.update_last #SHA2_512 #M32 totlen (v len) b0 st0)) = let open ...
{ "file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 253, "start_col": 0, "start_line": 223 }
module Hacl.SHA2.Scalar32.Lemmas open Lib.IntTypes open Spec.Agile.Hash open Hacl.Spec.SHA2.Vec module SpecVec = Hacl.Spec.SHA2.Vec #push-options "--fuel 0 --ifuel 0 --z3rlimit 50" let state_spec_v_extensionality (a : hash_alg { is_sha2 a }) (acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32)) (acc2: Hacl.Spec.SHA2.Vec...
{ "checked_file": "/", "dependencies": [ "Spec.SHA2.Lemmas.fsti.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.MultiBuffer.fst.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": "SpecVec" }, { "abbrev": false, "full_module": "Hacl.Spec.SHA2.Vec", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
totlen: Spec.Hash.Definitions.len_t Spec.Hash.Definitions.SHA2_384 -> len: Lib.IntTypes.size_t {Lib.IntTypes.v len <= Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_512} -> b0: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_384 ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.len_t", "Spec.Hash.Definitions.SHA2_384", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.Hash.Definitions.block_length", "Spec.Hash.Definitions.SHA2_512", "Hacl.Spec.SHA2.Vec.multiseq", "Hac...
[]
false
false
true
false
false
let lemma_spec_update_last_vec_384_512 totlen (len: size_t{v len <= block_length SHA2_512}) b0 st0 : Lemma (ensures (Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 == SpecVec.update_last #SHA2_512 #M32 totlen (v len...
let open Lib.Sequence in let open Lib.MultiBuffer in let st1 = SpecVec.update_last #SHA2_512 #M32 totlen (v len) b0 st0 in let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_512 in let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_512 in Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len; ...
false
Spec.Chacha20.fst
Spec.Chacha20.op_At
val op_At : f: (_: _ -> _) -> g: (_: _ -> _) -> x: _ -> _
let op_At f g = fun x -> g (f x)
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 35, "start_col": 0, "start_line": 35 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: _ -> _) -> g: (_: _ -> _) -> x: _ -> _
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let ( @ ) f g =
fun x -> g (f x)
false
Spec.Chacha20.fst
Spec.Chacha20.blocklen
val blocklen : Prims.int
let blocklen = 64
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 20, "start_col": 0, "start_line": 20 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let blocklen =
64
false
Spec.Chacha20.fst
Spec.Chacha20.noncelen
val noncelen : Prims.int
let noncelen = 12
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 21, "start_col": 0, "start_line": 21 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let noncelen =
12
false
Spec.Chacha20.fst
Spec.Chacha20.double_round
val double_round:shuffle
val double_round:shuffle
let double_round : shuffle = column_round @ diagonal_round
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 63, "start_col": 0, "start_line": 62 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Spec.Chacha20.shuffle
Prims.Tot
[ "total" ]
[]
[ "Spec.Chacha20.op_At", "Spec.Chacha20.state", "Spec.Chacha20.column_round", "Spec.Chacha20.diagonal_round" ]
[]
false
false
false
true
false
let double_round:shuffle =
column_round @ diagonal_round
false
Spec.Chacha20.fst
Spec.Chacha20.rounds
val rounds:shuffle
val rounds:shuffle
let rounds : shuffle = repeat 10 double_round
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 66, "start_col": 0, "start_line": 65 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Spec.Chacha20.shuffle
Prims.Tot
[ "total" ]
[]
[ "Lib.LoopCombinators.repeat", "Spec.Chacha20.state", "Spec.Chacha20.double_round" ]
[]
false
false
false
true
false
let rounds:shuffle =
repeat 10 double_round
false
Spec.Frodo.Pack.fst
Spec.Frodo.Pack.frodo_unpack_state
val frodo_unpack_state: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0} -> i:size_nat{i <= (n1 * n2) / 8} -> Type0
val frodo_unpack_state: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0} -> i:size_nat{i <= (n1 * n2) / 8} -> Type0
let frodo_unpack_state #n1 #n2 i = lseq uint16 (8 * i)
{ "file_name": "specs/frodo/Spec.Frodo.Pack.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 102, "start_col": 0, "start_line": 102 }
module Spec.Frodo.Pack open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix module Seq = Lib.Sequence module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "Seq" }, { "abbrev": false, "full_module": "Spec.Matrix", "short_module": null }, { "abbrev": false, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Lib.IntTypes.size_nat{i <= n1 * n2 / 8} -> Type0
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Prims.op_Division", "Lib.Sequence.lseq", "Lib.IntTypes.uint16" ]
[]
false
false
false
false
true
let frodo_unpack_state #n1 #n2 i =
lseq uint16 (8 * i)
false
Spec.Chacha20.fst
Spec.Chacha20.chacha20_core
val chacha20_core (ctr: counter) (s0: state) : Tot state
val chacha20_core (ctr: counter) (s0: state) : Tot state
let chacha20_core (ctr:counter) (s0:state) : Tot state = let k = chacha20_add_counter s0 ctr in let k = rounds k in let k = sum_state k s0 in chacha20_add_counter k ctr
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 98, "start_col": 0, "start_line": 94 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ctr: Spec.Chacha20.counter -> s0: Spec.Chacha20.state -> Spec.Chacha20.state
Prims.Tot
[ "total" ]
[]
[ "Spec.Chacha20.counter", "Spec.Chacha20.state", "Spec.Chacha20.chacha20_add_counter", "Spec.Chacha20.sum_state", "Spec.Chacha20.rounds" ]
[]
false
false
false
true
false
let chacha20_core (ctr: counter) (s0: state) : Tot state =
let k = chacha20_add_counter s0 ctr in let k = rounds k in let k = sum_state k s0 in chacha20_add_counter k ctr
false
Spec.Chacha20.fst
Spec.Chacha20.c1
val c1 : FStar.UInt32.t
let c1 = 0x3320646eul
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 103, "start_col": 0, "start_line": 103 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
true
false
let c1 =
0x3320646eul
false
Spec.Chacha20.fst
Spec.Chacha20.c2
val c2 : FStar.UInt32.t
let c2 = 0x79622d32ul
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 105, "start_col": 0, "start_line": 105 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
true
false
let c2 =
0x79622d32ul
false
Spec.Chacha20.fst
Spec.Chacha20.c0
val c0 : FStar.UInt32.t
let c0 = 0x61707865ul
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 101, "start_col": 0, "start_line": 101 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
true
false
let c0 =
0x61707865ul
false
Spec.Frodo.Pack.fst
Spec.Frodo.Pack.frodo_pack
val frodo_pack: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0} -> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16} -> a:matrix n1 n2 -> lbytes (d * ((n1 * n2) / 8))
val frodo_pack: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0} -> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16} -> a:matrix n1 n2 -> lbytes (d * ((n1 * n2) / 8))
let frodo_pack #n1 #n2 d a = Loops.repeat_gen ((n1 * n2) / 8) (frodo_pack_state #n1 #n2 d) (frodo_pack_inner #n1 #n2 d a) (Seq.create 0 (u8 0))
{ "file_name": "specs/frodo/Spec.Frodo.Pack.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 73, "start_col": 0, "start_line": 69 }
module Spec.Frodo.Pack open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix module Seq = Lib.Sequence module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "Seq" }, { "abbrev": false, "full_module": "Spec.Matrix", "short_module": null }, { "abbrev": false, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Lib.IntTypes.size_nat{d * (n1 * n2 / 8) <= Lib.IntTypes.max_size_t /\ d <= 16} -> a: Spec.Matrix.matrix n1 n2 -> Lib.ByteSequence.lbytes (d * (n1 * n2 / 8))
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Prims.op_Division", "Spec.Matrix.matrix", "Lib.LoopCombinators.repeat_gen", "Spec.Frodo.Pack.frodo_pack_stat...
[]
false
false
false
false
false
let frodo_pack #n1 #n2 d a =
Loops.repeat_gen ((n1 * n2) / 8) (frodo_pack_state #n1 #n2 d) (frodo_pack_inner #n1 #n2 d a) (Seq.create 0 (u8 0))
false
Spec.Frodo.Pack.fst
Spec.Frodo.Pack.frodo_pack_state
val frodo_pack_state: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0} -> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16} -> i:size_nat{i <= (n1 * n2) / 8} -> Type0
val frodo_pack_state: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0} -> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16} -> i:size_nat{i <= (n1 * n2) / 8} -> Type0
let frodo_pack_state #n1 #n2 d i = lseq uint8 (d * i)
{ "file_name": "specs/frodo/Spec.Frodo.Pack.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 50, "start_col": 0, "start_line": 50 }
module Spec.Frodo.Pack open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix module Seq = Lib.Sequence module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "Seq" }, { "abbrev": false, "full_module": "Spec.Matrix", "short_module": null }, { "abbrev": false, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Lib.IntTypes.size_nat{d * (n1 * n2 / 8) <= Lib.IntTypes.max_size_t /\ d <= 16} -> i: Lib.IntTypes.size_nat{i <= n1 * n2 / 8} -> Type0
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Prims.op_Division", "Lib.Sequence.lseq", "Lib.IntTypes.uint8" ]
[]
false
false
false
false
true
let frodo_pack_state #n1 #n2 d i =
lseq uint8 (d * i)
false
Spec.Chacha20.fst
Spec.Chacha20.c3
val c3 : FStar.UInt32.t
let c3 = 0x6b206574ul
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 107, "start_col": 0, "start_line": 107 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
true
false
let c3 =
0x6b206574ul
false
Spec.Chacha20.fst
Spec.Chacha20.chacha20_encrypt_block
val chacha20_encrypt_block (st0: state) (incr: counter) (b: block) : Tot block
val chacha20_encrypt_block (st0: state) (incr: counter) (b: block) : Tot block
let chacha20_encrypt_block (st0:state) (incr:counter) (b:block) : Tot block = let k = chacha20_core incr st0 in xor_block k b
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 143, "start_col": 0, "start_line": 141 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st0: Spec.Chacha20.state -> incr: Spec.Chacha20.counter -> b: Spec.Chacha20.block -> Spec.Chacha20.block
Prims.Tot
[ "total" ]
[]
[ "Spec.Chacha20.state", "Spec.Chacha20.counter", "Spec.Chacha20.block", "Spec.Chacha20.xor_block", "Spec.Chacha20.chacha20_core" ]
[]
false
false
false
true
false
let chacha20_encrypt_block (st0: state) (incr: counter) (b: block) : Tot block =
let k = chacha20_core incr st0 in xor_block k b
false
Spec.Chacha20.fst
Spec.Chacha20.diagonal_round
val diagonal_round:shuffle
val diagonal_round:shuffle
let diagonal_round : shuffle = quarter_round 0 5 10 15 @ quarter_round 1 6 11 12 @ quarter_round 2 7 8 13 @ quarter_round 3 4 9 14
{ "file_name": "specs/Spec.Chacha20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 60, "start_col": 0, "start_line": 56 }
module Spec.Chacha20 open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators #set-options "--max_fuel 0 --z3rlimit 100" /// Constants and Types let size_key = 32 let size_block = 64 let size_nonce = 12 (* TODO: Remove, left here to avoid breaking implementation *) let key...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Spec.Chacha20.shuffle
Prims.Tot
[ "total" ]
[]
[ "Spec.Chacha20.op_At", "Spec.Chacha20.state", "Spec.Chacha20.quarter_round" ]
[]
false
false
false
true
false
let diagonal_round:shuffle =
quarter_round 0 5 10 15 @ quarter_round 1 6 11 12 @ quarter_round 2 7 8 13 @ quarter_round 3 4 9 14
false