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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.instantiate_term_implicits | val instantiate_term_implicits (g:env) (t:term)
: T.Tac (term & term) | val instantiate_term_implicits (g:env) (t:term)
: T.Tac (term & term) | let instantiate_term_implicits (g:env) (t0:term) =
let f = elab_env g in
let rt = elab_term t0 in
let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in
let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in
T.log_issues issues;
match topt with
| None -> (
le... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 51,
"end_line": 226,
"start_col": 0,
"start_line": 194
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple3",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.namedv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Tactics... | [] | false | true | false | false | false | let instantiate_term_implicits (g: env) (t0: term) =
| let f = elab_env g in
let rt = elab_term t0 in
let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in
let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in
T.log_issues issues;
match topt with
| None ->
(let open Pulse.PP in
maybe_fail_doc issues
g
t0.range
... | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.check_vprop | val check_vprop (g:env)
(t:term)
: T.Tac (t:term & tot_typing g t tm_vprop) | val check_vprop (g:env)
(t:term)
: T.Tac (t:term & tot_typing g t tm_vprop) | let check_vprop (g:env)
(t:term)
: T.Tac (t:term & tot_typing g t tm_vprop) =
check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 73,
"end_line": 459,
"start_col": 0,
"start_line": 456
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(Prims.dtuple2 Pulse.Syntax.Base.term
(fun t -> Pulse.Typing.tot_typing g t Pulse.Syntax.Base.tm_vprop)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Checker.Pure.check_term",
"Pulse.Typing.Env.push_context_no_range",
"FStar.Stubs.TypeChecker.Core.E_Total",
"Pulse.Syntax.Base.tm_vprop",
"Prims.dtuple2",
"Pulse.Typing.typing",
"Pulse.Typing.tot_typing"
] | [] | false | true | false | false | false | let check_vprop (g: env) (t: term) : T.Tac (t: term & tot_typing g t tm_vprop) =
| check_term (push_context_no_range g "check_vprop") t T.E_Total tm_vprop | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.get_non_informative_witness | val get_non_informative_witness (g:env) (u:universe) (t:term)
: T.Tac (non_informative_t g u t) | val get_non_informative_witness (g:env) (u:universe) (t:term)
: T.Tac (non_informative_t g u t) | let get_non_informative_witness g u t
: T.Tac (non_informative_t g u t)
= match try_get_non_informative_witness g u t with
| None ->
let open Pulse.PP in
fail_doc g (Some t.range) [
text "Expected a term with a non-informative (e.g., erased) type; got"
^/^ pp t
]
| Some e... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 531,
"start_col": 0,
"start_line": 522
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> u229: Pulse.Syntax.Base.universe -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac (Pulse.Typing.non_informative_t g u229 t) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.term",
"Pulse.Typing.Env.fail_doc",
"Pulse.Typing.non_informative_t",
"FStar.Pervasives.Native.Some",
"Pulse.Syntax.Base.range",
"Pulse.Syntax.Base.__proj__Mkterm__item__range",
"Prims.list",
"FStar.Stubs.Pprint.document",
... | [] | false | true | false | false | false | let get_non_informative_witness g u t : T.Tac (non_informative_t g u t) =
| match try_get_non_informative_witness g u t with
| None ->
let open Pulse.PP in
fail_doc g
(Some t.range)
[text "Expected a term with a non-informative (e.g., erased) type; got" ^/^ pp t]
| Some e -> e | false |
EverCrypt.Chacha20Poly1305.fst | EverCrypt.Chacha20Poly1305.aead_decrypt | val aead_decrypt:
k:lbuffer uint8 32ul -> // key
n:lbuffer uint8 12ul -> // nonce
aadlen:size_t ->
aad:lbuffer uint8 aadlen ->
(mlen:size_t{v mlen + 16 <= max_size_t /\ v aadlen + v mlen / 64 <= max_size_t}) ->
m:lbuffer uint8 mlen -> // output: buffer for decrypted plaintext
c:lbuffer uint8 mlen -> // i... | val aead_decrypt:
k:lbuffer uint8 32ul -> // key
n:lbuffer uint8 12ul -> // nonce
aadlen:size_t ->
aad:lbuffer uint8 aadlen ->
(mlen:size_t{v mlen + 16 <= max_size_t /\ v aadlen + v mlen / 64 <= max_size_t}) ->
m:lbuffer uint8 mlen -> // output: buffer for decrypted plaintext
c:lbuffer uint8 mlen -> // i... | let aead_decrypt k n aadlen aad mlen m cipher tag =
let vec256 = EverCrypt.AutoConfig2.has_vec256 () in
let vec128 = EverCrypt.AutoConfig2.has_vec128 () in
if EverCrypt.TargetConfig.hacl_can_compile_vec256 && vec256 then begin
LowStar.Ignore.ignore vec128;
Hacl.Chacha20Poly1305_256.decrypt m cipher mlen ... | {
"file_name": "providers/evercrypt/fst/EverCrypt.Chacha20Poly1305.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 48,
"start_col": 0,
"start_line": 32
} | module EverCrypt.Chacha20Poly1305
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module Seq = Lib.Sequence
open FStar.Mul
module Spec = Spec.Chacha20Poly1305
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 20"
let aead_encryp... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Chacha20Poly1305_32.fst.checked"... | [
{
"abbrev": true,
"full_module": "Spec.Chacha20Poly1305",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module... | {
"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 |
k: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 12ul ->
aadlen: Lib.IntTypes.size_t ->
aad: Lib.Buffer.lbuffer Lib.IntTypes.uint8 aadlen ->
mlen:
Lib.IntTypes.size_t
{ Lib.IntTypes.v mlen + 16 <= Lib.IntTypes.max_size_t /\
Lib.IntTyp... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.max_size_t",
"Prims.op_Division",
"Prims.op_Am... | [] | false | true | false | false | false | let aead_decrypt k n aadlen aad mlen m cipher tag =
| let vec256 = EverCrypt.AutoConfig2.has_vec256 () in
let vec128 = EverCrypt.AutoConfig2.has_vec128 () in
if EverCrypt.TargetConfig.hacl_can_compile_vec256 && vec256
then
(LowStar.Ignore.ignore vec128;
Hacl.Chacha20Poly1305_256.decrypt m cipher mlen aad aadlen k n tag)
else
if EverCrypt.TargetConfig.hacl_can_comp... | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.check_prop_validity | val check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop)
: T.Tac (Pulse.Typing.prop_validity g p) | val check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop)
: T.Tac (Pulse.Typing.prop_validity g p) | let check_prop_validity (g:env) (p:term) (_:tot_typing g p tm_prop)
: T.Tac (Pulse.Typing.prop_validity g p)
= let t_opt, issues = rtb_check_prop_validity g false (elab_env g) (elab_term p) in
T.log_issues issues;
match t_opt with
| None ->
let open Pulse.PP in
maybe_fail_doc issues g p.ran... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 548,
"start_col": 0,
"start_line": 539
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
g: Pulse.Typing.Env.env ->
p: Pulse.Syntax.Base.term ->
_: Pulse.Typing.tot_typing g p Pulse.Typing.tm_prop
-> FStar.Tactics.Effect.Tac (Pulse.Typing.prop_validity g p) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot_typing",
"Pulse.Typing.tm_prop",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Tactics.V2.Builtins.prop_validity_token",
"Pulse.Typing.elab_env",
"Pulse.Elaborate.Pure.elab_term",
"FStar.Stubs.Tactics.Types.issues",
"Pulse.Checke... | [] | false | true | false | false | false | let check_prop_validity (g: env) (p: term) (_: tot_typing g p tm_prop)
: T.Tac (Pulse.Typing.prop_validity g p) =
| let t_opt, issues = rtb_check_prop_validity g false (elab_env g) (elab_term p) in
T.log_issues issues;
match t_opt with
| None ->
let open Pulse.PP in maybe_fail_doc issues g p.range [text "Failed to prove property:" ^/^ pp p]
| Some tok -> tok | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.compute_tot_term_type_and_u | val compute_tot_term_type_and_u (g:env) (t:term)
: T.Tac (t:term &
u:universe &
ty:typ &
universe_of g ty u &
tot_typing g t ty) | val compute_tot_term_type_and_u (g:env) (t:term)
: T.Tac (t:term &
u:universe &
ty:typ &
universe_of g ty u &
tot_typing g t ty) | let compute_tot_term_type_and_u g t =
let (| t, eff, ty, (| u, ty_typing |), t_typing |) = compute_term_type_and_u g t in
if eff = T.E_Total then (| t, u, ty, ty_typing, t_typing |)
else fail_expected_tot_found_ghost g t | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 562,
"start_col": 0,
"start_line": 559
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple5 Pulse.Syntax.Base.term
(fun _ -> Pulse.Syntax.Base.universe)
(fun _ _ -> Pulse.Syntax.Base.typ)
(fun _ u274 ty -> Pulse.Typing.universe_of g ty u274)
(fun t _ ty _ -> Pulse.Ty... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"Pulse.Syntax.Base.universe",
"Pulse.Typing.universe_of",
"Pulse.Typing.typing",
"Prims.op_Equality",
"FStar.Stubs.TypeChecker.Core.E_Total",
"FStar.Pervasives.Mkdtuple5",
"Pulse.Syntax.Base.typ",
"Pul... | [] | false | true | false | false | false | let compute_tot_term_type_and_u g t =
| let (| t , eff , ty , (| u , ty_typing |) , t_typing |) = compute_term_type_and_u g t in
if eff = T.E_Total then (| t, u, ty, ty_typing, t_typing |) else fail_expected_tot_found_ghost g t | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.check_subtyping | val check_subtyping (g:env) (t1 t2 : term)
: T.Tac (subtyping_token g t1 t2) | val check_subtyping (g:env) (t1 t2 : term)
: T.Tac (subtyping_token g t1 t2) | let check_subtyping g t1 t2 =
T.with_policy SMTSync (fun () ->
let res, issues = rtb_check_subtyping g t1 t2 in
T.log_issues issues;
match res with
| Some tok -> tok
| None ->
let open Pulse.PP in
maybe_fail_doc issues g t1.range
[ text "Could not prove subtyping of "
^/^ pp t1... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 591,
"start_col": 0,
"start_line": 580
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t1: Pulse.Syntax.Base.term -> t2: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac (Pulse.Typing.subtyping_token g t1 t2) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Tactics.V2.Derived.with_policy",
"Pulse.Typing.subtyping_token",
"FStar.Stubs.Tactics.Types.SMTSync",
"Prims.unit",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Tactics.Types.issues",
"Pulse.Checker.Pure.maybe_fail_doc",
"Pulse.Syntax.Base... | [] | false | true | false | false | false | let check_subtyping g t1 t2 =
| T.with_policy SMTSync
(fun () ->
let res, issues = rtb_check_subtyping g t1 t2 in
T.log_issues issues;
match res with
| Some tok -> tok
| None ->
let open Pulse.PP in
maybe_fail_doc issues
g
t1.range
[text "Could not prove subtyping of " ^/^ ... | false |
Hacl.Spec.Bignum.AlmostMontgomery.fst | Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_sqr | val bn_almost_mont_sqr:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen ->
lbignum t nLen | val bn_almost_mont_sqr:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen ->
lbignum t nLen | let bn_almost_mont_sqr #t #nLen n mu aM =
let c = BN.bn_mul aM aM in // c = aM * aM
bn_almost_mont_reduction n mu c | {
"file_name": "code/bignum/Hacl.Spec.Bignum.AlmostMontgomery.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 33,
"start_col": 0,
"start_line": 31
} | module Hacl.Spec.Bignum.AlmostMontgomery
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Base
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BN = Hacl.Spec.Bignum
module BM = Hacl.Spec.Bignum.Montgomery
friend Hacl.Spec.Bignum.Montgomery
#reset-options "--... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Definitions.fst.check... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": true,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
mu: Hacl.Spec.Bignum.Definitions.limb t ->
aM: Hacl.Spec.Bignum.Definitions.lbignum t nLen
-> Hacl.Spec.Bignum.Definitions.lbignum t nLen | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.limb",
"Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_reduction",
"Hacl.... | [] | false | false | false | false | false | let bn_almost_mont_sqr #t #nLen n mu aM =
| let c = BN.bn_mul aM aM in
bn_almost_mont_reduction n mu c | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.compute_tot_term_type | val compute_tot_term_type (g:env) (t:term)
: T.Tac (t:term & ty:typ & tot_typing g t ty) | val compute_tot_term_type (g:env) (t:term)
: T.Tac (t:term & ty:typ & tot_typing g t ty) | let compute_tot_term_type g t =
let (| t, eff, ty, t_typing |) = compute_term_type g t in
if eff = T.E_Total then (| t, ty, t_typing |)
else fail_expected_tot_found_ghost g t | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 557,
"start_col": 0,
"start_line": 554
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple3 Pulse.Syntax.Base.term
(fun _ -> Pulse.Syntax.Base.typ)
(fun t ty -> Pulse.Typing.tot_typing g t ty)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"Pulse.Typing.typing",
"Prims.op_Equality",
"FStar.Stubs.TypeChecker.Core.E_Total",
"FStar.Pervasives.Mkdtuple3",
"Pulse.Syntax.Base.typ",
"Pulse.Typing.tot_typing",
"FStar.Pervasives.dtuple3",
"Prims.... | [] | false | true | false | false | false | let compute_tot_term_type g t =
| let (| t , eff , ty , t_typing |) = compute_term_type g t in
if eff = T.E_Total then (| t, ty, t_typing |) else fail_expected_tot_found_ghost g t | false |
Hacl.Spec.Bignum.AlmostMontgomery.fst | Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_mul | val bn_almost_mont_mul:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen
-> bM:lbignum t nLen ->
lbignum t nLen | val bn_almost_mont_mul:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen
-> bM:lbignum t nLen ->
lbignum t nLen | let bn_almost_mont_mul #t #nLen n mu aM bM =
let c = BN.bn_mul aM bM in // c = aM * bM
bn_almost_mont_reduction n mu c | {
"file_name": "code/bignum/Hacl.Spec.Bignum.AlmostMontgomery.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 29,
"start_col": 0,
"start_line": 27
} | module Hacl.Spec.Bignum.AlmostMontgomery
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Base
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BN = Hacl.Spec.Bignum
module BM = Hacl.Spec.Bignum.Montgomery
friend Hacl.Spec.Bignum.Montgomery
#reset-options "--... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Definitions.fst.check... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": true,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
mu: Hacl.Spec.Bignum.Definitions.limb t ->
aM: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
bM: Hacl.Spec.Bignum.Definitions.lbignum t nLen
-> Hacl.Spec.Bignum.Definitions.lbignum t nLen | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.limb",
"Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_reduction",
"Hacl.... | [] | false | false | false | false | false | let bn_almost_mont_mul #t #nLen n mu aM bM =
| let c = BN.bn_mul aM bM in
bn_almost_mont_reduction n mu c | false |
EverCrypt.Chacha20Poly1305.fst | EverCrypt.Chacha20Poly1305.aead_encrypt | val aead_encrypt:
k:lbuffer uint8 32ul -> // key
n:lbuffer uint8 12ul -> // nonce
aadlen:size_t ->
aad:lbuffer uint8 aadlen ->
(mlen:size_t{v mlen + 16 <= max_size_t /\ v aadlen + v mlen / 64 <= max_size_t}) ->
m:lbuffer uint8 mlen -> // input: plaintext
cipher:lbuffer uint8 mlen -> // output: buffer for ... | val aead_encrypt:
k:lbuffer uint8 32ul -> // key
n:lbuffer uint8 12ul -> // nonce
aadlen:size_t ->
aad:lbuffer uint8 aadlen ->
(mlen:size_t{v mlen + 16 <= max_size_t /\ v aadlen + v mlen / 64 <= max_size_t}) ->
m:lbuffer uint8 mlen -> // input: plaintext
cipher:lbuffer uint8 mlen -> // output: buffer for ... | let aead_encrypt k n aadlen aad mlen m cipher tag =
let vec256 = EverCrypt.AutoConfig2.has_vec256 () in
let vec128 = EverCrypt.AutoConfig2.has_vec128 () in
if EverCrypt.TargetConfig.hacl_can_compile_vec256 && vec256 then begin
LowStar.Ignore.ignore vec128;
Hacl.Chacha20Poly1305_256.encrypt cipher tag m ml... | {
"file_name": "providers/evercrypt/fst/EverCrypt.Chacha20Poly1305.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 30,
"start_col": 0,
"start_line": 16
} | module EverCrypt.Chacha20Poly1305
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
module Seq = Lib.Sequence
open FStar.Mul
module Spec = Spec.Chacha20Poly1305
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 20" | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20Poly1305.fst.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Chacha20Poly1305_32.fst.checked"... | [
{
"abbrev": true,
"full_module": "Spec.Chacha20Poly1305",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module... | {
"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 |
k: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 12ul ->
aadlen: Lib.IntTypes.size_t ->
aad: Lib.Buffer.lbuffer Lib.IntTypes.uint8 aadlen ->
mlen:
Lib.IntTypes.size_t
{ Lib.IntTypes.v mlen + 16 <= Lib.IntTypes.max_size_t /\
Lib.IntTyp... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.max_size_t",
"Prims.op_Division",
"Prims.op_Am... | [] | false | true | false | false | false | let aead_encrypt k n aadlen aad mlen m cipher tag =
| let vec256 = EverCrypt.AutoConfig2.has_vec256 () in
let vec128 = EverCrypt.AutoConfig2.has_vec128 () in
if EverCrypt.TargetConfig.hacl_can_compile_vec256 && vec256
then
(LowStar.Ignore.ignore vec128;
Hacl.Chacha20Poly1305_256.encrypt cipher tag m mlen aad aadlen k n)
else
if EverCrypt.TargetConfig.hacl_can_comp... | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.compute_term_type_and_u | val compute_term_type_and_u (g:env) (t:term)
: T.Tac (t:term &
eff:T.tot_or_ghost &
ty:term &
(u:universe & universe_of g ty u) &
typing g t eff ty) | val compute_term_type_and_u (g:env) (t:term)
: T.Tac (t:term &
eff:T.tot_or_ghost &
ty:term &
(u:universe & universe_of g ty u) &
typing g t eff ty) | let compute_term_type_and_u (g:env) (t:term)
: T.Tac (t:term &
eff:T.tot_or_ghost &
ty:term &
(u:universe & universe_of g ty u) &
typing g t eff ty)
= let fg = elab_env g in
let rt = elab_term t in
let res, issues = tc_meta_callback g fg rt in
T.log_issues iss... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 45,
"end_line": 347,
"start_col": 0,
"start_line": 326
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple5 Pulse.Syntax.Base.term
(fun _ -> FStar.Stubs.TypeChecker.Core.tot_or_ghost)
(fun _ _ -> Pulse.Syntax.Base.term)
(fun _ _ ty ->
Prims.dtuple2 Pulse.Syntax.Base.universe
... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.dtuple4",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"FStar.Reflection.Typing.typing",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.typ",
... | [] | false | true | false | false | false | let compute_term_type_and_u (g: env) (t: term)
: T.Tac
(t: term &
eff: T.tot_or_ghost &
ty: term &
(u: universe & universe_of g ty u) &
typing g t eff ty) =
| let fg = elab_env g in
let rt = elab_term t in
let res, issues = tc_meta_callback g fg rt in
T.log_issues issues;
match res with
| None -> maybe_fail_doc issues g t.range (ill_typed_term t None None)
| Some (| rt , eff , ty' , tok |) ->
match readback_ty rt, readback_ty ty' with
| None, _ -> fail g (Some t.range) (... | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.check_vprop_with_core | val check_vprop_with_core (g:env)
(t:term)
: T.Tac (tot_typing g t tm_vprop) | val check_vprop_with_core (g:env)
(t:term)
: T.Tac (tot_typing g t tm_vprop) | let check_vprop_with_core (g:env)
(t:term)
: T.Tac (tot_typing g t tm_vprop) =
core_check_term
(push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 74,
"end_line": 466,
"start_col": 0,
"start_line": 461
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac (Pulse.Typing.tot_typing g t Pulse.Syntax.Base.tm_vprop) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Checker.Pure.core_check_term",
"Pulse.Typing.Env.push_context_no_range",
"FStar.Stubs.TypeChecker.Core.E_Total",
"Pulse.Syntax.Base.tm_vprop",
"Pulse.Typing.typing",
"Pulse.Typing.tot_typing"
] | [] | false | true | false | false | false | let check_vprop_with_core (g: env) (t: term) : T.Tac (tot_typing g t tm_vprop) =
| core_check_term (push_context_no_range g "check_vprop_with_core") t T.E_Total tm_vprop | false |
Spec.Loops.fst | Spec.Loops.repeat | val repeat: #a:Type -> n:nat -> (f: a -> Tot a) -> a -> Tot a (decreases n) | val repeat: #a:Type -> n:nat -> (f: a -> Tot a) -> a -> Tot a (decreases n) | let rec repeat #a n f x =
if n = 0 then x else repeat (n-1) f (f x) | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 43,
"end_line": 35,
"start_col": 0,
"start_line": 34
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> f: (f: a -> a) -> x: a -> Prims.Tot a | Prims.Tot | [
"total",
""
] | [] | [
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Spec.Loops.repeat",
"Prims.op_Subtraction"
] | [
"recursion"
] | false | false | false | true | false | let rec repeat #a n f x =
| if n = 0 then x else repeat (n - 1) f (f x) | false |
Hacl.Spec.Bignum.AlmostMontgomery.fst | Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_reduction | val bn_almost_mont_reduction:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> c:lbignum t (nLen + nLen) ->
lbignum t nLen | val bn_almost_mont_reduction:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> c:lbignum t (nLen + nLen) ->
lbignum t nLen | let bn_almost_mont_reduction #t #nLen n mu c =
let c0, res = BM.bn_mont_reduction_loop_div_r #t #nLen n mu c in
let mask = uint #t 0 -. c0 in
let c1, tmp = BN.bn_sub res n in
map2 (mask_select mask) tmp res | {
"file_name": "code/bignum/Hacl.Spec.Bignum.AlmostMontgomery.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 25,
"start_col": 0,
"start_line": 21
} | module Hacl.Spec.Bignum.AlmostMontgomery
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Base
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BN = Hacl.Spec.Bignum
module BM = Hacl.Spec.Bignum.Montgomery
friend Hacl.Spec.Bignum.Montgomery
#reset-options "--... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Definitions.fst.check... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": true,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
mu: Hacl.Spec.Bignum.Definitions.limb t ->
c: Hacl.Spec.Bignum.Definitions.lbignum t (nLen + nLen)
-> Hacl.Spec.Bignum.Definitions.lbignum t nLen | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.limb",
"Hacl.Spec.Bignum.Base.carry",
"Lib.Sequence.map2",
"Hacl.Spec.Big... | [] | false | false | false | false | false | let bn_almost_mont_reduction #t #nLen n mu c =
| let c0, res = BM.bn_mont_reduction_loop_div_r #t #nLen n mu c in
let mask = uint #t 0 -. c0 in
let c1, tmp = BN.bn_sub res n in
map2 (mask_select mask) tmp res | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.try_get_non_informative_witness | val try_get_non_informative_witness (g:env) (u:universe) (t:term)
: T.Tac (option (non_informative_t g u t)) | val try_get_non_informative_witness (g:env) (u:universe) (t:term)
: T.Tac (option (non_informative_t g u t)) | let try_get_non_informative_witness g u t
: T.Tac (option (non_informative_t g u t))
= let eopt =
let ropt = is_fvar_app t in
match ropt with
| Some (l, us, _, arg_opt) ->
if l = R.unit_lid
then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative")))
else if l... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 520,
"start_col": 0,
"start_line": 477
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> u220: Pulse.Syntax.Base.universe -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.Native.option (Pulse.Typing.non_informative_t g u220 t)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.None",
"Pulse.Typing.non_informative_t",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.Some",
"Prims.dtuple2",
"Pulse.Typing.typing",
"Pulse.Typing.Env.push_context_no_range",
"F... | [] | false | true | false | false | false | let try_get_non_informative_witness g u t : T.Tac (option (non_informative_t g u t)) =
| let eopt =
let ropt = is_fvar_app t in
match ropt with
| Some (l, us, _, arg_opt) ->
if l = R.unit_lid
then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "unit_non_informative")))
else
if l = R.prop_qn
then Some (tm_fvar (as_fv (mk_pulse_lib_core_lid "prop_non_informative")))
else
... | false |
Spec.Loops.fst | Spec.Loops.lemma_repeat_0 | val lemma_repeat_0 : n: Prims.nat{n = 0} -> f: (_: _ -> _) -> x: _
-> FStar.Pervasives.Lemma (ensures Spec.Loops.repeat n f x == x) | let lemma_repeat_0 = repeat_base | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 32,
"end_line": 81,
"start_col": 0,
"start_line": 81
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat{n = 0} -> f: (_: _ -> _) -> x: _
-> FStar.Pervasives.Lemma (ensures Spec.Loops.repeat n f x == x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Loops.repeat_base",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Spec.Loops.repeat",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let lemma_repeat_0 =
| repeat_base | false | |
Spec.Loops.fst | Spec.Loops.seq_map | val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s)) | val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s)) | let rec seq_map #a #b f s =
if Seq.length s = 0 then
Seq.empty
else
let s' = Seq.cons (f (Seq.head s)) (seq_map f (Seq.tail s)) in
s' | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 6,
"end_line": 17,
"start_col": 0,
"start_line": 12
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))}) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> b) -> s: FStar.Seq.Base.seq a
-> Prims.Tot
(s':
FStar.Seq.Base.seq b
{ FStar.Seq.Base.length s = FStar.Seq.Base.length s' /\
(forall (i: Prims.nat). {:pattern FStar.Seq.Base.index s' i}
i < FStar.Seq.Base.length s' ==>
FStar.Seq.Base.index s' i == f ... | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"FStar.Seq.Base.empty",
"Prims.bool",
"FStar.Seq.Base.cons",
"FStar.Seq.Properties.head",
"Spec.Loops.seq_map",
"FStar.Seq.Properties.tail",
"Prims.l_and",
"Prims.b2t",
"Prims.nat",
"Prims.l_Forall",
"Prims.... | [
"recursion"
] | false | false | false | false | false | let rec seq_map #a #b f s =
| if Seq.length s = 0
then Seq.empty
else
let s' = Seq.cons (f (Seq.head s)) (seq_map f (Seq.tail s)) in
s' | false |
Hacl.Spec.Bignum.AlmostMontgomery.fst | Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_sqr_lemma | val bn_almost_mont_sqr_lemma:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen -> Lemma
(requires BM.bn_mont_pre n mu)
(ensures
bn_v (bn_almost_mont_sqr n mu aM) ==
AM.almost_mont_mul (bits t) nLen (bn_v n) (v mu) (bn_v aM) (bn_v aM)) | val bn_almost_mont_sqr_lemma:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen -> Lemma
(requires BM.bn_mont_pre n mu)
(ensures
bn_v (bn_almost_mont_sqr n mu aM) ==
AM.almost_mont_mul (bits t) nLen (bn_v n) (v mu) (bn_v aM) (bn_v aM)) | let bn_almost_mont_sqr_lemma #t #nLen n mu aM =
bn_almost_mont_mul_lemma #t #nLen n mu aM aM | {
"file_name": "code/bignum/Hacl.Spec.Bignum.AlmostMontgomery.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 77,
"start_col": 0,
"start_line": 76
} | module Hacl.Spec.Bignum.AlmostMontgomery
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Base
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BN = Hacl.Spec.Bignum
module BM = Hacl.Spec.Bignum.Montgomery
friend Hacl.Spec.Bignum.Montgomery
#reset-options "--... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Definitions.fst.check... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": true,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
mu: Hacl.Spec.Bignum.Definitions.limb t ->
aM: Hacl.Spec.Bignum.Definitions.lbignum t nLen
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Montgomery.bn_mont_pre n mu)
(ensures
Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.AlmostM... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.limb",
"Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_mul_lemma",
"Prims... | [] | true | false | true | false | false | let bn_almost_mont_sqr_lemma #t #nLen n mu aM =
| bn_almost_mont_mul_lemma #t #nLen n mu aM aM | false |
Spec.Loops.fst | Spec.Loops.seq_map2 | val seq_map2:
#a:Type -> #b:Type -> #c:Type ->
f:(a -> b -> Tot c) ->
s:Seq.seq a -> s':Seq.seq b{Seq.length s = Seq.length s'} ->
Tot (s'':Seq.seq c{Seq.length s = Seq.length s'' /\
(forall (i:nat). {:pattern (Seq.index s'' i)} i < Seq.length s'' ==> Seq.index s'' i == f (Seq.index s i) (Seq.index s' i))})... | val seq_map2:
#a:Type -> #b:Type -> #c:Type ->
f:(a -> b -> Tot c) ->
s:Seq.seq a -> s':Seq.seq b{Seq.length s = Seq.length s'} ->
Tot (s'':Seq.seq c{Seq.length s = Seq.length s'' /\
(forall (i:nat). {:pattern (Seq.index s'' i)} i < Seq.length s'' ==> Seq.index s'' i == f (Seq.index s i) (Seq.index s' i))})... | let rec seq_map2 #a #b #c f s s' =
if Seq.length s = 0 then Seq.empty
else
let s'' = Seq.cons (f (Seq.head s) (Seq.head s')) (seq_map2 f (Seq.tail s) (Seq.tail s')) in
s'' | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 7,
"end_line": 31,
"start_col": 0,
"start_line": 27
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: (_: a -> _: b -> c) ->
s: FStar.Seq.Base.seq a ->
s': FStar.Seq.Base.seq b {FStar.Seq.Base.length s = FStar.Seq.Base.length s'}
-> Prims.Tot
(s'':
FStar.Seq.Base.seq c
{ FStar.Seq.Base.length s = FStar.Seq.Base.length s'' /\
(forall (i: Prims.nat). {:pattern FStar.Seq.Base.... | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.Seq.Base.length",
"Prims.int",
"FStar.Seq.Base.empty",
"Prims.bool",
"FStar.Seq.Base.cons",
"FStar.Seq.Properties.head",
"Spec.Loops.seq_map2",
"FStar.Seq.Properties.tail",
"Prims.l_and",
"Prims.l_Forall",
"Prims... | [
"recursion"
] | false | false | false | false | false | let rec seq_map2 #a #b #c f s s' =
| if Seq.length s = 0
then Seq.empty
else
let s'' = Seq.cons (f (Seq.head s) (Seq.head s')) (seq_map2 f (Seq.tail s) (Seq.tail s')) in
s'' | false |
Spec.Loops.fst | Spec.Loops.repeat_spec | val repeat_spec : n: Prims.nat -> f: (f: _ -> _) -> x: _ -> Prims.Tot _ | let repeat_spec = repeat | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 24,
"end_line": 78,
"start_col": 0,
"start_line": 78
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> f: (f: _ -> _) -> x: _ -> Prims.Tot _ | Prims.Tot | [
"total",
""
] | [] | [
"Spec.Loops.repeat",
"Prims.nat"
] | [] | false | false | false | true | false | let repeat_spec =
| repeat | false | |
Spec.Loops.fst | Spec.Loops.repeat_induction | val repeat_induction: #a:Type -> n:nat{n > 0} -> f:( a -> Tot a) -> x:a -> Lemma
(repeat n f x == f (repeat (n-1) f x)) | val repeat_induction: #a:Type -> n:nat{n > 0} -> f:( a -> Tot a) -> x:a -> Lemma
(repeat n f x == f (repeat (n-1) f x)) | let rec repeat_induction #a n f x =
if n = 1 then ()
else repeat_induction (n-1) f (f x) | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 37,
"end_line": 43,
"start_col": 0,
"start_line": 41
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"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{n > 0} -> f: (_: a -> a) -> x: a
-> FStar.Pervasives.Lemma (ensures Spec.Loops.repeat n f x == f (Spec.Loops.repeat (n - 1) f x)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Spec.Loops.repeat_induction",
"Prims.op_Subtraction",
"Prims.unit"
] | [
"recursion"
] | false | false | true | false | false | let rec repeat_induction #a n f x =
| if n = 1 then () else repeat_induction (n - 1) f (f x) | false |
Spec.Loops.fst | Spec.Loops.lemma_repeat_range_0 | val lemma_repeat_range_0 : min: Prims.nat -> f: (_: _ -> i: Prims.nat{i < min} -> _) -> x: _
-> FStar.Pervasives.Lemma (ensures Spec.Loops.repeat_range min min f x == x) | let lemma_repeat_range_0 = repeat_range_base | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 44,
"end_line": 91,
"start_col": 0,
"start_line": 91
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | min: Prims.nat -> f: (_: _ -> i: Prims.nat{i < min} -> _) -> x: _
-> FStar.Pervasives.Lemma (ensures Spec.Loops.repeat_range min min f x == x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Loops.repeat_range_base",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Spec.Loops.repeat_range",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let lemma_repeat_range_0 =
| repeat_range_base | false | |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.compute_term_type | val compute_term_type (g:env) (t:term)
: T.Tac (t:term &
eff:T.tot_or_ghost &
ty:term &
typing g t eff ty) | val compute_term_type (g:env) (t:term)
: T.Tac (t:term &
eff:T.tot_or_ghost &
ty:term &
typing g t eff ty) | let compute_term_type (g:env) (t:term)
: T.Tac (t:term &
eff:T.tot_or_ghost &
ty:term &
typing g t eff ty)
= let fg = elab_env g in
let rt = elab_term t in
debug g (fun _ ->
Printf.sprintf "check_tot : called on %s elaborated to %s"
(P.term_... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 50,
"end_line": 323,
"start_col": 0,
"start_line": 302
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple4 Pulse.Syntax.Base.term
(fun _ -> FStar.Stubs.TypeChecker.Core.tot_or_ghost)
(fun _ _ -> Pulse.Syntax.Base.term)
(fun t eff ty -> Pulse.Typing.typing g t eff ty)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.dtuple4",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"FStar.Reflection.Typing.typing",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.typ",
... | [] | false | true | false | false | false | let compute_term_type (g: env) (t: term)
: T.Tac (t: term & eff: T.tot_or_ghost & ty: term & typing g t eff ty) =
| let fg = elab_env g in
let rt = elab_term t in
debug g
(fun _ ->
Printf.sprintf "check_tot : called on %s elaborated to %s"
(P.term_to_string t)
(T.term_to_string rt));
let res, issues = tc_meta_callback g fg rt in
T.log_issues issues;
match res with
| None -> maybe_fail_doc issues g t.range (il... | false |
Spec.Loops.fst | Spec.Loops.lemma_repeat_range_spec | val lemma_repeat_range_spec : min: Prims.nat -> max: Prims.nat{min < max} -> f: (_: _ -> i: Prims.nat{i < max} -> _) -> x: _
-> FStar.Pervasives.Lemma
(ensures
f (Spec.Loops.repeat_range min (max - 1) f x) (max - 1) ==
Spec.Loops.repeat_range min max f x) (decreases max - min) | let lemma_repeat_range_spec = repeat_range_induction | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 52,
"end_line": 94,
"start_col": 0,
"start_line": 94
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | min: Prims.nat -> max: Prims.nat{min < max} -> f: (_: _ -> i: Prims.nat{i < max} -> _) -> x: _
-> FStar.Pervasives.Lemma
(ensures
f (Spec.Loops.repeat_range min (max - 1) f x) (max - 1) ==
Spec.Loops.repeat_range min max f x) (decreases max - min) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Spec.Loops.repeat_range_induction",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.unit",
"Prims.op_Subtraction",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Spec.Loops.repeat_range",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let lemma_repeat_range_spec =
| repeat_range_induction | false | |
Spec.Loops.fst | Spec.Loops.repeat_range_spec | val repeat_range_spec : min: Prims.nat -> max: Prims.nat{min <= max} -> f: (_: _ -> i: Prims.nat{i < max} -> _) -> x: _
-> Prims.Tot _ | let repeat_range_spec = repeat_range | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 36,
"end_line": 88,
"start_col": 0,
"start_line": 88
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | min: Prims.nat -> max: Prims.nat{min <= max} -> f: (_: _ -> i: Prims.nat{i < max} -> _) -> x: _
-> Prims.Tot _ | Prims.Tot | [
"total",
""
] | [] | [
"Spec.Loops.repeat_range",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let repeat_range_spec =
| repeat_range | false | |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.core_compute_tot_term_type | val core_compute_tot_term_type (g:env) (t:term)
: T.Tac (ty:typ &
tot_typing g t ty) | val core_compute_tot_term_type (g:env) (t:term)
: T.Tac (ty:typ &
tot_typing g t ty) | let core_compute_tot_term_type g t =
let (| eff, ty, d |) = core_compute_term_type g t in
if eff = T.E_Total then (| ty, d |)
else fail_expected_tot_found_ghost g t | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 570,
"start_col": 0,
"start_line": 567
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(Prims.dtuple2 Pulse.Syntax.Base.typ (fun ty -> Pulse.Typing.tot_typing g t ty)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"Pulse.Typing.typing",
"Prims.op_Equality",
"FStar.Stubs.TypeChecker.Core.E_Total",
"Prims.Mkdtuple2",
"Pulse.Syntax.Base.typ",
"Pulse.Typing.tot_typing",
"Prims.dtuple2",
"Prims.bool",
"Pulse.Checke... | [] | false | true | false | false | false | let core_compute_tot_term_type g t =
| let (| eff , ty , d |) = core_compute_term_type g t in
if eff = T.E_Total then (| ty, d |) else fail_expected_tot_found_ghost g t | false |
Spec.Loops.fst | Spec.Loops.lemma_repeat | val lemma_repeat : n: Prims.nat{n > 0} -> f: (_: _ -> _) -> x: _
-> FStar.Pervasives.Lemma (ensures Spec.Loops.repeat n f x == f (Spec.Loops.repeat (n - 1) f x)) | let lemma_repeat = repeat_induction | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 35,
"end_line": 84,
"start_col": 0,
"start_line": 84
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat{n > 0} -> f: (_: _ -> _) -> x: _
-> FStar.Pervasives.Lemma (ensures Spec.Loops.repeat n f x == f (Spec.Loops.repeat (n - 1) f x)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Loops.repeat_induction",
"Prims.nat",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Spec.Loops.repeat",
"Prims.op_Subtraction",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let lemma_repeat =
| repeat_induction | false | |
Spec.Loops.fst | Spec.Loops.repeat_range | val repeat_range: #a:Type -> min:nat -> max:nat{min <= max} -> f:(a -> i:nat{i < max} -> Tot a) ->
x:a -> Tot a (decreases (max - min)) | val repeat_range: #a:Type -> min:nat -> max:nat{min <= max} -> f:(a -> i:nat{i < max} -> Tot a) ->
x:a -> Tot a (decreases (max - min)) | let rec repeat_range #a min max f x =
if min = max then x
else repeat_range (min+1) max f (f x min) | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 43,
"end_line": 55,
"start_col": 0,
"start_line": 53
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | min: Prims.nat -> max: Prims.nat{min <= max} -> f: (_: a -> i: Prims.nat{i < max} -> a) -> x: a
-> Prims.Tot a | Prims.Tot | [
"total",
""
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Equality",
"Prims.bool",
"Spec.Loops.repeat_range",
"Prims.op_Addition"
] | [
"recursion"
] | false | false | false | false | false | let rec repeat_range #a min max f x =
| if min = max then x else repeat_range (min + 1) max f (f x min) | false |
Hacl.Spec.Bignum.AlmostMontgomery.fst | Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_mul_lemma | val bn_almost_mont_mul_lemma:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen
-> bM:lbignum t nLen -> Lemma
(requires BM.bn_mont_pre n mu)
(ensures
bn_v (bn_almost_mont_mul n mu aM bM) ==
AM.almost_mont_mul (bits t) nLen (bn_v n) (v ... | val bn_almost_mont_mul_lemma:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> aM:lbignum t nLen
-> bM:lbignum t nLen -> Lemma
(requires BM.bn_mont_pre n mu)
(ensures
bn_v (bn_almost_mont_mul n mu aM bM) ==
AM.almost_mont_mul (bits t) nLen (bn_v n) (v ... | let bn_almost_mont_mul_lemma #t #nLen n mu aM bM =
let r = pow2 (bits t * nLen) in
let c = BN.bn_mul aM bM in
BN.bn_mul_lemma aM bM;
assert (bn_v c == bn_v aM * bn_v bM);
bn_almost_mont_reduction_lemma n mu c | {
"file_name": "code/bignum/Hacl.Spec.Bignum.AlmostMontgomery.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 73,
"start_col": 0,
"start_line": 68
} | module Hacl.Spec.Bignum.AlmostMontgomery
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Base
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BN = Hacl.Spec.Bignum
module BM = Hacl.Spec.Bignum.Montgomery
friend Hacl.Spec.Bignum.Montgomery
#reset-options "--... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Definitions.fst.check... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": true,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
mu: Hacl.Spec.Bignum.Definitions.limb t ->
aM: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
bM: Hacl.Spec.Bignum.Definitions.lbignum t nLen
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Montgomery.bn_mont_pre n mu)
(ensures
Hacl... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.limb",
"Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_reduction_lemma",
... | [] | true | false | true | false | false | let bn_almost_mont_mul_lemma #t #nLen n mu aM bM =
| let r = pow2 (bits t * nLen) in
let c = BN.bn_mul aM bM in
BN.bn_mul_lemma aM bM;
assert (bn_v c == bn_v aM * bn_v bM);
bn_almost_mont_reduction_lemma n mu c | false |
Vale.SHA.PPC64LE.Rounds.Core.fst | Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_d | val va_lemma_Loop_rounds_0_59_d : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_d i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (i == 12) (i == 28)) (i == 44) /\ va_get_reg ... | val va_lemma_Loop_rounds_0_59_d : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_d i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (i == 12) (i == 28)) (i == 44) /\ va_get_reg ... | let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig =
let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec
22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16;
va_Mod_reg 6; va_Mod_ok] in
let va_qc = va_qcode... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1446,
"start_col": 0,
"start_line": 1404
} | module Vale.SHA.PPC64LE.Rounds.Core
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memo... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.PPC64LE.Decls.va_code ->
va_s0: Vale.PPC64LE.Decls.va_state ->
i: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_f... | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Decls.va_code",
"Vale.PPC64LE.Decls.va_state",
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.PPC64LE.Decls.va_fuel",... | [] | false | false | false | false | false | let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig =
| let va_mods:va_mods_t =
[
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6;
va_Mod_ok
]
in
let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in
let va_sM, ... | false |
Hacl.Spec.Bignum.AlmostMontgomery.fst | Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_reduction_lemma | val bn_almost_mont_reduction_lemma:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> c:lbignum t (nLen + nLen) -> Lemma
(requires BM.bn_mont_pre n mu)
(ensures
bn_v (bn_almost_mont_reduction n mu c) ==
AM.almost_mont_reduction (bits t) nLen (bn_v n) (v m... | val bn_almost_mont_reduction_lemma:
#t:limb_t
-> #nLen:size_pos{nLen + nLen <= max_size_t}
-> n:lbignum t nLen
-> mu:limb t
-> c:lbignum t (nLen + nLen) -> Lemma
(requires BM.bn_mont_pre n mu)
(ensures
bn_v (bn_almost_mont_reduction n mu c) ==
AM.almost_mont_reduction (bits t) nLen (bn_v n) (v m... | let bn_almost_mont_reduction_lemma #t #nLen n mu res0 =
let pbits = bits t in
let r = pow2 (pbits * nLen) in
let r2 = pow2 (pbits * (nLen + nLen)) in
Math.Lemmas.pow2_plus (pbits * nLen) (pbits * nLen);
assert (r2 == r * r);
let c0, res1 = BM.bn_mont_reduction_loop_div_r #t #nLen n mu res0 in
let resM1 =... | {
"file_name": "code/bignum/Hacl.Spec.Bignum.AlmostMontgomery.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 65,
"start_col": 0,
"start_line": 36
} | module Hacl.Spec.Bignum.AlmostMontgomery
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Base
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BN = Hacl.Spec.Bignum
module BM = Hacl.Spec.Bignum.Montgomery
friend Hacl.Spec.Bignum.Montgomery
#reset-options "--... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fst.checked",
"Hacl.Spec.Bignum.Definitions.fst.check... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": true,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen ->
mu: Hacl.Spec.Bignum.Definitions.limb t ->
c: Hacl.Spec.Bignum.Definitions.lbignum t (nLen + nLen)
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Montgomery.bn_mont_pre n mu)
(ensures
Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Lib.IntTypes.size_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.max_size_t",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.limb",
"Hacl.Spec.Bignum.Base.carry",
"Prims._assert",
"Prims.op_LessThan... | [] | false | false | true | false | false | let bn_almost_mont_reduction_lemma #t #nLen n mu res0 =
| let pbits = bits t in
let r = pow2 (pbits * nLen) in
let r2 = pow2 (pbits * (nLen + nLen)) in
Math.Lemmas.pow2_plus (pbits * nLen) (pbits * nLen);
assert (r2 == r * r);
let c0, res1 = BM.bn_mont_reduction_loop_div_r #t #nLen n mu res0 in
let resM1 = M.mont_reduction_loop_div_r (bits t) nLen (bn_v n) (v mu) (bn_v res0) ... | false |
Vale.SHA.PPC64LE.Rounds.Core.fst | Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_c | val va_lemma_Loop_rounds_0_59_c : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_c i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (l_or (i == 8) (i == 24)) (i == 40)) (i == 56... | val va_lemma_Loop_rounds_0_59_c : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_c i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (l_or (i == 8) (i == 24)) (i == 40)) (i == 56... | let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig =
let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec
22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16;
va_Mod_reg 6; va_Mod_ok] in
let va_qc = va_qcode... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1313,
"start_col": 0,
"start_line": 1271
} | module Vale.SHA.PPC64LE.Rounds.Core
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memo... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.PPC64LE.Decls.va_code ->
va_s0: Vale.PPC64LE.Decls.va_state ->
i: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_f... | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Decls.va_code",
"Vale.PPC64LE.Decls.va_state",
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.PPC64LE.Decls.va_fuel",... | [] | false | false | false | false | false | let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig =
| let va_mods:va_mods_t =
[
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6;
va_Mod_ok
]
in
let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in
let va_sM, ... | false |
Spec.Loops.fst | Spec.Loops.repeat_range_induction | val repeat_range_induction:
#a:Type -> min:nat -> max:nat{min < max} -> f:(a -> i:nat{i < max} -> Tot a) -> x:a ->
Lemma (requires (True))
(ensures f (repeat_range min (max-1) f x) (max-1) == repeat_range min max f x)
(decreases (max - min)) | val repeat_range_induction:
#a:Type -> min:nat -> max:nat{min < max} -> f:(a -> i:nat{i < max} -> Tot a) -> x:a ->
Lemma (requires (True))
(ensures f (repeat_range min (max-1) f x) (max-1) == repeat_range min max f x)
(decreases (max - min)) | let rec repeat_range_induction #a min max f x =
if min = max - 1 then ()
else repeat_range_induction (min+1) max f (f x min) | {
"file_name": "krmllib/Spec.Loops.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 53,
"end_line": 72,
"start_col": 0,
"start_line": 70
} | module Spec.Loops
#reset-options "--max_fuel 0"
val seq_map:
#a:Type -> #b:Type ->
f:(a -> Tot b) ->
s:Seq.seq a ->
Tot (s':Seq.seq b{Seq.length s = Seq.length s' /\
(forall (i:nat). {:pattern (Seq.index s' i)} i < Seq.length s' ==> Seq.index s' i == f (Seq.index s i))})
(decreases (Seq.length s))
let... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Spec.Loops.fst"
} | [
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | min: Prims.nat -> max: Prims.nat{min < max} -> f: (_: a -> i: Prims.nat{i < max} -> a) -> x: a
-> FStar.Pervasives.Lemma
(ensures
f (Spec.Loops.repeat_range min (max - 1) f x) (max - 1) ==
Spec.Loops.repeat_range min max f x) (decreases max - min) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Subtraction",
"Prims.bool",
"Spec.Loops.repeat_range_induction",
"Prims.op_Addition",
"Prims.unit"
] | [
"recursion"
] | false | false | true | false | false | let rec repeat_range_induction #a min max f x =
| if min = max - 1 then () else repeat_range_induction (min + 1) max f (f x min) | false |
Pulse.Checker.Pure.fst | Pulse.Checker.Pure.instantiate_term_implicits_uvs | val instantiate_term_implicits_uvs (g:env) (t:term)
: T.Tac (uvs:env { disjoint g uvs } & term & term) | val instantiate_term_implicits_uvs (g:env) (t:term)
: T.Tac (uvs:env { disjoint g uvs } & term & term) | let instantiate_term_implicits_uvs (g:env) (t0:term) =
let f = elab_env g in
let rt = elab_term t0 in
let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in
let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in
T.log_issues issues;
match topt with
| None -> (
... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Pure.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 49,
"end_line": 269,
"start_col": 0,
"start_line": 228
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Util.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Reflect... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2 (* shadow named view *)",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Tactics.CheckLN",
"short_module": "CheckLN"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple3 (uvs: Pulse.Typing.Env.env{Pulse.Typing.Env.disjoint g uvs})
(fun _ -> Pulse.Syntax.Base.term)
(fun _ _ -> Pulse.Syntax.Base.term)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple3",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.namedv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Tactics... | [] | false | true | false | false | false | let instantiate_term_implicits_uvs (g: env) (t0: term) =
| let f = elab_env g in
let rt = elab_term t0 in
let f = RU.env_set_range f (Pulse.Typing.Env.get_range g (Some t0.range)) in
let topt, issues = catch_all (fun _ -> rtb_instantiate_implicits g f rt) in
T.log_issues issues;
match topt with
| None ->
(let open Pulse.PP in
maybe_fail_doc issues
g
t0.range
... | false |
Vale.SHA.PPC64LE.Rounds.Core.fst | Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_b | val va_lemma_Loop_rounds_0_59_b : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_b i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (l_or (i == 4) (i == 20)) (i == 36)) (i == 52... | val va_lemma_Loop_rounds_0_59_b : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_b i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (l_or (i == 4) (i == 20)) (i == 36)) (i == 52... | let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig =
let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec
22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16;
va_Mod_reg 6; va_Mod_ok] in
let va_qc = va_qcode... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1180,
"start_col": 0,
"start_line": 1138
} | module Vale.SHA.PPC64LE.Rounds.Core
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memo... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.PPC64LE.Decls.va_code ->
va_s0: Vale.PPC64LE.Decls.va_state ->
i: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_f... | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Decls.va_code",
"Vale.PPC64LE.Decls.va_state",
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.PPC64LE.Decls.va_fuel",... | [] | false | false | false | false | false | let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig =
| let va_mods:va_mods_t =
[
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6;
va_Mod_ok
]
in
let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in
let va_sM, ... | false |
FStar.Map.fsti | FStar.Map.const_on | val const_on (#key: eqtype) (#value: Type) (dom: S.set key) (v: value) : t key value | val const_on (#key: eqtype) (#value: Type) (dom: S.set key) (v: value) : t key value | let const_on (#key:eqtype) (#value:Type) (dom:S.set key) (v:value)
: t key value
= restrict dom (const v) | {
"file_name": "ulib/FStar.Map.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 77,
"start_col": 0,
"start_line": 75
} | (*
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.Set.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Map.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dom: FStar.Set.set key -> v: value -> FStar.Map.t key value | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.Set.set",
"FStar.Map.restrict",
"FStar.Map.const",
"FStar.Map.t"
] | [] | false | false | false | false | false | let const_on (#key: eqtype) (#value: Type) (dom: S.set key) (v: value) : t key value =
| restrict dom (const v) | false |
Vale.SHA.PPC64LE.Rounds.Core.fst | Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_a | val va_lemma_Loop_rounds_0_59_a : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_a i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (l_or (i == 0) (i == 16)) (i == 32)) (i == 48... | val va_lemma_Loop_rounds_0_59_a : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_0_59_a i) va_s0 /\ va_get_ok va_s0 /\
(l_or (l_or (l_or (i == 0) (i == 16)) (i == 32)) (i == 48... | let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig =
let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec
22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16;
va_Mod_reg 6; va_Mod_ok] in
let va_qc = va_qcode... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1047,
"start_col": 0,
"start_line": 1005
} | module Vale.SHA.PPC64LE.Rounds.Core
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memo... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.PPC64LE.Decls.va_code ->
va_s0: Vale.PPC64LE.Decls.va_state ->
i: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_f... | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Decls.va_code",
"Vale.PPC64LE.Decls.va_state",
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.PPC64LE.Decls.va_fuel",... | [] | false | false | false | false | false | let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig =
| let va_mods:va_mods_t =
[
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6;
va_Mod_ok
]
in
let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in
let va_sM, ... | false |
FStar.Map.fsti | FStar.Map.disjoint_dom | val disjoint_dom : m1: FStar.Map.t key value -> m2: FStar.Map.t key value -> Prims.logical | let disjoint_dom (#key:eqtype) (#value:Type) (m1:t key value) (m2:t key value)
= forall x.{:pattern (contains m1 x)(* ; (contains m2 x) *)} contains m1 x ==> not (contains m2 x) | {
"file_name": "ulib/FStar.Map.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 100,
"end_line": 88,
"start_col": 0,
"start_line": 87
} | (*
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.Set.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Map.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m1: FStar.Map.t key value -> m2: FStar.Map.t key value -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.Map.t",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.b2t",
"FStar.Map.contains",
"Prims.op_Negation",
"Prims.logical"
] | [] | false | false | false | false | true | let disjoint_dom (#key: eqtype) (#value: Type) (m1 m2: t key value) =
| forall x. {:pattern (contains m1 x)} contains m1 x ==> not (contains m2 x) | false | |
FStar.Map.fsti | FStar.Map.has_dom | val has_dom : m: FStar.Map.t key value -> dom: FStar.Set.set key -> Prims.logical | let has_dom (#key:eqtype) (#value:Type) (m:t key value) (dom:S.set key)
= forall x. contains m x <==> S.mem x dom | {
"file_name": "ulib/FStar.Map.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 92,
"start_col": 0,
"start_line": 91
} | (*
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.Set.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Map.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: FStar.Map.t key value -> dom: FStar.Set.set key -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.Map.t",
"FStar.Set.set",
"Prims.l_Forall",
"Prims.l_iff",
"Prims.b2t",
"FStar.Map.contains",
"FStar.Set.mem",
"Prims.logical"
] | [] | false | false | false | false | true | let has_dom (#key: eqtype) (#value: Type) (m: t key value) (dom: S.set key) =
| forall x. contains m x <==> S.mem x dom | false | |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_bound_f4_lt_pow12 | val lemma_as_nat_bound_f4_lt_pow12: f:felem5 -> Lemma
(requires (let (f0,f1,f2,f3,f4) = f in
felem_fits5 f (1,1,1,1,1) /\ v f4 < pow2 12))
(ensures as_nat5 f <= pow2 220 - 1) | val lemma_as_nat_bound_f4_lt_pow12: f:felem5 -> Lemma
(requires (let (f0,f1,f2,f3,f4) = f in
felem_fits5 f (1,1,1,1,1) /\ v f4 < pow2 12))
(ensures as_nat5 f <= pow2 220 - 1) | let lemma_as_nat_bound_f4_lt_pow12 f =
lemma_as_nat_bound_f4_lt_powa f 12 | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 140,
"start_col": 0,
"start_line": 139
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ _ _ _ _ f4 = _ in
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f (1, 1, 1, 1, 1) /\
Lib.IntTypes.v f4 < Prims.pow2 12)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_bound_f4_lt_powa",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_as_nat_bound_f4_lt_pow12 f =
| lemma_as_nat_bound_f4_lt_powa f 12 | false |
ReifyLong.fst | ReifyLong.p1 | val p1 : x: FStar.DM4F.Heap.IntStoreFixed.id -> FStar.DM4F.IntStoreFixed.INT_STORE Prims.unit | let p1 x =
if is_x x 0 then write x 0 else write x 0;
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
wr... | {
"file_name": "examples/rel/ReifyLong.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 51,
"start_col": 1,
"start_line": 35
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "Reif... | [
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.Heap.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.DM4F.Heap.IntStoreFixed.id -> FStar.DM4F.IntStoreFixed.INT_STORE Prims.unit | FStar.DM4F.IntStoreFixed.INT_STORE | [] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"FStar.DM4F.IntStoreFixed.write",
"Prims.unit",
"Prims.int",
"FStar.DM4F.IntStoreFixed.read",
"Prims.bool",
"ReifyLong.is_x"
] | [] | false | true | false | false | false | let p1 x =
| if is_x x 0 then write x 0 else write x 0;
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x);
write x (read x) | false | |
Pulse.Checker.STApp.fst | Pulse.Checker.STApp.canon_comp | val canon_comp (c: comp_st) : comp_st | val canon_comp (c: comp_st) : comp_st | let canon_comp (c:comp_st) : comp_st =
match readback_comp (elab_comp c) with
| None -> c
| Some (C_Tot _) -> c //should be impossible
| Some c' -> c' | {
"file_name": "lib/steel/pulse/Pulse.Checker.STApp.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 38,
"start_col": 0,
"start_line": 34
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Show.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.... | [
{
"abbrev": false,
"full_module": "Pulse.Show",
"short_module": null
},
{
"abbrev": true,
"full_module": "Pulse.Checker.Prover",
"short_module": "Prover"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: Pulse.Syntax.Base.comp_st -> Pulse.Syntax.Base.comp_st | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.comp_st",
"Pulse.Readback.readback_comp",
"Pulse.Elaborate.Pure.elab_comp",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.comp",
"Prims.eq2",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let canon_comp (c: comp_st) : comp_st =
| match readback_comp (elab_comp c) with
| None -> c
| Some (C_Tot _) -> c
| Some c' -> c' | false |
Pulse.Checker.STApp.fst | Pulse.Checker.STApp.coerce_eq | val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a === b) -> y: b{y == x} | val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a === b) -> y: b{y == x} | let coerce_eq (#a #b:Type) (x:a) (_:squash (a === b)) : y:b { y == x } = x | {
"file_name": "lib/steel/pulse/Pulse.Checker.STApp.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 74,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Show.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.... | [
{
"abbrev": false,
"full_module": "Pulse.Show",
"short_module": null
},
{
"abbrev": true,
"full_module": "Pulse.Checker.Prover",
"short_module": "Prover"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> _: Prims.squash (a === b) -> y: b{y == x} | Prims.Tot | [
"total"
] | [] | [
"Prims.squash",
"Prims.op_Equals_Equals_Equals",
"Prims.eq2"
] | [] | false | false | false | false | false | let coerce_eq (#a: Type) (#b: Type) (x: a) (_: squash (a === b)) : y: b{y == x} =
| x | false |
CDDLExtractionTest.BytesUnwrapped.fst | CDDLExtractionTest.BytesUnwrapped.impl_mytype | val impl_mytype:impl_typ bytes | val impl_mytype:impl_typ bytes | let impl_mytype : impl_typ bytes = impl_bytes () | {
"file_name": "share/steel/examples/pulse/dice/cbor/CDDLExtractionTest.BytesUnwrapped.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 48,
"end_line": 24,
"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": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"CDDL.Spec.fsti.checked",
"CDDL.Pulse.fst.checked",
"CBOR.Spec.fsti.checked",
"CBOR.Pulse.fst.checked"
],
"interface_file": false,
"source_file": "CDDLExtractionTest.BytesUnwrapped.fst"
} | [
{
"abbrev": false,
"full_module": "CDDL.Pulse",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR.Pulse",
"short_module": null
},
{
"abbrev": false,
"full_module": "CDDL.Spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR.Spec"... | {
"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 | CDDL.Pulse.impl_typ CDDL.Spec.bytes | Prims.Tot | [
"total"
] | [] | [
"CDDL.Pulse.impl_bytes"
] | [] | false | false | false | true | false | let impl_mytype:impl_typ bytes =
| impl_bytes () | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_bound | val lemma_as_nat_bound: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures as_nat5 f < pow2 256) | val lemma_as_nat_bound: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures as_nat5 f < pow2 256) | let lemma_as_nat_bound f =
lemma_as_nat_bound_f4_lt_powa f 48 | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 131,
"start_col": 0,
"start_line": 130
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 f (1, 1, 1, 1, 1))
(ensures Hacl.Spec.K256.Field52.Definitions.as_nat5 f < Prims.pow2 256) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_bound_f4_lt_powa",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_as_nat_bound f =
| lemma_as_nat_bound_f4_lt_powa f 48 | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_mod2 | val lemma_as_nat_mod2: x:felem5 ->
Lemma (let (x0,x1,x2,x3,x4) = x in as_nat5 x % 2 = v x0 % 2) | val lemma_as_nat_mod2: x:felem5 ->
Lemma (let (x0,x1,x2,x3,x4) = x in as_nat5 x % 2 = v x0 % 2) | let lemma_as_nat_mod2 x =
let (x0,x1,x2,x3,x4) = x in
assert (as_nat5 x = v x0 + v x1 * pow52 + v x2 * pow104 + v x3 * pow156 + v x4 * pow208);
assert (as_nat5 x % 2 = (v x0 + v x1 * pow52 + v x2 * pow104 + v x3 * pow156 + v x4 * pow208) % 2);
ML.lemma_a_plus_b_pow2_mod2 (v x0 + v x1 * pow52 + v x2 * pow104 + v... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 26,
"start_col": 0,
"start_line": 18
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(ensures
(let _ = x in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ x0 _ _ _ _ = _ in
Hacl.Spec.K256.Field52.Definitions.as_nat5 x % 2 = Lib.IntTypes.v x0 % 2)
<:
Type0)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.unit",
"Hacl.Spec.K256.MathLe... | [] | false | false | true | false | false | let lemma_as_nat_mod2 x =
| let x0, x1, x2, x3, x4 = x in
assert (as_nat5 x = v x0 + v x1 * pow52 + v x2 * pow104 + v x3 * pow156 + v x4 * pow208);
assert (as_nat5 x % 2 = (v x0 + v x1 * pow52 + v x2 * pow104 + v x3 * pow156 + v x4 * pow208) % 2);
ML.lemma_a_plus_b_pow2_mod2 (v x0 + v x1 * pow52 + v x2 * pow104 + v x3 * pow156) (v x4) 208;
ML.lem... | false |
Vale.SHA.PPC64LE.Rounds.fsti | Vale.SHA.PPC64LE.Rounds.va_quick_Loop_rounds_48_63 | val va_quick_Loop_rounds_48_63 (k_b: buffer128) (block: block_w) (hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_48_63 ())) | val va_quick_Loop_rounds_48_63 (k_b: buffer128) (block: block_w) (hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_48_63 ())) | let va_quick_Loop_rounds_48_63 (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode
unit (va_code_Loop_rounds_48_63 ())) =
(va_QProc (va_code_Loop_rounds_48_63 ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24;
va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec ... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 522,
"start_col": 0,
"start_line": 514
} | module Vale.SHA.PPC64LE.Rounds
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"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 |
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit
(Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_48_63 ()) | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCode.va_QProc",
"Prims.unit",
"Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_48_63",
"Prims.Cons",
"Vale.PPC64LE.QuickCode.mod_t",
"Vale.PPC64LE.QuickCode.va_Mod_vec",
... | [] | false | false | false | false | false | let va_quick_Loop_rounds_48_63 (k_b: buffer128) (block: block_w) (hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_48_63 ())) =
| (va_QProc (va_code_Loop_rounds_48_63 ())
([
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_vec 15;
va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 12; va_Mod_vec 11; va_Mod_v... | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.as_nat_inj | val as_nat_inj (f1 f2: felem5) : Lemma
(requires
felem_fits5 f1 (1,1,1,1,1) /\ felem_fits5 f2 (1,1,1,1,1) /\
as_nat5 f1 == as_nat5 f2)
(ensures
(let (a0,a1,a2,a3,a4) = f1 in let (b0,b1,b2,b3,b4) = f2 in
a0 == b0 /\ a1 == b1 /\ a2 == b2 /\ a3 == b3 /\ a4 == b4)) | val as_nat_inj (f1 f2: felem5) : Lemma
(requires
felem_fits5 f1 (1,1,1,1,1) /\ felem_fits5 f2 (1,1,1,1,1) /\
as_nat5 f1 == as_nat5 f2)
(ensures
(let (a0,a1,a2,a3,a4) = f1 in let (b0,b1,b2,b3,b4) = f2 in
a0 == b0 /\ a1 == b1 /\ a2 == b2 /\ a3 == b3 /\ a4 == b4)) | let as_nat_inj f1 f2 =
lemma_as_nat_decompose f1;
lemma_as_nat_decompose f2 | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 188,
"start_col": 0,
"start_line": 186
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | f1: Hacl.Spec.K256.Field52.Definitions.felem5 -> f2: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f1 (1, 1, 1, 1, 1) /\
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f2 (1, 1, 1, 1, 1) /\
Hacl.Spec.K256.Fiel... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_decompose",
"Prims.unit"
] | [] | true | false | true | false | false | let as_nat_inj f1 f2 =
| lemma_as_nat_decompose f1;
lemma_as_nat_decompose f2 | false |
Vale.SHA.PPC64LE.Rounds.fsti | Vale.SHA.PPC64LE.Rounds.va_quick_Loop_rounds_0_15 | val va_quick_Loop_rounds_0_15
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
: (va_quickCode unit (va_code_Loop_rounds_0_15 ())) | val va_quick_Loop_rounds_0_15
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
: (va_quickCode unit (va_code_Loop_rounds_0_15 ())) | let va_quick_Loop_rounds_0_15 (in_b:buffer128) (offset:nat) (k_b:buffer128) (block:block_w)
(hash_orig:hash256) (input_BE:(seq quad32)) : (va_quickCode unit (va_code_Loop_rounds_0_15 ())) =
(va_QProc (va_code_Loop_rounds_0_15 ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec
23; va_Mod_vec 22; va_Mo... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 225,
"start_col": 0,
"start_line": 217
} | module Vale.SHA.PPC64LE.Rounds
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"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 |
in_b: Vale.PPC64LE.Memory.buffer128 ->
offset: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
input_BE: FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32
-> Vale.PPC64LE.QuickCode.va_quickCode Pr... | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Memory.buffer128",
"Prims.nat",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"FStar.Seq.Base.seq",
"Vale.PPC64LE.Memory.quad32",
"Vale.PPC64LE.QuickCode.va_QProc",
"Prims.unit",
"Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_0_15",
"Prims.Cons",
"Va... | [] | false | false | false | false | false | let va_quick_Loop_rounds_0_15
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
: (va_quickCode unit (va_code_Loop_rounds_0_15 ())) =
| (va_QProc (va_code_Loop_rounds_0_15 ())
([
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_vec 15;
va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 12; va_Mod_vec 11; va_Mod_ve... | false |
Steel.ST.GhostHigherReference.fst | Steel.ST.GhostHigherReference.pts_to_injective_eq | val pts_to_injective_eq (#a: Type)
(#opened:inames)
(#p0 #p1:perm)
(#v0 #v1: a)
(r: ref a)
: STGhost unit opened
(pts_to r p0 v0 `star` pts_to r p1 v1)
(fun _ -> pts_to r p0 v0 `star` pts_to r p1 v0)
(req... | val pts_to_injective_eq (#a: Type)
(#opened:inames)
(#p0 #p1:perm)
(#v0 #v1: a)
(r: ref a)
: STGhost unit opened
(pts_to r p0 v0 `star` pts_to r p1 v1)
(fun _ -> pts_to r p0 v0 `star` pts_to r p1 v0)
(req... | let pts_to_injective_eq
#_ #_ #p0 #p1 #v0 #v1 r
= rewrite (pts_to r p0 v0) (RST.pts_to r.reveal p0 v0);
rewrite (pts_to r p1 v1) (RST.pts_to r.reveal p1 v1);
RST.pts_to_injective_eq #_ #_ #_ #_ #v0 #v1 r.reveal;
rewrite (RST.pts_to r.reveal p0 v0) (pts_to r p0 v0);
rewrite (RST.pts_to r.reveal p1 v0) (pts_to ... | {
"file_name": "lib/steel/Steel.ST.GhostHigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 54,
"end_line": 38,
"start_col": 0,
"start_line": 32
} | module Steel.ST.GhostHigherReference
// needed because I need to know that `Steel.ST.HigherReference.ref a`
// can be turned into `Steel.HigherReference.ref a`
friend Steel.ST.HigherReference
module RST = Steel.ST.HigherReference
module R = Steel.HigherReference
module STC = Steel.ST.Coercions
// FIXME: WHY WHY WHY... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.HigherReference.fst.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST... | [
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "STC"
},
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Steel.ST.HigherReference",
"short_module": "RST"
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.ST.GhostHigherReference.ref a -> Steel.ST.Effect.Ghost.STGhost Prims.unit | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"Steel.ST.GhostHigherReference.ref",
"Steel.ST.Util.rewrite",
"Steel.ST.HigherReference.pts_to",
"Steel.ST.GhostHigherReference.__proj__Hide__item__reveal",
"Steel.ST.GhostHigherReference.pts_to",
"Prims.unit",
"Steel.ST.HigherReference.pts_t... | [] | false | true | false | false | false | let pts_to_injective_eq #_ #_ #p0 #p1 #v0 #v1 r =
| rewrite (pts_to r p0 v0) (RST.pts_to r.reveal p0 v0);
rewrite (pts_to r p1 v1) (RST.pts_to r.reveal p1 v1);
RST.pts_to_injective_eq #_ #_ #_ #_ #v0 #v1 r.reveal;
rewrite (RST.pts_to r.reveal p0 v0) (pts_to r p0 v0);
rewrite (RST.pts_to r.reveal p1 v0) (pts_to r p1 v0) | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_div_pow48 | val lemma_div_pow48: t4:uint64 -> Lemma
(requires felem_fits_last1 t4 2)
(ensures v t4 / pow2 48 == (if v t4 < pow2 48 then 0 else 1)) | val lemma_div_pow48: t4:uint64 -> Lemma
(requires felem_fits_last1 t4 2)
(ensures v t4 / pow2 48 == (if v t4 < pow2 48 then 0 else 1)) | let lemma_div_pow48 t4 =
if v t4 < pow2 48 then
Math.Lemmas.small_div (v t4) (pow2 48)
else begin
lemma_normalize_x_le_1 t4;
assert (v t4 / pow2 48 <= 1);
Math.Lemmas.lemma_div_le (pow2 48) (v t4) (pow2 48);
assert (1 <= v t4 / pow2 48) end | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 223,
"start_col": 0,
"start_line": 216
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | t4: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma (requires Hacl.Spec.K256.Field52.Definitions.felem_fits_last1 t4 2)
(ensures
Lib.IntTypes.v t4 / Prims.pow2 48 ==
(match Lib.IntTypes.v t4 < Prims.pow2 48 with
| true -> 0
| _ -> 1)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.IntTypes.uint64",
"Prims.op_LessThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.pow2",
"FStar.Math.Lemmas.small_div",
"Prims.bool",
"Prims._assert",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Prims.unit",
"FStar.Math.Lemmas.lemma_div_le",
... | [] | false | false | true | false | false | let lemma_div_pow48 t4 =
| if v t4 < pow2 48
then Math.Lemmas.small_div (v t4) (pow2 48)
else
(lemma_normalize_x_le_1 t4;
assert (v t4 / pow2 48 <= 1);
Math.Lemmas.lemma_div_le (pow2 48) (v t4) (pow2 48);
assert (1 <= v t4 / pow2 48)) | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_carry_last52 | val lemma_carry_last52: m1:scale64_last -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits_last1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 65536)
(ensures
(let c = a +. (b >>. 52ul) in let d = b &. mask52 in
felem_fits1 d 1 /\ felem_fits_last1 c (m1 + 1) /\
v d = v b % pow2 52 /\ v c = v ... | val lemma_carry_last52: m1:scale64_last -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits_last1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 65536)
(ensures
(let c = a +. (b >>. 52ul) in let d = b &. mask52 in
felem_fits1 d 1 /\ felem_fits_last1 c (m1 + 1) /\
v d = v b % pow2 52 /\ v c = v ... | let lemma_carry_last52 m1 m2 a b =
lemma_mask52 b;
lemma_add_rsh52_last m1 m2 a b | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 321,
"start_col": 0,
"start_line": 319
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 |
m1: Hacl.Spec.K256.Field52.Definitions.scale64_last ->
m2: Hacl.Spec.K256.Field52.Definitions.scale64 ->
a: Lib.IntTypes.uint64 ->
b: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits_last1 a m1 /\
Hacl.Spec.K256.Field52.Defini... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_last",
"Hacl.Spec.K256.Field52.Definitions.scale64",
"Lib.IntTypes.uint64",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_add_rsh52_last",
"Prims.unit",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_mask52"
] | [] | true | false | true | false | false | let lemma_carry_last52 m1 m2 a b =
| lemma_mask52 b;
lemma_add_rsh52_last m1 m2 a b | false |
Steel.ST.Array.fst | Steel.ST.Array.intro_exists_compare_inv | val intro_exists_compare_inv
(#o: _)
(#t: eqtype)
(#p0 #p1: perm)
(a0 a1: array t)
(#s0 #s1: Seq.seq t)
(l: US.t)
(ctr: R.ref (option US.t))
(x: Ghost.erased (option US.t))
: STGhostT unit
o
(let open US in
(((pts_to a0 p0 s0) `star` (pts_to a1 p1 ... | val intro_exists_compare_inv
(#o: _)
(#t: eqtype)
(#p0 #p1: perm)
(a0 a1: array t)
(#s0 #s1: Seq.seq t)
(l: US.t)
(ctr: R.ref (option US.t))
(x: Ghost.erased (option US.t))
: STGhostT unit
o
(let open US in
(((pts_to a0 p0 s0) `star` (pts_to a1 p1 ... | let intro_exists_compare_inv #o
(#t:eqtype)
(#p0 #p1:perm)
(a0 a1:array t)
(#s0: Seq.seq t)
(#s1: Seq.seq t)
(l:US.t)
(ctr : R.ref (option US.t))
(x: Ghost.erased (option US.t))
: STGhostT unit o
... | {
"file_name": "lib/steel/Steel.ST.Array.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 63,
"end_line": 370,
"start_col": 0,
"start_line": 347
} | (*
Copyright 2020, 2021, 2022 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.HigherArray.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.che... | [
{
"abbrev": true,
"full_module": "Steel.ST.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Steel.ST.HigherArray",
"short_module": "H"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_modul... | {
"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 |
a0: Steel.ST.Array.array t ->
a1: Steel.ST.Array.array t ->
l: FStar.SizeT.t ->
ctr: Steel.ST.Reference.ref (FStar.Pervasives.Native.option FStar.SizeT.t) ->
x: FStar.Ghost.erased (FStar.Pervasives.Native.option FStar.SizeT.t)
-> Steel.ST.Effect.Ghost.STGhostT Prims.unit | Steel.ST.Effect.Ghost.STGhostT | [] | [] | [
"Steel.Memory.inames",
"Prims.eqtype",
"Steel.FractionalPermission.perm",
"Steel.ST.Array.array",
"FStar.Seq.Base.seq",
"FStar.SizeT.t",
"Steel.ST.Reference.ref",
"FStar.Pervasives.Native.option",
"FStar.Ghost.erased",
"Steel.ST.Util.intro_exists",
"Prims.bool",
"Steel.ST.Array.compare_inv",
... | [] | false | true | false | false | false | let intro_exists_compare_inv
#o
(#t: eqtype)
(#p0: perm)
(#p1: perm)
(a0: array t)
(a1: array t)
(#s0: Seq.seq t)
(#s1: Seq.seq t)
(l: US.t)
(ctr: R.ref (option US.t))
(x: Ghost.erased (option US.t))
: STGhostT unit
o
(let open US in
... | let b:bool =
match Ghost.reveal x with
| None -> false
| Some x -> let open US in x <^ l
in
assert (within_bounds x l b);
intro_compare_inv #_ #_ #p0 #p1 a0 a1 #s0 #s1 l ctr x b;
intro_exists _ (compare_inv #_ #p0 #p1 a0 a1 s0 s1 l ctr) | false |
Vale.SHA.PPC64LE.Rounds.fsti | Vale.SHA.PPC64LE.Rounds.va_quick_Loop_rounds_16_47 | val va_quick_Loop_rounds_16_47 (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_16_47 i)) | val va_quick_Loop_rounds_16_47 (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_16_47 i)) | let va_quick_Loop_rounds_16_47 (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) :
(va_quickCode unit (va_code_Loop_rounds_16_47 i)) =
(va_QProc (va_code_Loop_rounds_16_47 i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec
23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mo... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 372,
"start_col": 0,
"start_line": 364
} | module Vale.SHA.PPC64LE.Rounds
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"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: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit
(Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_16_47 i) | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCode.va_QProc",
"Prims.unit",
"Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_16_47",
"Prims.Cons",
"Vale.PPC64LE.QuickCode.mod_t",
"Vale.PPC64LE.QuickCode.... | [] | false | false | false | false | false | let va_quick_Loop_rounds_16_47 (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_16_47 i)) =
| (va_QProc (va_code_Loop_rounds_16_47 i)
([
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_vec 15;
va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 12; va_Mod_vec 11; va_Mod_ve... | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_normalize_x_le_1 | val lemma_normalize_x_le_1: t4:uint64 -> Lemma
(requires felem_fits_last1 t4 2)
(ensures v t4 / pow2 48 <= 1) | val lemma_normalize_x_le_1: t4:uint64 -> Lemma
(requires felem_fits_last1 t4 2)
(ensures v t4 / pow2 48 <= 1) | let lemma_normalize_x_le_1 t4 =
calc (==) {
(2 * (pow2 48 - 1)) / pow2 48;
(==) { Math.Lemmas.distributivity_add_right 2 (pow2 48) 1 }
(2 * pow2 48 - 2) / pow2 48;
(==) { Math.Lemmas.division_addition_lemma (-2) (pow2 48) 2 }
(-2) / pow2 48 + 2;
(==) { assert_norm ((-2) / pow2 48 = -1) }
1... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 209,
"start_col": 0,
"start_line": 196
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | t4: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma (requires Hacl.Spec.K256.Field52.Definitions.felem_fits_last1 t4 2)
(ensures Lib.IntTypes.v t4 / Prims.pow2 48 <= 1) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.pow2",
"Prims.unit",
"FStar.Math.Lemmas.lemma_div_le",
"Prims.op_Subtraction",
"FStar.Mul.op_Star",
"FStar.Calc.calc_finish... | [] | false | false | true | false | false | let lemma_normalize_x_le_1 t4 =
| calc ( == ) {
(2 * (pow2 48 - 1)) / pow2 48;
( == ) { Math.Lemmas.distributivity_add_right 2 (pow2 48) 1 }
(2 * pow2 48 - 2) / pow2 48;
( == ) { Math.Lemmas.division_addition_lemma (- 2) (pow2 48) 2 }
(- 2) / pow2 48 + 2;
( == ) { assert_norm ((- 2) / pow2 48 = - 1) }
1;
};
assert (v t4 <= 2 * (pow2 48 - ... | false |
Vale.SHA.PPC64LE.Rounds.fsti | Vale.SHA.PPC64LE.Rounds.va_wp_Loop_rounds_48_63 | val va_wp_Loop_rounds_48_63
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_Loop_rounds_48_63
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_Loop_rounds_48_63 (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state)
(va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (Vale.PPC64LE.Decls.validSrcAddrs128 (va_get_mem_heaplet 0 va_s0) (va_get_reg
6 va_s0) k_b 16 (va_get_mem_layout va_s0) Secret /\ Vale.PPC64LE.Decls.v... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 92,
"end_line": 501,
"start_col": 0,
"start_line": 441
} | module Vale.SHA.PPC64LE.Rounds
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"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 |
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Vale.PPC64LE.Decls.validSrcAddrs128",
"Vale.PPC64LE.Decls.va_get_mem_heaplet",
... | [] | false | false | false | true | true | let va_wp_Loop_rounds_48_63
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\
(Vale.PPC64LE.Decls.validSrcAddrs128 (va_get_mem_heaplet 0 va_s0)
(va_get_reg 6 va_s0)
k_b
16
(va_get_mem_layout va_s0)
Secret /\
Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0)
(va_get_reg 6 va_s0)
k_b
13
3
(va... | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_mask48 | val lemma_mask48: a:uint64 ->
Lemma (let r = a &. mask48 in
v r = v a % pow2 48 /\ felem_fits_last1 r 1) | val lemma_mask48: a:uint64 ->
Lemma (let r = a &. mask48 in
v r = v a % pow2 48 /\ felem_fits_last1 r 1) | let lemma_mask48 a =
let r = a &. mask48 in
assert_norm (v mask48 = pow2 48 - 1);
mod_mask_lemma a 48ul;
assert (v (mod_mask #U64 #SEC 48ul) == v mask48);
assert (v r = v a % pow2 48);
assert (felem_fits_last1 r 1) | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 249,
"start_col": 0,
"start_line": 243
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(ensures
(let r = a &. Hacl.Spec.K256.Field52.Definitions.mask48 in
Lib.IntTypes.v r = Lib.IntTypes.v a % Prims.pow2 48 /\
Hacl.Spec.K256.Field52.Definitions.felem_fits_last1 r 1)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Hacl.Spec.K256.Field52.Definitions.felem_fits_last1",
"Prims.unit",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.op_Modulus",
"Prims.pow2",
"Prims.eq2",
"Lib.IntTypes.range_t",
"Li... | [] | true | false | true | false | false | let lemma_mask48 a =
| let r = a &. mask48 in
assert_norm (v mask48 = pow2 48 - 1);
mod_mask_lemma a 48ul;
assert (v (mod_mask #U64 #SEC 48ul) == v mask48);
assert (v r = v a % pow2 48);
assert (felem_fits_last1 r 1) | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_mask52 | val lemma_mask52: a:uint64 ->
Lemma (let r = a &. mask52 in
v r = v a % pow2 52 /\ felem_fits1 r 1) | val lemma_mask52: a:uint64 ->
Lemma (let r = a &. mask52 in
v r = v a % pow2 52 /\ felem_fits1 r 1) | let lemma_mask52 a =
let r = a &. mask52 in
assert_norm (v mask52 = pow2 52 - 1);
mod_mask_lemma a 52ul;
assert (v (mod_mask #U64 #SEC 52ul) == v mask52);
assert (v r = v a % pow2 52);
assert (felem_fits1 r 1) | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 236,
"start_col": 0,
"start_line": 230
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(ensures
(let r = a &. Hacl.Spec.K256.Field52.Definitions.mask52 in
Lib.IntTypes.v r = Lib.IntTypes.v a % Prims.pow2 52 /\
Hacl.Spec.K256.Field52.Definitions.felem_fits1 r 1)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Hacl.Spec.K256.Field52.Definitions.felem_fits1",
"Prims.unit",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.op_Modulus",
"Prims.pow2",
"Prims.eq2",
"Lib.IntTypes.range_t",
"Lib.Int... | [] | true | false | true | false | false | let lemma_mask52 a =
| let r = a &. mask52 in
assert_norm (v mask52 = pow2 52 - 1);
mod_mask_lemma a 52ul;
assert (v (mod_mask #U64 #SEC 52ul) == v mask52);
assert (v r = v a % pow2 52);
assert (felem_fits1 r 1) | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_carry52 | val lemma_carry52: m1:scale64 -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 4096)
(ensures
(let c = a +. (b >>. 52ul) in let d = b &. mask52 in
felem_fits1 d 1 /\ felem_fits1 c (m1 + 1) /\
v d = v b % pow2 52 /\ v c = v a + v b / pow2 52)) | val lemma_carry52: m1:scale64 -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 4096)
(ensures
(let c = a +. (b >>. 52ul) in let d = b &. mask52 in
felem_fits1 d 1 /\ felem_fits1 c (m1 + 1) /\
v d = v b % pow2 52 /\ v c = v a + v b / pow2 52)) | let lemma_carry52 m1 m2 a b =
lemma_mask52 b;
lemma_add_rsh52 m1 m2 a b | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 309,
"start_col": 0,
"start_line": 307
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 |
m1: Hacl.Spec.K256.Field52.Definitions.scale64 ->
m2: Hacl.Spec.K256.Field52.Definitions.scale64 ->
a: Lib.IntTypes.uint64 ->
b: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits1 a m1 /\
Hacl.Spec.K256.Field52.Definitions.fele... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64",
"Lib.IntTypes.uint64",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_add_rsh52",
"Prims.unit",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_mask52"
] | [] | true | false | true | false | false | let lemma_carry52 m1 m2 a b =
| lemma_mask52 b;
lemma_add_rsh52 m1 m2 a b | false |
Hacl.Bignum64.fsti | Hacl.Bignum64.t_limbs | val t_limbs:Hacl.Bignum.Definitions.limb_t | val t_limbs:Hacl.Bignum.Definitions.limb_t | let t_limbs: Hacl.Bignum.Definitions.limb_t = Lib.IntTypes.U64 | {
"file_name": "code/bignum/Hacl.Bignum64.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 12,
"start_col": 0,
"start_line": 12
} | module Hacl.Bignum64
open FStar.Mul
module BN = Hacl.Bignum
module BS = Hacl.Bignum.SafeAPI
module MA = Hacl.Bignum.MontArithmetic
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Bignum.SafeAPI.fst.checked",
"Hacl.Bignum.MontArithmetic.fsti.checked",
"Hacl.Bignum.Definitions.fst.checked",
"Hacl.Bignum.Convert.fst.checked",
"Hacl.Bignum.fsti.checked",
"FStar.Pervas... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.MontArithmetic",
"short_module": "MA"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.SafeAPI",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Bignum.Definitions.limb_t | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.U64"
] | [] | false | false | false | true | false | let t_limbs:Hacl.Bignum.Definitions.limb_t =
| Lib.IntTypes.U64 | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_small_sub_mod | val lemma_small_sub_mod: a:nat -> n:pos -> Lemma
(requires n <= a /\ a < 2 * n)
(ensures a % n = a - n) | val lemma_small_sub_mod: a:nat -> n:pos -> Lemma
(requires n <= a /\ a < 2 * n)
(ensures a % n = a - n) | let lemma_small_sub_mod a n =
calc (==) {
a % n;
(==) { Math.Lemmas.sub_div_mod_1 a n }
(a - n) % n;
(==) { Math.Lemmas.small_mod (a - n) n }
a - n;
} | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 335,
"start_col": 0,
"start_line": 328
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Prims.nat -> n: Prims.pos
-> FStar.Pervasives.Lemma (requires n <= a /\ a < 2 * n) (ensures a % n = a - n) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Prims.pos",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"Prims.op_Subtraction",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
"FStar.Calc.calc_pack",
"FStar.Math.Lemmas.sub_div... | [] | false | false | true | false | false | let lemma_small_sub_mod a n =
| calc ( == ) {
a % n;
( == ) { Math.Lemmas.sub_div_mod_1 a n }
(a - n) % n;
( == ) { Math.Lemmas.small_mod (a - n) n }
a - n;
} | false |
Hacl.Bignum64.fsti | Hacl.Bignum64.lbignum | val lbignum : t: Hacl.Bignum.Definitions.limb_t -> len: Lib.IntTypes.size_t -> Type0 | let lbignum = Hacl.Bignum.Definitions.lbignum | {
"file_name": "code/bignum/Hacl.Bignum64.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 15,
"start_col": 0,
"start_line": 15
} | module Hacl.Bignum64
open FStar.Mul
module BN = Hacl.Bignum
module BS = Hacl.Bignum.SafeAPI
module MA = Hacl.Bignum.MontArithmetic
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract
let t_limbs: Hacl.Bignum.Definitions.limb_t = Lib.IntTypes.U64 | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Bignum.SafeAPI.fst.checked",
"Hacl.Bignum.MontArithmetic.fsti.checked",
"Hacl.Bignum.Definitions.fst.checked",
"Hacl.Bignum.Convert.fst.checked",
"Hacl.Bignum.fsti.checked",
"FStar.Pervas... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.MontArithmetic",
"short_module": "MA"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.SafeAPI",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": false,
"f... | {
"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 | t: Hacl.Bignum.Definitions.limb_t -> len: Lib.IntTypes.size_t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.lbignum"
] | [] | false | false | false | true | true | let lbignum =
| Hacl.Bignum.Definitions.lbignum | false | |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_nat_from_bytes_be_mod2 | val lemma_nat_from_bytes_be_mod2: f:LSeq.lseq uint8 32 ->
Lemma (BSeq.nat_from_bytes_be f % 2 = v (LSeq.index f 31) % 2) | val lemma_nat_from_bytes_be_mod2: f:LSeq.lseq uint8 32 ->
Lemma (BSeq.nat_from_bytes_be f % 2 = v (LSeq.index f 31) % 2) | let lemma_nat_from_bytes_be_mod2 f =
let x0 = LSeq.index f 31 in
BSeq.nat_from_intseq_be_slice_lemma f 31;
BSeq.nat_from_intseq_be_lemma0 (LSeq.slice f 31 32);
assert (BSeq.nat_from_intseq_be f == v x0 + pow2 8 * BSeq.nat_from_intseq_be (LSeq.slice f 0 31));
ML.lemma_a_plus_b_pow2_mod2 (v x0) (BSeq.nat_from_i... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 84,
"end_line": 37,
"start_col": 0,
"start_line": 32
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | f: Lib.Sequence.lseq Lib.IntTypes.uint8 32
-> FStar.Pervasives.Lemma
(ensures Lib.ByteSequence.nat_from_bytes_be f % 2 = Lib.IntTypes.v (Lib.Sequence.index f 31) % 2
) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Hacl.Spec.K256.MathLemmas.lemma_a_plus_b_pow2_mod2",
"Lib.IntTypes.v",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.ByteSequence.nat_from_intseq_be",
"Lib.Sequence.slice",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Addition",... | [] | true | false | true | false | false | let lemma_nat_from_bytes_be_mod2 f =
| let x0 = LSeq.index f 31 in
BSeq.nat_from_intseq_be_slice_lemma f 31;
BSeq.nat_from_intseq_be_lemma0 (LSeq.slice f 31 32);
assert (BSeq.nat_from_intseq_be f == v x0 + pow2 8 * BSeq.nat_from_intseq_be (LSeq.slice f 0 31));
ML.lemma_a_plus_b_pow2_mod2 (v x0) (BSeq.nat_from_intseq_be (LSeq.slice f 0 31)) 8 | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_add_rsh52 | val lemma_add_rsh52: m1:scale64 -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 4096)
(ensures (let c = a +. (b >>. 52ul) in
felem_fits1 c (m1 + 1) /\ v c = v a + v b / pow2 52)) | val lemma_add_rsh52: m1:scale64 -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 4096)
(ensures (let c = a +. (b >>. 52ul) in
felem_fits1 c (m1 + 1) /\ v c = v a + v b / pow2 52)) | let lemma_add_rsh52 m1 m2 a b =
let c = a +. (b >>. 52ul) in
calc (<) {
v a + v b / pow2 52;
(<) { Math.Lemmas.lemma_div_lt (v b) 64 52 }
m1 * max52 + pow2 12;
(<=) { Math.Lemmas.pow2_lt_compat 52 12 }
m1 * max52 + max52;
(==) { Math.Lemmas.distributivity_add_left m1 1 max52 }
(m1 + 1) *... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 273,
"start_col": 0,
"start_line": 257
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 |
m1: Hacl.Spec.K256.Field52.Definitions.scale64 ->
m2: Hacl.Spec.K256.Field52.Definitions.scale64 ->
a: Lib.IntTypes.uint64 ->
b: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits1 a m1 /\
Hacl.Spec.K256.Field52.Definitions.fele... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Hacl.Spec.K256.Field52.Definitions.felem_fits1",
"Prims.op_Addition",
"Prims.unit",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.op_Divisi... | [] | false | false | true | false | false | let lemma_add_rsh52 m1 m2 a b =
| let c = a +. (b >>. 52ul) in
calc ( < ) {
v a + v b / pow2 52;
( < ) { Math.Lemmas.lemma_div_lt (v b) 64 52 }
m1 * max52 + pow2 12;
( <= ) { Math.Lemmas.pow2_lt_compat 52 12 }
m1 * max52 + max52;
( == ) { Math.Lemmas.distributivity_add_left m1 1 max52 }
(m1 + 1) * max52;
};
Math.Lemmas.lemma_mult_le_right... | false |
Steel.ST.GhostPCMReference.fst | Steel.ST.GhostPCMReference.ref | val ref (a:Type u#0) (p:pcm a) : Type u#0 | val ref (a:Type u#0) (p:pcm a) : Type u#0 | let ref (a:Type u#0) (p:pcm a) : Type u#0 =
G.ref (raise_t u#0 u#1 a) (UP.raise p) | {
"file_name": "lib/steel/Steel.ST.GhostPCMReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 42,
"end_line": 26,
"start_col": 0,
"start_line": 25
} | (*
Copyright 2021 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the 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.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.GhostPCMReference.fsti.checked",
"prims.fst.checked",
"FStar.Universe.PCM.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.chec... | [
{
"abbrev": true,
"full_module": "Steel.GhostPCMReference",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.Universe.PCM",
"short_module": "UP"
},
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: Type0 -> p: FStar.PCM.pcm a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Steel.GhostPCMReference.ref",
"FStar.Universe.raise_t",
"FStar.Universe.PCM.raise"
] | [] | false | false | false | true | true | let ref (a: Type u#0) (p: pcm a) : Type u#0 =
| G.ref (raise_t u#0 u#1 a) (UP.raise p) | false |
Steel.ST.GhostPCMReference.fst | Steel.ST.GhostPCMReference.pts_to | val pts_to (#a:Type u#0) (#pcm:pcm a) (r:ref a pcm) ([@@@smt_fallback] v:a)
: vprop | val pts_to (#a:Type u#0) (#pcm:pcm a) (r:ref a pcm) ([@@@smt_fallback] v:a)
: vprop | let pts_to (#a:Type u#0) (#pcm:pcm a) (r:ref a pcm) ([@@@smt_fallback] v:a)
= G.pts_to #(raise_t a) #(UP.raise pcm) r (raise_val v) | {
"file_name": "lib/steel/Steel.ST.GhostPCMReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 57,
"end_line": 30,
"start_col": 0,
"start_line": 29
} | (*
Copyright 2021 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the 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.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.GhostPCMReference.fsti.checked",
"prims.fst.checked",
"FStar.Universe.PCM.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.chec... | [
{
"abbrev": true,
"full_module": "Steel.GhostPCMReference",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.Universe.PCM",
"short_module": "UP"
},
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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.ST.GhostPCMReference.ref a pcm -> v: a -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"Steel.ST.GhostPCMReference.ref",
"Steel.GhostPCMReference.pts_to",
"FStar.Universe.raise_t",
"FStar.Universe.PCM.raise",
"FStar.Universe.raise_val",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | false | false | let pts_to (#a: Type u#0) (#pcm: pcm a) (r: ref a pcm) ([@@@ smt_fallback]v: a) =
| G.pts_to #(raise_t a) #(UP.raise pcm) r (raise_val v) | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_add_rsh52_last | val lemma_add_rsh52_last: m1:scale64_last -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits_last1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 65536)
(ensures (let c = a +. (b >>. 52ul) in
felem_fits_last1 c (m1 + 1) /\ v c = v a + v b / pow2 52)) | val lemma_add_rsh52_last: m1:scale64_last -> m2:scale64 -> a:uint64 -> b:uint64 -> Lemma
(requires felem_fits_last1 a m1 /\ felem_fits1 b m2 /\ m1 + 1 <= 65536)
(ensures (let c = a +. (b >>. 52ul) in
felem_fits_last1 c (m1 + 1) /\ v c = v a + v b / pow2 52)) | let lemma_add_rsh52_last m1 m2 a b =
let c = a +. (b >>. 52ul) in
calc (<) {
v a + v b / pow2 52;
(<) { Math.Lemmas.lemma_div_lt (v b) 64 52 }
m1 * max48 + pow2 12;
(<=) { Math.Lemmas.pow2_lt_compat 48 12 }
m1 * max48 + max48;
(==) { Math.Lemmas.distributivity_add_left m1 1 max48 }
(m1 +... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 297,
"start_col": 0,
"start_line": 281
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 |
m1: Hacl.Spec.K256.Field52.Definitions.scale64_last ->
m2: Hacl.Spec.K256.Field52.Definitions.scale64 ->
a: Lib.IntTypes.uint64 ->
b: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits_last1 a m1 /\
Hacl.Spec.K256.Field52.Defini... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_last",
"Hacl.Spec.K256.Field52.Definitions.scale64",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Hacl.Spec.K256.Field52.Definitions.felem_fits_last1",
"Prims.op_Addition",
"Prims.unit",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"L... | [] | false | false | true | false | false | let lemma_add_rsh52_last m1 m2 a b =
| let c = a +. (b >>. 52ul) in
calc ( < ) {
v a + v b / pow2 52;
( < ) { Math.Lemmas.lemma_div_lt (v b) 64 52 }
m1 * max48 + pow2 12;
( <= ) { Math.Lemmas.pow2_lt_compat 48 12 }
m1 * max48 + max48;
( == ) { Math.Lemmas.distributivity_add_left m1 1 max48 }
(m1 + 1) * max48;
};
Math.Lemmas.lemma_mult_le_right... | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_decompose | val lemma_as_nat_decompose: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures (let (f0,f1,f2,f3,f4) = f in
v f4 = as_nat5 f / pow208 /\
v f3 = as_nat5 f % pow208 / pow156 /\
v f2 = as_nat5 f % pow156 / pow104 /\
v f1 = as_nat5 f % pow104 / pow52 /\
v f0 = as_nat5 f % pow52)) | val lemma_as_nat_decompose: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures (let (f0,f1,f2,f3,f4) = f in
v f4 = as_nat5 f / pow208 /\
v f3 = as_nat5 f % pow208 / pow156 /\
v f2 = as_nat5 f % pow156 / pow104 /\
v f1 = as_nat5 f % pow104 / pow52 /\
v f0 = as_nat5 f % pow52)) | let lemma_as_nat_decompose f =
let (f0,f1,f2,f3,f4) = f in
lemma_as_nat_bound f;
Math.Lemmas.euclidean_division_definition (as_nat5 f) pow208;
assert (v f4 = as_nat5 f / pow208);
Math.Lemmas.euclidean_division_definition (as_nat5 f % pow208) pow156;
assert (v f3 = as_nat5 f % pow208 / pow156);
Math.Lem... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 174,
"start_col": 0,
"start_line": 152
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 f (1, 1, 1, 1, 1))
(ensures
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in
Lib.IntTypes.v f4 =
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.op_Modulus",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Hacl.Spec.K256.Field52.Definitions.po... | [] | false | false | true | false | false | let lemma_as_nat_decompose f =
| let f0, f1, f2, f3, f4 = f in
lemma_as_nat_bound f;
Math.Lemmas.euclidean_division_definition (as_nat5 f) pow208;
assert (v f4 = as_nat5 f / pow208);
Math.Lemmas.euclidean_division_definition (as_nat5 f % pow208) pow156;
assert (v f3 = as_nat5 f % pow208 / pow156);
Math.Lemmas.pow2_modulo_modulo_lemma_1 (as_nat5 f) 156... | false |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.unfold_nat_from_uint64_four | val unfold_nat_from_uint64_four: b:LSeq.lseq uint64 4 ->
Lemma (BSeq.nat_from_intseq_be b ==
v (LSeq.index b 3) + v (LSeq.index b 2) * pow2 64 +
v (LSeq.index b 1) * pow2 128 + v (LSeq.index b 0) * pow2 192) | val unfold_nat_from_uint64_four: b:LSeq.lseq uint64 4 ->
Lemma (BSeq.nat_from_intseq_be b ==
v (LSeq.index b 3) + v (LSeq.index b 2) * pow2 64 +
v (LSeq.index b 1) * pow2 128 + v (LSeq.index b 0) * pow2 192) | let unfold_nat_from_uint64_four b =
let b0 = v (LSeq.index b 0) in
let b1 = v (LSeq.index b 1) in
let b2 = v (LSeq.index b 2) in
let b3 = v (LSeq.index b 3) in
let res = BSeq.nat_from_intseq_be b in
BSeq.nat_from_intseq_be_slice_lemma b 3;
BSeq.nat_from_intseq_be_lemma0 (Seq.slice b 3 4);
assert (res =... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 66,
"start_col": 0,
"start_line": 45
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Lib.Sequence.lseq Lib.IntTypes.uint64 4
-> FStar.Pervasives.Lemma
(ensures
Lib.ByteSequence.nat_from_intseq_be b ==
Lib.IntTypes.v (Lib.Sequence.index b 3) +
Lib.IntTypes.v (Lib.Sequence.index b 2) * Prims.pow2 64 +
Lib.IntTypes.v (Lib.Sequence.index b 1) * Prims.pow2 128 +
Lib.In... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Hacl.Spec.K256.MathLemmas.lemma_as_nat64_horner",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.pow2",
"Lib.ByteSequence.nat_from_intseq_be_lemma0",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC"... | [] | true | false | true | false | false | let unfold_nat_from_uint64_four b =
| let b0 = v (LSeq.index b 0) in
let b1 = v (LSeq.index b 1) in
let b2 = v (LSeq.index b 2) in
let b3 = v (LSeq.index b 3) in
let res = BSeq.nat_from_intseq_be b in
BSeq.nat_from_intseq_be_slice_lemma b 3;
BSeq.nat_from_intseq_be_lemma0 (Seq.slice b 3 4);
assert (res == b3 + pow2 64 * (BSeq.nat_from_intseq_be (Seq.slice ... | false |
Hacl.Bignum64.fsti | Hacl.Bignum64.pbn_mont_ctx_u64 | val pbn_mont_ctx_u64 : Type0 | let pbn_mont_ctx_u64 = MA.pbn_mont_ctx_u64 | {
"file_name": "code/bignum/Hacl.Bignum64.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 17,
"start_col": 0,
"start_line": 17
} | module Hacl.Bignum64
open FStar.Mul
module BN = Hacl.Bignum
module BS = Hacl.Bignum.SafeAPI
module MA = Hacl.Bignum.MontArithmetic
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextract
let t_limbs: Hacl.Bignum.Definitions.limb_t = Lib.IntTypes.U64
inline_for_extraction noextract
let lbign... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Bignum.SafeAPI.fst.checked",
"Hacl.Bignum.MontArithmetic.fsti.checked",
"Hacl.Bignum.Definitions.fst.checked",
"Hacl.Bignum.Convert.fst.checked",
"Hacl.Bignum.fsti.checked",
"FStar.Pervas... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.MontArithmetic",
"short_module": "MA"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.SafeAPI",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": false,
"f... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx_u64"
] | [] | false | false | false | true | true | let pbn_mont_ctx_u64 =
| MA.pbn_mont_ctx_u64 | false | |
Hacl.Spec.K256.Field52.Definitions.Lemmas.fst | Hacl.Spec.K256.Field52.Definitions.Lemmas.carry_last_small_mod_lemma | val carry_last_small_mod_lemma: t4:uint64 -> t3':uint64 -> Lemma
(requires felem_fits_last1 t4 1 /\
v (t4 +. (t3' >>. 52ul)) == v t4 + v t3' / pow2 52)
(ensures (let r = t4 +. (t3' >>. 52ul) in
felem_fits_last1 r 2 /\
v r < v t4 + pow2 12 /\ (v r >= pow2 48 ==> v r % pow2 48 < pow2 12))) | val carry_last_small_mod_lemma: t4:uint64 -> t3':uint64 -> Lemma
(requires felem_fits_last1 t4 1 /\
v (t4 +. (t3' >>. 52ul)) == v t4 + v t3' / pow2 52)
(ensures (let r = t4 +. (t3' >>. 52ul) in
felem_fits_last1 r 2 /\
v r < v t4 + pow2 12 /\ (v r >= pow2 48 ==> v r % pow2 48 < pow2 12))) | let carry_last_small_mod_lemma t4 t3' =
let r = t4 +. (t3' >>. 52ul) in
assert (v r = v t4 + v t3' / pow2 52);
Math.Lemmas.lemma_div_lt (v t3') 64 52;
assert (v r < v t4 + pow2 12);
Math.Lemmas.pow2_lt_compat 48 12;
assert (felem_fits_last1 r 2);
if v r >= pow2 48 then begin
lemma_small_sub_mod (v r)... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Definitions.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 356,
"start_col": 0,
"start_line": 345
} | module Hacl.Spec.K256.Field52.Definitions.Lemmas
open FStar.Mul
open Lib.IntTypes
open Hacl.Spec.K256.Field52.Definitions
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module S = Spec.K256
module ML = Hacl.Spec.K256.MathLemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lemma_as_nat_mod2: x:f... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_mo... | {
"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 | t4: Lib.IntTypes.uint64 -> t3': Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits_last1 t4 1 /\
Lib.IntTypes.v (t4 +. (t3' >>. 52ul)) ==
Lib.IntTypes.v t4 + Lib.IntTypes.v t3' / Prims.pow2 52)
(ensures
(let r = t4 +. (t3' ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.IntTypes.uint64",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.pow2",
"Prims._assert",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Modulus",
"Prims.unit",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Subtraction",
"Hacl.Spec.K256.Fie... | [] | false | false | true | false | false | let carry_last_small_mod_lemma t4 t3' =
| let r = t4 +. (t3' >>. 52ul) in
assert (v r = v t4 + v t3' / pow2 52);
Math.Lemmas.lemma_div_lt (v t3') 64 52;
assert (v r < v t4 + pow2 12);
Math.Lemmas.pow2_lt_compat 48 12;
assert (felem_fits_last1 r 2);
if v r >= pow2 48
then
(lemma_small_sub_mod (v r) (pow2 48);
assert (v r % pow2 48 = v r - pow2 48);
as... | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.felem | val felem : Type0 | let felem = x:nat{x < prime} | {
"file_name": "specs/Spec.P256.PointOps.fst",
"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": 0,
"start_line": 20
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.P256.PointOps.prime"
] | [] | false | false | false | true | true | let felem =
| x: nat{x < prime} | false | |
Pulse.Checker.STApp.fst | Pulse.Checker.STApp.instantiate_implicits | val instantiate_implicits (g: env) (t: st_term{Tm_STApp? t.term})
: T.Tac (uvs: env & g': env{extends_with g' g uvs} & t': st_term{Tm_STApp? t'.term}) | val instantiate_implicits (g: env) (t: st_term{Tm_STApp? t.term})
: T.Tac (uvs: env & g': env{extends_with g' g uvs} & t': st_term{Tm_STApp? t'.term}) | let instantiate_implicits (g:env) (t:st_term { Tm_STApp? t.term })
: T.Tac (uvs : env &
g' : env { extends_with g' g uvs } &
t' : st_term { Tm_STApp? t'.term }) =
let range = t.range in
let Tm_STApp { head; arg_qual=qual; arg } = t.term in
let pure_app = tm_pureapp head qual arg in
let ... | {
"file_name": "lib/steel/pulse/Pulse.Checker.STApp.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 20,
"end_line": 109,
"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.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Show.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.... | [
{
"abbrev": false,
"full_module": "Pulse.Show",
"short_module": null
},
{
"abbrev": true,
"full_module": "Pulse.Checker.Prover",
"short_module": "Prover"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: Pulse.Typing.Env.env -> t: Pulse.Syntax.Base.st_term{Tm_STApp? (Mkst_term?.term t)}
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple3 Pulse.Typing.Env.env
(fun uvs -> g': Pulse.Typing.Env.env{Pulse.Typing.Env.extends_with g' g uvs})
(fun _ _ -> t': Pulse.Syntax.Base.st_term{Tm_STApp? (Mkst_... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.st_term",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_Tm_STApp",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.qualifier",
"Pulse.Typing.Env.disjoint",
"Pulse.Syntax.Pure.is_a... | [] | false | true | false | false | false | let instantiate_implicits (g: env) (t: st_term{Tm_STApp? t.term})
: T.Tac (uvs: env & g': env{extends_with g' g uvs} & t': st_term{Tm_STApp? t'.term}) =
| let range = t.range in
let Tm_STApp { head = head ; arg_qual = qual ; arg = arg } = t.term in
let pure_app = tm_pureapp head qual arg in
let (| uvs , t , ty |) = instantiate_term_implicits_uvs g pure_app in
match is_arrow ty with
| Some (_, Some Implicit, _) -> intro_uvars_for_logical_implicits g uvs t ty
| _ ->
matc... | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.is_fodd | val is_fodd (x: nat) : bool | val is_fodd (x: nat) : bool | let is_fodd (x:nat) : bool = x % 2 = 1 | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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 -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.bool"
] | [] | false | false | false | true | false | let is_fodd (x: nat) : bool =
| x % 2 = 1 | false |
Pulse.Checker.STApp.fst | Pulse.Checker.STApp.intro_uvars_for_logical_implicits | val intro_uvars_for_logical_implicits (g: env) (uvs: env{disjoint g uvs}) (t ty: term)
: T.Tac (uvs': env & g': env{extends_with g' g uvs'} & t': st_term{Tm_STApp? t'.term}) | val intro_uvars_for_logical_implicits (g: env) (uvs: env{disjoint g uvs}) (t ty: term)
: T.Tac (uvs': env & g': env{extends_with g' g uvs'} & t': st_term{Tm_STApp? t'.term}) | let rec intro_uvars_for_logical_implicits (g:env) (uvs:env { disjoint g uvs }) (t:term) (ty:term)
: T.Tac (uvs':env &
g':env { extends_with g' g uvs' } &
t':st_term { Tm_STApp? t'.term }) =
let ropt = is_arrow ty in
match ropt with
| Some (b, Some Implicit, c_rest) ->
let x = fresh ... | {
"file_name": "lib/steel/pulse/Pulse.Checker.STApp.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 31,
"end_line": 87,
"start_col": 0,
"start_line": 61
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Show.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.... | [
{
"abbrev": false,
"full_module": "Pulse.Show",
"short_module": null
},
{
"abbrev": true,
"full_module": "Pulse.Checker.Prover",
"short_module": "Prover"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
g: Pulse.Typing.Env.env ->
uvs: Pulse.Typing.Env.env{Pulse.Typing.Env.disjoint g uvs} ->
t: Pulse.Syntax.Base.term ->
ty: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple3 Pulse.Typing.Env.env
(fun uvs' -> g': Pulse.Typing.Env.env{Pulse.Typing.Env.extends_with g... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Typing.Env.disjoint",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.binder",
"Pulse.Syntax.Base.comp",
"Pulse.Syntax.Base.st_comp",
"FStar.Pervasives.Mkdtuple3",
"Pulse.Typing.Env.extends_with",
"Pulse.Syntax.Base.st_term",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_Tm... | [
"recursion"
] | false | true | false | false | false | let rec intro_uvars_for_logical_implicits (g: env) (uvs: env{disjoint g uvs}) (t ty: term)
: T.Tac (uvs': env & g': env{extends_with g' g uvs'} & t': st_term{Tm_STApp? t'.term}) =
| let ropt = is_arrow ty in
match ropt with
| Some (b, Some Implicit, c_rest) ->
let x = fresh (push_env g uvs) in
let uvs' = push_binding uvs x b.binder_ppname b.binder_ty in
let c_rest = open_comp_with c_rest (tm_var ({ nm_index = x; nm_ppname = b.binder_ppname })) in
(match c_rest with
| C_ST _
| C_STA... | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.qelem | val qelem : Type0 | let qelem = x:nat{x < order} | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 43,
"start_col": 0,
"start_line": 43
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.P256.PointOps.order"
] | [] | false | false | false | true | true | let qelem =
| x: nat{x < order} | false | |
Spec.P256.PointOps.fst | Spec.P256.PointOps.aff_point | val aff_point : Type0 | let aff_point = p:tuple2 nat nat{let (px, py) = p in px < prime /\ py < prime} | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 54,
"start_col": 0,
"start_line": 54
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple2",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.P256.PointOps.prime"
] | [] | false | false | false | true | true | let aff_point =
| p:
tuple2 nat nat
{ let px, py = p in
px < prime /\ py < prime } | false | |
Spec.P256.PointOps.fst | Spec.P256.PointOps.order | val order:(a: pos{a < pow2 256}) | val order:(a: pos{a < pow2 256}) | let order: (a:pos{a < pow2 256}) =
let o = 0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551 in
assert_norm (o < pow2 256); o | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 41,
"start_col": 0,
"start_line": 39
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Prims.pos{a < Prims.pow2 256} | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.int"
] | [] | false | false | false | false | false | let order:(a: pos{a < pow2 256}) =
| let o = 0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551 in
assert_norm (o < pow2 256);
o | false |
Vale.SHA.PPC64LE.Rounds.fsti | Vale.SHA.PPC64LE.Rounds.va_wp_Loop_rounds_0_15 | val va_wp_Loop_rounds_0_15
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_Loop_rounds_0_15
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_Loop_rounds_0_15 (in_b:buffer128) (offset:nat) (k_b:buffer128) (block:block_w)
(hash_orig:hash256) (input_BE:(seq quad32)) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0)
(va_get_reg 4 va_s0) in... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 71,
"end_line": 203,
"start_col": 0,
"start_line": 118
} | module Vale.SHA.PPC64LE.Rounds
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.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"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 |
in_b: Vale.PPC64LE.Memory.buffer128 ->
offset: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
input_BE: FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32 ->
va_s0: Vale.PPC64LE.Decls.va_state -... | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Memory.buffer128",
"Prims.nat",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"FStar.Seq.Base.seq",
"Vale.PPC64LE.Memory.quad32",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Vale.PPC64... | [] | false | false | false | true | true | let va_wp_Loop_rounds_0_15
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\
(Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0)
(va_get_reg 4 va_s0)
in_b
(offset + 1)
3
(va_get_mem_layout va_s0)
Secret /\
Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0)
(va_get_reg 6 va_s0)
k_b
... | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.proj_point | val proj_point : Type0 | let proj_point = p:tuple3 nat nat nat{let (px, py, pz) = p in px < prime /\ py < prime /\ pz < prime} | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 101,
"end_line": 55,
"start_col": 0,
"start_line": 55
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple3",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.P256.PointOps.prime"
] | [] | false | false | false | true | true | let proj_point =
| p:
tuple3 nat nat nat
{ let px, py, pz = p in
px < prime /\ py < prime /\ pz < prime } | false | |
Spec.P256.PointOps.fst | Spec.P256.PointOps.zero | val zero:felem | val zero:felem | let zero : felem = 0 | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let zero:felem =
| 0 | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.fadd | val fadd (x y: felem) : felem | val fadd (x y: felem) : felem | let fadd (x y:felem) : felem = (x + y) % prime | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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: Spec.P256.PointOps.felem -> y: Spec.P256.PointOps.felem -> Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.felem",
"Prims.op_Modulus",
"Prims.op_Addition",
"Spec.P256.PointOps.prime"
] | [] | false | false | false | true | false | let fadd (x y: felem) : felem =
| (x + y) % prime | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.finv | val finv (a: felem) : felem | val finv (a: felem) : felem | let finv (a:felem) : felem = M.pow_mod #prime a (prime - 2) | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 59,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.P256.PointOps.felem -> Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.felem",
"Lib.NatMod.pow_mod",
"Spec.P256.PointOps.prime",
"Prims.op_Subtraction"
] | [] | false | false | false | true | false | let finv (a: felem) : felem =
| M.pow_mod #prime a (prime - 2) | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.one | val one:felem | val one:felem | let one : felem = 1 | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 22,
"start_col": 0,
"start_line": 22
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let one:felem =
| 1 | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.fmul | val fmul (x y: felem) : felem | val fmul (x y: felem) : felem | let fmul (x y:felem) : felem = (x * y) % prime | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 26,
"start_col": 0,
"start_line": 26
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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: Spec.P256.PointOps.felem -> y: Spec.P256.PointOps.felem -> Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.felem",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Spec.P256.PointOps.prime"
] | [] | false | false | false | true | false | let fmul (x y: felem) : felem =
| (x * y) % prime | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.fsub | val fsub (x y: felem) : felem | val fsub (x y: felem) : felem | let fsub (x y:felem) : felem = (x - y) % prime | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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: Spec.P256.PointOps.felem -> y: Spec.P256.PointOps.felem -> Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.felem",
"Prims.op_Modulus",
"Prims.op_Subtraction",
"Spec.P256.PointOps.prime"
] | [] | false | false | false | true | false | let fsub (x y: felem) : felem =
| (x - y) % prime | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.is_point_at_inf | val is_point_at_inf : p: Spec.P256.PointOps.proj_point -> Prims.bool | let is_point_at_inf (p:proj_point) =
let (_, _, z) = p in z = 0 | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 88,
"start_col": 0,
"start_line": 87
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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 | p: Spec.P256.PointOps.proj_point -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.proj_point",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.bool"
] | [] | false | false | false | true | false | let is_point_at_inf (p: proj_point) =
| let _, _, z = p in
z = 0 | false | |
Spec.P256.PointOps.fst | Spec.P256.PointOps.fsqrt | val fsqrt (a: felem) : felem | val fsqrt (a: felem) : felem | let fsqrt (a:felem) : felem = M.pow_mod #prime a ((prime + 1) / 4) | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 28,
"start_col": 0,
"start_line": 28
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.P256.PointOps.felem -> Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.felem",
"Lib.NatMod.pow_mod",
"Spec.P256.PointOps.prime",
"Prims.op_Division",
"Prims.op_Addition"
] | [] | false | false | false | true | false | let fsqrt (a: felem) : felem =
| M.pow_mod #prime a ((prime + 1) / 4) | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.qinv | val qinv (x: qelem) : qelem | val qinv (x: qelem) : qelem | let qinv (x:qelem) : qelem = M.pow_mod #order x (order - 2) | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 59,
"end_line": 46,
"start_col": 0,
"start_line": 46
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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: Spec.P256.PointOps.qelem -> Spec.P256.PointOps.qelem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.qelem",
"Lib.NatMod.pow_mod",
"Spec.P256.PointOps.order",
"Prims.op_Subtraction"
] | [] | false | false | false | true | false | let qinv (x: qelem) : qelem =
| M.pow_mod #order x (order - 2) | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.g_x | val g_x:felem | val g_x:felem | let g_x : felem =
let x = 0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296 in
assert_norm (x < prime); x | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 69,
"start_col": 0,
"start_line": 67
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.P256.PointOps.prime",
"Prims.int"
] | [] | false | false | false | true | false | let g_x:felem =
| let x = 0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296 in
assert_norm (x < prime);
x | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.qmul | val qmul (x y: qelem) : qelem | val qmul (x y: qelem) : qelem | let qmul (x y:qelem) : qelem = (x * y) % order | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 45,
"start_col": 0,
"start_line": 45
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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: Spec.P256.PointOps.qelem -> y: Spec.P256.PointOps.qelem -> Spec.P256.PointOps.qelem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.qelem",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Spec.P256.PointOps.order"
] | [] | false | false | false | true | false | let qmul (x y: qelem) : qelem =
| (x * y) % order | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.g_y | val g_y:felem | val g_y:felem | let g_y : felem =
let y = 0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5 in
assert_norm (y < prime); y | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 72,
"start_col": 0,
"start_line": 70
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.P256.PointOps.prime",
"Prims.int"
] | [] | false | false | false | true | false | let g_y:felem =
| let y = 0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5 in
assert_norm (y < prime);
y | false |
Vale.X64.InsLemmas.fst | Vale.X64.InsLemmas.lemma_valid_src_operand128_and_taint | val lemma_valid_src_operand128_and_taint (o:operand128) (s:vale_state) : Lemma
(requires valid_operand128 o s)
(ensures S.valid_src_operand128_and_taint o (state_to_S s))
[SMTPat (S.valid_src_operand128_and_taint o (state_to_S s))] | val lemma_valid_src_operand128_and_taint (o:operand128) (s:vale_state) : Lemma
(requires valid_operand128 o s)
(ensures S.valid_src_operand128_and_taint o (state_to_S s))
[SMTPat (S.valid_src_operand128_and_taint o (state_to_S s))] | let lemma_valid_src_operand128_and_taint o s =
let h = get_vale_heap s.vs_heap in
match o with
| OMem (m, t) ->
let addr = eval_maddr m s in
let aux (b:buffer128) (i:int) : Lemma
(requires valid_buf_maddr128 addr h s.vs_heap.vf_layout b i t)
(ensures S.valid_src_operand128_and_taint o (state_t... | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 44,
"start_col": 0,
"start_line": 30
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapTypes_s
open Vale.Arch.HeapImpl
open Vale.X64.StateLemmas
open Vale.X64.Taint_Semantics
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64.Memory_Sems
friend Vale.X64.Decls
let lemma_valid_src_operand64_and_taint o s =
let h = get_vale_heap s.vs_hea... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Memory_Sems.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Decls.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Memory_Sems",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Stack_i",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": false,... | {
"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 | o: Vale.X64.Machine_s.operand128 -> s: Vale.X64.State.vale_state
-> FStar.Pervasives.Lemma (requires Vale.X64.Decls.valid_operand128 o s)
(ensures
Vale.X64.Machine_Semantics_s.valid_src_operand128_and_taint o
(Vale.X64.StateLemmas.state_to_S s))
[
SMTPat (Vale.X64.Machine_Semanti... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Machine_s.operand128",
"Vale.X64.State.vale_state",
"Vale.X64.Machine_s.maddr",
"Vale.Arch.HeapTypes_s.taint",
"FStar.Classical.forall_intro_2",
"Vale.X64.Memory.buffer128",
"Prims.int",
"Prims.l_imp",
"Vale.X64.Decls.valid_buf_maddr128",
"Vale.Arch.HeapImpl.__proj__Mkvale_full_heap__ite... | [] | false | false | true | false | false | let lemma_valid_src_operand128_and_taint o s =
| let h = get_vale_heap s.vs_heap in
match o with
| OMem (m, t) ->
let addr = eval_maddr m s in
let aux (b: buffer128) (i: int)
: Lemma (requires valid_buf_maddr128 addr h s.vs_heap.vf_layout b i t)
(ensures S.valid_src_operand128_and_taint o (state_to_S s)) =
lemma_heap_get_heap s.vs_heap;
lemm... | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.b_coeff | val b_coeff:felem | val b_coeff:felem | let b_coeff : felem =
let b = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b in
assert_norm (b < prime); b | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 63,
"start_col": 0,
"start_line": 61
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.felem | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.P256.PointOps.prime",
"Prims.int"
] | [] | false | false | false | true | false | let b_coeff:felem =
| let b = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b in
assert_norm (b < prime);
b | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.qadd | val qadd (x y: qelem) : qelem | val qadd (x y: qelem) : qelem | let qadd (x y:qelem) : qelem = (x + y) % order | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 44,
"start_col": 0,
"start_line": 44
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"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: Spec.P256.PointOps.qelem -> y: Spec.P256.PointOps.qelem -> Spec.P256.PointOps.qelem | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.qelem",
"Prims.op_Modulus",
"Prims.op_Addition",
"Spec.P256.PointOps.order"
] | [] | false | false | false | true | false | let qadd (x y: qelem) : qelem =
| (x + y) % order | false |
Vale.X64.InsLemmas.fst | Vale.X64.InsLemmas.lemma_valid_src_operand64_and_taint | val lemma_valid_src_operand64_and_taint (o:operand64) (s:vale_state) : Lemma
(requires valid_operand o s)
(ensures S.valid_src_operand64_and_taint o (state_to_S s))
[SMTPat (S.valid_src_operand64_and_taint o (state_to_S s))] | val lemma_valid_src_operand64_and_taint (o:operand64) (s:vale_state) : Lemma
(requires valid_operand o s)
(ensures S.valid_src_operand64_and_taint o (state_to_S s))
[SMTPat (S.valid_src_operand64_and_taint o (state_to_S s))] | let lemma_valid_src_operand64_and_taint o s =
let h = get_vale_heap s.vs_heap in
match o with
| OMem (m, t) ->
let addr = eval_maddr m s in
let aux (b:buffer64) (i:int) : Lemma
(requires valid_buf_maddr64 addr h s.vs_heap.vf_layout b i t)
(ensures S.valid_src_operand64_and_taint o (state_to_S ... | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 28,
"start_col": 0,
"start_line": 14
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapTypes_s
open Vale.Arch.HeapImpl
open Vale.X64.StateLemmas
open Vale.X64.Taint_Semantics
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64.Memory_Sems
friend Vale.X64.Decls | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Memory_Sems.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Decls.fst.checked",
"Vale.Arch.HeapTypes_s.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Memory_Sems",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Stack_i",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": false,... | {
"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 | o: Vale.X64.Machine_s.operand64 -> s: Vale.X64.State.vale_state
-> FStar.Pervasives.Lemma (requires Vale.X64.Decls.valid_operand o s)
(ensures
Vale.X64.Machine_Semantics_s.valid_src_operand64_and_taint o
(Vale.X64.StateLemmas.state_to_S s))
[
SMTPat (Vale.X64.Machine_Semantics_s.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Machine_s.operand64",
"Vale.X64.State.vale_state",
"Vale.X64.Machine_s.maddr",
"Vale.Arch.HeapTypes_s.taint",
"FStar.Classical.forall_intro_2",
"Vale.X64.Memory.buffer64",
"Prims.int",
"Prims.l_imp",
"Vale.X64.Decls.valid_buf_maddr64",
"Vale.Arch.HeapImpl.__proj__Mkvale_full_heap__item__... | [] | false | false | true | false | false | let lemma_valid_src_operand64_and_taint o s =
| let h = get_vale_heap s.vs_heap in
match o with
| OMem (m, t) ->
let addr = eval_maddr m s in
let aux (b: buffer64) (i: int)
: Lemma (requires valid_buf_maddr64 addr h s.vs_heap.vf_layout b i t)
(ensures S.valid_src_operand64_and_taint o (state_to_S s)) =
lemma_heap_get_heap s.vs_heap;
lemma_v... | false |
Steel.ST.Array.fst | Steel.ST.Array.pts_to_range_elim' | val pts_to_range_elim'
(#opened: _)
(#elt: Type0)
(a: array elt)
(i j: nat)
(p: P.perm)
(s: Seq.seq elt)
: STGhost (Ghost.erased (array elt))
opened
(pts_to_range a i j p s)
(fun a' -> pts_to a' p s)
True
(fun a' -> i <= j /\ j <= length a /\ Ghost.r... | val pts_to_range_elim'
(#opened: _)
(#elt: Type0)
(a: array elt)
(i j: nat)
(p: P.perm)
(s: Seq.seq elt)
: STGhost (Ghost.erased (array elt))
opened
(pts_to_range a i j p s)
(fun a' -> pts_to a' p s)
True
(fun a' -> i <= j /\ j <= length a /\ Ghost.r... | let pts_to_range_elim'
(#opened: _)
(#elt: Type0) (a: array elt) (i j: nat)
(p: P.perm)
(s: Seq.seq elt)
: STGhost (Ghost.erased (array elt)) opened
(pts_to_range a i j p s)
(fun a' -> pts_to a' p s)
True
(fun a' -> i <= j /\ j <= length a /\
Ghost.reveal a' == array_slice a i j ()
)
=... | {
"file_name": "lib/steel/Steel.ST.Array.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 51,
"end_line": 616,
"start_col": 0,
"start_line": 602
} | (*
Copyright 2020, 2021, 2022 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.HigherArray.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.che... | [
{
"abbrev": true,
"full_module": "Steel.ST.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Steel.ST.HigherArray",
"short_module": "H"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_modul... | {
"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: Steel.ST.Array.array elt ->
i: Prims.nat ->
j: Prims.nat ->
p: Steel.FractionalPermission.perm ->
s: FStar.Seq.Base.seq elt
-> Steel.ST.Effect.Ghost.STGhost (FStar.Ghost.erased (Steel.ST.Array.array elt)) | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.ST.Array.array",
"Prims.nat",
"Steel.FractionalPermission.perm",
"FStar.Seq.Base.seq",
"Steel.ST.Util.vpattern_replace_erased",
"Steel.ST.Array.array_slice",
"FStar.Ghost.reveal",
"Prims.squash",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Steel.ST.... | [] | false | true | false | false | false | let pts_to_range_elim'
(#opened: _)
(#elt: Type0)
(a: array elt)
(i j: nat)
(p: P.perm)
(s: Seq.seq elt)
: STGhost (Ghost.erased (array elt))
opened
(pts_to_range a i j p s)
(fun a' -> pts_to a' p s)
True
(fun a' -> i <= j /\ j <= length a /\ Ghost.r... | rewrite (pts_to_range a i j p s) (exists_ (pts_to_range_body a i j p s));
let _ = elim_exists () in
vpattern_replace_erased (fun a' -> pts_to a' p s) | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.prime | val prime:(a:
pos{a = 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff /\ a < pow2 256}) | val prime:(a:
pos{a = 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff /\ a < pow2 256}) | let prime: (a:pos{a = 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff /\ a < pow2 256}) =
let p = pow2 256 - pow2 224 + pow2 192 + pow2 96 - 1 in
assert_norm (0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff = p);
assert_norm (p < pow2 256); p | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 18,
"start_col": 0,
"start_line": 15
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a:
Prims.pos
{a = 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff /\ a < Prims.pow2 256} | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Subtraction",
"Prims.op_Addition"
] | [] | false | false | false | false | false | let prime:(a:
pos{a = 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff /\ a < pow2 256}) =
| let p = pow2 256 - pow2 224 + pow2 192 + pow2 96 - 1 in
assert_norm (0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff = p);
assert_norm (p < pow2 256);
p | false |
Spec.P256.PointOps.fst | Spec.P256.PointOps.aff_point_at_inf | val aff_point_at_inf:aff_point | val aff_point_at_inf:aff_point | let aff_point_at_inf : aff_point = (zero, zero) | {
"file_name": "specs/Spec.P256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 81,
"start_col": 0,
"start_line": 81
} | module Spec.P256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Base field
// 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
let prime: (a:pos{a = 0xffffffff0000000100000000000... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.NatMod",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.Mktuple2",
"Prims.nat",
"Spec.P256.PointOps.zero"
] | [] | false | false | false | true | false | let aff_point_at_inf:aff_point =
| (zero, zero) | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.