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.Tactics.PatternMatching.fst | FStar.Tactics.PatternMatching.hoist_and_apply | val hoist_and_apply (head: term) (arg_terms: list term) (hoisted_args: list argv) : Tac term | val hoist_and_apply (head: term) (arg_terms: list term) (hoisted_args: list argv) : Tac term | let rec hoist_and_apply (head:term) (arg_terms:list term) (hoisted_args:list argv)
: Tac term =
match arg_terms with
| [] -> mk_app head (List.rev hoisted_args)
| arg_term::rest ->
let n = List.Tot.length hoisted_args in
//let bv = fresh_bv_named ("x" ^ (string_of_int n)) in
let nb : binder = {
... | {
"file_name": "ulib/FStar.Tactics.PatternMatching.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 132,
"end_line": 725,
"start_col": 0,
"start_line": 710
} | (*
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.Tactics.V2.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Base.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
head: FStar.Tactics.NamedView.term ->
arg_terms: Prims.list FStar.Tactics.NamedView.term ->
hoisted_args: Prims.list FStar.Stubs.Reflection.V2.Data.argv
-> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.term",
"Prims.list",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Reflection.V2.Derived.mk_app",
"FStar.List.Tot.Base.rev",
"FStar.Tactics.NamedView.pack",
"FStar.Tactics.NamedView.named_term_view",
"FStar.Tactics.NamedView.Tv_Let",
"Prims.Nil",
"FStar.Tactics.PatternMatc... | [
"recursion"
] | false | true | false | false | false | let rec hoist_and_apply (head: term) (arg_terms: list term) (hoisted_args: list argv) : Tac term =
| match arg_terms with
| [] -> mk_app head (List.rev hoisted_args)
| arg_term :: rest ->
let n = List.Tot.length hoisted_args in
let nb:binder =
{
ppname = seal ("x" ^ string_of_int n);
sort = pack Tv_Unknown;
uniq = fresh ();
qual = Q_Explicit;
attrs = []
}
in
pack (Tv_Let f... | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_get | val mt_get: #hsz:pos -> #n:nat -> mt:merkle_tree #hsz n -> idx:nat{idx < pow2 n} -> GTot (padded_hash #hsz) | val mt_get: #hsz:pos -> #n:nat -> mt:merkle_tree #hsz n -> idx:nat{idx < pow2 n} -> GTot (padded_hash #hsz) | let mt_get #_ #_ mt idx = S.index mt idx | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 40,
"end_line": 51,
"start_col": 0,
"start_line": 51
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"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 | mt: MerkleTree.Spec.merkle_tree n -> idx: Prims.nat{idx < Prims.pow2 n}
-> Prims.GTot MerkleTree.Spec.padded_hash | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"Prims.nat",
"MerkleTree.Spec.merkle_tree",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"FStar.Seq.Base.index",
"MerkleTree.Spec.padded_hash"
] | [] | false | false | false | false | false | let mt_get #_ #_ mt idx =
| S.index mt idx | false |
FStar.Tactics.PatternMatching.fst | FStar.Tactics.PatternMatching.solve_mp_for_single_hyp | val solve_mp_for_single_hyp
(#a: _)
(name: varname)
(pat: pattern)
(hypotheses: list hypothesis)
(body: (matching_solution -> Tac a))
(part_sol: matching_solution)
: Tac a | val solve_mp_for_single_hyp
(#a: _)
(name: varname)
(pat: pattern)
(hypotheses: list hypothesis)
(body: (matching_solution -> Tac a))
(part_sol: matching_solution)
: Tac a | let rec solve_mp_for_single_hyp #a
(name: varname)
(pat: pattern)
(hypotheses: list hypothesis)
(body: matching_solution -> Tac a)
(part_sol: matching_solution)... | {
"file_name": "ulib/FStar.Tactics.PatternMatching.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 453,
"start_col": 0,
"start_line": 433
} | (*
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.Tactics.V2.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Base.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
name: FStar.Tactics.PatternMatching.varname ->
pat: FStar.Tactics.PatternMatching.pattern ->
hypotheses: Prims.list FStar.Tactics.PatternMatching.hypothesis ->
body: (_: FStar.Tactics.PatternMatching.matching_solution -> FStar.Tactics.Effect.Tac a) ->
part_sol: FStar.Tactics.PatternMatching.matchin... | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.PatternMatching.varname",
"FStar.Tactics.PatternMatching.pattern",
"Prims.list",
"FStar.Tactics.PatternMatching.hypothesis",
"FStar.Tactics.PatternMatching.matching_solution",
"FStar.Tactics.V2.Derived.fail",
"FStar.Tactics.V2.Derived.or_else",
"Prims.unit",
"FStar.Tactics.PatternMatc... | [
"recursion"
] | false | true | false | false | false | let rec solve_mp_for_single_hyp
#a
(name: varname)
(pat: pattern)
(hypotheses: list hypothesis)
(body: (matching_solution -> Tac a))
(part_sol: matching_solution)
: Tac a =
| match hypotheses with
| [] -> fail #a "No matching hypothesis"
| h :: hs ->
or_else (fun () ->
match interp_pattern_aux pat part_sol.ms_vars (type_of_binding h) with
| Failure ex -> fail ("Failed to match hyp: " ^ (string_of_match_exception ex))
| Success bindings ->
let ms_hyps = (n... | false |
FStar.Tactics.PatternMatching.fst | FStar.Tactics.PatternMatching.classify_abspat_binder | val classify_abspat_binder (b: binder) : Tac (abspat_binder_kind * term) | val classify_abspat_binder (b: binder) : Tac (abspat_binder_kind * term) | let classify_abspat_binder (b : binder): Tac (abspat_binder_kind * term) =
let varname = "v" in
let hyp_pat = PApp (PQn hyp_qn) (PVar varname) in
let goal_pat = PApp (PQn goal_qn) (PVar varname) in
let typ = type_of_named_binder b in
match interp_pattern hyp_pat typ with
| Success [(_, hyp_typ)] -> ABKHyp,... | {
"file_name": "ulib/FStar.Tactics.PatternMatching.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 600,
"start_col": 0,
"start_line": 587
} | (*
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.Tactics.V2.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Base.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Tactics.NamedView.binder
-> FStar.Tactics.Effect.Tac
(FStar.Tactics.PatternMatching.abspat_binder_kind * FStar.Tactics.NamedView.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.binder",
"FStar.Tactics.PatternMatching.varname",
"FStar.Tactics.NamedView.term",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Tactics.PatternMatching.abspat_binder_kind",
"FStar.Tactics.PatternMatching.ABKHyp",
"FStar.Pervasives.Native.tuple2",
"FStar.Tactics.PatternMatching.bi... | [] | false | true | false | false | false | let classify_abspat_binder (b: binder) : Tac (abspat_binder_kind * term) =
| let varname = "v" in
let hyp_pat = PApp (PQn hyp_qn) (PVar varname) in
let goal_pat = PApp (PQn goal_qn) (PVar varname) in
let typ = type_of_named_binder b in
match interp_pattern hyp_pat typ with
| Success [_, hyp_typ] -> ABKHyp, hyp_typ
| Success _ -> fail "classifiy_abspat_binder: impossible (1)"
| Failure _ ->
ma... | false |
FStar.Tactics.PatternMatching.fst | FStar.Tactics.PatternMatching.string_of_abspat_binder_kind | val string_of_abspat_binder_kind : _: FStar.Tactics.PatternMatching.abspat_binder_kind -> Prims.string | let string_of_abspat_binder_kind = function
| ABKVar _ -> "varname"
| ABKHyp -> "hyp"
| ABKGoal -> "goal" | {
"file_name": "ulib/FStar.Tactics.PatternMatching.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 573,
"start_col": 0,
"start_line": 570
} | (*
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.Tactics.V2.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Base.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: FStar.Tactics.PatternMatching.abspat_binder_kind -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.PatternMatching.abspat_binder_kind",
"FStar.Stubs.Reflection.Types.typ",
"Prims.string"
] | [] | false | false | false | true | false | let string_of_abspat_binder_kind =
| function
| ABKVar _ -> "varname"
| ABKHyp -> "hyp"
| ABKGoal -> "goal" | false | |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_next_lv | val mt_next_lv: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> mt:merkle_tree #hsz n -> GTot (merkle_tree #hsz (n-1)) | val mt_next_lv: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> mt:merkle_tree #hsz n -> GTot (merkle_tree #hsz (n-1)) | let mt_next_lv #_ #f #n mt = hs_next_lv #_ #f #(pow2 (n-1)) mt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 62,
"end_line": 99,
"start_col": 0,
"start_line": 99
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n -> Prims.GTot (MerkleTree.Spec.merkle_tree (n - 1)) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.merkle_tree",
"MerkleTree.Spec.hs_next_lv",
"Prims.pow2",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let mt_next_lv #_ #f #n mt =
| hs_next_lv #_ #f #(pow2 (n - 1)) mt | false |
Hacl.Spec.SHA2.Lemmas.fst | Hacl.Spec.SHA2.Lemmas.transpose_ws8_lemma_ij | val transpose_ws8_lemma_ij:
#a:sha2_alg
-> #m:m_spec{lanes a m == 8}
-> ws:ws_spec a m
-> j:nat{j < lanes a m}
-> i:nat{i < 16} ->
Lemma
(let l = lanes a m in
(vec_v (transpose_ws8 ws).[i]).[j] == (vec_v ws.[i / l * l + j]).[i % l]) | val transpose_ws8_lemma_ij:
#a:sha2_alg
-> #m:m_spec{lanes a m == 8}
-> ws:ws_spec a m
-> j:nat{j < lanes a m}
-> i:nat{i < 16} ->
Lemma
(let l = lanes a m in
(vec_v (transpose_ws8 ws).[i]).[j] == (vec_v ws.[i / l * l + j]).[i % l]) | let transpose_ws8_lemma_ij #a #m ws j i =
let l = lanes a m in
let i_sub = i / l in
let j_sub = i % l in
assert (i_sub * l + j_sub == i);
let vs = sub ws (i_sub * l) l in
eq_intro (sub (transpose_ws8 ws) (i_sub * l) l) (transpose8x8_lseq vs);
assert ((vec_v (transpose_ws8 ws).[i]).[j] == (vec_v (transpos... | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 91,
"end_line": 61,
"start_col": 0,
"start_line": 51
} | module Hacl.Spec.SHA2.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Transpose
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
#set-options "--z3rlimit 50 --fuel 0 --ifuel 1"
val transpose_ws4_lemma_ij:
#a:sha2_alg
-> #m:m_spec{lanes a m == 4} // lanes a m ... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.Transpose.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.SHA2.Vec.fst.checked",
"FStar.Seq.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector.Transpose",
"short_module": null
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ws: Hacl.Spec.SHA2.Vec.ws_spec a m ->
j: Prims.nat{j < Hacl.Spec.SHA2.Vec.lanes a m} ->
i: Prims.nat{i < 16}
-> FStar.Pervasives.Lemma
(ensures
(let l = Hacl.Spec.SHA2.Vec.lanes a m in
(Lib.IntVector.vec_v (Hacl.Spec.SHA2.Vec.transpose_ws8 ws).[ i ]).[ j ] ==
(Lib.IntVector.vec_... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Prims.eq2",
"Prims.int",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.Vec.ws_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims._assert",
"Lib.IntTypes.uint_t",
"Spec.Hash.Definitions.word_t",
"Lib.IntTypes.SEC",
"Pri... | [] | true | false | true | false | false | let transpose_ws8_lemma_ij #a #m ws j i =
| let l = lanes a m in
let i_sub = i / l in
let j_sub = i % l in
assert (i_sub * l + j_sub == i);
let vs = sub ws (i_sub * l) l in
eq_intro (sub (transpose_ws8 ws) (i_sub * l) l) (transpose8x8_lseq vs);
assert ((vec_v (transpose_ws8 ws).[ i ]).[ j ] == (vec_v (transpose8x8_lseq vs).[ j_sub ]).[ j ]);
transpose8x8_lemma v... | false |
MerkleTree.Spec.fst | MerkleTree.Spec.sha256_compress | val sha256_compress: hash_fun_t #32 | val sha256_compress: hash_fun_t #32 | let sha256_compress src1 src2 =
let sz = Spec.Hash.Definitions.SHA2_256 in
let hash_alg = Spec.Hash.Definitions.SHA2_256 in
let acc = Spec.Agile.Hash.init hash_alg in
let acc = Spec.Agile.Hash.update hash_alg acc (S.append src1 src2) in
Spec.Agile.Hash.finish hash_alg acc () | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 40,
"end_line": 23,
"start_col": 0,
"start_line": 18
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"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 | MerkleTree.Spec.hash_fun_t | Prims.Tot | [
"total"
] | [] | [
"MerkleTree.Spec.hash",
"Spec.Agile.Hash.finish",
"Spec.Hash.Definitions.words_state",
"Spec.Agile.Hash.update",
"FStar.Seq.Base.append",
"Lib.IntTypes.uint8",
"Spec.Hash.Definitions.init_t",
"Spec.Agile.Hash.init",
"Spec.Hash.Definitions.hash_alg",
"Spec.Hash.Definitions.SHA2_256"
] | [] | false | false | false | false | false | let sha256_compress src1 src2 =
| let sz = Spec.Hash.Definitions.SHA2_256 in
let hash_alg = Spec.Hash.Definitions.SHA2_256 in
let acc = Spec.Agile.Hash.init hash_alg in
let acc = Spec.Agile.Hash.update hash_alg acc (S.append src1 src2) in
Spec.Agile.Hash.finish hash_alg acc () | false |
GradedMonad.fst | GradedMonad.monoid_nat_plus | [@@ FStar.Tactics.Typeclasses.tcinstance]
val monoid_nat_plus:monoid nat | [@@ FStar.Tactics.Typeclasses.tcinstance]
val monoid_nat_plus:monoid nat | instance monoid_nat_plus : monoid nat =
{
op = (fun (x y:nat) -> x + y);
one = 0;
properties = ()
} | {
"file_name": "examples/typeclasses/GradedMonad.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 26,
"start_col": 0,
"start_line": 21
} | module GradedMonad
(* NB: this is the old version of the graded monad that has a monoid
index parameter everywhere instead of a constraint on the type. We
keep it for CI purposes. See doc/book/code/GradedMonad.fst for better
version. *)
#set-options "--warn_error -350"
//SNIPPET_START:monoid$
class monoid (a:Type) =... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Typeclasses.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GradedMonad.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | GradedMonad.monoid Prims.nat | Prims.Tot | [
"total"
] | [] | [
"GradedMonad.Mkmonoid",
"Prims.nat",
"Prims.op_Addition"
] | [] | false | false | false | true | false | [@@ FStar.Tactics.Typeclasses.tcinstance]
let monoid_nat_plus:monoid nat =
| { op = (fun (x: nat) (y: nat) -> x + y); one = 0; properties = () } | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_next_lv_mt_right | val mt_next_lv_mt_right: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat{1 < n} -> mt:merkle_tree #hsz n ->
Lemma (S.equal (mt_next_lv #_ #f #_ (mt_right mt)) (mt_right (mt_next_lv #_ #f #_ mt))) | val mt_next_lv_mt_right: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat{1 < n} -> mt:merkle_tree #hsz n ->
Lemma (S.equal (mt_next_lv #_ #f #_ (mt_right mt)) (mt_right (mt_next_lv #_ #f #_ mt))) | let mt_next_lv_mt_right #hsz #f #n mt =
hs_next_lv_slice #hsz #f #(pow2 (n-1)) mt (pow2 (n-2)) (pow2 (n-1)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 69,
"end_line": 109,
"start_col": 0,
"start_line": 108
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n
-> FStar.Pervasives.Lemma
(ensures
FStar.Seq.Base.equal (MerkleTree.Spec.mt_next_lv (MerkleTree.Spec.mt_right mt))
(MerkleTree.Spec.mt_right (MerkleTree.Spec.mt_next_lv mt))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"MerkleTree.Spec.merkle_tree",
"MerkleTree.Spec.hs_next_lv_slice",
"Prims.pow2",
"Prims.op_Subtraction",
"Prims.unit"
] | [] | true | false | true | false | false | let mt_next_lv_mt_right #hsz #f #n mt =
| hs_next_lv_slice #hsz #f #(pow2 (n - 1)) mt (pow2 (n - 2)) (pow2 (n - 1)) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_next_rel | val mt_next_rel:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:pos ->
mt:merkle_tree #hsz n ->
nmt:merkle_tree #hsz (n - 1) ->
GTot Type0 | val mt_next_rel:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:pos ->
mt:merkle_tree #hsz n ->
nmt:merkle_tree #hsz (n - 1) ->
GTot Type0 | let mt_next_rel #hsz #f n mt nmt =
hs_next_rel #hsz #f (pow2 (n-1)) mt nmt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 41,
"end_line": 160,
"start_col": 0,
"start_line": 159
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | n: Prims.pos -> mt: MerkleTree.Spec.merkle_tree n -> nmt: MerkleTree.Spec.merkle_tree (n - 1)
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.merkle_tree",
"Prims.op_Subtraction",
"MerkleTree.Spec.hs_next_rel",
"Prims.pow2"
] | [] | false | false | false | false | true | let mt_next_rel #hsz #f n mt nmt =
| hs_next_rel #hsz #f (pow2 (n - 1)) mt nmt | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_right | val mt_right: #hsz:pos -> #n:pos -> mt:merkle_tree #hsz n -> merkle_tree #hsz (n-1) | val mt_right: #hsz:pos -> #n:pos -> mt:merkle_tree #hsz n -> merkle_tree #hsz (n-1) | let mt_right #_ #n mt = S.slice mt (pow2 (n-1)) (pow2 n) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 56,
"end_line": 61,
"start_col": 0,
"start_line": 61
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n -> MerkleTree.Spec.merkle_tree (n - 1) | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.merkle_tree",
"FStar.Seq.Base.slice",
"MerkleTree.Spec.padded_hash",
"Prims.pow2",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let mt_right #_ #n mt =
| S.slice mt (pow2 (n - 1)) (pow2 n) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.hs_next_rel | val hs_next_rel:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:nat ->
hs:hashes #hsz {S.length hs = 2 * n} ->
nhs:hashes #hsz {S.length nhs = n} ->
GTot Type0 | val hs_next_rel:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:nat ->
hs:hashes #hsz {S.length hs = 2 * n} ->
nhs:hashes #hsz {S.length nhs = n} ->
GTot Type0 | let hs_next_rel #hsz #f n hs nhs =
forall (i:nat{i < n}).
S.index nhs i ==
padded_hash_fun #hsz f (S.index hs (2 * i)) (S.index hs (2 * i + 1)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 72,
"end_line": 151,
"start_col": 0,
"start_line": 148
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 |
n: Prims.nat ->
hs: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs = 2 * n} ->
nhs: MerkleTree.Spec.hashes{FStar.Seq.Base.length nhs = n}
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.hashes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"FStar.Mul.op_Star",
"Prims.l_Forall",
"Prims.op_LessThan",
"Prims.eq2",
"FStar.Seq.Base.index",
"Merkl... | [] | false | false | false | false | true | let hs_next_rel #hsz #f n hs nhs =
| forall (i: nat{i < n}).
S.index nhs i == padded_hash_fun #hsz f (S.index hs (2 * i)) (S.index hs (2 * i + 1)) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_next_lv_equiv | val mt_next_lv_equiv:
#hsz:pos -> #f:hash_fun_t #hsz ->
j:nat -> n:pos{j <= pow2 n} ->
mt1:merkle_tree #hsz n -> mt2:merkle_tree #hsz n ->
Lemma (requires S.equal (S.slice mt1 0 j) (S.slice mt2 0 j))
(ensures S.equal (S.slice (mt_next_lv #_ #f #_ mt1) 0 (j / 2))
(S.slice (mt_n... | val mt_next_lv_equiv:
#hsz:pos -> #f:hash_fun_t #hsz ->
j:nat -> n:pos{j <= pow2 n} ->
mt1:merkle_tree #hsz n -> mt2:merkle_tree #hsz n ->
Lemma (requires S.equal (S.slice mt1 0 j) (S.slice mt2 0 j))
(ensures S.equal (S.slice (mt_next_lv #_ #f #_ mt1) 0 (j / 2))
(S.slice (mt_n... | let mt_next_lv_equiv #hsz #f j n mt1 mt2 =
hs_next_lv_equiv #_ #f j (pow2 (n-1)) mt1 mt2 | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 47,
"end_line": 140,
"start_col": 0,
"start_line": 139
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 |
j: Prims.nat ->
n: Prims.pos{j <= Prims.pow2 n} ->
mt1: MerkleTree.Spec.merkle_tree n ->
mt2: MerkleTree.Spec.merkle_tree n
-> FStar.Pervasives.Lemma
(requires FStar.Seq.Base.equal (FStar.Seq.Base.slice mt1 0 j) (FStar.Seq.Base.slice mt2 0 j))
(ensures
FStar.Seq.Base.equal (FStar.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.merkle_tree",
"MerkleTree.Spec.hs_next_lv_equiv",
"Prims.op_Subtraction",
"Prims.unit"
] | [] | true | false | true | false | false | let mt_next_lv_equiv #hsz #f j n mt1 mt2 =
| hs_next_lv_equiv #_ #f j (pow2 (n - 1)) mt1 mt2 | false |
Hacl.Spec.SHA2.Lemmas.fst | Hacl.Spec.SHA2.Lemmas.transpose_state4_lemma | val transpose_state4_lemma:
#a:sha2_alg
-> #m:m_spec{lanes a m == 4}
-> st:state_spec a m
-> j:nat{j < lanes a m}
-> i:nat{i < 8 * word_length a} ->
Lemma
(let l = lanes a m in
let ind = 8 * j + i / word_length a in
Seq.index (vec_v (transpose_state st).[ind / l]) (ind % l) ==
Seq.index (st... | val transpose_state4_lemma:
#a:sha2_alg
-> #m:m_spec{lanes a m == 4}
-> st:state_spec a m
-> j:nat{j < lanes a m}
-> i:nat{i < 8 * word_length a} ->
Lemma
(let l = lanes a m in
let ind = 8 * j + i / word_length a in
Seq.index (vec_v (transpose_state st).[ind / l]) (ind % l) ==
Seq.index (st... | let transpose_state4_lemma #a #m st j i =
let r0 = transpose4x4_lseq (sub st 0 4) in
transpose4x4_lemma (sub st 0 4);
let r1 = transpose4x4_lseq (sub st 4 4) in
transpose4x4_lemma (sub st 4 4) | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 98,
"start_col": 0,
"start_line": 94
} | module Hacl.Spec.SHA2.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Transpose
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
#set-options "--z3rlimit 50 --fuel 0 --ifuel 1"
val transpose_ws4_lemma_ij:
#a:sha2_alg
-> #m:m_spec{lanes a m == 4} // lanes a m ... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.Transpose.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.SHA2.Vec.fst.checked",
"FStar.Seq.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector.Transpose",
"short_module": null
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
st: Hacl.Spec.SHA2.Vec.state_spec a m ->
j: Prims.nat{j < Hacl.Spec.SHA2.Vec.lanes a m} ->
i: Prims.nat{i < 8 * Spec.Hash.Definitions.word_length a}
-> FStar.Pervasives.Lemma
(ensures
(let l = Hacl.Spec.SHA2.Vec.lanes a m in
let ind = 8 * j + i / Spec.Hash.Definitions.word_length a in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Prims.eq2",
"Prims.int",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.Vec.state_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Mul.op_Star",
"Spec.Hash.Definitions.word_length",
"Lib.IntVector.Transpose.transpose4x4_l... | [] | true | false | true | false | false | let transpose_state4_lemma #a #m st j i =
| let r0 = transpose4x4_lseq (sub st 0 4) in
transpose4x4_lemma (sub st 0 4);
let r1 = transpose4x4_lseq (sub st 4 4) in
transpose4x4_lemma (sub st 4 4) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.hs_next_lv | val hs_next_lv: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat -> hs:hashes #hsz {S.length hs = 2 * n} -> GTot (nhs:hashes #hsz {S.length nhs = n}) | val hs_next_lv: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat -> hs:hashes #hsz {S.length hs = 2 * n} -> GTot (nhs:hashes #hsz {S.length nhs = n}) | let rec hs_next_lv #hsz #f #n hs =
if n = 0 then S.empty
else S.cons
(padded_hash_fun #hsz f hs.[0] hs.[1])
(hs_next_lv #hsz #f #(n-1) (S.slice hs 2 (S.length hs))) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 60,
"end_line": 72,
"start_col": 0,
"start_line": 68
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs = 2 * n}
-> Prims.GTot (nhs: MerkleTree.Spec.hashes{FStar.Seq.Base.length nhs = n}) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.hashes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"FStar.Mul.op_Star",
"FStar.Seq.Base.empty",
"Prims.bool",
"FStar.Seq.Base.cons",
"MerkleTree.Spec.padded... | [
"recursion"
] | false | false | false | false | false | let rec hs_next_lv #hsz #f #n hs =
| if n = 0
then S.empty
else
S.cons (padded_hash_fun #hsz f hs.[ 0 ] hs.[ 1 ])
(hs_next_lv #hsz #f #(n - 1) (S.slice hs 2 (S.length hs))) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_get_root | val mt_get_root:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> mt:merkle_tree #hsz n -> GTot (padded_hash #hsz) | val mt_get_root:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> mt:merkle_tree #hsz n -> GTot (padded_hash #hsz) | let rec mt_get_root #hsz #f #n mt =
if n = 0 then mt.[0]
else mt_get_root #_ #f (mt_next_lv #_ #f mt) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 46,
"end_line": 230,
"start_col": 0,
"start_line": 228
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n -> Prims.GTot MerkleTree.Spec.padded_hash | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.merkle_tree",
"Prims.op_Equality",
"Prims.int",
"MerkleTree.Spec.op_String_Access",
"Prims.bool",
"MerkleTree.Spec.mt_get_root",
"Prims.op_Subtraction",
"MerkleTree.Spec.mt_next_lv",
"MerkleTree.Spec.padded_hash"
] | [
"recursion"
] | false | false | false | false | false | let rec mt_get_root #hsz #f #n mt =
| if n = 0 then mt.[ 0 ] else mt_get_root #_ #f (mt_next_lv #_ #f mt) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.rpmt | val rpmt : n: Prims.nat -> i: Prims.nat{i <= Prims.pow2 n} -> Type0 | let rpmt (#hsz:pos) (#f:hash_fun_t) (n:nat) (i:nat{i <= pow2 n}) =
mt:merkle_tree #hsz n {
raw_hashes #_ #f (S.slice mt 0 i) /\
pad_hashes #_ #f (S.slice mt i (S.length mt)) } | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 51,
"end_line": 385,
"start_col": 0,
"start_line": 382
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | n: Prims.nat -> i: Prims.nat{i <= Prims.pow2 n} -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.merkle_tree",
"Prims.l_and",
"MerkleTree.Spec.raw_hashes",
"FStar.Seq.Base.slice",
"MerkleTree.Spec.padded_hash",
"MerkleTree.Spec.pad_hashes",
"FStar.Seq.Base.leng... | [] | false | false | false | false | true | let rpmt (#hsz: pos) (#f: hash_fun_t) (n: nat) (i: nat{i <= pow2 n}) =
| mt:
merkle_tree #hsz n
{raw_hashes #_ #f (S.slice mt 0 i) /\ pad_hashes #_ #f (S.slice mt i (S.length mt))} | false | |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_left | val mt_left: #hsz:pos -> #n:pos -> mt:merkle_tree #hsz n -> merkle_tree #hsz (n-1) | val mt_left: #hsz:pos -> #n:pos -> mt:merkle_tree #hsz n -> merkle_tree #hsz (n-1) | let mt_left #_ #n mt = S.slice mt 0 (pow2 (n-1)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 48,
"end_line": 58,
"start_col": 0,
"start_line": 58
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n -> MerkleTree.Spec.merkle_tree (n - 1) | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.merkle_tree",
"FStar.Seq.Base.slice",
"MerkleTree.Spec.padded_hash",
"Prims.pow2",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let mt_left #_ #n mt =
| S.slice mt 0 (pow2 (n - 1)) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.hs_next_lv_index | val hs_next_lv_index: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat -> hs:hashes{S.length hs = 2 * n} -> i:nat{i < n} ->
Lemma ((hs_next_lv #hsz #f #n hs).[i] == padded_hash_fun #hsz f hs.[2 * i] hs.[2 * i + 1]) | val hs_next_lv_index: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat -> hs:hashes{S.length hs = 2 * n} -> i:nat{i < n} ->
Lemma ((hs_next_lv #hsz #f #n hs).[i] == padded_hash_fun #hsz f hs.[2 * i] hs.[2 * i + 1]) | let rec hs_next_lv_index #hsz #f #n hs i =
if n = 0 || i = 0 then ()
else hs_next_lv_index #hsz #f #(n - 1) (S.slice hs 2 (S.length hs)) (i - 1) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 77,
"end_line": 78,
"start_col": 0,
"start_line": 76
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs = 2 * n} -> i: Prims.nat{i < n}
-> FStar.Pervasives.Lemma
(ensures
(MerkleTree.Spec.hs_next_lv hs).[ i ] ==
MerkleTree.Spec.padded_hash_fun f hs.[ 2 * i ] hs.[ 2 * i + 1 ]) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.hashes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"FStar.Mul.op_Star",
"Prims.op_LessThan",
"Prims.op_BarBar",
"Prims.bool",
"MerkleTree.Spec.hs_next_lv_in... | [
"recursion"
] | false | false | true | false | false | let rec hs_next_lv_index #hsz #f #n hs i =
| if n = 0 || i = 0
then ()
else hs_next_lv_index #hsz #f #(n - 1) (S.slice hs 2 (S.length hs)) (i - 1) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.rpmt_get_root_pad_hashes | val rpmt_get_root_pad_hashes:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #_ #f n i ->
Lemma (pad_hashes #_ #f mt <==> HPad? (mt_get_root #_ #f mt)) | val rpmt_get_root_pad_hashes:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #_ #f n i ->
Lemma (pad_hashes #_ #f mt <==> HPad? (mt_get_root #_ #f mt)) | let rpmt_get_root_pad_hashes #_ #f #n #i mt =
rpmt_pad_hashes_index_0 #_ #f mt;
mt_get_root_pad_index_0 #_ #f mt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 34,
"end_line": 465,
"start_col": 0,
"start_line": 463
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.rpmt n i
-> FStar.Pervasives.Lemma
(ensures MerkleTree.Spec.pad_hashes mt <==> HPad? (MerkleTree.Spec.mt_get_root mt)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.rpmt",
"MerkleTree.Spec.mt_get_root_pad_index_0",
"Prims.unit",
"MerkleTree.Spec.rpmt_pad_hashes_index_0"
] | [] | true | false | true | false | false | let rpmt_get_root_pad_hashes #_ #f #n #i mt =
| rpmt_pad_hashes_index_0 #_ #f mt;
mt_get_root_pad_index_0 #_ #f mt | false |
MerkleTree.Spec.fst | MerkleTree.Spec.raw_hashes_raws | val raw_hashes_raws:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes{raw_hashes #hsz #f hs} ->
Tot (S.seq (hash #hsz)) (decreases (S.length hs)) | val raw_hashes_raws:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes{raw_hashes #hsz #f hs} ->
Tot (S.seq (hash #hsz)) (decreases (S.length hs)) | let rec raw_hashes_raws #hsz #f hs =
if S.length hs = 0 then S.empty
else S.cons (HRaw?.hr (S.head hs)) (raw_hashes_raws #_ #f (S.tail hs)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 72,
"end_line": 339,
"start_col": 0,
"start_line": 337
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes{MerkleTree.Spec.raw_hashes hs}
-> Prims.Tot (FStar.Seq.Base.seq MerkleTree.Spec.hash) | Prims.Tot | [
"total",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.hashes",
"MerkleTree.Spec.raw_hashes",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"FStar.Seq.Base.empty",
"MerkleTree.Spec.hash",
"Prims.bool",
"FStar.Seq.Base.cons",
"MerkleTree.Spec._... | [
"recursion"
] | false | false | false | false | false | let rec raw_hashes_raws #hsz #f hs =
| if S.length hs = 0
then S.empty
else S.cons (HRaw?.hr (S.head hs)) (raw_hashes_raws #_ #f (S.tail hs)) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_next_rel_next_lv | val mt_next_rel_next_lv:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:pos ->
mt:merkle_tree #hsz n ->
nmt:merkle_tree (n - 1) ->
Lemma (requires mt_next_rel #_ #f n mt nmt)
(ensures S.equal nmt (mt_next_lv #_ #f mt)) | val mt_next_rel_next_lv:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:pos ->
mt:merkle_tree #hsz n ->
nmt:merkle_tree (n - 1) ->
Lemma (requires mt_next_rel #_ #f n mt nmt)
(ensures S.equal nmt (mt_next_lv #_ #f mt)) | let mt_next_rel_next_lv #hsz #f n mt nmt =
hs_next_rel_next_lv #_ #f (pow2 (n-1)) mt nmt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 47,
"end_line": 183,
"start_col": 0,
"start_line": 182
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | n: Prims.pos -> mt: MerkleTree.Spec.merkle_tree n -> nmt: MerkleTree.Spec.merkle_tree (n - 1)
-> FStar.Pervasives.Lemma (requires MerkleTree.Spec.mt_next_rel n mt nmt)
(ensures FStar.Seq.Base.equal nmt (MerkleTree.Spec.mt_next_lv mt)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.merkle_tree",
"Prims.op_Subtraction",
"MerkleTree.Spec.hs_next_rel_next_lv",
"Prims.pow2",
"Prims.unit"
] | [] | true | false | true | false | false | let mt_next_rel_next_lv #hsz #f n mt nmt =
| hs_next_rel_next_lv #_ #f (pow2 (n - 1)) mt nmt | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_next_lv_mt_left | val mt_next_lv_mt_left: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat{1 < n} -> mt:merkle_tree #hsz n ->
Lemma (S.equal (mt_next_lv #_ #f #_ (mt_left mt)) (mt_left (mt_next_lv #_ #f #_ mt))) | val mt_next_lv_mt_left: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat{1 < n} -> mt:merkle_tree #hsz n ->
Lemma (S.equal (mt_next_lv #_ #f #_ (mt_left mt)) (mt_left (mt_next_lv #_ #f #_ mt))) | let mt_next_lv_mt_left #hsz #f #n mt =
hs_next_lv_slice #_ #f #(pow2 (n-1)) mt 0 (pow2 (n-2)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 56,
"end_line": 104,
"start_col": 0,
"start_line": 103
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n
-> FStar.Pervasives.Lemma
(ensures
FStar.Seq.Base.equal (MerkleTree.Spec.mt_next_lv (MerkleTree.Spec.mt_left mt))
(MerkleTree.Spec.mt_left (MerkleTree.Spec.mt_next_lv mt))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"MerkleTree.Spec.merkle_tree",
"MerkleTree.Spec.hs_next_lv_slice",
"Prims.pow2",
"Prims.op_Subtraction",
"Prims.unit"
] | [] | true | false | true | false | false | let mt_next_lv_mt_left #hsz #f #n mt =
| hs_next_lv_slice #_ #f #(pow2 (n - 1)) mt 0 (pow2 (n - 2)) | false |
Vale.Curve25519.FastHybrid_helpers.fst | Vale.Curve25519.FastHybrid_helpers.pow2int_four | val pow2int_four (c0 c1 c2 c3: int) : int | val pow2int_four (c0 c1 c2 c3: int) : int | let pow2int_four (c0 c1 c2 c3:int) : int = c0 + c1 * pow2_64 + c2 * pow2_128 + c3 * pow2_192 | {
"file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastHybrid_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 92,
"end_line": 120,
"start_col": 0,
"start_line": 120
} | module Vale.Curve25519.FastHybrid_helpers
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Mul
open FStar.Tactics
open FStar.Tactics.CanonCommSemiring
open Vale.Curve25519.Fast_defs
open Vale.Curve25519.Fast_lemmas_internal
#reset-options "--max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar.Tactics -FStar.R... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Curve25519.Fast_lemmas_internal.fsti.checked",
"Vale.Curve25519.Fast_defs.fst.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.CanonCommSemiri... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_internal",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_defs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSemiring",
"short_module": nu... | {
"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 | c0: Prims.int -> c1: Prims.int -> c2: Prims.int -> c3: Prims.int -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Vale.Def.Words_s.pow2_64",
"Vale.Def.Words_s.pow2_128",
"Vale.Curve25519.Fast_defs.pow2_192"
] | [] | false | false | false | true | false | let pow2int_four (c0 c1 c2 c3: int) : int =
| c0 + c1 * pow2_64 + c2 * pow2_128 + c3 * pow2_192 | false |
MerkleTree.Spec.fst | MerkleTree.Spec.raw_hashes | val raw_hashes:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes #hsz -> Tot Type0 (decreases (S.length hs)) | val raw_hashes:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes #hsz -> Tot Type0 (decreases (S.length hs)) | let rec raw_hashes #hsz #f hs =
if S.length hs = 0 then True
else (HRaw? (S.head hs) /\ raw_hashes #_ #f (S.tail hs)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 58,
"end_line": 331,
"start_col": 0,
"start_line": 329
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes -> Prims.Tot Type0 | Prims.Tot | [
"total",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.hashes",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"Prims.l_True",
"Prims.bool",
"Prims.l_and",
"Prims.b2t",
"MerkleTree.Spec.uu___is_HRaw",
"FStar.Seq.Properties.head",
"MerkleTree.... | [
"recursion"
] | false | false | false | false | true | let rec raw_hashes #hsz #f hs =
| if S.length hs = 0 then True else (HRaw? (S.head hs) /\ raw_hashes #_ #f (S.tail hs)) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.raw_hashes_slice | val raw_hashes_slice:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes -> i:nat -> j:nat{i <= j && j <= S.length hs} ->
Lemma (requires raw_hashes #_ #f hs)
(ensures raw_hashes #_ #f (S.slice hs i j))
(decreases (j - i)) | val raw_hashes_slice:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes -> i:nat -> j:nat{i <= j && j <= S.length hs} ->
Lemma (requires raw_hashes #_ #f hs)
(ensures raw_hashes #_ #f (S.slice hs i j))
(decreases (j - i)) | let rec raw_hashes_slice #hsz #f hs i j =
if i = j then ()
else (
raw_hashes_index #_ #f hs i;
raw_hashes_slice #_ #f hs (i + 1) j) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 40,
"end_line": 361,
"start_col": 0,
"start_line": 357
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes -> i: Prims.nat -> j: Prims.nat{i <= j && j <= FStar.Seq.Base.length hs}
-> FStar.Pervasives.Lemma (requires MerkleTree.Spec.raw_hashes hs)
(ensures MerkleTree.Spec.raw_hashes (FStar.Seq.Base.slice hs i j))
(decreases j - i) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.hashes",
"Prims.nat",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"Prims.op_Equality",
"Prims.bool",
"MerkleTree.Spec.raw_hashes_slice",
"Prims.op_Addition",
... | [
"recursion"
] | false | false | true | false | false | let rec raw_hashes_slice #hsz #f hs i j =
| if i = j
then ()
else
(raw_hashes_index #_ #f hs i;
raw_hashes_slice #_ #f hs (i + 1) j) | false |
FStar.Tactics.PatternMatching.fst | FStar.Tactics.PatternMatching.matching_problem_of_abs | val matching_problem_of_abs (tm: term) : Tac (matching_problem * abspat_continuation) | val matching_problem_of_abs (tm: term) : Tac (matching_problem * abspat_continuation) | let matching_problem_of_abs (tm: term)
: Tac (matching_problem * abspat_continuation) =
let binders, body = binders_and_body_of_abs (cleanup_abspat tm) in
debug ("Got binders: " ^ (String.concat ", "
(map (fun b -> name_of_named_binder b <: Tac string) binders)));
let classified_binders : list (bin... | {
"file_name": "ulib/FStar.Tactics.PatternMatching.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 673,
"start_col": 0,
"start_line": 631
} | (*
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.Tactics.V2.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Base.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | tm: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac
(FStar.Tactics.PatternMatching.matching_problem *
FStar.Tactics.PatternMatching.abspat_continuation) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.term",
"Prims.list",
"FStar.Tactics.NamedView.binder",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Tactics.PatternMatching.matching_problem",
"FStar.Tactics.PatternMatching.abspat_continuation",
"FStar.Pervasives.Native.tuple2",
"Prims.unit",
"FStar.Tactics.PatternMatching.de... | [] | false | true | false | false | false | let matching_problem_of_abs (tm: term) : Tac (matching_problem * abspat_continuation) =
| let binders, body = binders_and_body_of_abs (cleanup_abspat tm) in
debug ("Got binders: " ^
(String.concat ", " (map (fun b -> name_of_named_binder b <: Tac string) binders)));
let classified_binders:list (binder & string & abspat_binder_kind & typ) =
map (fun binder ->
let bv_name = name_of_named_binder ... | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_verify_ | val mt_verify_:
#hsz:pos -> #f:hash_fun_t #hsz ->#n:nat ->
p:path #hsz n -> idx:nat{idx < pow2 n} -> padded_hash #hsz -> GTot (padded_hash #hsz) | val mt_verify_:
#hsz:pos -> #f:hash_fun_t #hsz ->#n:nat ->
p:path #hsz n -> idx:nat{idx < pow2 n} -> padded_hash #hsz -> GTot (padded_hash #hsz) | let rec mt_verify_ #hsz #f #n p idx h =
if n = 0 then h
else mt_verify_ #_ #f #(n-1) (S.tail p) (idx / 2)
(if idx % 2 = 0
then padded_hash_fun #_ f h (S.head p)
else padded_hash_fun #_ f (S.head p) h) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 58,
"end_line": 268,
"start_col": 0,
"start_line": 263
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | p: MerkleTree.Spec.path n -> idx: Prims.nat{idx < Prims.pow2 n} -> h: MerkleTree.Spec.padded_hash
-> Prims.GTot MerkleTree.Spec.padded_hash | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.path",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"MerkleTree.Spec.padded_hash",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"MerkleTree.Spec.mt_verify_",
"Prims.op_Subtraction",
"FStar.Seq.Properties.tail",
... | [
"recursion"
] | false | false | false | false | false | let rec mt_verify_ #hsz #f #n p idx h =
| if n = 0
then h
else
mt_verify_ #_
#f
#(n - 1)
(S.tail p)
(idx / 2)
(if idx % 2 = 0 then padded_hash_fun #_ f h (S.head p) else padded_hash_fun #_ f (S.head p) h) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.raw_hashes_index | val raw_hashes_index:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes -> i:nat{i < S.length hs} ->
Lemma (requires raw_hashes #_ #f hs)
(ensures HRaw? #hsz hs.[i])
(decreases i) | val raw_hashes_index:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes -> i:nat{i < S.length hs} ->
Lemma (requires raw_hashes #_ #f hs)
(ensures HRaw? #hsz hs.[i])
(decreases i) | let rec raw_hashes_index #hsz #f hs i =
if i = 0 then ()
else raw_hashes_index #_ #f (S.tail hs) (i - 1) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 49,
"end_line": 349,
"start_col": 0,
"start_line": 347
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes -> i: Prims.nat{i < FStar.Seq.Base.length hs}
-> FStar.Pervasives.Lemma (requires MerkleTree.Spec.raw_hashes hs)
(ensures HRaw? hs.[ i ])
(decreases i) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.hashes",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"MerkleTree.Spec.raw_hashes_index",
"FStar.Seq.Properties.tail",
"Prim... | [
"recursion"
] | false | false | true | false | false | let rec raw_hashes_index #hsz #f hs i =
| if i = 0 then () else raw_hashes_index #_ #f (S.tail hs) (i - 1) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.rpmt_get_root_raw | val rpmt_get_root_raw:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #_ #f n i ->
Lemma (i > 0 <==> HRaw? (mt_get_root #_ #f mt)) | val rpmt_get_root_raw:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #_ #f n i ->
Lemma (i > 0 <==> HRaw? (mt_get_root #_ #f mt)) | let rpmt_get_root_raw #hsz #f #n #i mt =
allow_inversion (padded_hash #hsz);
rpmt_get_root_pad #_ #f mt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 28,
"end_line": 481,
"start_col": 0,
"start_line": 479
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.rpmt n i
-> FStar.Pervasives.Lemma (ensures i > 0 <==> HRaw? (MerkleTree.Spec.mt_get_root mt)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.rpmt",
"MerkleTree.Spec.rpmt_get_root_pad",
"Prims.unit",
"FStar.Pervasives.allow_inversion",
"MerkleTree.Spec.padded_hash"
] | [] | true | false | true | false | false | let rpmt_get_root_raw #hsz #f #n #i mt =
| allow_inversion (padded_hash #hsz);
rpmt_get_root_pad #_ #f mt | false |
MerkleTree.Spec.fst | MerkleTree.Spec.rpmt_get_root_pad | val rpmt_get_root_pad:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #_ #f n i ->
Lemma (i = 0 <==> HPad? (mt_get_root #_ #f mt)) | val rpmt_get_root_pad:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #_ #f n i ->
Lemma (i = 0 <==> HPad? (mt_get_root #_ #f mt)) | let rpmt_get_root_pad #_ #f #n #i mt =
rpmt_get_root_pad_hashes #_ #f mt;
rpmt_pad_hashes_0 #_ #f mt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 28,
"end_line": 473,
"start_col": 0,
"start_line": 471
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.rpmt n i
-> FStar.Pervasives.Lemma (ensures i = 0 <==> HPad? (MerkleTree.Spec.mt_get_root mt)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.rpmt",
"MerkleTree.Spec.rpmt_pad_hashes_0",
"Prims.unit",
"MerkleTree.Spec.rpmt_get_root_pad_hashes"
] | [] | true | false | true | false | false | let rpmt_get_root_pad #_ #f #n #i mt =
| rpmt_get_root_pad_hashes #_ #f mt;
rpmt_pad_hashes_0 #_ #f mt | false |
MerkleTree.Spec.fst | MerkleTree.Spec.rpmt_raws | val rpmt_raws: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #hsz #f n i -> S.seq (hash #hsz) | val rpmt_raws: #hsz:pos -> #f:hash_fun_t #hsz -> #n:nat -> #i:nat{i <= pow2 n} -> mt:rpmt #hsz #f n i -> S.seq (hash #hsz) | let rpmt_raws #hsz #f #n #i mt = raw_hashes_raws #_ #f (S.slice mt 0 i) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 71,
"end_line": 388,
"start_col": 0,
"start_line": 388
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.rpmt n i -> FStar.Seq.Base.seq MerkleTree.Spec.hash | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.rpmt",
"MerkleTree.Spec.raw_hashes_raws",
"FStar.Seq.Base.slice",
"MerkleTree.Spec.padded_hash",
"FStar.Seq.Base.seq",
"MerkleTree.Spec.hash"
] | [] | false | false | false | false | false | let rpmt_raws #hsz #f #n #i mt =
| raw_hashes_raws #_ #f (S.slice mt 0 i) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.hs_next_lv_equiv | val hs_next_lv_equiv:
#hsz:pos -> #f:hash_fun_t #hsz ->
j:nat -> n:pos{j <= 2 * n} ->
hs1:hashes{S.length hs1 = 2 * n} ->
hs2:hashes{S.length hs2 = 2 * n} ->
Lemma (requires S.equal (S.slice hs1 0 j) (S.slice hs2 0 j))
(ensures S.equal (S.slice (hs_next_lv #hsz #f #n hs1) 0 (j / 2))
... | val hs_next_lv_equiv:
#hsz:pos -> #f:hash_fun_t #hsz ->
j:nat -> n:pos{j <= 2 * n} ->
hs1:hashes{S.length hs1 = 2 * n} ->
hs2:hashes{S.length hs2 = 2 * n} ->
Lemma (requires S.equal (S.slice hs1 0 j) (S.slice hs2 0 j))
(ensures S.equal (S.slice (hs_next_lv #hsz #f #n hs1) 0 (j / 2))
... | let hs_next_lv_equiv #hsz #f j n hs1 hs2 =
forall_intro (hs_next_lv_index #_ #f #n hs1);
forall_intro (hs_next_lv_index #_ #f #n hs2);
let hs1' = hs_next_lv #_ #f #n hs1 in
let hs2' = hs_next_lv #_ #f #n hs2 in
assert (forall (i:nat{i < j / 2}). hs1'.[i] == padded_hash_fun #hsz f hs1.[2 * i] hs1.[2 * i + 1]);... | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 58,
"end_line": 130,
"start_col": 0,
"start_line": 119
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 |
j: Prims.nat ->
n: Prims.pos{j <= 2 * n} ->
hs1: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs1 = 2 * n} ->
hs2: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs2 = 2 * n}
-> FStar.Pervasives.Lemma
(requires FStar.Seq.Base.equal (FStar.Seq.Base.slice hs1 0 j) (FStar.Seq.Base.slice hs2 0 j))
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"MerkleTree.Spec.hashes",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"Prims._assert",
"Prims.l_Forall",
"Prims.op_LessThan",
... | [] | false | false | true | false | false | let hs_next_lv_equiv #hsz #f j n hs1 hs2 =
| forall_intro (hs_next_lv_index #_ #f #n hs1);
forall_intro (hs_next_lv_index #_ #f #n hs2);
let hs1' = hs_next_lv #_ #f #n hs1 in
let hs2' = hs_next_lv #_ #f #n hs2 in
assert (forall (i: nat{i < j / 2}).
hs1'.[ i ] == padded_hash_fun #hsz f hs1.[ 2 * i ] hs1.[ 2 * i + 1 ]);
assert (forall (i: nat{i < j / 2}).
... | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_get_path | val mt_get_path:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:nat ->
mt:merkle_tree #hsz n -> i:nat{i < pow2 n} -> GTot (path #hsz n) | val mt_get_path:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:nat ->
mt:merkle_tree #hsz n -> i:nat{i < pow2 n} -> GTot (path #hsz n) | let rec mt_get_path #hsz #f #n t i =
if n = 0 then S.empty
else S.cons
(if i % 2 = 0 then t.[i + 1] else t.[i - 1])
(mt_get_path #_ #f (mt_next_lv #_ #f t) (i / 2)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 52,
"end_line": 258,
"start_col": 0,
"start_line": 254
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n -> i: Prims.nat{i < Prims.pow2 n}
-> Prims.GTot (MerkleTree.Spec.path n) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.merkle_tree",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.empty",
"MerkleTree.Spec.padded_hash",
"Prims.bool",
"FStar.Seq.Base.cons",
"Prims.op_Modulus",
"Merkle... | [
"recursion"
] | false | false | false | false | false | let rec mt_get_path #hsz #f #n t i =
| if n = 0
then S.empty
else
S.cons (if i % 2 = 0 then t.[ i + 1 ] else t.[ i - 1 ])
(mt_get_path #_ #f (mt_next_lv #_ #f t) (i / 2)) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.pad_hashes_slice | val pad_hashes_slice:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes -> i:nat -> j:nat{i <= j && j <= S.length hs} ->
Lemma (requires pad_hashes #_ #f hs)
(ensures pad_hashes #_ #f (S.slice hs i j))
(decreases (j - i)) | val pad_hashes_slice:
#hsz:pos -> #f:hash_fun_t #hsz ->
hs:hashes -> i:nat -> j:nat{i <= j && j <= S.length hs} ->
Lemma (requires pad_hashes #_ #f hs)
(ensures pad_hashes #_ #f (S.slice hs i j))
(decreases (j - i)) | let rec pad_hashes_slice #hsz #f hs i j =
if i = j then ()
else pad_hashes_slice #_ #f hs (i + 1) j | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 42,
"end_line": 378,
"start_col": 0,
"start_line": 376
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes -> i: Prims.nat -> j: Prims.nat{i <= j && j <= FStar.Seq.Base.length hs}
-> FStar.Pervasives.Lemma (requires MerkleTree.Spec.pad_hashes hs)
(ensures MerkleTree.Spec.pad_hashes (FStar.Seq.Base.slice hs i j))
(decreases j - i) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.hashes",
"Prims.nat",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"Prims.op_Equality",
"Prims.bool",
"MerkleTree.Spec.pad_hashes_slice",
"Prims.op_Addition",
... | [
"recursion"
] | false | false | true | false | false | let rec pad_hashes_slice #hsz #f hs i j =
| if i = j then () else pad_hashes_slice #_ #f hs (i + 1) j | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_get_root_step | val mt_get_root_step: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> mt:merkle_tree #hsz n ->
Lemma (mt_get_root #_ #f mt ==
padded_hash_fun #_ f (mt_get_root #_ #f (mt_left mt)) (mt_get_root #_ #f (mt_right mt))) | val mt_get_root_step: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> mt:merkle_tree #hsz n ->
Lemma (mt_get_root #_ #f mt ==
padded_hash_fun #_ f (mt_get_root #_ #f (mt_left mt)) (mt_get_root #_ #f (mt_right mt))) | let rec mt_get_root_step #hsz #f #n mt =
if n = 1 then ()
else begin
mt_get_root_step #_ #f (mt_next_lv #_ #f mt);
mt_next_lv_mt_left #_ #f mt;
mt_next_lv_mt_right #_ #f mt
end | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 5,
"end_line": 243,
"start_col": 0,
"start_line": 237
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n
-> FStar.Pervasives.Lemma
(ensures
MerkleTree.Spec.mt_get_root mt ==
MerkleTree.Spec.padded_hash_fun f
(MerkleTree.Spec.mt_get_root (MerkleTree.Spec.mt_left mt))
(MerkleTree.Spec.mt_get_root (MerkleTree.Spec.mt_right mt))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.merkle_tree",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"MerkleTree.Spec.mt_next_lv_mt_right",
"Prims.unit",
"MerkleTree.Spec.mt_next_lv_mt_left",
"MerkleTree.Spec.mt_get_root_step",
"Prims.op_Subtraction",
"MerkleTree.Spec.mt_n... | [
"recursion"
] | false | false | true | false | false | let rec mt_get_root_step #hsz #f #n mt =
| if n = 1
then ()
else
(mt_get_root_step #_ #f (mt_next_lv #_ #f mt);
mt_next_lv_mt_left #_ #f mt;
mt_next_lv_mt_right #_ #f mt) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.rpmt_left | val rpmt_left: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> #i:nat{i <= pow2 n} -> rpmt #hsz #f n i ->
rpmt #hsz #f (n-1) (if i <= pow2 (n-1) then i else pow2 (n-1)) | val rpmt_left: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> #i:nat{i <= pow2 n} -> rpmt #hsz #f n i ->
rpmt #hsz #f (n-1) (if i <= pow2 (n-1) then i else pow2 (n-1)) | let rpmt_left #hsz #f #n #i mt =
if i <= pow2 (n-1)
then pad_hashes_slice #_ #f (S.slice mt i (S.length mt)) 0 (pow2 (n-1) - i)
else raw_hashes_slice #_ #f (S.slice mt 0 i) 0 (pow2 (n-1));
mt_left mt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 12,
"end_line": 400,
"start_col": 0,
"start_line": 396
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.rpmt n i
-> MerkleTree.Spec.rpmt (n - 1)
(match i <= Prims.pow2 (n - 1) with
| true -> i
| _ -> Prims.pow2 (n - 1)) | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.rpmt",
"MerkleTree.Spec.mt_left",
"Prims.unit",
"Prims.op_Subtraction",
"MerkleTree.Spec.pad_hashes_slice",
"FStar.Seq.Base.slice",
"MerkleTree.Spec.padded_hash",
... | [] | false | false | false | false | false | let rpmt_left #hsz #f #n #i mt =
| if i <= pow2 (n - 1)
then pad_hashes_slice #_ #f (S.slice mt i (S.length mt)) 0 (pow2 (n - 1) - i)
else raw_hashes_slice #_ #f (S.slice mt 0 i) 0 (pow2 (n - 1));
mt_left mt | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_next_lv_get | val mt_next_lv_get:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:pos ->
mt:merkle_tree #hsz n -> idx:nat{idx < pow2 n} ->
Lemma (
(mt_next_lv #_ #f mt).[idx / 2] ==
(if idx % 2 = 0
then padded_hash_fun #_ f mt.[idx] mt.[idx + 1]
else padded_hash_fun #_ f mt.[idx - 1] mt.[idx])) | val mt_next_lv_get:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:pos ->
mt:merkle_tree #hsz n -> idx:nat{idx < pow2 n} ->
Lemma (
(mt_next_lv #_ #f mt).[idx / 2] ==
(if idx % 2 = 0
then padded_hash_fun #_ f mt.[idx] mt.[idx + 1]
else padded_hash_fun #_ f mt.[idx - 1] mt.[idx])) | let mt_next_lv_get #hsz #f #n mt idx =
hs_next_lv_get #_ #f #(pow2 (n-1)) mt idx | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 43,
"end_line": 299,
"start_col": 0,
"start_line": 298
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n -> idx: Prims.nat{idx < Prims.pow2 n}
-> FStar.Pervasives.Lemma
(ensures
(MerkleTree.Spec.mt_next_lv mt).[ idx / 2 ] ==
(match idx % 2 = 0 with
| true -> MerkleTree.Spec.padded_hash_fun f mt.[ idx ] mt.[ idx + 1 ]
| _ -> MerkleTree.Spec.padded_hash_fun... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.merkle_tree",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"MerkleTree.Spec.hs_next_lv_get",
"Prims.op_Subtraction",
"Prims.unit"
] | [] | true | false | true | false | false | let mt_next_lv_get #hsz #f #n mt idx =
| hs_next_lv_get #_ #f #(pow2 (n - 1)) mt idx | false |
MerkleTree.Spec.fst | MerkleTree.Spec.hs_next_lv_slice | val hs_next_lv_slice:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:nat ->
hs:hashes{S.length hs = 2 * n} -> i:nat -> j:nat{i <= j && j <= n} ->
Lemma (requires True)
(ensures S.equal (hs_next_lv #hsz #f #(j - i) (S.slice hs (2 * i) (2 * j)))
(S.slice (hs_next_lv #hsz #f #n hs) i j))
... | val hs_next_lv_slice:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:nat ->
hs:hashes{S.length hs = 2 * n} -> i:nat -> j:nat{i <= j && j <= n} ->
Lemma (requires True)
(ensures S.equal (hs_next_lv #hsz #f #(j - i) (S.slice hs (2 * i) (2 * j)))
(S.slice (hs_next_lv #hsz #f #n hs) i j))
... | let rec hs_next_lv_slice #hsz #f #n hs i j =
if i = j then ()
else begin
let x = S.slice hs (2 * i) (2 * j) in
assert (S.equal (hs_next_lv #hsz #f #(j - i) x)
(S.cons (padded_hash_fun #hsz f x.[0] x.[1])
(hs_next_lv #hsz #f #(j - i - 1) (S.slice x 2 (S.length ... | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 5,
"end_line": 96,
"start_col": 0,
"start_line": 87
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 |
hs: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs = 2 * n} ->
i: Prims.nat ->
j: Prims.nat{i <= j && j <= n}
-> FStar.Pervasives.Lemma
(ensures
FStar.Seq.Base.equal (MerkleTree.Spec.hs_next_lv (FStar.Seq.Base.slice hs (2 * i) (2 * j)))
(FStar.Seq.Base.slice (MerkleTree.Spec.hs_n... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.hashes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"FStar.Mul.op_Star",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"Prims.bool",
"MerkleTree.Spec.hs_nex... | [
"recursion"
] | false | false | true | false | false | let rec hs_next_lv_slice #hsz #f #n hs i j =
| if i = j
then ()
else
let x = S.slice hs (2 * i) (2 * j) in
assert (S.equal (hs_next_lv #hsz #f #(j - i) x)
(S.cons (padded_hash_fun #hsz f x.[ 0 ] x.[ 1 ])
(hs_next_lv #hsz #f #(j - i - 1) (S.slice x 2 (S.length x)))));
hs_next_lv_slice #hsz #f #n hs (i + 1) j;
hs_next_lv_index #hsz #f #n h... | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_get_path_ok_ | val mt_get_path_ok_:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:nat ->
t:merkle_tree #hsz n -> i:nat{i < pow2 n} ->
Lemma (mt_verify_ #_ #f (mt_get_path #_ #f t i) i (mt_get t i) == mt_get_root #_ #f t) | val mt_get_path_ok_:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:nat ->
t:merkle_tree #hsz n -> i:nat{i < pow2 n} ->
Lemma (mt_verify_ #_ #f (mt_get_path #_ #f t i) i (mt_get t i) == mt_get_root #_ #f t) | let rec mt_get_path_ok_ #hsz #f #n mt idx =
if n = 0 then ()
else begin
assert (S.head (mt_get_path #_ #f mt idx) ==
(if idx % 2 = 0 then mt.[idx + 1] else mt.[idx - 1]));
assert (S.equal (S.tail (mt_get_path #_ #f mt idx))
(mt_get_path #_ #f (mt_next_lv #_ #f mt) (idx / 2)))... | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 5,
"end_line": 314,
"start_col": 0,
"start_line": 305
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | t: MerkleTree.Spec.merkle_tree n -> i: Prims.nat{i < Prims.pow2 n}
-> FStar.Pervasives.Lemma
(ensures
MerkleTree.Spec.mt_verify_ (MerkleTree.Spec.mt_get_path t i) i (MerkleTree.Spec.mt_get t i) ==
MerkleTree.Spec.mt_get_root t) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.merkle_tree",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"MerkleTree.Spec.mt_next_lv_get",
"Prims.unit",
"MerkleTree.Spec.mt_get_path_ok_",
"Prims.op_Subtraction",
... | [
"recursion"
] | false | false | true | false | false | let rec mt_get_path_ok_ #hsz #f #n mt idx =
| if n = 0
then ()
else
(assert (S.head (mt_get_path #_ #f mt idx) ==
(if idx % 2 = 0 then mt.[ idx + 1 ] else mt.[ idx - 1 ]));
assert (S.equal (S.tail (mt_get_path #_ #f mt idx))
(mt_get_path #_ #f (mt_next_lv #_ #f mt) (idx / 2)));
mt_get_path_ok_ #_ #f (mt_next_lv #_ #f mt) (idx / 2);
... | false |
MerkleTree.Spec.fst | MerkleTree.Spec.hs_next_rel_next_lv | val hs_next_rel_next_lv:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:nat ->
hs:hashes{S.length hs = 2 * n} ->
nhs:hashes{S.length nhs = n} ->
Lemma (requires hs_next_rel #_ #f n hs nhs)
(ensures S.equal nhs (hs_next_lv #_ #f #n hs)) | val hs_next_rel_next_lv:
#hsz:pos -> #f:hash_fun_t #hsz ->
n:nat ->
hs:hashes{S.length hs = 2 * n} ->
nhs:hashes{S.length nhs = n} ->
Lemma (requires hs_next_rel #_ #f n hs nhs)
(ensures S.equal nhs (hs_next_lv #_ #f #n hs)) | let rec hs_next_rel_next_lv #hsz #f n hs nhs =
if n = 0 then ()
else hs_next_rel_next_lv #_ #f (n - 1)
(S.slice hs 2 (S.length hs))
(S.slice nhs 1 (S.length nhs)) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 39,
"end_line": 173,
"start_col": 0,
"start_line": 169
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 |
n: Prims.nat ->
hs: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs = 2 * n} ->
nhs: MerkleTree.Spec.hashes{FStar.Seq.Base.length nhs = n}
-> FStar.Pervasives.Lemma (requires MerkleTree.Spec.hs_next_rel n hs nhs)
(ensures FStar.Seq.Base.equal nhs (MerkleTree.Spec.hs_next_lv hs)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.hashes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"FStar.Mul.op_Star",
"Prims.bool",
"MerkleTree.Spec.hs_next_rel_next_lv",
"Prims.op_Subtraction",
"FStar.... | [
"recursion"
] | false | false | true | false | false | let rec hs_next_rel_next_lv #hsz #f n hs nhs =
| if n = 0
then ()
else hs_next_rel_next_lv #_ #f (n - 1) (S.slice hs 2 (S.length hs)) (S.slice nhs 1 (S.length nhs)) | false |
MerkleTree.Spec.fst | MerkleTree.Spec.rpmt_right | val rpmt_right: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> #i:nat{i <= pow2 n} -> rpmt #hsz #f n i ->
rpmt #_ #f (n-1) (if i <= pow2 (n-1) then 0 else i - pow2 (n-1)) | val rpmt_right: #hsz:pos -> #f:hash_fun_t #hsz -> #n:pos -> #i:nat{i <= pow2 n} -> rpmt #hsz #f n i ->
rpmt #_ #f (n-1) (if i <= pow2 (n-1) then 0 else i - pow2 (n-1)) | let rpmt_right #hsz #f #n #i mt =
if i <= pow2 (n-1)
then pad_hashes_slice #_ #f (S.slice mt i (S.length mt)) (pow2 (n-1) - i) (pow2 n - i)
else raw_hashes_slice #_ #f (S.slice mt 0 i) (pow2 (n-1)) i;
mt_right mt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 13,
"end_line": 410,
"start_col": 0,
"start_line": 406
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.rpmt n i
-> MerkleTree.Spec.rpmt (n - 1)
(match i <= Prims.pow2 (n - 1) with
| true -> 0
| _ -> i - Prims.pow2 (n - 1)) | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.rpmt",
"MerkleTree.Spec.mt_right",
"Prims.unit",
"Prims.op_Subtraction",
"MerkleTree.Spec.pad_hashes_slice",
"FStar.Seq.Base.slice",
"MerkleTree.Spec.padded_hash",
... | [] | false | false | false | false | false | let rpmt_right #hsz #f #n #i mt =
| if i <= pow2 (n - 1)
then pad_hashes_slice #_ #f (S.slice mt i (S.length mt)) (pow2 (n - 1) - i) (pow2 n - i)
else raw_hashes_slice #_ #f (S.slice mt 0 i) (pow2 (n - 1)) i;
mt_right mt | false |
MerkleTree.Spec.fst | MerkleTree.Spec.mt_get_root_pad_index_0 | val mt_get_root_pad_index_0:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> mt:merkle_tree #hsz n ->
Lemma (HPad? mt.[0] <==> HPad? (mt_get_root #_ #f mt)) | val mt_get_root_pad_index_0:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> mt:merkle_tree #hsz n ->
Lemma (HPad? mt.[0] <==> HPad? (mt_get_root #_ #f mt)) | let rec mt_get_root_pad_index_0 #hsz #f #n (mt:merkle_tree #hsz n) =
if n = 0 then ()
else
let mt:merkle_tree #hsz (n-1) = mt_next_lv #_ #f #n mt in
mt_get_root_pad_index_0 #_ #f #(n-1) mt | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 43,
"end_line": 455,
"start_col": 0,
"start_line": 451
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | mt: MerkleTree.Spec.merkle_tree n
-> FStar.Pervasives.Lemma (ensures HPad? mt.[ 0 ] <==> HPad? (MerkleTree.Spec.mt_get_root mt)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.Spec.merkle_tree",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"MerkleTree.Spec.mt_get_root_pad_index_0",
"Prims.op_Subtraction",
"MerkleTree.Spec.mt_next_lv",
"Prims.unit"
] | [
"recursion"
] | false | false | true | false | false | let rec mt_get_root_pad_index_0 #hsz #f #n (mt: merkle_tree #hsz n) =
| if n = 0
then ()
else
let mt:merkle_tree #hsz (n - 1) = mt_next_lv #_ #f #n mt in
mt_get_root_pad_index_0 #_ #f #(n - 1) mt | false |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.of_reg | val of_reg (r: MS.reg_64) : option (IX64.reg_nat 3) | val of_reg (r: MS.reg_64) : option (IX64.reg_nat 3) | let of_reg (r:MS.reg_64) : option (IX64.reg_nat 3) = match r with
| 5 -> Some 0 // rdi
| 4 -> Some 1 // rsi
| 3 -> Some 2 // rdx
| _ -> None | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 114,
"start_col": 0,
"start_line": 110
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Vale.X64.Machine_s.reg_64 -> FStar.Pervasives.Native.option (Vale.Interop.X64.reg_nat 3) | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Machine_s.reg_64",
"FStar.Pervasives.Native.Some",
"Vale.Interop.X64.reg_nat",
"Prims.int",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option"
] | [] | false | false | false | false | false | let of_reg (r: MS.reg_64) : option (IX64.reg_nat 3) =
| match r with
| 5 -> Some 0
| 4 -> Some 1
| 3 -> Some 2
| _ -> None | false |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.t64_no_mod | val t64_no_mod : Vale.Interop.Base.td | let t64_no_mod = TD_Buffer TUInt64 TUInt64 ({modified=false; strict_disjointness=false; taint=MS.Secret}) | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 105,
"end_line": 36,
"start_col": 0,
"start_line": 36
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.TD_Buffer",
"Vale.Arch.HeapTypes_s.TUInt64",
"Vale.Interop.Base.Mkbuffer_qualifiers",
"Vale.Arch.HeapTypes_s.Secret"
] | [] | false | false | false | true | false | let t64_no_mod =
| TD_Buffer TUInt64 TUInt64 ({ modified = false; strict_disjointness = false; taint = MS.Secret }) | false | |
MerkleTree.Spec.fst | MerkleTree.Spec.hs_next_lv_get | val hs_next_lv_get:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:pos ->
hs:hashes{S.length hs = 2 * n} -> idx:nat{idx < 2 * n} ->
Lemma ((hs_next_lv #_ #f #n hs).[idx / 2] ==
(if idx % 2 = 0
then padded_hash_fun #_ f hs.[idx] hs.[idx + 1]
else padded_hash_fun #_ f hs.[idx - 1] hs.[idx])) | val hs_next_lv_get:
#hsz:pos -> #f:hash_fun_t #hsz -> #n:pos ->
hs:hashes{S.length hs = 2 * n} -> idx:nat{idx < 2 * n} ->
Lemma ((hs_next_lv #_ #f #n hs).[idx / 2] ==
(if idx % 2 = 0
then padded_hash_fun #_ f hs.[idx] hs.[idx + 1]
else padded_hash_fun #_ f hs.[idx - 1] hs.[idx])) | let rec hs_next_lv_get #hsz #f #n hs idx =
if idx < 2 then ()
else hs_next_lv_get #_ #f #(n-1) (S.slice hs 2 (S.length hs)) (idx - 2) | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 73,
"end_line": 288,
"start_col": 0,
"start_line": 286
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | hs: MerkleTree.Spec.hashes{FStar.Seq.Base.length hs = 2 * n} -> idx: Prims.nat{idx < 2 * n}
-> FStar.Pervasives.Lemma
(ensures
(MerkleTree.Spec.hs_next_lv hs).[ idx / 2 ] ==
(match idx % 2 = 0 with
| true -> MerkleTree.Spec.padded_hash_fun f hs.[ idx ] hs.[ idx + 1 ]
| _ -> MerkleTree.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.Spec.hashes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.Spec.padded_hash",
"FStar.Mul.op_Star",
"Prims.nat",
"Prims.op_LessThan",
"Prims.bool",
"MerkleTree.Spec.hs_next_lv_get",
"Prims.op_Subtr... | [
"recursion"
] | false | false | true | false | false | let rec hs_next_lv_get #hsz #f #n hs idx =
| if idx < 2 then () else hs_next_lv_get #_ #f #(n - 1) (S.slice hs 2 (S.length hs)) (idx - 2) | false |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.t64_mod | val t64_mod : Vale.Interop.Base.td | let t64_mod = TD_Buffer TUInt64 TUInt64 default_bq | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 34,
"start_col": 0,
"start_line": 34
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.TD_Buffer",
"Vale.Arch.HeapTypes_s.TUInt64",
"Vale.Interop.Base.default_bq"
] | [] | false | false | false | true | false | let t64_mod =
| TD_Buffer TUInt64 TUInt64 default_bq | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.uint64 | val uint64 : Prims.eqtype | let uint64 = UInt64.t | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t"
] | [] | false | false | false | true | false | let uint64 =
| UInt64.t | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.tuint64 | val tuint64 : Vale.Interop.Base.td | let tuint64 = TD_Base TUInt64 | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 38,
"start_col": 0,
"start_line": 38
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.TD_Base",
"Vale.Arch.HeapTypes_s.TUInt64"
] | [] | false | false | false | true | false | let tuint64 =
| TD_Base TUInt64 | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.cswap_xmms_modified | val cswap_xmms_modified : _: _ -> Prims.bool | let cswap_xmms_modified = fun _ -> false | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 75,
"start_col": 0,
"start_line": 75
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: _ -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.bool"
] | [] | false | false | false | true | false | let cswap_xmms_modified =
| fun _ -> false | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.b64 | val b64 : Type0 | let b64 = buf_t TUInt64 TUInt64 | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 32,
"start_col": 0,
"start_line": 32
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.buf_t",
"Vale.Arch.HeapTypes_s.TUInt64"
] | [] | false | false | false | true | true | let b64 =
| buf_t TUInt64 TUInt64 | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.code_cswap | val code_cswap : Vale.X64.Decls.va_code | let code_cswap = FU.va_code_Cswap2 () | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 108,
"start_col": 0,
"start_line": 108
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.Curve25519.X64.FastUtil.va_code_Cswap2"
] | [] | false | false | false | true | false | let code_cswap =
| FU.va_code_Cswap2 () | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.cswap_comments | val cswap_comments:list string | val cswap_comments:list string | let cswap_comments : list string =
["Computes p1 <- bit ? p2 : p1 in constant time"] | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 164,
"start_col": 0,
"start_line": 163
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": false,
"full_module": "Vale.AsLowStar.MemoryHelpers",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"Prims.string",
"Prims.Nil"
] | [] | false | false | false | true | false | let cswap_comments:list string =
| ["Computes p1 <- bit ? p2 : p1 in constant time"] | false |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.cswap_names | val cswap_names (n: nat) : string | val cswap_names (n: nat) : string | let cswap_names (n:nat) : string =
match n with
| 0 -> "bit"
| 1 -> "p1"
| 2 -> "p2"
| _ -> "" | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 171,
"start_col": 0,
"start_line": 166
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": false,
"full_module": "Vale.AsLowStar.MemoryHelpers",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.int",
"Prims.string"
] | [] | false | false | false | true | false | let cswap_names (n: nat) : string =
| match n with
| 0 -> "bit"
| 1 -> "p1"
| 2 -> "p2"
| _ -> "" | false |
Vale.Curve25519.FastHybrid_helpers.fst | Vale.Curve25519.FastHybrid_helpers.lemma_mul_pow256_sub | val lemma_mul_pow256_sub (x y: nat) : Lemma ((x - y * pow2_256) % prime == (x - y * 38) % prime) | val lemma_mul_pow256_sub (x y: nat) : Lemma ((x - y * pow2_256) % prime == (x - y * 38) % prime) | let lemma_mul_pow256_sub (x y:nat) :
Lemma ((x - y * pow2_256) % prime == (x - y * 38) % prime)
=
assert_norm (pow2_256 % prime == 38);
FStar.Math.Lemmas.lemma_mod_mul_distr_r (-y) pow2_256 prime;
FStar.Math.Lemmas.lemma_mod_mul_distr_r (-y) 38 prime;
assert ((-y * pow2_256) % prime == (- y * 38) % prime);
... | {
"file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastHybrid_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 70,
"end_line": 131,
"start_col": 0,
"start_line": 123
} | module Vale.Curve25519.FastHybrid_helpers
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Mul
open FStar.Tactics
open FStar.Tactics.CanonCommSemiring
open Vale.Curve25519.Fast_defs
open Vale.Curve25519.Fast_lemmas_internal
#reset-options "--max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar.Tactics -FStar.R... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Curve25519.Fast_lemmas_internal.fsti.checked",
"Vale.Curve25519.Fast_defs.fst.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.CanonCommSemiri... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_internal",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_defs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSemiring",
"short_module": nu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Prims.nat -> y: Prims.nat
-> FStar.Pervasives.Lemma
(ensures
(x - y * Vale.Curve25519.Fast_defs.pow2_256) % Vale.Curve25519.Fast_defs.prime ==
(x - y * 38) % Vale.Curve25519.Fast_defs.prime) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"FStar.Math.Lemmas.modulo_add",
"Vale.Curve25519.Fast_defs.prime",
"Prims.op_Minus",
"FStar.Mul.op_Star",
"Vale.Curve25519.Fast_defs.pow2_256",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"FStar.Math.Lemmas.lemma_mod_mul_distr_r",
"FStar.Pervasiv... | [] | true | false | true | false | false | let lemma_mul_pow256_sub (x y: nat) : Lemma ((x - y * pow2_256) % prime == (x - y * 38) % prime) =
| assert_norm (pow2_256 % prime == 38);
FStar.Math.Lemmas.lemma_mod_mul_distr_r (- y) pow2_256 prime;
FStar.Math.Lemmas.lemma_mod_mul_distr_r (- y) 38 prime;
assert ((- y * pow2_256) % prime == (- y * 38) % prime);
FStar.Math.Lemmas.modulo_add prime x (- (y * pow2_256)) (- (y * 38)) | false |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.lowstar_cswap_normal_t | val lowstar_cswap_normal_t:normal lowstar_cswap_t | val lowstar_cswap_normal_t:normal lowstar_cswap_t | let lowstar_cswap_normal_t : normal lowstar_cswap_t
= as_normal_t #lowstar_cswap_t lowstar_cswap | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 153,
"start_col": 0,
"start_line": 152
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Pervasives.norm [
FStar.Pervasives.iota;
FStar.Pervasives.zeta;
FStar.Pervasives.delta_attr ["Vale.Arch.HeapTypes_s.__reduce__"; "FStar.BigOps.__reduce__"];
FStar.Pervasives.delta_only [
"Vale.Interop.Base.uu___is_TD_Buffer";
"Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__i... | Prims.Tot | [
"total"
] | [] | [
"Vale.Inline.X64.Fswap_inline.as_normal_t",
"Vale.Inline.X64.Fswap_inline.lowstar_cswap_t",
"Vale.Inline.X64.Fswap_inline.lowstar_cswap"
] | [] | false | false | false | false | false | let lowstar_cswap_normal_t:normal lowstar_cswap_t =
| as_normal_t #lowstar_cswap_t lowstar_cswap | false |
Steel.GhostPCMReference.fst | Steel.GhostPCMReference.pts_to | val pts_to (#a:Type u#1) (#pcm:pcm a) (r:ref a pcm) (v:a)
: vprop | val pts_to (#a:Type u#1) (#pcm:pcm a) (r:ref a pcm) (v:a)
: vprop | let pts_to (#a:Type u#1) (#pcm:pcm a) (r:ref a pcm) ([@@@smt_fallback]v:a)
= to_vprop (Steel.Memory.pts_to r v) | {
"file_name": "lib/steel/Steel.GhostPCMReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 38,
"end_line": 32,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.GhostPCMReference.ref a pcm -> v: a -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Steel.GhostPCMReference.ref",
"Steel.Effect.Common.to_vprop",
"Steel.Memory.pts_to",
"FStar.Ghost.reveal",
"Steel.Memory.ref",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | false | false | let pts_to (#a: Type u#1) (#pcm: pcm a) (r: ref a pcm) ([@@@ smt_fallback]v: a) =
| to_vprop (Steel.Memory.pts_to r v) | false |
Vale.Curve25519.FastHybrid_helpers.fst | Vale.Curve25519.FastHybrid_helpers.lemma_fmul | val lemma_fmul (a0 a1 a2 a3 b d0 d1 d2 d3 carry:nat64) : Lemma
(requires pow2_five d0 d1 d2 d3 carry == (pow2_four a0 a1 a2 a3) * b /\
b < 131072)
(ensures carry * 38 < pow2_63) | val lemma_fmul (a0 a1 a2 a3 b d0 d1 d2 d3 carry:nat64) : Lemma
(requires pow2_five d0 d1 d2 d3 carry == (pow2_four a0 a1 a2 a3) * b /\
b < 131072)
(ensures carry * 38 < pow2_63) | let lemma_fmul (a0 a1 a2 a3 b d0 d1 d2 d3 carry:nat64) : Lemma
(requires pow2_five d0 d1 d2 d3 carry == (pow2_four a0 a1 a2 a3) * b /\
b < 131072)
(ensures carry * 38 < pow2_63)
=
assert (pow2_four a0 a1 a2 a3 < pow2_256);
assert_norm (131072 == pow2 17);
lemma_mul_bounds_le (pow2_four a0 a1 a2 ... | {
"file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastHybrid_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 60,
"end_line": 171,
"start_col": 0,
"start_line": 161
} | module Vale.Curve25519.FastHybrid_helpers
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Mul
open FStar.Tactics
open FStar.Tactics.CanonCommSemiring
open Vale.Curve25519.Fast_defs
open Vale.Curve25519.Fast_lemmas_internal
#reset-options "--max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar.Tactics -FStar.R... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Curve25519.Fast_lemmas_internal.fsti.checked",
"Vale.Curve25519.Fast_defs.fst.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.CanonCommSemiri... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_internal",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_defs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSemiring",
"short_module": nu... | {
"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 |
a0: Vale.Def.Types_s.nat64 ->
a1: Vale.Def.Types_s.nat64 ->
a2: Vale.Def.Types_s.nat64 ->
a3: Vale.Def.Types_s.nat64 ->
b: Vale.Def.Types_s.nat64 ->
d0: Vale.Def.Types_s.nat64 ->
d1: Vale.Def.Types_s.nat64 ->
d2: Vale.Def.Types_s.nat64 ->
d3: Vale.Def.Types_s.nat64 ->
carry: Val... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.nat64",
"Prims._assert",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Vale.Curve25519.Fast_defs.pow2_four",
"Vale.Curve25519.Fast_defs.pow2_256",
"Prims.pow2",
"Prims.unit",
"Vale.Curve25519.Fast_lemmas_internal.lemma_mul_bounds_le",
"FStar.Pervasives.assert_n... | [] | true | false | true | false | false | let lemma_fmul (a0 a1 a2 a3 b d0 d1 d2 d3 carry: nat64)
: Lemma (requires pow2_five d0 d1 d2 d3 carry == (pow2_four a0 a1 a2 a3) * b /\ b < 131072)
(ensures carry * 38 < pow2_63) =
| assert (pow2_four a0 a1 a2 a3 < pow2_256);
assert_norm (131072 == pow2 17);
lemma_mul_bounds_le (pow2_four a0 a1 a2 a3) pow2_256 b (pow2 17);
assert ((pow2_four a0 a1 a2 a3) * b <= pow2_256 * pow2 17);
lemma_mul_bounds_le b b (pow2_four a0 a1 a2 a3) (pow2_four a0 a1 a2 a3);
assert ((pow2_four a0 a1 a2 a3) * b <= pow2_2... | false |
Steel.GhostPCMReference.fst | Steel.GhostPCMReference.ref | val ref (a:Type) (p:pcm a) : Type0 | val ref (a:Type) (p:pcm a) : Type0 | let ref (a:Type) (p:pcm a) = erased (Steel.Memory.ref a p) | {
"file_name": "lib/steel/Steel.GhostPCMReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 58,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> p: FStar.PCM.pcm a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"Steel.Memory.ref"
] | [] | false | false | false | true | true | let ref (a: Type) (p: pcm a) =
| erased (Steel.Memory.ref a p) | false |
Steel.GhostPCMReference.fst | Steel.GhostPCMReference.witnessed | val witnessed (#a:Type u#1) (#p:pcm a) (r:ref a p) (fact:property a)
: Type0 | val witnessed (#a:Type u#1) (#p:pcm a) (r:ref a p) (fact:property a)
: Type0 | let witnessed (#a:Type) (#p:pcm a) (r:ref a p) (fact:property a)
: Type0
= Steel.Memory.witnessed r fact | {
"file_name": "lib/steel/Steel.GhostPCMReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 115,
"start_col": 0,
"start_line": 113
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.GhostPCMReference.ref a p -> fact: Steel.Memory.property a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Steel.GhostPCMReference.ref",
"Steel.Memory.property",
"Steel.Memory.witnessed",
"FStar.Ghost.reveal",
"Steel.Memory.ref"
] | [] | false | false | false | false | true | let witnessed (#a: Type) (#p: pcm a) (r: ref a p) (fact: property a) : Type0 =
| Steel.Memory.witnessed r fact | false |
Vale.Curve25519.FastHybrid_helpers.fst | Vale.Curve25519.FastHybrid_helpers.lemma_carry_sub_prime | val lemma_carry_sub_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in:nat64) (carry:bit) : Lemma
(requires pow2_four a0' a1' a2' a3' - carry * pow2_256 == pow2_four a0 a1 a2 a3 - carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures a0' - carry * 38 >= 0 /\
(pow2_four (a0' - carry * 38) a1' a... | val lemma_carry_sub_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in:nat64) (carry:bit) : Lemma
(requires pow2_four a0' a1' a2' a3' - carry * pow2_256 == pow2_four a0 a1 a2 a3 - carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures a0' - carry * 38 >= 0 /\
(pow2_four (a0' - carry * 38) a1' a... | let lemma_carry_sub_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in:nat64) (carry:bit) : Lemma
(requires pow2_four a0' a1' a2' a3' - carry * pow2_256 == pow2_four a0 a1 a2 a3 - carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures a0' - carry * 38 >= 0 /\
(pow2_four (a0' - carry * 38) a1' a... | {
"file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastHybrid_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 158,
"start_col": 0,
"start_line": 134
} | module Vale.Curve25519.FastHybrid_helpers
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Mul
open FStar.Tactics
open FStar.Tactics.CanonCommSemiring
open Vale.Curve25519.Fast_defs
open Vale.Curve25519.Fast_lemmas_internal
#reset-options "--max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar.Tactics -FStar.R... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Curve25519.Fast_lemmas_internal.fsti.checked",
"Vale.Curve25519.Fast_defs.fst.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.CanonCommSemiri... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_internal",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_defs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSemiring",
"short_module": nu... | {
"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 |
a0: Vale.Def.Types_s.nat64 ->
a1: Vale.Def.Types_s.nat64 ->
a2: Vale.Def.Types_s.nat64 ->
a3: Vale.Def.Types_s.nat64 ->
a0': Vale.Def.Types_s.nat64 ->
a1': Vale.Def.Types_s.nat64 ->
a2': Vale.Def.Types_s.nat64 ->
a3': Vale.Def.Types_s.nat64 ->
carry_in: Vale.Def.Types_s.nat64 ->
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.nat64",
"Vale.Curve25519.Fast_defs.bit",
"Prims.unit",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"Prims.op_Subtraction",
"Vale.Curve25519.Fast_defs.pow2_four",
"FStar.Mul.op_Star",
"Vale.Curve25519.Fast_defs.pow2_256",
"Vale.Curve25519.Fast_defs.... | [] | false | false | true | false | false | let lemma_carry_sub_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in: nat64) (carry: bit)
: Lemma
(requires
pow2_four a0' a1' a2' a3' - carry * pow2_256 == pow2_four a0 a1 a2 a3 - carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures
a0' - carry * 38 >= 0 /\
(pow2_four (... | assert (a0' - carry * 38 >= 0);
calc ( == ) {
(pow2_four a0 a1 a2 a3 - carry_in * pow2_256) % prime;
( == ) { lemma_mul_pow256_sub (pow2_four a0 a1 a2 a3) carry_in }
(pow2_four a0 a1 a2 a3 - carry_in * 38) % prime;
( == ) { () }
(pow2_four a0' a1' a2' a3' - (carry * pow2_256)) % prime;
( == ) { lemma_mul_po... | false |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256 | val size_k_w_256 : Prims.int | let size_k_w_256 = 64 | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 20,
"start_col": 7,
"start_line": 20
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Four_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let size_k_w_256 =
| 64 | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.block_length | val block_length : Prims.int | let block_length =
4 (*word_length a*) * size_block_w_256 | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 26,
"start_col": 0,
"start_line": 25
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [
"FStar.Mul.op_Star",
"Vale.SHA.PPC64LE.SHA_helpers.size_block_w_256"
] | [] | false | false | false | true | false | let block_length =
| 4 * size_block_w_256 | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.size_block_w_256 | val size_block_w_256 : Prims.int | let size_block_w_256 = 16 | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let size_block_w_256 =
| 16 | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.block_w | val block_w : Type0 | let block_w = m:seq word {length m = size_block_w_256} | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Vale.SHA.PPC64LE.SHA_helpers.size_block_w_256"
] | [] | false | false | false | true | true | let block_w =
| m: seq word {length m = size_block_w_256} | false | |
Vale.Curve25519.FastHybrid_helpers.fst | Vale.Curve25519.FastHybrid_helpers.lemma_carry_wide | val lemma_carry_wide (a0 a1 a2 a3 a4 a5 a6 a7
d0 d1 d2 d3 carry
d0' d1' d2' d3':nat64) : Lemma
(requires pow2_five d0 d1 d2 d3 carry == 38 * pow2_four a4 a5 a6 a7 + pow2_four a0 a1 a2 a3 /\
pow2_four d0' d1' d2' d3' % prime == ((pow2_four d0 d1 d2 d3) + carry * ... | val lemma_carry_wide (a0 a1 a2 a3 a4 a5 a6 a7
d0 d1 d2 d3 carry
d0' d1' d2' d3':nat64) : Lemma
(requires pow2_five d0 d1 d2 d3 carry == 38 * pow2_four a4 a5 a6 a7 + pow2_four a0 a1 a2 a3 /\
pow2_four d0' d1' d2' d3' % prime == ((pow2_four d0 d1 d2 d3) + carry * ... | let lemma_carry_wide (a0 a1 a2 a3 a4 a5 a6 a7
d0 d1 d2 d3 carry
d0' d1' d2' d3':nat64) : Lemma
(requires pow2_five d0 d1 d2 d3 carry == 38 * pow2_four a4 a5 a6 a7 + pow2_four a0 a1 a2 a3 /\
pow2_four d0' d1' d2' d3' % prime == ((pow2_four d0 d1 d2 d3) + carry * ... | {
"file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastHybrid_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 117,
"start_col": 0,
"start_line": 95
} | module Vale.Curve25519.FastHybrid_helpers
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Mul
open FStar.Tactics
open FStar.Tactics.CanonCommSemiring
open Vale.Curve25519.Fast_defs
open Vale.Curve25519.Fast_lemmas_internal
#reset-options "--max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar.Tactics -FStar.R... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Curve25519.Fast_lemmas_internal.fsti.checked",
"Vale.Curve25519.Fast_defs.fst.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.CanonCommSemiri... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_internal",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_defs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSemiring",
"short_module": nu... | {
"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 |
a0: Vale.Def.Types_s.nat64 ->
a1: Vale.Def.Types_s.nat64 ->
a2: Vale.Def.Types_s.nat64 ->
a3: Vale.Def.Types_s.nat64 ->
a4: Vale.Def.Types_s.nat64 ->
a5: Vale.Def.Types_s.nat64 ->
a6: Vale.Def.Types_s.nat64 ->
a7: Vale.Def.Types_s.nat64 ->
d0: Vale.Def.Types_s.nat64 ->
d1: Vale.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.nat64",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"Vale.Curve25519.Fast_defs.pow2_four",
"Vale.Curve25519.Fast_defs.prime",
"Vale.Curve25519.Fast_defs.pow2_eight",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.... | [] | false | false | true | false | false | let lemma_carry_wide (a0 a1 a2 a3 a4 a5 a6 a7 d0 d1 d2 d3 carry d0' d1' d2' d3': nat64)
: Lemma
(requires
pow2_five d0 d1 d2 d3 carry == 38 * pow2_four a4 a5 a6 a7 + pow2_four a0 a1 a2 a3 /\
pow2_four d0' d1' d2' d3' % prime == ((pow2_four d0 d1 d2 d3) + carry * pow2_256) % prime)
(ensur... | calc ( == ) {
pow2_four d0' d1' d2' d3' % prime;
( == ) { calc ( == ) {
(pow2_four d0 d1 d2 d3) + carry * pow2_256;
( == ) { FStar.Tactics.Effect.synth_by_tactic (fun _ -> (int_canon ())) }
pow2_five d0 d1 d2 d3 carry;
} }
pow2_five d0 d1 d2 d3 carry % prime;
( == ) { () }
(pow2_four a0 a1 a2 a3... | false |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.hash256 | val hash256 : Type0 | let hash256 = m:Seq.seq word {Seq.length m = 8} | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 30,
"start_col": 0,
"start_line": 30
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length"
] | [] | false | false | false | true | true | let hash256 =
| m: Seq.seq word {Seq.length m = 8} | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.counter | val counter : Type0 | let counter = nat | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 28,
"start_col": 0,
"start_line": 28
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat"
] | [] | false | false | false | true | true | let counter =
| nat | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial | val sigma_0_0_partial : _: Vale.SHA.PPC64LE.SHA_helpers.counter -> _: Vale.SHA.PPC64LE.SHA_helpers.block_w
-> Vale.Def.Words_s.nat32 | let sigma_0_0_partial = opaque_make sigma_0_0_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 77,
"start_col": 19,
"start_line": 77
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | _: Vale.SHA.PPC64LE.SHA_helpers.counter -> _: Vale.SHA.PPC64LE.SHA_helpers.block_w
-> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial_def"
] | [] | false | false | false | true | false | let sigma_0_0_partial =
| opaque_make sigma_0_0_partial_def | false | |
Vale.Curve25519.FastHybrid_helpers.fst | Vale.Curve25519.FastHybrid_helpers.lemma_carry_prime | val lemma_carry_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in:nat64) (carry:bit) : Lemma
(requires pow2_five a0' a1' a2' a3' carry == pow2_four a0 a1 a2 a3 + carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures a0' + carry * 38 < pow2_64 /\
(pow2_four (a0' + carry * 38) a1' a2' a3') % pr... | val lemma_carry_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in:nat64) (carry:bit) : Lemma
(requires pow2_five a0' a1' a2' a3' carry == pow2_four a0 a1 a2 a3 + carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures a0' + carry * 38 < pow2_64 /\
(pow2_four (a0' + carry * 38) a1' a2' a3') % pr... | let lemma_carry_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in:nat64) (carry:bit) : Lemma
(requires pow2_five a0' a1' a2' a3' carry == pow2_four a0 a1 a2 a3 + carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures a0' + carry * 38 < pow2_64 /\
(pow2_four (a0' + carry * 38) a1' a2' a3') % pr... | {
"file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastHybrid_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 39,
"start_col": 0,
"start_line": 13
} | module Vale.Curve25519.FastHybrid_helpers
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Mul
open FStar.Tactics
open FStar.Tactics.CanonCommSemiring
open Vale.Curve25519.Fast_defs
open Vale.Curve25519.Fast_lemmas_internal
#reset-options "--max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar.Tactics -FStar.R... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Curve25519.Fast_lemmas_internal.fsti.checked",
"Vale.Curve25519.Fast_defs.fst.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.CanonCommSemiri... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_internal",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_defs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSemiring",
"short_module": nu... | {
"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 |
a0: Vale.Def.Types_s.nat64 ->
a1: Vale.Def.Types_s.nat64 ->
a2: Vale.Def.Types_s.nat64 ->
a3: Vale.Def.Types_s.nat64 ->
a0': Vale.Def.Types_s.nat64 ->
a1': Vale.Def.Types_s.nat64 ->
a2': Vale.Def.Types_s.nat64 ->
a3': Vale.Def.Types_s.nat64 ->
carry_in: Vale.Def.Types_s.nat64 ->
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.nat64",
"Vale.Curve25519.Fast_defs.bit",
"Prims.unit",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"Prims.op_Addition",
"Vale.Curve25519.Fast_defs.pow2_four",
"FStar.Mul.op_Star",
"Vale.Curve25519.Fast_defs.pow2_256",
"Vale.Curve25519.Fast_defs.pri... | [] | false | false | true | false | false | let lemma_carry_prime (a0 a1 a2 a3 a0' a1' a2' a3' carry_in: nat64) (carry: bit)
: Lemma
(requires
pow2_five a0' a1' a2' a3' carry == pow2_four a0 a1 a2 a3 + carry_in * 38 /\
carry_in * 38 - 1 + 38 < pow2_64)
(ensures
a0' + carry * 38 < pow2_64 /\
(pow2_four (a0' + carry ... | assert (a0' + carry * 38 < pow2_64);
calc ( == ) {
(pow2_four a0 a1 a2 a3 + carry_in * pow2_256) % prime;
( == ) { lemma_mul_pow256_add (pow2_four a0 a1 a2 a3) carry_in }
(pow2_four a0 a1 a2 a3 + carry_in * 38) % prime;
( == ) { () }
(pow2_five a0' a1' a2' a3' carry) % prime;
( == ) { FStar.Tactics.Effect.s... | false |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial_reveal | val sigma_1_0_partial_reveal : _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial_def) | let sigma_1_0_partial_reveal = opaque_revealer (`%sigma_1_0_partial) sigma_1_0_partial sigma_1_0_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 120,
"end_line": 96,
"start_col": 12,
"start_line": 96
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial_def) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Opaque_s.opaque_revealer",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial_def"
] | [] | true | false | true | false | false | let sigma_1_0_partial_reveal =
| opaque_revealer (`%sigma_1_0_partial) sigma_1_0_partial sigma_1_0_partial_def | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial_reveal | val sigma_0_1_partial_reveal : _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial_def) | let sigma_0_1_partial_reveal = opaque_revealer (`%sigma_0_1_partial) sigma_0_1_partial sigma_0_1_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 120,
"end_line": 87,
"start_col": 12,
"start_line": 87
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial_def) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Opaque_s.opaque_revealer",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial_def"
] | [] | true | false | true | false | false | let sigma_0_1_partial_reveal =
| opaque_revealer (`%sigma_0_1_partial) sigma_0_1_partial sigma_0_1_partial_def | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial_reveal | val sigma_0_0_partial_reveal : _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial_def) | let sigma_0_0_partial_reveal = opaque_revealer (`%sigma_0_0_partial) sigma_0_0_partial sigma_0_0_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 120,
"end_line": 78,
"start_col": 12,
"start_line": 78
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial_def) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Opaque_s.opaque_revealer",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial_def"
] | [] | true | false | true | false | false | let sigma_0_0_partial_reveal =
| opaque_revealer (`%sigma_0_0_partial) sigma_0_0_partial sigma_0_0_partial_def | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.as_normal_t | val as_normal_t (#a: Type) (x: a) : normal a | val as_normal_t (#a: Type) (x: a) : normal a | let as_normal_t (#a:Type) (x:a) : normal a = x | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Vale.Interop.Base.normal a | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.normal"
] | [] | false | false | false | true | false | let as_normal_t (#a: Type) (x: a) : normal a =
| x | false |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial | val sigma_1_0_partial : _: Vale.SHA.PPC64LE.SHA_helpers.counter ->
_: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
_: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.Def.Words_s.nat32 | let sigma_1_0_partial = opaque_make sigma_1_0_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 95,
"start_col": 19,
"start_line": 95
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 |
_: Vale.SHA.PPC64LE.SHA_helpers.counter ->
_: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
_: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_1_0_partial_def"
] | [] | false | false | false | true | false | let sigma_1_0_partial =
| opaque_make sigma_1_0_partial_def | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial | val sigma_1_1_partial : _: Vale.SHA.PPC64LE.SHA_helpers.counter ->
_: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
_: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.Def.Words_s.nat32 | let sigma_1_1_partial = opaque_make sigma_1_1_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 104,
"start_col": 19,
"start_line": 104
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 |
_: Vale.SHA.PPC64LE.SHA_helpers.counter ->
_: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
_: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial_def"
] | [] | false | false | false | true | false | let sigma_1_1_partial =
| opaque_make sigma_1_1_partial_def | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial | val sigma_0_1_partial : _: Vale.SHA.PPC64LE.SHA_helpers.counter -> _: Vale.SHA.PPC64LE.SHA_helpers.block_w
-> Vale.Def.Words_s.nat32 | let sigma_0_1_partial = opaque_make sigma_0_1_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 86,
"start_col": 19,
"start_line": 86
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | _: Vale.SHA.PPC64LE.SHA_helpers.counter -> _: Vale.SHA.PPC64LE.SHA_helpers.block_w
-> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial_def"
] | [] | false | false | false | true | false | let sigma_0_1_partial =
| opaque_make sigma_0_1_partial_def | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial_reveal | val sigma_1_1_partial_reveal : _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial_def) | let sigma_1_1_partial_reveal = opaque_revealer (`%sigma_1_1_partial) sigma_1_1_partial sigma_1_1_partial_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 120,
"end_line": 105,
"start_col": 12,
"start_line": 105
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial ==
Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial_def) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Opaque_s.opaque_revealer",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial_def"
] | [] | true | false | true | false | false | let sigma_1_1_partial_reveal =
| opaque_revealer (`%sigma_1_1_partial) sigma_1_1_partial sigma_1_1_partial_def | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 | val repeat_range_vale_64 : block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.SHA.PPC64LE.SHA_helpers.hash256 | let repeat_range_vale_64 (block:block_w) (hash:hash256) =
Spec.Loops.repeat_range 0 64 (shuffle_core_opaque block) hash | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 242,
"start_col": 0,
"start_line": 241
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.SHA.PPC64LE.SHA_helpers.hash256 | Prims.Tot | [
"total"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Spec.Loops.repeat_range",
"Vale.SHA.PPC64LE.SHA_helpers.shuffle_core_opaque"
] | [] | false | false | false | true | false | let repeat_range_vale_64 (block: block_w) (hash: hash256) =
| Spec.Loops.repeat_range 0 64 (shuffle_core_opaque block) hash | false | |
MerkleTree.Spec.fst | MerkleTree.Spec.extract | val extract:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt_collide #_ #f n i -> GTot hash2_raw_collide | val extract:
#hsz:pos -> #f:hash_fun_t #hsz ->
#n:nat -> #i:nat{i <= pow2 n} -> mt_collide #_ #f n i -> GTot hash2_raw_collide | let rec extract #hsz #f #n #i (Collision t1 t2) =
assert(n = 0 ==> S.equal t1 t2); // excludes n = 0
mt_left_right t1; mt_left_right t2;
mt_get_root_step #_ #f t1;
mt_get_root_step #_ #f t2;
rpmt_get_root_pad t1;
assert(i <> 0);
let l1 = rpmt_left t1 in
let l2 = rpmt_left t2 in
let r1 = rpmt_right t1 ... | {
"file_name": "src/MerkleTree.Spec.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 37,
"end_line": 516,
"start_col": 0,
"start_line": 488
} | module MerkleTree.Spec
open FStar.Classical
open FStar.Mul
open FStar.Seq
module S = FStar.Seq
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 10"
// For SHA2_256, this is is a sequence of 32 bytes
// These are secret bytes, hence not an eqtype
type hash (#hsz:pos) = b:Spec.Hash.Definitions.bytes { Seq.length b... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classica... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | _: MerkleTree.Spec.mt_collide n i -> Prims.GTot MerkleTree.Spec.hash2_raw_collide | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.pow2",
"MerkleTree.Spec.mt_collide",
"MerkleTree.Spec.rpmt",
"Prims.l_and",
"Prims.l_not",
"Prims.eq2",
"MerkleTree.Spec.padded_hash",
"MerkleTree.Spec.mt_get_root",
"Prims.op_Subtractio... | [
"recursion"
] | false | false | false | false | false | let rec extract #hsz #f #n #i (Collision t1 t2) =
| assert (n = 0 ==> S.equal t1 t2);
mt_left_right t1;
mt_left_right t2;
mt_get_root_step #_ #f t1;
mt_get_root_step #_ #f t2;
rpmt_get_root_pad t1;
assert (i <> 0);
let l1 = rpmt_left t1 in
let l2 = rpmt_left t2 in
let r1 = rpmt_right t1 in
let r2 = rpmt_right t2 in
if i <= pow2 (n - 1)
then
(rpmt_get_root_pad r1;
... | false |
Vale.Curve25519.FastHybrid_helpers.fst | Vale.Curve25519.FastHybrid_helpers.lemma_fast_mul1 | val lemma_fast_mul1 (a:nat)
(b a0 a1 a2 a3
ba0_hi ba0_lo
ba1_hi ba1_lo
ba2_hi ba2_lo
ba3_hi ba3_lo
s1 s2 s3 s4:nat64) : Lemma
(requires a = pow2_four a0 a1 a2 a3 /\
pow2_64 * ba0_hi + ba0_lo == b * a0 /\
... | val lemma_fast_mul1 (a:nat)
(b a0 a1 a2 a3
ba0_hi ba0_lo
ba1_hi ba1_lo
ba2_hi ba2_lo
ba3_hi ba3_lo
s1 s2 s3 s4:nat64) : Lemma
(requires a = pow2_four a0 a1 a2 a3 /\
pow2_64 * ba0_hi + ba0_lo == b * a0 /\
... | let lemma_fast_mul1 (a:nat)
(b a0 a1 a2 a3
ba0_hi ba0_lo
ba1_hi ba1_lo
ba2_hi ba2_lo
ba3_hi ba3_lo
s1 s2 s3 s4:nat64) : Lemma
(requires a = pow2_four a0 a1 a2 a3 /\
pow2_64 * ba0_hi + ba0_lo == b * a0 /\
... | {
"file_name": "vale/code/crypto/ecc/curve25519/Vale.Curve25519.FastHybrid_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 73,
"start_col": 0,
"start_line": 42
} | module Vale.Curve25519.FastHybrid_helpers
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Mul
open FStar.Tactics
open FStar.Tactics.CanonCommSemiring
open Vale.Curve25519.Fast_defs
open Vale.Curve25519.Fast_lemmas_internal
#reset-options "--max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar.Tactics -FStar.R... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Curve25519.Fast_lemmas_internal.fsti.checked",
"Vale.Curve25519.Fast_defs.fst.checked",
"prims.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Tactics.CanonCommSemiri... | [
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_lemmas_internal",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Curve25519.Fast_defs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSemiring",
"short_module": nu... | {
"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 |
a: Prims.nat ->
b: Vale.Def.Types_s.nat64 ->
a0: Vale.Def.Types_s.nat64 ->
a1: Vale.Def.Types_s.nat64 ->
a2: Vale.Def.Types_s.nat64 ->
a3: Vale.Def.Types_s.nat64 ->
ba0_hi: Vale.Def.Types_s.nat64 ->
ba0_lo: Vale.Def.Types_s.nat64 ->
ba1_hi: Vale.Def.Types_s.nat64 ->
ba1_lo: Vale... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Def.Types_s.nat64",
"Prims.unit",
"FStar.Tactics.Effect.assert_by_tactic",
"Prims.eq2",
"Prims.int",
"FStar.Mul.op_Star",
"Vale.Curve25519.Fast_defs.pow2_four",
"Vale.Curve25519.FastHybrid_helpers.int_canon",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.op_Addit... | [] | true | false | true | false | false | let lemma_fast_mul1
(a: nat)
(b a0 a1 a2 a3 ba0_hi ba0_lo ba1_hi ba1_lo ba2_hi ba2_lo ba3_hi ba3_lo s1 s2 s3 s4: nat64)
: Lemma
(requires
a = pow2_four a0 a1 a2 a3 /\ pow2_64 * ba0_hi + ba0_lo == b * a0 /\
pow2_64 * ba1_hi + ba1_lo == b * a1 /\ pow2_64 * ba2_hi + ba2_lo == b * a2 /... | assert_by_tactic (b * pow2_four a0 a1 a2 a3 == pow2_four (b * a0) (b * a1) (b * a2) (b * a3))
int_canon;
() | false |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale | val repeat_range_vale : max: Prims.nat{max < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256} ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.SHA.PPC64LE.SHA_helpers.hash256 | let repeat_range_vale (max:nat { max < size_k_w_256}) (block:block_w) (hash:hash256) =
Spec.Loops.repeat_range 0 max (shuffle_core_opaque block) hash | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 64,
"end_line": 52,
"start_col": 0,
"start_line": 51
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 |
max: Prims.nat{max < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256} ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.SHA.PPC64LE.SHA_helpers.hash256 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Spec.Loops.repeat_range",
"Vale.SHA.PPC64LE.SHA_helpers.shuffle_core_opaque"
] | [] | false | false | false | false | false | let repeat_range_vale (max: nat{max < size_k_w_256}) (block: block_w) (hash: hash256) =
| Spec.Loops.repeat_range 0 max (shuffle_core_opaque block) hash | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.bytes_blocks | val bytes_blocks : Type0 | let bytes_blocks =
l:bytes { Seq.length l % block_length = 0 } | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 38,
"start_col": 0,
"start_line": 37
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.bytes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"FStar.Seq.Base.length",
"Vale.SHA.PPC64LE.SHA_helpers.byte",
"Vale.SHA.PPC64LE.SHA_helpers.block_length"
] | [] | false | false | false | true | true | let bytes_blocks =
| l: bytes{Seq.length l % block_length = 0} | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.as_t | val as_t (#a: Type) (x: normal a) : a | val as_t (#a: Type) (x: normal a) : a | let as_t (#a:Type) (x:normal a) : a = x | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 28,
"start_col": 0,
"start_line": 28
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Vale.Interop.Base.normal a -> a | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.normal"
] | [] | false | false | false | true | false | let as_t (#a: Type) (x: normal a) : a =
| x | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.return_post_with_eq | val return_post_with_eq (u: universe) (a e p: term) (x: var) : term | val return_post_with_eq (u: universe) (a e p: term) (x: var) : term | let return_post_with_eq (u:universe) (a:term) (e:term) (p:term) (x:var) : term =
let x_tm = RT.var_as_term x in
let eq2_tm = mk_eq2 u a x_tm e in
let p_app_x = pack_ln (Tv_App p (x_tm, Q_Explicit)) in
let star_tm = mk_star p_app_x (mk_pure eq2_tm) in
mk_abs a Q_Explicit (RT.subst_term star_tm [ RT.ND x 0 ]) | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 59,
"end_line": 29,
"start_col": 0,
"start_line": 24
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u10: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
e: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.V2.Data.var
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.var",
"Pulse.Reflection.Util.mk_abs",
"FStar.Stubs.Reflection.V2.Data.Q_Explicit",
"FStar.Reflection.Typing.subst_term",
"Prims.Cons",
"FStar.Reflection.Typing.subst_elt",
"FStar.Reflection.... | [] | false | false | false | true | false | let return_post_with_eq (u: universe) (a e p: term) (x: var) : term =
| let x_tm = RT.var_as_term x in
let eq2_tm = mk_eq2 u a x_tm e in
let p_app_x = pack_ln (Tv_App p (x_tm, Q_Explicit)) in
let star_tm = mk_star p_app_x (mk_pure eq2_tm) in
mk_abs a Q_Explicit (RT.subst_term star_tm [RT.ND x 0]) | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.return_stt_comp | val return_stt_comp (u: universe) (a e p: term) (x: var) : term | val return_stt_comp (u: universe) (a e p: term) (x: var) : term | let return_stt_comp (u:universe) (a:term) (e:term) (p:term) (x:var) : term =
mk_stt_comp u a
(pack_ln (Tv_App p (e, Q_Explicit)))
(return_post_with_eq u a e p x) | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 35,
"end_line": 34,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u20: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
e: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.V2.Data.var
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.var",
"Pulse.Reflection.Util.mk_stt_comp",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V2... | [] | false | false | false | true | false | let return_stt_comp (u: universe) (a e p: term) (x: var) : term =
| mk_stt_comp u a (pack_ln (Tv_App p (e, Q_Explicit))) (return_post_with_eq u a e p x) | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.neutral_fv | val neutral_fv : FStar.Stubs.Reflection.Types.term | let neutral_fv = pack_ln (Tv_FVar (pack_fv neutral_lid)) | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 68,
"start_col": 0,
"start_line": 68
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_FVar",
"FStar.Stubs.Reflection.V2.Builtins.pack_fv",
"Pulse.Reflection.Util.neutral_lid"
] | [] | false | false | false | true | false | let neutral_fv =
| pack_ln (Tv_FVar (pack_fv neutral_lid)) | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.update_multi_opaque_vale | val update_multi_opaque_vale (hash: hash256) (blocks: bytes) : hash256 | val update_multi_opaque_vale (hash: hash256) (blocks: bytes) : hash256 | let update_multi_opaque_vale (hash:hash256) (blocks:bytes) : hash256 =
if length blocks % size_k_w_256 = 0 then let b:bytes_blocks = blocks in update_multi_opaque hash b else hash | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 110,
"end_line": 54,
"start_col": 0,
"start_line": 53
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | hash: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> blocks: Vale.SHA.PPC64LE.SHA_helpers.bytes
-> Vale.SHA.PPC64LE.SHA_helpers.hash256 | Prims.Tot | [
"total"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.SHA.PPC64LE.SHA_helpers.bytes",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"FStar.Seq.Base.length",
"Vale.SHA.PPC64LE.SHA_helpers.byte",
"Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256",
"Vale.SHA.PPC64LE.SHA_helpers.update_multi_opaque",
"Vale.S... | [] | false | false | false | true | false | let update_multi_opaque_vale (hash: hash256) (blocks: bytes) : hash256 =
| if length blocks % size_k_w_256 = 0
then
let b:bytes_blocks = blocks in
update_multi_opaque hash b
else hash | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.return_stt_noeq_comp | val return_stt_noeq_comp (u: universe) (a x p: term) : term | val return_stt_noeq_comp (u: universe) (a x p: term) : term | let return_stt_noeq_comp (u:universe) (a:term) (x:term) (p:term) : term =
mk_stt_comp u a (pack_ln (Tv_App p (x, Q_Explicit))) p | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 52,
"start_col": 0,
"start_line": 51
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u37: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"Pulse.Reflection.Util.mk_stt_comp",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Stubs.Reflection... | [] | false | false | false | true | false | let return_stt_noeq_comp (u: universe) (a x p: term) : term =
| mk_stt_comp u a (pack_ln (Tv_App p (x, Q_Explicit))) p | false |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.k_index | val k_index (ks: seq quad32) (i: nat) : nat32 | val k_index (ks: seq quad32) (i: nat) : nat32 | let k_index (ks:seq quad32) (i:nat) : nat32 =
if length ks = size_k_w_256 / 4 && i < size_k_w_256 then four_select ks.[(i/4)] (i % 4)
else 0 | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 209,
"start_col": 0,
"start_line": 207
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | ks: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> i: Prims.nat -> Vale.Def.Words_s.nat32 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.op_AmpAmp",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.op_Division",
"Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256",
"Prims.op_LessThan",
"Vale.Def.Words.Four_s.four_select",
"Vale.Def.Types_s.nat32",
"V... | [] | false | false | false | true | false | let k_index (ks: seq quad32) (i: nat) : nat32 =
| if length ks = size_k_w_256 / 4 && i < size_k_w_256 then four_select ks.[ (i / 4) ] (i % 4) else 0 | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.return_stt_atomic_comp | val return_stt_atomic_comp (u: universe) (a e p: term) (x: var) : term | val return_stt_atomic_comp (u: universe) (a e p: term) (x: var) : term | let return_stt_atomic_comp (u:universe) (a:term) (e:term) (p:term) (x:var) : term =
mk_stt_atomic_comp neutral_fv u a emp_inames_tm
(pack_ln (Tv_App p (e, Q_Explicit)))
(return_post_with_eq u a e p x) | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 35,
"end_line": 72,
"start_col": 0,
"start_line": 69
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u55: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
e: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.V2.Data.var
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.var",
"Pulse.Reflection.Util.mk_stt_atomic_comp",
"Pulse.Steel.Wrapper.Typing.neutral_fv",
"Pulse.Reflection.Util.emp_inames_tm",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Ref... | [] | false | false | false | true | false | let return_stt_atomic_comp (u: universe) (a e p: term) (x: var) : term =
| mk_stt_atomic_comp neutral_fv
u
a
emp_inames_tm
(pack_ln (Tv_App p (e, Q_Explicit)))
(return_post_with_eq u a e p x) | false |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.of_arg | val of_arg (i: IX64.reg_nat 3) : MS.reg_64 | val of_arg (i: IX64.reg_nat 3) : MS.reg_64 | let of_arg (i:IX64.reg_nat 3) : MS.reg_64 = match i with
| 0 -> MS.rRdi
| 1 -> MS.rRsi
| 2 -> MS.rRdx | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 119,
"start_col": 0,
"start_line": 116
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Vale.Interop.X64.reg_nat 3 -> Vale.X64.Machine_s.reg_64 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.reg_nat",
"Vale.X64.Machine_s.rRdi",
"Vale.X64.Machine_s.rRsi",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.reg_64"
] | [] | false | false | false | false | false | let of_arg (i: IX64.reg_nat 3) : MS.reg_64 =
| match i with
| 0 -> MS.rRdi
| 1 -> MS.rRsi
| 2 -> MS.rRdx | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.with_local_body_post | val with_local_body_post (post a ret_t x: term) : term | val with_local_body_post (post a ret_t x: term) : term | let with_local_body_post (post:term) (a:term) (ret_t:term) (x:term) : term =
mk_abs ret_t Q_Explicit (with_local_body_post_body post a x) | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 62,
"end_line": 362,
"start_col": 0,
"start_line": 361
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
post: FStar.Stubs.Reflection.Types.term ->
a: FStar.Stubs.Reflection.Types.term ->
ret_t: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Pulse.Reflection.Util.mk_abs",
"FStar.Stubs.Reflection.V2.Data.Q_Explicit",
"Pulse.Steel.Wrapper.Typing.with_local_body_post_body"
] | [] | false | false | false | true | false | let with_local_body_post (post a ret_t x: term) : term =
| mk_abs ret_t Q_Explicit (with_local_body_post_body post a x) | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.par_post | val par_post (u: universe) (aL aR postL postR: term) (x: var) : term | val par_post (u: universe) (aL aR postL postR: term) (x: var) : term | let par_post (u:universe) (aL aR:term) (postL postR:term) (x:var) : term =
let x_tm = RT.var_as_term x in
let postL = pack_ln (Tv_App postL (mk_fst u u aL aR x_tm, Q_Explicit)) in
let postR = pack_ln (Tv_App postR (mk_snd u u aL aR x_tm, Q_Explicit)) in
let post = mk_star postL postR in
RT.subst_term post [ R... | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 34,
"end_line": 180,
"start_col": 0,
"start_line": 175
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u134: FStar.Stubs.Reflection.Types.universe ->
aL: FStar.Stubs.Reflection.Types.term ->
aR: FStar.Stubs.Reflection.Types.term ->
postL: FStar.Stubs.Reflection.Types.term ->
postR: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.V2.Data.var
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.var",
"FStar.Reflection.Typing.subst_term",
"Prims.Cons",
"FStar.Reflection.Typing.subst_elt",
"FStar.Reflection.Typing.ND",
"Prims.Nil",
"Pulse.Reflection.Util.mk_star",
"FStar.Stubs.Refl... | [] | false | false | false | true | false | let par_post (u: universe) (aL aR postL postR: term) (x: var) : term =
| let x_tm = RT.var_as_term x in
let postL = pack_ln (Tv_App postL (mk_fst u u aL aR x_tm, Q_Explicit)) in
let postR = pack_ln (Tv_App postR (mk_snd u u aL aR x_tm, Q_Explicit)) in
let post = mk_star postL postR in
RT.subst_term post [RT.ND x 0] | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.return_stt_atomic_noeq_comp | val return_stt_atomic_noeq_comp (u: universe) (a x p: term) : term | val return_stt_atomic_noeq_comp (u: universe) (a x p: term) : term | let return_stt_atomic_noeq_comp (u:universe) (a:term) (x:term) (p:term) : term =
mk_stt_atomic_comp neutral_fv u a emp_inames_tm (pack_ln (Tv_App p (x, Q_Explicit))) p | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 88,
"end_line": 90,
"start_col": 0,
"start_line": 89
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u72: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"Pulse.Reflection.Util.mk_stt_atomic_comp",
"Pulse.Steel.Wrapper.Typing.neutral_fv",
"Pulse.Reflection.Util.emp_inames_tm",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_App",
"FStar.Pervas... | [] | false | false | false | true | false | let return_stt_atomic_noeq_comp (u: universe) (a x p: term) : term =
| mk_stt_atomic_comp neutral_fv u a emp_inames_tm (pack_ln (Tv_App p (x, Q_Explicit))) p | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.return_stt_ghost_noeq_comp | val return_stt_ghost_noeq_comp (u: universe) (a x p: term) : term | val return_stt_ghost_noeq_comp (u: universe) (a x p: term) : term | let return_stt_ghost_noeq_comp (u:universe) (a:term) (x:term) (p:term) : term =
mk_stt_ghost_comp u a (pack_ln (Tv_App p (x, Q_Explicit))) p | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 62,
"end_line": 127,
"start_col": 0,
"start_line": 126
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u107: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"Pulse.Reflection.Util.mk_stt_ghost_comp",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Stubs.Refl... | [] | false | false | false | true | false | let return_stt_ghost_noeq_comp (u: universe) (a x p: term) : term =
| mk_stt_ghost_comp u a (pack_ln (Tv_App p (x, Q_Explicit))) p | false |
Pulse.Steel.Wrapper.Typing.fsti | Pulse.Steel.Wrapper.Typing.elim_exists_post | val elim_exists_post : u174: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.V2.Data.var
-> FStar.Stubs.Reflection.Types.term | let elim_exists_post (u:universe) (a:term) (p:term) (x:var) =
let erased_a = mk_erased u a in
mk_abs erased_a Q_Explicit (elim_exists_post_body u a p x) | {
"file_name": "lib/steel/pulse/Pulse.Steel.Wrapper.Typing.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 60,
"end_line": 234,
"start_col": 0,
"start_line": 232
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file"... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
u174: FStar.Stubs.Reflection.Types.universe ->
a: FStar.Stubs.Reflection.Types.term ->
p: FStar.Stubs.Reflection.Types.term ->
x: FStar.Stubs.Reflection.V2.Data.var
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.universe",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.var",
"Pulse.Reflection.Util.mk_abs",
"FStar.Stubs.Reflection.V2.Data.Q_Explicit",
"Pulse.Steel.Wrapper.Typing.elim_exists_post_body",
"Pulse.Reflection.Util.mk_erased"
] | [] | false | false | false | true | false | let elim_exists_post (u: universe) (a p: term) (x: var) =
| let erased_a = mk_erased u a in
mk_abs erased_a Q_Explicit (elim_exists_post_body u a p x) | false | |
Vale.Inline.X64.Fswap_inline.fst | Vale.Inline.X64.Fswap_inline.lowstar_cswap_t | val lowstar_cswap_t : Type0 | let lowstar_cswap_t =
assert_norm (List.length cswap_dom + List.length ([]<:list arg) <= 3);
IX64.as_lowstar_sig_t_weak
3
arg_reg
cswap_regs_modified
cswap_xmms_modified
code_cswap
cswap_dom
[]
_
_
// The boolean here doesn't matter
(W.mk_prediction code_cswap cswap_dom [... | {
"file_name": "vale/code/arch/x64/interop/Vale.Inline.X64.Fswap_inline.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 77,
"end_line": 138,
"start_col": 0,
"start_line": 125
} | module Vale.Inline.X64.Fswap_inline
open FStar.Mul
open FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module DV = LowStar.BufferView.Down
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSi... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Print_Inline_s.fst.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Va... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_Inline_s",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.as_lowstar_sig_t_weak",
"Vale.Inline.X64.Fswap_inline.arg_reg",
"Vale.Inline.X64.Fswap_inline.cswap_regs_modified",
"Vale.Inline.X64.Fswap_inline.cswap_xmms_modified",
"Vale.X64.Machine_s.reg_xmm",
"Vale.Inline.X64.Fswap_inline.code_cswap",
"Vale.Inline.X64.Fswap_inline.cswap_dom",
"... | [] | false | false | false | true | true | let lowstar_cswap_t =
| assert_norm (List.length cswap_dom + List.length ([] <: list arg) <= 3);
IX64.as_lowstar_sig_t_weak 3 arg_reg cswap_regs_modified cswap_xmms_modified code_cswap cswap_dom []
_ _ (W.mk_prediction code_cswap cswap_dom [] (cswap_lemma code_cswap IA.win)) | false | |
Vale.SHA.PPC64LE.SHA_helpers.fsti | Vale.SHA.PPC64LE.SHA_helpers.update_multi_quads | val update_multi_quads (s: seq quad32) (hash_orig: hash256) : Tot (hash256) (decreases (length s)) | val update_multi_quads (s: seq quad32) (hash_orig: hash256) : Tot (hash256) (decreases (length s)) | let rec update_multi_quads (s:seq quad32) (hash_orig:hash256) : Tot (hash256) (decreases (length s))
=
if length s < 4 then
hash_orig
else
let prefix, qs = split s (length s - 4) in
let h_prefix = update_multi_quads prefix hash_orig in
let hash = update_block h_prefix (quads_to_block_be qs) in
... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 267,
"start_col": 0,
"start_line": 259
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Def.Sel
open Vale.SHA2.Wrapper
open Vale.Def.Words.Four_s
unfold let (.[]) = FStar.Seq.index
#reset-option... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Sel.fst.checked",
"Vale.Def.... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.TypesNative",
"short_module": null
},
{
"abbrev": false,
"full... | {
"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 | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Prims.Tot Vale.SHA.PPC64LE.SHA_helpers.hash256 | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Prims.bool",
"Vale.SHA.PPC64LE.SHA_helpers.update_block",
"Vale.SHA.PPC64LE.SHA_helpers.quads_to_block_be",
"Vale.SHA.PPC64LE.SHA_helpers.update_multi_quads",
"FS... | [
"recursion"
] | false | false | false | true | false | let rec update_multi_quads (s: seq quad32) (hash_orig: hash256)
: Tot (hash256) (decreases (length s)) =
| if length s < 4
then hash_orig
else
let prefix, qs = split s (length s - 4) in
let h_prefix = update_multi_quads prefix hash_orig in
let hash = update_block h_prefix (quads_to_block_be qs) in
hash | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.