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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LowStar.BufferOps.fst | LowStar.BufferOps.blit | val blit : src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rrel2 ->
idx_src: FStar.UInt32.t ->
dst: LowStar.Monotonic.Buffer.mbuffer a rel1 rel2 ->
idx_dst: FStar.UInt32.t ->
len: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.unit | let blit (#a:Type0) (#rrel1 #rel1 #rrel2 #rel2:B.srel a) = B.blit #a #rrel1 #rel1 #rrel2 #rel2 | {
"file_name": "ulib/LowStar.BufferOps.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 94,
"end_line": 63,
"start_col": 0,
"start_line": 63
} | (*
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",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FS... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.G... | {
"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 |
src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rrel2 ->
idx_src: FStar.UInt32.t ->
dst: LowStar.Monotonic.Buffer.mbuffer a rel1 rel2 ->
idx_dst: FStar.UInt32.t ->
len: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.blit",
"LowStar.Monotonic.Buffer.mbuffer",
"FStar.UInt32.t",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowStar.Monotonic.Buffer.live",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.UInt32.v"... | [] | false | true | false | false | false | let blit (#a: Type0) (#rrel1 #rel1 #rrel2 #rel2: B.srel a) =
| B.blit #a #rrel1 #rel1 #rrel2 #rel2 | false | |
Spec.K256.PointOps.fst | Spec.K256.PointOps.aff_point_store | val aff_point_store (p: aff_point) : BSeq.lbytes 64 | val aff_point_store (p: aff_point) : BSeq.lbytes 64 | let aff_point_store (p:aff_point) : BSeq.lbytes 64 =
let (px, py) = p in
let pxb = BSeq.nat_to_bytes_be 32 px in
let pxy = BSeq.nat_to_bytes_be 32 py in
concat #uint8 #32 #32 pxb pxy | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 200,
"start_col": 0,
"start_line": 196
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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.K256.PointOps.aff_point -> Lib.ByteSequence.lbytes 64 | Prims.Tot | [
"total"
] | [] | [
"Spec.K256.PointOps.aff_point",
"Spec.K256.PointOps.felem",
"Lib.Sequence.concat",
"Lib.IntTypes.uint8",
"Lib.Sequence.seq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"Lib.Sequence.length",
"Prims.l_or",
"Prims.b2t",
"Prims.op_L... | [] | false | false | false | false | false | let aff_point_store (p: aff_point) : BSeq.lbytes 64 =
| let px, py = p in
let pxb = BSeq.nat_to_bytes_be 32 px in
let pxy = BSeq.nat_to_bytes_be 32 py in
concat #uint8 #32 #32 pxb pxy | false |
Spec.K256.PointOps.fst | Spec.K256.PointOps.load_point | val load_point (b: BSeq.lbytes 64) : option proj_point | val load_point (b: BSeq.lbytes 64) : option proj_point | let load_point (b:BSeq.lbytes 64) : option proj_point =
match (aff_point_load b) with
| Some p -> Some (to_proj_point p)
| None -> None | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 182,
"start_col": 0,
"start_line": 179
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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 | b: Lib.ByteSequence.lbytes 64 -> FStar.Pervasives.Native.option Spec.K256.PointOps.proj_point | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"Spec.K256.PointOps.aff_point_load",
"Spec.K256.PointOps.aff_point",
"FStar.Pervasives.Native.Some",
"Spec.K256.PointOps.proj_point",
"Spec.K256.PointOps.to_proj_point",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option"
] | [] | false | false | false | false | false | let load_point (b: BSeq.lbytes 64) : option proj_point =
| match (aff_point_load b) with
| Some p -> Some (to_proj_point p)
| None -> None | false |
Spec.K256.PointOps.fst | Spec.K256.PointOps.point_add | val point_add (p q: proj_point) : proj_point | val point_add (p q: proj_point) : proj_point | let point_add (p:proj_point) (q:proj_point) : proj_point =
let x1, y1, z1 = p in
let x2, y2, z2 = q in
let xx = x1 *% x2 in
let yy = y1 *% y2 in
let zz = z1 *% z2 in
let xy_pairs = (x1 +% y1) *% (x2 +% y2) -% (xx +% yy) in
let yz_pairs = (y1 +% z1) *% (y2 +% z2) -% (yy +% zz) in
let xz_pairs = (x1 +% z1... | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 146,
"start_col": 0,
"start_line": 128
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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.K256.PointOps.proj_point -> q: Spec.K256.PointOps.proj_point
-> Spec.K256.PointOps.proj_point | Prims.Tot | [
"total"
] | [] | [
"Spec.K256.PointOps.proj_point",
"Spec.K256.PointOps.felem",
"FStar.Pervasives.Native.Mktuple3",
"Spec.K256.PointOps.op_Plus_Percent",
"Spec.K256.PointOps.op_Star_Percent",
"Spec.K256.PointOps.op_Subtraction_Percent",
"Spec.K256.PointOps.b"
] | [] | false | false | false | true | false | let point_add (p q: proj_point) : proj_point =
| let x1, y1, z1 = p in
let x2, y2, z2 = q in
let xx = x1 *% x2 in
let yy = y1 *% y2 in
let zz = z1 *% z2 in
let xy_pairs = (x1 +% y1) *% (x2 +% y2) -% (xx +% yy) in
let yz_pairs = (y1 +% z1) *% (y2 +% z2) -% (yy +% zz) in
let xz_pairs = (x1 +% z1) *% (x2 +% z2) -% (xx +% zz) in
let bzz3 = 3 *% b *% zz in
let yy_m_bzz3 =... | false |
Hacl.Spec.PrecompBaseTable256.fst | Hacl.Spec.PrecompBaseTable256.lemma_decompose_nat256_as_four_u64 | val lemma_decompose_nat256_as_four_u64: x:nat{x < pow2 256} ->
Lemma (let (x0, x1, x2, x3) = decompose_nat256_as_four_u64 x in
x0 + x1 * pow2 64 + x2 * pow2 128 + x3 * pow2 192 == x) | val lemma_decompose_nat256_as_four_u64: x:nat{x < pow2 256} ->
Lemma (let (x0, x1, x2, x3) = decompose_nat256_as_four_u64 x in
x0 + x1 * pow2 64 + x2 * pow2 128 + x3 * pow2 192 == x) | let lemma_decompose_nat256_as_four_u64 x =
let x0 = x % pow2 64 in
let x1 = x / pow2 64 % pow2 64 in
let x2 = x / pow2 128 % pow2 64 in
let x3' = x / pow2 192 % pow2 64 in
Math.Lemmas.lemma_div_lt x 256 192;
Math.Lemmas.small_mod (x / pow2 192) (pow2 64);
let x3 = x / pow2 192 in
assert (x3 == x3');
c... | {
"file_name": "code/bignum/Hacl.Spec.PrecompBaseTable256.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 45,
"start_col": 0,
"start_line": 26
} | module Hacl.Spec.PrecompBaseTable256
open FStar.Mul
open Lib.IntTypes
module LSeq = Lib.Sequence
module Loops = Lib.LoopCombinators
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module BD = Hacl.Spec.Bignum.Definitions
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
let lemma_mod_pow2_sub x a b =
... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"FStar.Pervas... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "BD"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": ... | {
"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{x < Prims.pow2 256}
-> FStar.Pervasives.Lemma
(ensures
(let _ = Hacl.Spec.PrecompBaseTable256.decompose_nat256_as_four_u64 x in
(let FStar.Pervasives.Native.Mktuple4 #_ #_ #_ #_ x0 x1 x2 x3 = _ in
x0 + x1 * Prims.pow2 64 + x2 * Prims.pow2 128 + x3 * Prims.pow2 192 == x)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"Prims.op_Subtraction",
"Prims.op_Modul... | [] | false | false | true | false | false | let lemma_decompose_nat256_as_four_u64 x =
| let x0 = x % pow2 64 in
let x1 = x / pow2 64 % pow2 64 in
let x2 = x / pow2 128 % pow2 64 in
let x3' = x / pow2 192 % pow2 64 in
Math.Lemmas.lemma_div_lt x 256 192;
Math.Lemmas.small_mod (x / pow2 192) (pow2 64);
let x3 = x / pow2 192 in
assert (x3 == x3');
calc ( == ) {
x0 + x1 * pow2 64 + x2 * pow2 128 + x3 * pow2 ... | false |
Spec.K256.PointOps.fst | Spec.K256.PointOps.point_double | val point_double (p: proj_point) : proj_point | val point_double (p: proj_point) : proj_point | let point_double (p:proj_point) : proj_point =
let x, y, z = p in
let yy = y *% y in
let zz = z *% z in
let xy2 = 2 *% x *% y in
let bzz3 = 3 *% b *% zz in
let bzz9 = 3 *% bzz3 in
let yy_m_bzz9 = yy -% bzz9 in
let yy_p_bzz3 = yy +% bzz3 in
let yy_zz = yy *% zz in
let t = 24 *% b *% yy_zz in
let x3... | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 162,
"start_col": 0,
"start_line": 148
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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.K256.PointOps.proj_point -> Spec.K256.PointOps.proj_point | Prims.Tot | [
"total"
] | [] | [
"Spec.K256.PointOps.proj_point",
"Spec.K256.PointOps.felem",
"FStar.Pervasives.Native.Mktuple3",
"Spec.K256.PointOps.op_Star_Percent",
"Spec.K256.PointOps.op_Plus_Percent",
"Spec.K256.PointOps.b",
"Spec.K256.PointOps.op_Subtraction_Percent"
] | [] | false | false | false | true | false | let point_double (p: proj_point) : proj_point =
| let x, y, z = p in
let yy = y *% y in
let zz = z *% z in
let xy2 = 2 *% x *% y in
let bzz3 = 3 *% b *% zz in
let bzz9 = 3 *% bzz3 in
let yy_m_bzz9 = yy -% bzz9 in
let yy_p_bzz3 = yy +% bzz3 in
let yy_zz = yy *% zz in
let t = 24 *% b *% yy_zz in
let x3 = xy2 *% yy_m_bzz9 in
let y3 = yy_m_bzz9 *% yy_p_bzz3 +% t in
let z3... | false |
Spec.K256.PointOps.fst | Spec.K256.PointOps.point_store | val point_store (p: proj_point) : BSeq.lbytes 64 | val point_store (p: proj_point) : BSeq.lbytes 64 | let point_store (p:proj_point) : BSeq.lbytes 64 =
aff_point_store (to_aff_point p) | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 203,
"start_col": 0,
"start_line": 202
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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.K256.PointOps.proj_point -> Lib.ByteSequence.lbytes 64 | Prims.Tot | [
"total"
] | [] | [
"Spec.K256.PointOps.proj_point",
"Spec.K256.PointOps.aff_point_store",
"Spec.K256.PointOps.to_aff_point",
"Lib.ByteSequence.lbytes"
] | [] | false | false | false | false | false | let point_store (p: proj_point) : BSeq.lbytes 64 =
| aff_point_store (to_aff_point p) | false |
Spec.K256.PointOps.fst | Spec.K256.PointOps.load_point_nocheck | val load_point_nocheck (b: BSeq.lbytes 64 {point_inv_bytes b}) : proj_point | val load_point_nocheck (b: BSeq.lbytes 64 {point_inv_bytes b}) : proj_point | let load_point_nocheck (b:BSeq.lbytes 64{point_inv_bytes b}) : proj_point =
let px = BSeq.nat_from_bytes_be (sub b 0 32) in
let py = BSeq.nat_from_bytes_be (sub b 32 32) in
to_proj_point (px, py) | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 193,
"start_col": 0,
"start_line": 190
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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 | b: Lib.ByteSequence.lbytes 64 {Spec.K256.PointOps.point_inv_bytes b}
-> Spec.K256.PointOps.proj_point | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"Prims.b2t",
"Spec.K256.PointOps.point_inv_bytes",
"Spec.K256.PointOps.to_proj_point",
"FStar.Pervasives.Native.Mktuple2",
"Spec.K256.PointOps.felem",
"Prims.nat",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.op_Multiply",
"Lib.Sequence.length",
"Lib.IntTypes.int_t",
... | [] | false | false | false | false | false | let load_point_nocheck (b: BSeq.lbytes 64 {point_inv_bytes b}) : proj_point =
| let px = BSeq.nat_from_bytes_be (sub b 0 32) in
let py = BSeq.nat_from_bytes_be (sub b 32 32) in
to_proj_point (px, py) | false |
Spec.K256.PointOps.fst | Spec.K256.PointOps.point_inv_bytes | val point_inv_bytes : b: Lib.ByteSequence.lbytes 64 -> Prims.bool | let point_inv_bytes (b:BSeq.lbytes 64) =
let px = BSeq.nat_from_bytes_be (sub b 0 32) in
let py = BSeq.nat_from_bytes_be (sub b 32 32) in
px < prime && py < prime && is_on_curve (px, py) | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 188,
"start_col": 0,
"start_line": 185
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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 | b: Lib.ByteSequence.lbytes 64 -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"Prims.op_AmpAmp",
"Prims.op_LessThan",
"Spec.K256.PointOps.prime",
"Spec.K256.PointOps.is_on_curve",
"FStar.Pervasives.Native.Mktuple2",
"Spec.K256.PointOps.felem",
"Prims.nat",
"Prims.b2t",
"Prims.pow2",
"Prims.op_Multiply",
"Lib.Sequence.length",
"Lib.IntTypes.i... | [] | false | false | false | false | false | let point_inv_bytes (b: BSeq.lbytes 64) =
| let px = BSeq.nat_from_bytes_be (sub b 0 32) in
let py = BSeq.nat_from_bytes_be (sub b 32 32) in
px < prime && py < prime && is_on_curve (px, py) | false | |
Spec.K256.PointOps.fst | Spec.K256.PointOps.aff_point_load | val aff_point_load (b: BSeq.lbytes 64) : option aff_point | val aff_point_load (b: BSeq.lbytes 64) : option aff_point | let aff_point_load (b:BSeq.lbytes 64) : option aff_point =
let pk_x = BSeq.nat_from_bytes_be (sub b 0 32) in
let pk_y = BSeq.nat_from_bytes_be (sub b 32 32) in
let is_x_valid = pk_x < prime in
let is_y_valid = pk_y < prime in
let is_xy_on_curve =
if is_x_valid && is_y_valid then is_on_curve (pk_x, pk_y) e... | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 177,
"start_col": 0,
"start_line": 170
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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 | b: Lib.ByteSequence.lbytes 64 -> FStar.Pervasives.Native.option Spec.K256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"FStar.Pervasives.Native.Some",
"Spec.K256.PointOps.aff_point",
"FStar.Pervasives.Native.Mktuple2",
"Spec.K256.PointOps.felem",
"Prims.bool",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option",
"Prims.op_AmpAmp",
"Spec.K256.PointOps.is_on_curve",
"Prims.o... | [] | false | false | false | false | false | let aff_point_load (b: BSeq.lbytes 64) : option aff_point =
| let pk_x = BSeq.nat_from_bytes_be (sub b 0 32) in
let pk_y = BSeq.nat_from_bytes_be (sub b 32 32) in
let is_x_valid = pk_x < prime in
let is_y_valid = pk_y < prime in
let is_xy_on_curve = if is_x_valid && is_y_valid then is_on_curve (pk_x, pk_y) else false in
if is_xy_on_curve then Some (pk_x, pk_y) else None | false |
Spec.K256.PointOps.fst | Spec.K256.PointOps.aff_point_decompress | val aff_point_decompress (s: BSeq.lbytes 33) : option aff_point | val aff_point_decompress (s: BSeq.lbytes 33) : option aff_point | let aff_point_decompress (s:BSeq.lbytes 33) : option aff_point =
let s0 = Lib.RawIntTypes.u8_to_UInt8 s.[0] in
if not (s0 = 0x02uy || s0 = 0x03uy) then None
else begin
let x = BSeq.nat_from_bytes_be (sub s 1 32) in
let is_x_valid = x < prime in
let is_y_odd = s0 = 0x03uy in
if not is_x_valid then... | {
"file_name": "specs/Spec.K256.PointOps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 227,
"start_col": 0,
"start_line": 215
} | module Spec.K256.PointOps
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module M = Lib.NatMod
module BSeq = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Finite field
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
assert_norm (24 < pow2 ... | {
"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 | s: Lib.ByteSequence.lbytes 33 -> FStar.Pervasives.Native.option Spec.K256.PointOps.aff_point | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"Prims.op_Negation",
"Prims.op_BarBar",
"Prims.op_Equality",
"FStar.UInt8.t",
"FStar.UInt8.__uint_to_t",
"FStar.Pervasives.Native.None",
"Spec.K256.PointOps.aff_point",
"Prims.bool",
"Spec.K256.PointOps.recover_y",
"Spec.K256.PointOps.felem",
"FStar.Pervasives.Native... | [] | false | false | false | false | false | let aff_point_decompress (s: BSeq.lbytes 33) : option aff_point =
| let s0 = Lib.RawIntTypes.u8_to_UInt8 s.[ 0 ] in
if not (s0 = 0x02uy || s0 = 0x03uy)
then None
else
let x = BSeq.nat_from_bytes_be (sub s 1 32) in
let is_x_valid = x < prime in
let is_y_odd = s0 = 0x03uy in
if not is_x_valid
then None
else
match (recover_y x is_y_odd) with
| Some y -> Some (x, y)
... | false |
Pulse.Checker.Exists.fsti | Pulse.Checker.Exists.intro_exists_vprop | val intro_exists_vprop : st: Pulse.Syntax.Base.st_term{Tm_IntroExists? (Mkst_term?.term st)} -> Pulse.Syntax.Base.vprop | let intro_exists_vprop (st:st_term { Tm_IntroExists? st.term }) =
match st.term with
| Tm_IntroExists { p } -> p | {
"file_name": "lib/steel/pulse/Pulse.Checker.Exists.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 41,
"start_col": 0,
"start_line": 39
} | (*
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.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Pulse.Checker.Exists.fsti... | [
{
"abbrev": false,
"full_module": "Pulse.Checker.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Typing",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Syntax",
"short_module": null
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | st: Pulse.Syntax.Base.st_term{Tm_IntroExists? (Mkst_term?.term st)} -> Pulse.Syntax.Base.vprop | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.st_term",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_Tm_IntroExists",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
"Pulse.Syntax.Base.vprop",
"Prims.list",
"Pulse.Syntax.Base.term"
] | [] | false | false | false | false | false | let intro_exists_vprop (st: st_term{Tm_IntroExists? st.term}) =
| match st.term with | Tm_IntroExists { p = p } -> p | false | |
Spec.SecretBox.fst | Spec.SecretBox.size_nonce | val size_nonce : Prims.int | let size_nonce = 24 | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 12,
"start_col": 0,
"start_line": 12
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *) | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let size_nonce =
| 24 | false | |
Spec.SecretBox.fst | Spec.SecretBox.size_key | val size_key : Prims.int | let size_key = 32 | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 11,
"start_col": 0,
"start_line": 11
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let size_key =
| 32 | false | |
Spec.SecretBox.fst | Spec.SecretBox.size_block | val size_block : Prims.int | let size_block = 64 | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 13,
"start_col": 0,
"start_line": 13
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *) | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let size_block =
| 64 | false | |
Spec.SecretBox.fst | Spec.SecretBox.size_tag | val size_tag : Prims.int | let size_tag = 16 | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 14,
"start_col": 0,
"start_line": 14
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *)
let size_nonce = 24 (* in bytes *) | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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 | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let size_tag =
| 16 | false | |
Spec.SecretBox.fst | Spec.SecretBox.get_len0 | val get_len0 (len: nat) : r: size_nat{r <= 32} | val get_len0 (len: nat) : r: size_nat{r <= 32} | let get_len0 (len:nat) : r:size_nat{r <= 32} =
if len <= 32 then len else 32 | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 29,
"start_col": 0,
"start_line": 28
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *)
let size_nonce = 24 (* in bytes *)
let size_block = 64 (* in bytes *)
let size_tag = 16 (* in bytes *)
type key ... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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 | len: Prims.nat -> r: Lib.IntTypes.size_nat{r <= 32} | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.op_LessThanOrEqual",
"Prims.bool",
"Lib.IntTypes.size_nat",
"Prims.b2t"
] | [] | false | false | false | false | false | let get_len0 (len: nat) : r: size_nat{r <= 32} =
| if len <= 32 then len else 32 | false |
Spec.SecretBox.fst | Spec.SecretBox.secretbox_init | val secretbox_init (k: key) (n: nonce) : key & aekey | val secretbox_init (k: key) (n: nonce) : key & aekey | let secretbox_init (k:key) (n:nonce) : key & aekey =
let n0 : lbytes 16 = sub n 0 16 in
let n1 : lbytes 8 = sub n 16 8 in
let subkey : lbytes 32 = Spec.Salsa20.hsalsa20 k n0 in
let aekey : lbytes 64 = Spec.Salsa20.salsa20_key_block0 subkey n1 in
(subkey,aekey) | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 26,
"start_col": 0,
"start_line": 21
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *)
let size_nonce = 24 (* in bytes *)
let size_block = 64 (* in bytes *)
let size_tag = 16 (* in bytes *)
type key ... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> Spec.SecretBox.key * Spec.SecretBox.aekey | Prims.Tot | [
"total"
] | [] | [
"Spec.SecretBox.key",
"Spec.SecretBox.nonce",
"FStar.Pervasives.Native.Mktuple2",
"Spec.SecretBox.aekey",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.Salsa20.salsa20_key_block0",
"Spec.Salsa20.hsalsa20",
"Lib.Sequence.sub",
"Lib.IntTypes.uint_t",
"... | [] | false | false | false | true | false | let secretbox_init (k: key) (n: nonce) : key & aekey =
| let n0:lbytes 16 = sub n 0 16 in
let n1:lbytes 8 = sub n 16 8 in
let subkey:lbytes 32 = Spec.Salsa20.hsalsa20 k n0 in
let aekey:lbytes 64 = Spec.Salsa20.salsa20_key_block0 subkey n1 in
(subkey, aekey) | false |
Spec.SecretBox.fst | Spec.SecretBox.secretbox_easy | val secretbox_easy (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t})
: c: bytes{length c = size_tag + length m} | val secretbox_easy (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t})
: c: bytes{length c = size_tag + length m} | let secretbox_easy (k:key) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : c:bytes{length c = size_tag + length m} =
let (tg,c) = secretbox_detached k n m in
Seq.append tg c | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 77,
"start_col": 0,
"start_line": 75
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *)
let size_nonce = 24 (* in bytes *)
let size_block = 64 (* in bytes *)
let size_tag = 16 (* in bytes *)
type key ... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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: Spec.SecretBox.key ->
n: Spec.SecretBox.nonce ->
m:
Lib.ByteSequence.bytes
{Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t}
-> c:
Lib.ByteSequence.bytes{Lib.Sequence.length c = Spec.SecretBox.size_tag + Lib.Sequence.length m} | Prims.Tot | [
"total"
] | [] | [
"Spec.SecretBox.key",
"Spec.SecretBox.nonce",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.SecretBox.size_block",
"Lib.IntTypes.max_size_t",
"Spec.SecretBox.t... | [] | false | false | false | false | false | let secretbox_easy (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t})
: c: bytes{length c = size_tag + length m} =
| let tg, c = secretbox_detached k n m in
Seq.append tg c | false |
Spec.SecretBox.fst | Spec.SecretBox.secretbox_open_easy | val secretbox_open_easy
(k: key)
(n: nonce)
(c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t})
: option (m: bytes{length m = length c - size_tag}) | val secretbox_open_easy
(k: key)
(n: nonce)
(c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t})
: option (m: bytes{length m = length c - size_tag}) | let secretbox_open_easy (k:key) (n:nonce) (c:bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m:bytes{length m = length c - size_tag}) =
let tg = Seq.slice c 0 size_tag in
let e = Seq.slice c size_tag (length c) in
secretbox_open_detached k n tg e | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 82,
"start_col": 0,
"start_line": 79
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *)
let size_nonce = 24 (* in bytes *)
let size_block = 64 (* in bytes *)
let size_tag = 16 (* in bytes *)
type key ... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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: Spec.SecretBox.key ->
n: Spec.SecretBox.nonce ->
c:
Lib.ByteSequence.bytes
{ Lib.Sequence.length c >= Spec.SecretBox.size_tag /\
(Lib.Sequence.length c - Spec.SecretBox.size_tag) / Spec.SecretBox.size_block <=
Lib.IntTypes.max_size_t }
-> FStar.Pervasives.Native.optio... | Prims.Tot | [
"total"
] | [] | [
"Spec.SecretBox.key",
"Spec.SecretBox.nonce",
"Lib.ByteSequence.bytes",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.SecretBox.size_tag",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
... | [] | false | false | false | false | false | let secretbox_open_easy
(k: key)
(n: nonce)
(c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t})
: option (m: bytes{length m = length c - size_tag}) =
| let tg = Seq.slice c 0 size_tag in
let e = Seq.slice c size_tag (length c) in
secretbox_open_detached k n tg e | false |
OPLSS.Ideal.fsti | OPLSS.Ideal.auth | val auth : OPLSS.Flag.flag | let auth = uf_cma | {
"file_name": "examples/crypto/OPLSS.Ideal.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 46,
"start_col": 0,
"start_line": 46
} | (*
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",
"OPLSS.Flag.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS.Ideal.fsti"
} | [
{
"abbrev": false,
"full_module": "OPLSS.Flag",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
... | {
"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 | OPLSS.Flag.flag | Prims.Tot | [
"total"
] | [] | [
"OPLSS.Ideal.uf_cma"
] | [] | false | false | false | true | false | let auth =
| uf_cma | false | |
OPLSS.Ideal.fsti | OPLSS.Ideal.conf | val conf : b: OPLSS.Flag.flag{OPLSS.Flag.reveal b ==> OPLSS.Flag.reveal OPLSS.Ideal.pre_ind_cpa} | let conf = ind_cpa | {
"file_name": "examples/crypto/OPLSS.Ideal.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 49,
"start_col": 0,
"start_line": 49
} | (*
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",
"OPLSS.Flag.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS.Ideal.fsti"
} | [
{
"abbrev": false,
"full_module": "OPLSS.Flag",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: OPLSS.Flag.flag{OPLSS.Flag.reveal b ==> OPLSS.Flag.reveal OPLSS.Ideal.pre_ind_cpa} | Prims.Tot | [
"total"
] | [] | [
"OPLSS.Ideal.ind_cpa"
] | [] | false | false | false | false | false | let conf =
| ind_cpa | false | |
Hacl.Frodo.Random.fst | Hacl.Frodo.Random.state | val state: b:lbuffer uint8 48ul{ recallable b } | val state: b:lbuffer uint8 48ul{ recallable b } | let state = gcmalloc HyperStack.root 0uy 48ul | {
"file_name": "code/frodo/Hacl.Frodo.Random.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 19,
"start_col": 0,
"start_line": 19
} | module Hacl.Frodo.Random
open FStar.HyperStack.All
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
module S = Spec.Frodo.Random
(* Stub stateless implementation on top of Lib.RandomBuffer.System.
Intended to be replaced for KATs with include/rng.c *)
friend Lib.IntTypes
#set-options "--z3rlimit 50 --fue... | {
"checked_file": "/",
"dependencies": [
"Spec.Frodo.Random.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.RandomBuffer.System.fsti.checked",
"Lib.IntTypes.fst.checked",
"Lib.IntTypes.fst.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt8.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.Random",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lo... | {
"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.Buffer.lbuffer Lib.IntTypes.uint8 48ul {Lib.Buffer.recallable b} | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.gcmalloc",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"FStar.UInt8.__uint_to_t",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.UInt32.... | [] | false | false | false | false | false | let state =
| gcmalloc HyperStack.root 0uy 48ul | false |
Spec.SecretBox.fst | Spec.SecretBox.secretbox_detached | val secretbox_detached (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t})
: (tag & c: bytes{length c = length m}) | val secretbox_detached (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t})
: (tag & c: bytes{length c = length m}) | let secretbox_detached (k:key) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : (tag & c:bytes{length c = length m}) =
let (subkey,aekey) = secretbox_init k n in
let n1 = sub n 16 8 in
let mkey = sub aekey 0 32 in
let ekey0 = sub aekey 32 32 in
let mlen0 = get_len0 (length m) in
let m0 = Seq.slic... | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 9,
"end_line": 50,
"start_col": 0,
"start_line": 31
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *)
let size_nonce = 24 (* in bytes *)
let size_block = 64 (* in bytes *)
let size_tag = 16 (* in bytes *)
type key ... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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: Spec.SecretBox.key ->
n: Spec.SecretBox.nonce ->
m:
Lib.ByteSequence.bytes
{Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t}
-> Spec.SecretBox.tag * c: Lib.ByteSequence.bytes{Lib.Sequence.length c = Lib.Sequence.length m} | Prims.Tot | [
"total"
] | [] | [
"Spec.SecretBox.key",
"Spec.SecretBox.nonce",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.SecretBox.size_block",
"Lib.IntTypes.max_size_t",
"Spec.SecretBox.a... | [] | false | false | false | false | false | let secretbox_detached (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t})
: (tag & c: bytes{length c = length m}) =
| let subkey, aekey = secretbox_init k n in
let n1 = sub n 16 8 in
let mkey = sub aekey 0 32 in
let ekey0 = sub aekey 32 32 in
let mlen0 = get_len0 (length m) in
let m0 = Seq.slice m 0 mlen0 in
let m1 = Seq.slice m mlen0 (length m) in
let block0 = create 32 (u8 0) in
let block0 = update_sub block0 0 mlen0 m0 in
let block... | false |
Spec.SecretBox.fst | Spec.SecretBox.secretbox_open_detached | val secretbox_open_detached
(k: key)
(n: nonce)
(tg: tag)
(c: bytes{length c / size_block <= max_size_t})
: option (m: bytes{length m = length c}) | val secretbox_open_detached
(k: key)
(n: nonce)
(tg: tag)
(c: bytes{length c / size_block <= max_size_t})
: option (m: bytes{length m = length c}) | let secretbox_open_detached (k:key) (n:nonce) (tg:tag) (c:bytes{length c / size_block <= max_size_t}) : option (m:bytes{length m = length c}) =
let (subkey,aekey) = secretbox_init k n in
let n1 = sub n 16 8 in
let mkey = sub aekey 0 32 in
let ekey0 = sub aekey 32 32 in
let tg' = Spec.Poly1305.poly1305_mac c ... | {
"file_name": "specs/Spec.SecretBox.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 73,
"start_col": 0,
"start_line": 52
} | module Spec.SecretBox
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
(* Constants *)
let size_key = 32 (* in bytes *)
let size_nonce = 24 (* in bytes *)
let size_block = 64 (* in bytes *)
let size_tag = 16 (* in bytes *)
type key ... | {
"checked_file": "/",
"dependencies": [
"Spec.Salsa20.fst.checked",
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"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: Spec.SecretBox.key ->
n: Spec.SecretBox.nonce ->
tg: Spec.SecretBox.tag ->
c:
Lib.ByteSequence.bytes
{Lib.Sequence.length c / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t}
-> FStar.Pervasives.Native.option (m:
Lib.ByteSequence.bytes{Lib.Sequence.length m = Lib.Sequenc... | Prims.Tot | [
"total"
] | [] | [
"Spec.SecretBox.key",
"Spec.SecretBox.nonce",
"Spec.SecretBox.tag",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.SecretBox.size_block",
"Lib.IntTypes.max_size... | [] | false | false | false | false | false | let secretbox_open_detached
(k: key)
(n: nonce)
(tg: tag)
(c: bytes{length c / size_block <= max_size_t})
: option (m: bytes{length m = length c}) =
| let subkey, aekey = secretbox_init k n in
let n1 = sub n 16 8 in
let mkey = sub aekey 0 32 in
let ekey0 = sub aekey 32 32 in
let tg' = Spec.Poly1305.poly1305_mac c mkey in
if Lib.ByteSequence.lbytes_eq tg tg'
then
(let clen0 = get_len0 (length c) in
let c0 = Seq.slice c 0 clen0 in
let c1 = Seq.slice c clen0 (... | false |
FStar.ConstantTime.Integers.fst | FStar.ConstantTime.Integers.hide | val hide (#sl:sl)
(#l:lattice_element sl)
(#s:sw)
(x:int{within_bounds s x})
: GTot (secret_int l s) | val hide (#sl:sl)
(#l:lattice_element sl)
(#s:sw)
(x:int{within_bounds s x})
: GTot (secret_int l s) | let hide (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:int{within_bounds s x})
: GTot (secret_int l s)
= return l (u x) | {
"file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 48,
"start_col": 0,
"start_line": 46
} | (*
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.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.IFC.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.ConstantTime.Integers.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.IFC",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ConstantTime",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.Integers.int{FStar.Integers.within_bounds s x}
-> Prims.GTot (FStar.ConstantTime.Integers.secret_int l s) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.IFC.sl",
"FStar.IFC.lattice_element",
"FStar.ConstantTime.Integers.sw",
"FStar.Integers.int",
"FStar.Integers.within_bounds",
"FStar.IFC.return",
"FStar.Integers.int_t",
"FStar.Integers.u",
"FStar.ConstantTime.Integers.secret_int"
] | [] | false | false | false | false | false | let hide (#sl: sl) (#l: lattice_element sl) (#s: sw) (x: int{within_bounds s x})
: GTot (secret_int l s) =
| return l (u x) | false |
FStar.ConstantTime.Integers.fst | FStar.ConstantTime.Integers.secret_int | val secret_int (#sl:sl u#c)
(l:lattice_element sl)
(s:sw) : Type0 | val secret_int (#sl:sl u#c)
(l:lattice_element sl)
(s:sw) : Type0 | let secret_int (#sl:sl)
(l:lattice_element sl)
(s:sw) : Type0 =
protected l (int_t s) | {
"file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 35,
"start_col": 0,
"start_line": 32
} | (*
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.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.IFC.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.ConstantTime.Integers.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.IFC",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ConstantTime",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: FStar.IFC.lattice_element sl -> s: FStar.ConstantTime.Integers.sw -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.IFC.sl",
"FStar.IFC.lattice_element",
"FStar.ConstantTime.Integers.sw",
"FStar.IFC.protected",
"FStar.Integers.int_t"
] | [] | false | false | false | false | true | let secret_int (#sl: sl) (l: lattice_element sl) (s: sw) : Type0 =
| protected l (int_t s) | false |
FStar.ConstantTime.Integers.fst | FStar.ConstantTime.Integers.reveal | val reveal (#sl:sl)
(#l:lattice_element sl)
(#s:sw)
(x:secret_int l s)
: GTot (y:int{within_bounds s y}) | val reveal (#sl:sl)
(#l:lattice_element sl)
(#s:sw)
(x:secret_int l s)
: GTot (y:int{within_bounds s y}) | let reveal (#sl:sl)
(#l:lattice_element sl)
(#s:sw)
(x:secret_int l s)
: GTot (y:int{within_bounds s y})
= v (reveal x) | {
"file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 43,
"start_col": 0,
"start_line": 38
} | (*
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.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.IFC.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.ConstantTime.Integers.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.IFC",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ConstantTime",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.ConstantTime.Integers.secret_int l s
-> Prims.GTot (y: FStar.Integers.int{FStar.Integers.within_bounds s y}) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.IFC.sl",
"FStar.IFC.lattice_element",
"FStar.ConstantTime.Integers.sw",
"FStar.ConstantTime.Integers.secret_int",
"FStar.Integers.v",
"FStar.IFC.reveal",
"FStar.Integers.int_t",
"FStar.Integers.int",
"FStar.Integers.within_bounds"
] | [] | false | false | false | false | false | let reveal (#sl: sl) (#l: lattice_element sl) (#s: sw) (x: secret_int l s)
: GTot (y: int{within_bounds s y}) =
| v (reveal x) | false |
FStar.ConstantTime.Integers.fst | FStar.ConstantTime.Integers.promote | val promote (#sl:sl)
(#l0:lattice_element sl)
(#s:sw)
(x:secret_int l0 s)
(l1:lattice_element sl)
: Tot (y:secret_int (l1 `lub` l0) s{reveal y == reveal x}) | val promote (#sl:sl)
(#l0:lattice_element sl)
(#s:sw)
(x:secret_int l0 s)
(l1:lattice_element sl)
: Tot (y:secret_int (l1 `lub` l0) s{reveal y == reveal x}) | let promote #sl #l0 #s x l1 =
join (return #_ #(secret_int l0 s) l1 x) | {
"file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 54,
"start_col": 0,
"start_line": 53
} | (*
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.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.IFC.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.ConstantTime.Integers.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.IFC",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ConstantTime",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.ConstantTime.Integers.secret_int l0 s -> l1: FStar.IFC.lattice_element sl
-> y:
FStar.ConstantTime.Integers.secret_int (FStar.IFC.lub l1 l0) s
{FStar.ConstantTime.Integers.reveal y == FStar.ConstantTime.Integers.reveal x} | Prims.Tot | [
"total"
] | [] | [
"FStar.IFC.sl",
"FStar.IFC.lattice_element",
"FStar.ConstantTime.Integers.sw",
"FStar.ConstantTime.Integers.secret_int",
"FStar.IFC.join",
"FStar.Integers.int_t",
"FStar.IFC.return",
"FStar.IFC.lub",
"Prims.eq2",
"FStar.Integers.int",
"Prims.l_or",
"FStar.Integers.within_bounds",
"FStar.Cons... | [] | false | false | false | false | false | let promote #sl #l0 #s x l1 =
| join (return #_ #(secret_int l0 s) l1 x) | false |
FStar.ConstantTime.Integers.fst | FStar.ConstantTime.Integers.addition_mod | val addition_mod (#sl:sl)
(#l:lattice_element sl)
(#sw: _ {Unsigned? sw /\ width_of_sw sw <> W128})
(x : secret_int l sw)
(y : secret_int l sw)
: Tot (z:secret_int l sw { m z == m x +% m y } ) | val addition_mod (#sl:sl)
(#l:lattice_element sl)
(#sw: _ {Unsigned? sw /\ width_of_sw sw <> W128})
(x : secret_int l sw)
(y : secret_int l sw)
: Tot (z:secret_int l sw { m z == m x +% m y } ) | let addition_mod (#sl:sl)
(#l:lattice_element sl)
(#sw: _ {Unsigned? sw /\ width_of_sw sw <> W128})
(x : secret_int l sw)
(y : secret_int l sw)
: Tot (z:secret_int l sw { m z == m x +% m y } )
= let>> a = x in
let>> b = y in
return ... | {
"file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 84,
"start_col": 0,
"start_line": 76
} | (*
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.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.IFC.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.ConstantTime.Integers.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.IFC",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ConstantTime",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.ConstantTime.Integers.secret_int l sw -> y: FStar.ConstantTime.Integers.secret_int l sw
-> z:
FStar.ConstantTime.Integers.secret_int l sw
{ FStar.ConstantTime.Integers.m z ==
FStar.ConstantTime.Integers.m x +% FStar.ConstantTime.Integers.m y } | Prims.Tot | [
"total"
] | [] | [
"FStar.IFC.sl",
"FStar.IFC.lattice_element",
"FStar.Integers.signed_width",
"Prims.l_and",
"Prims.b2t",
"FStar.Integers.uu___is_Unsigned",
"Prims.op_disEquality",
"FStar.Integers.width",
"FStar.Integers.width_of_sw",
"FStar.Integers.W128",
"FStar.ConstantTime.Integers.secret_int",
"FStar.IFC.o... | [] | false | false | false | false | false | let addition_mod
(#sl: sl)
(#l: lattice_element sl)
(#sw: _{Unsigned? sw /\ width_of_sw sw <> W128})
(x y: secret_int l sw)
: Tot (z: secret_int l sw {m z == m x +% m y}) =
| let>> a = x in
let>> b = y in
return l (a +% b) | false |
FStar.ConstantTime.Integers.fst | FStar.ConstantTime.Integers.addition | val addition (#sl:sl)
(#l:lattice_element sl)
(#s:sw)
(x : secret_int l s)
(y : secret_int l s {ok ( + ) (m x) (m y)})
: Tot (z:secret_int l s{m z == m x + m y}) | val addition (#sl:sl)
(#l:lattice_element sl)
(#s:sw)
(x : secret_int l s)
(y : secret_int l s {ok ( + ) (m x) (m y)})
: Tot (z:secret_int l s{m z == m x + m y}) | let addition #sl (#l:lattice_element sl) #s
(x : secret_int l s)
(y : secret_int l s {ok ( + ) (m x) (m y)})
: Tot (z:secret_int l s{m z == m x + m y})
= let>> a = x in
let>> b = y in
return l (a + b) | {
"file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 72,
"start_col": 0,
"start_line": 66
} | (*
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.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.IFC.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.ConstantTime.Integers.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.IFC",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ConstantTime",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x: FStar.ConstantTime.Integers.secret_int l s ->
y:
FStar.ConstantTime.Integers.secret_int l s
{ FStar.Integers.ok FStar.Integers.op_Plus
(FStar.ConstantTime.Integers.m x)
(FStar.ConstantTime.Integers.m y) }
-> z:
FStar.ConstantTime.Integers.secret_int l s
{ FS... | Prims.Tot | [
"total"
] | [] | [
"FStar.IFC.sl",
"FStar.IFC.lattice_element",
"FStar.ConstantTime.Integers.sw",
"FStar.ConstantTime.Integers.secret_int",
"FStar.Integers.ok",
"FStar.Integers.op_Plus",
"FStar.Integers.Signed",
"FStar.Integers.Winfinite",
"FStar.ConstantTime.Integers.m",
"FStar.IFC.op_let_Greater_Greater",
"FStar... | [] | false | false | false | false | false | let addition
#sl
(#l: lattice_element sl)
#s
(x: secret_int l s)
(y: secret_int l s {ok ( + ) (m x) (m y)})
: Tot (z: secret_int l s {m z == m x + m y}) =
| let>> a = x in
let>> b = y in
return l (a + b) | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add2_st | val mul_wide_add2_st: #t:limb_t -> mul_wide_add2_t t | val mul_wide_add2_st: #t:limb_t -> mul_wide_add2_t t | let mul_wide_add2_st #t =
match t with
| U32 -> mul_wide_add2_u32
| U64 -> mul_wide_add2_u64 | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 131,
"start_col": 0,
"start_line": 128
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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.Base.mul_wide_add2_t t | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Base.mul_wide_add2_u32",
"Hacl.Bignum.Base.mul_wide_add2_u64",
"Hacl.Bignum.Base.mul_wide_add2_t"
] | [] | false | false | false | false | false | let mul_wide_add2_st #t =
| match t with
| U32 -> mul_wide_add2_u32
| U64 -> mul_wide_add2_u64 | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add_st | val mul_wide_add_st: #t:limb_t -> mul_wide_add_t t | val mul_wide_add_st: #t:limb_t -> mul_wide_add_t t | let mul_wide_add_st #t =
match t with
| U32 -> mul_wide_add_u32
| U64 -> mul_wide_add_u64 | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 91,
"start_col": 0,
"start_line": 88
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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.Base.mul_wide_add_t t | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Base.mul_wide_add_u32",
"Hacl.Bignum.Base.mul_wide_add_u64",
"Hacl.Bignum.Base.mul_wide_add_t"
] | [] | false | false | false | false | false | let mul_wide_add_st #t =
| match t with
| U32 -> mul_wide_add_u32
| U64 -> mul_wide_add_u64 | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add_t | val mul_wide_add_t : t: Hacl.Bignum.Definitions.limb_t -> Type0 | let mul_wide_add_t (t:limb_t) =
a:limb t
-> b:limb t
-> c_in:limb t
-> out:lbuffer (limb t) 1ul ->
Stack (limb t)
(requires fun h -> live h out)
(ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\
(c_out, LSeq.index (as_seq h1 out) 0) == mul_wide_add a b c_in) | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 67,
"end_line": 65,
"start_col": 0,
"start_line": 57
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Definitions.limb",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"FStar.Monotonic.HyperStack.mem",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Prims.l_and",
"Lib.Buffer.modifies",
"Lib.Buffer.loc",
"Prims.eq2",
"FStar.Pervasives.Native.tuple2",
"H... | [] | false | false | false | true | true | let mul_wide_add_t (t: limb_t) =
| a: limb t -> b: limb t -> c_in: limb t -> out: lbuffer (limb t) 1ul
-> Stack (limb t)
(requires fun h -> live h out)
(ensures
fun h0 c_out h1 ->
modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == mul_wide_add a b c_in
) | false | |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add_u32 | val mul_wide_add_u32: mul_wide_add_t U32 | val mul_wide_add_u32: mul_wide_add_t U32 | let mul_wide_add_u32 a b c_in out =
lemma_mul_wide_add a b c_in (u32 0);
let res = to_u64 a *! to_u64 b +! to_u64 c_in in
out.(0ul) <- to_u32 res;
to_u32 (res >>. 32ul) | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 74,
"start_col": 0,
"start_line": 70
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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.Base.mul_wide_add_t Lib.IntTypes.U32 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb",
"Lib.IntTypes.U32",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.to_u32",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"Lib.IntTypes.int_t",
"Lib.IntTypes.op_Plu... | [] | false | false | false | true | false | let mul_wide_add_u32 a b c_in out =
| lemma_mul_wide_add a b c_in (u32 0);
let res = to_u64 a *! to_u64 b +! to_u64 c_in in
out.(0ul) <- to_u32 res;
to_u32 (res >>. 32ul) | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add2_t | val mul_wide_add2_t : t: Hacl.Bignum.Definitions.limb_t -> Type0 | let mul_wide_add2_t (t:limb_t) =
a:limb t
-> b:limb t
-> c_in:limb t
-> out:lbuffer (limb t) 1ul ->
Stack (limb t)
(requires fun h -> live h out)
(ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\
(c_out, LSeq.index (as_seq h1 out) 0) == mul_wide_add2 a b c_in (LSeq.index (as_seq h0 out) 0)) | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 99,
"end_line": 103,
"start_col": 0,
"start_line": 95
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Definitions.limb",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"FStar.Monotonic.HyperStack.mem",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Prims.l_and",
"Lib.Buffer.modifies",
"Lib.Buffer.loc",
"Prims.eq2",
"FStar.Pervasives.Native.tuple2",
"H... | [] | false | false | false | true | true | let mul_wide_add2_t (t: limb_t) =
| a: limb t -> b: limb t -> c_in: limb t -> out: lbuffer (limb t) 1ul
-> Stack (limb t)
(requires fun h -> live h out)
(ensures
fun h0 c_out h1 ->
modifies (loc out) h0 h1 /\
(c_out, LSeq.index (as_seq h1 out) 0) ==
mul_wide_add2 a b c_in (LSeq.index (as_seq h0 out) 0)) | false | |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add2_u32 | val mul_wide_add2_u32: mul_wide_add2_t U32 | val mul_wide_add2_u32: mul_wide_add2_t U32 | let mul_wide_add2_u32 a b c_in out =
let out0 = out.(0ul) in
lemma_mul_wide_add a b c_in out0;
let res = to_u64 a *! to_u64 b +! to_u64 c_in +! to_u64 out0 in
out.(0ul) <- to_u32 res;
to_u32 (res >>. 32ul) | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 113,
"start_col": 0,
"start_line": 108
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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.Base.mul_wide_add2_t Lib.IntTypes.U32 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb",
"Lib.IntTypes.U32",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.to_u32",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"Lib.IntTypes.int_t",
"Lib.IntTypes.op_Plu... | [] | false | false | false | true | false | let mul_wide_add2_u32 a b c_in out =
| let out0 = out.(0ul) in
lemma_mul_wide_add a b c_in out0;
let res = to_u64 a *! to_u64 b +! to_u64 c_in +! to_u64 out0 in
out.(0ul) <- to_u32 res;
to_u32 (res >>. 32ul) | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add2_u64 | val mul_wide_add2_u64: mul_wide_add2_t U64 | val mul_wide_add2_u64: mul_wide_add2_t U64 | let mul_wide_add2_u64 a b c_in out =
let out0 = out.(0ul) in
lemma_mul_wide_add a b c_in out0;
let res = mul64_wide a b +! to_u128 c_in +! to_u128 out0 in
out.(0ul) <- to_u64 res;
to_u64 (res >>. 64ul) | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 123,
"start_col": 0,
"start_line": 118
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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.Base.mul_wide_add2_t Lib.IntTypes.U64 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb",
"Lib.IntTypes.U64",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.to_u64",
"Lib.IntTypes.U128",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"Lib.IntTypes.int_t",
"Lib.IntTypes.op_Pl... | [] | false | false | false | true | false | let mul_wide_add2_u64 a b c_in out =
| let out0 = out.(0ul) in
lemma_mul_wide_add a b c_in out0;
let res = mul64_wide a b +! to_u128 c_in +! to_u128 out0 in
out.(0ul) <- to_u64 res;
to_u64 (res >>. 64ul) | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.mul_wide_add_u64 | val mul_wide_add_u64: mul_wide_add_t U64 | val mul_wide_add_u64: mul_wide_add_t U64 | let mul_wide_add_u64 a b c_in out =
lemma_mul_wide_add a b c_in (u64 0);
let res = mul64_wide a b +! to_u128 c_in in
out.(0ul) <- to_u64 res;
to_u64 (res >>. 64ul) | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 83,
"start_col": 0,
"start_line": 79
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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.Base.mul_wide_add_t Lib.IntTypes.U64 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Bignum.Definitions.limb",
"Lib.IntTypes.U64",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.to_u64",
"Lib.IntTypes.U128",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"Lib.IntTypes.int_t",
"Lib.IntTypes.op_Pl... | [] | false | false | false | true | false | let mul_wide_add_u64 a b c_in out =
| lemma_mul_wide_add a b c_in (u64 0);
let res = mul64_wide a b +! to_u128 c_in in
out.(0ul) <- to_u64 res;
to_u64 (res >>. 64ul) | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.subborrow_st | val subborrow_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul ->
Stack (carry t)
(requires fun h -> live h out)
(ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\
(c_out, LSeq.index (as_seq h1 out) 0) == subborrow c_in a b) | val subborrow_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul ->
Stack (carry t)
(requires fun h -> live h out)
(ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\
(c_out, LSeq.index (as_seq h1 out) 0) == subborrow c_in a b) | let subborrow_st c_in a b out =
Lib.IntTypes.Intrinsics.sub_borrow c_in a b out | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 49,
"end_line": 53,
"start_col": 0,
"start_line": 52
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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 |
c_in: Hacl.Spec.Bignum.Base.carry t ->
a: Hacl.Bignum.Definitions.limb t ->
b: Hacl.Bignum.Definitions.limb t ->
out: Lib.Buffer.lbuffer (Hacl.Bignum.Definitions.limb t) 1ul
-> FStar.HyperStack.ST.Stack (Hacl.Spec.Bignum.Base.carry t) | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.Base.carry",
"Hacl.Bignum.Definitions.limb",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.Intrinsics.sub_borrow",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC"
] | [] | false | true | false | false | false | let subborrow_st c_in a b out =
| Lib.IntTypes.Intrinsics.sub_borrow c_in a b out | false |
Hacl.Bignum.Base.fst | Hacl.Bignum.Base.addcarry_st | val addcarry_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul ->
Stack (carry t)
(requires fun h -> live h out)
(ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\
(c_out, LSeq.index (as_seq h1 out) 0) == addcarry c_in a b) | val addcarry_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul ->
Stack (carry t)
(requires fun h -> live h out)
(ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\
(c_out, LSeq.index (as_seq h1 out) 0) == addcarry c_in a b) | let addcarry_st #t c_in a b out =
Lib.IntTypes.Intrinsics.add_carry c_in a b out | {
"file_name": "code/bignum/Hacl.Bignum.Base.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 35,
"start_col": 0,
"start_line": 34
} | module Hacl.Bignum.Base
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
include Hacl.Spec.Bignum.Base
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(**
unsigned char _addcar... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.Intrinsics.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.Base.fst.checked",
"Hacl.Bignum.Definitions.fst.checked",
"FStar.UInt32.fsti.ch... | [
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Bignum.Base",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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 |
c_in: Hacl.Spec.Bignum.Base.carry t ->
a: Hacl.Bignum.Definitions.limb t ->
b: Hacl.Bignum.Definitions.limb t ->
out: Lib.Buffer.lbuffer (Hacl.Bignum.Definitions.limb t) 1ul
-> FStar.HyperStack.ST.Stack (Hacl.Spec.Bignum.Base.carry t) | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.Base.carry",
"Hacl.Bignum.Definitions.limb",
"Lib.Buffer.lbuffer",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.Intrinsics.add_carry",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC"
] | [] | false | true | false | false | false | let addcarry_st #t c_in a b out =
| Lib.IntTypes.Intrinsics.add_carry c_in a b out | false |
FStar.IndefiniteDescription.fst | FStar.IndefiniteDescription.elim_squash | val elim_squash (#p:Type u#a) (s:squash p) : GTot p | val elim_squash (#p:Type u#a) (s:squash p) : GTot p | let elim_squash (#p:Type u#a) (s:squash p) : GTot p =
let uu : squash (x:p & squash trivial) =
bind_squash s (fun x -> return_squash (| x, return_squash T |)) in
give_proof (return_squash uu);
indefinite_description_ghost p (fun _ -> squash trivial) | {
"file_name": "ulib/FStar.IndefiniteDescription.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 89,
"start_col": 0,
"start_line": 85
} | (*
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.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.IndefiniteDescription.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Prims.squash p -> Prims.GTot p | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.squash",
"FStar.IndefiniteDescription.indefinite_description_ghost",
"Prims.trivial",
"Prims.prop",
"Prims.unit",
"FStar.Squash.give_proof",
"Prims.dtuple2",
"FStar.Squash.return_squash",
"FStar.Squash.bind_squash",
"Prims.Mkdtuple2",
"Prims.T"
] | [] | false | false | false | false | false | let elim_squash (#p: Type u#a) (s: squash p) : GTot p =
| let uu:squash (x: p & squash trivial) =
bind_squash s (fun x -> return_squash (| x, return_squash T |))
in
give_proof (return_squash uu);
indefinite_description_ghost p (fun _ -> squash trivial) | false |
FStar.IndefiniteDescription.fst | FStar.IndefiniteDescription.strong_excluded_middle | val strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p}) | val strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p}) | let strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p}) =
let aux (p: Type0) : Lemma (exists b. b = true <==> p) =
give_proof (bind_squash (get_proof (l_or p (~p)))
(fun (b: l_or p (~p)) ->
bind_squash b
(fun (b': Prims.sum p (~p)) ->
mat... | {
"file_name": "ulib/FStar.IndefiniteDescription.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 64,
"start_col": 0,
"start_line": 47
} | (*
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.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.IndefiniteDescription.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Type0 -> Prims.GTot (b: Prims.bool{b = true <==> p}) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.IndefiniteDescription.indefinite_description_ghost",
"Prims.bool",
"Prims.l_iff",
"Prims.b2t",
"Prims.op_Equality",
"Prims.prop",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_Exists",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Squash.give_proof",
"FStar.Squash.bind_sq... | [] | false | false | false | false | false | let strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p}) =
| let aux (p: Type0) : Lemma (exists b. b = true <==> p) =
give_proof (bind_squash (get_proof (l_or p (~p)))
(fun (b: l_or p (~p)) ->
bind_squash b
(fun (b': Prims.sum p (~p)) ->
match b' with
| Prims.Left hp ->
give_witness hp;
... | false |
FStar.IndefiniteDescription.fst | FStar.IndefiniteDescription.stronger_markovs_principle_prop | val stronger_markovs_principle_prop (p: (nat -> GTot prop))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) | val stronger_markovs_principle_prop (p: (nat -> GTot prop))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) | let stronger_markovs_principle_prop (p: (nat -> GTot prop))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) =
indefinite_description_ghost _ p | {
"file_name": "ulib/FStar.IndefiniteDescription.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 80,
"start_col": 0,
"start_line": 78
} | (*
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.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.IndefiniteDescription.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: (_: Prims.nat -> Prims.GTot Prims.prop) -> Prims.Ghost Prims.nat | Prims.Ghost | [] | [] | [
"Prims.nat",
"Prims.prop",
"FStar.IndefiniteDescription.indefinite_description_ghost",
"Prims.l_not",
"Prims.l_Forall"
] | [] | false | false | false | false | false | let stronger_markovs_principle_prop (p: (nat -> GTot prop))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) =
| indefinite_description_ghost _ p | false |
FStar.IndefiniteDescription.fst | FStar.IndefiniteDescription.indefinite_description_ghost | val indefinite_description_ghost (a: Type) (p: (a -> prop) { exists x. p x })
: GTot (x: a { p x }) | val indefinite_description_ghost (a: Type) (p: (a -> prop) { exists x. p x })
: GTot (x: a { p x }) | let indefinite_description_ghost (a: Type) (p: (a -> prop) { exists x. p x })
: GTot (x: a { p x })
= let w = indefinite_description_tot a p in
let x = Ghost.reveal w in
x | {
"file_name": "ulib/FStar.IndefiniteDescription.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 42,
"start_col": 0,
"start_line": 38
} | (*
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.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.IndefiniteDescription.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> p: (_: a -> Prims.prop){exists (x: a). p x} -> Prims.GTot (x: a{p x}) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.prop",
"Prims.l_Exists",
"FStar.Ghost.reveal",
"FStar.Ghost.erased",
"FStar.IndefiniteDescription.indefinite_description_tot"
] | [] | false | false | false | false | false | let indefinite_description_ghost (a: Type) (p: (a -> prop){exists x. p x}) : GTot (x: a{p x}) =
| let w = indefinite_description_tot a p in
let x = Ghost.reveal w in
x | false |
FStar.IndefiniteDescription.fst | FStar.IndefiniteDescription.stronger_markovs_principle | val stronger_markovs_principle (p: (nat -> GTot bool))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) | val stronger_markovs_principle (p: (nat -> GTot bool))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) | let stronger_markovs_principle (p: (nat -> GTot bool))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) =
indefinite_description_ghost _ (fun n -> p n==true) | {
"file_name": "ulib/FStar.IndefiniteDescription.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 55,
"end_line": 74,
"start_col": 0,
"start_line": 72
} | (*
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.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": true,
"source_file": "FStar.IndefiniteDescription.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: (_: Prims.nat -> Prims.GTot Prims.bool) -> Prims.Ghost Prims.nat | Prims.Ghost | [] | [] | [
"Prims.nat",
"Prims.bool",
"FStar.IndefiniteDescription.indefinite_description_ghost",
"Prims.eq2",
"Prims.prop",
"Prims.l_not",
"Prims.l_Forall",
"Prims.b2t"
] | [] | false | false | false | false | false | let stronger_markovs_principle (p: (nat -> GTot bool))
: Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) =
| indefinite_description_ghost _ (fun n -> p n == true) | false |
Lib.NatMod.fsti | Lib.NatMod.nat_mod | val nat_mod : m: Prims.pos -> Type0 | let nat_mod (m:pos) = n:nat{n < m} | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 51,
"start_col": 0,
"start_line": 51
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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 | m: Prims.pos -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan"
] | [] | false | false | false | true | true | let nat_mod (m: pos) =
| n: nat{n < m} | false | |
Vale.Def.Opaque_s.fst | Vale.Def.Opaque_s.opaque_make | val opaque_make (#a:Type) (x:a) : a | val opaque_make (#a:Type) (x:a) : a | let opaque_make #a x = x | {
"file_name": "vale/specs/defs/Vale.Def.Opaque_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 4,
"start_col": 0,
"start_line": 4
} | module Vale.Def.Opaque_s
open FStar.Mul | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.Def.Opaque_s.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> a | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let opaque_make #a x =
| x | false |
Lib.NatMod.fsti | Lib.NatMod.mk_nat_mod_comm_monoid | val mk_nat_mod_comm_monoid (m: pos) : LE.comm_monoid (nat_mod m) | val mk_nat_mod_comm_monoid (m: pos) : LE.comm_monoid (nat_mod m) | let mk_nat_mod_comm_monoid (m:pos) : LE.comm_monoid (nat_mod m) = {
LE.one = one_mod;
LE.mul = mul_mod;
LE.lemma_one = lemma_mul_mod_one;
LE.lemma_mul_assoc = lemma_mul_mod_assoc;
LE.lemma_mul_comm = lemma_mul_mod_comm;
} | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 72,
"start_col": 0,
"start_line": 66
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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 | m: Prims.pos -> Lib.Exponentiation.Definition.comm_monoid (Lib.NatMod.nat_mod m) | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Lib.Exponentiation.Definition.Mkcomm_monoid",
"Lib.NatMod.nat_mod",
"Lib.NatMod.one_mod",
"Lib.NatMod.mul_mod",
"Lib.NatMod.lemma_mul_mod_one",
"Lib.NatMod.lemma_mul_mod_assoc",
"Lib.NatMod.lemma_mul_mod_comm",
"Lib.Exponentiation.Definition.comm_monoid"
] | [] | false | false | false | false | false | let mk_nat_mod_comm_monoid (m: pos) : LE.comm_monoid (nat_mod m) =
| {
LE.one = one_mod;
LE.mul = mul_mod;
LE.lemma_one = lemma_mul_mod_one;
LE.lemma_mul_assoc = lemma_mul_mod_assoc;
LE.lemma_mul_comm = lemma_mul_mod_comm
} | false |
Vale.Def.Opaque_s.fst | Vale.Def.Opaque_s.opaque_reveal | val opaque_reveal (#a:Type) (s:string) (x1 x2:a) : Lemma
(requires norm [delta_only [s]] (x1 == opaque_make x2))
(ensures x1 == x2) | val opaque_reveal (#a:Type) (s:string) (x1 x2:a) : Lemma
(requires norm [delta_only [s]] (x1 == opaque_make x2))
(ensures x1 == x2) | let opaque_reveal #a s x1 x2 =
norm_spec [delta_only [s]] (x1 == opaque_make x2) | {
"file_name": "vale/specs/defs/Vale.Def.Opaque_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 7,
"start_col": 0,
"start_line": 6
} | module Vale.Def.Opaque_s
open FStar.Mul
let opaque_make #a x = x | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.Def.Opaque_s.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
... | {
"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 | s: Prims.string -> x1: a -> x2: a
-> FStar.Pervasives.Lemma
(requires
FStar.Pervasives.norm [FStar.Pervasives.delta_only [s]]
(x1 == Vale.Def.Opaque_s.opaque_make x2)) (ensures x1 == x2) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.string",
"FStar.Pervasives.norm_spec",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.delta_only",
"Prims.Nil",
"Prims.logical",
"Prims.eq2",
"Vale.Def.Opaque_s.opaque_make",
"Prims.unit"
] | [] | true | false | true | false | false | let opaque_reveal #a s x1 x2 =
| norm_spec [delta_only [s]] (x1 == opaque_make x2) | false |
Lib.NatMod.fsti | Lib.NatMod.prime | val prime : Type0 | let prime = m:pos{1 < m /\ Euclid.is_prime m} | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 113,
"start_col": 0,
"start_line": 113
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.pos",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Math.Euclid.is_prime"
] | [] | false | false | false | true | true | let prime =
| m: pos{1 < m /\ Euclid.is_prime m} | false | |
Vale.Def.Opaque_s.fst | Vale.Def.Opaque_s.opaque_revealer | val opaque_revealer (#a:Type) (s:string) (x1 x2:a) : Pure (unit -> Lemma (x1 == x2))
(requires norm [delta_only [s]] (x1 == opaque_make x2))
(ensures fun _ -> True) | val opaque_revealer (#a:Type) (s:string) (x1 x2:a) : Pure (unit -> Lemma (x1 == x2))
(requires norm [delta_only [s]] (x1 == opaque_make x2))
(ensures fun _ -> True) | let opaque_revealer #a s x1 x2 =
fun () -> opaque_reveal s x1 x2 | {
"file_name": "vale/specs/defs/Vale.Def.Opaque_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 13,
"start_col": 0,
"start_line": 12
} | module Vale.Def.Opaque_s
open FStar.Mul
let opaque_make #a x = x
let opaque_reveal #a s x1 x2 =
norm_spec [delta_only [s]] (x1 == opaque_make x2)
let opaque_assert #a s x1 x2 p =
norm_spec [delta_only [s]] (x1 == opaque_make x2) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.Def.Opaque_s.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
... | {
"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 | s: Prims.string -> x1: a -> x2: a
-> Prims.Pure (_: Prims.unit -> FStar.Pervasives.Lemma (ensures x1 == x2)) | Prims.Pure | [] | [] | [
"Prims.string",
"Prims.unit",
"Vale.Def.Opaque_s.opaque_reveal"
] | [] | false | false | true | false | false | let opaque_revealer #a s x1 x2 =
| fun () -> opaque_reveal s x1 x2 | false |
Lib.NatMod.fsti | Lib.NatMod.mul_mod | val mul_mod (#m: pos) (a b: nat_mod m) : nat_mod m | val mul_mod (#m: pos) (a b: nat_mod m) : nat_mod m | let mul_mod (#m:pos) (a:nat_mod m) (b:nat_mod m) : nat_mod m = a * b % m | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 72,
"end_line": 54,
"start_col": 0,
"start_line": 54
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.NatMod.nat_mod m -> b: Lib.NatMod.nat_mod m -> Lib.NatMod.nat_mod m | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Lib.NatMod.nat_mod",
"Prims.op_Modulus",
"FStar.Mul.op_Star"
] | [] | false | false | false | false | false | let mul_mod (#m: pos) (a b: nat_mod m) : nat_mod m =
| a * b % m | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.tset | val tset : a: Type -> Type | let tset = TSet.set | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.TSet",
"short_module": "TS"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Mon... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.TSet.set"
] | [] | false | false | false | true | true | let tset =
| TSet.set | false | |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.set | val set : a: Prims.eqtype -> Type0 | let set = Set.set | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.TSet",
"short_module": "TS"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Mon... | {
"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: Prims.eqtype -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Set.set"
] | [] | false | false | false | true | true | let set =
| Set.set | false | |
Lib.NatMod.fsti | Lib.NatMod.mk_nat_comm_monoid | val mk_nat_comm_monoid:LE.comm_monoid int | val mk_nat_comm_monoid:LE.comm_monoid int | let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul_one_right_is_same;
LE.lemma_mul_assoc = Math.Lemmas.paren_mul_right;
LE.lemma_mul_comm = Math.Lemmas.swap_mul;
} | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 18,
"start_col": 0,
"start_line": 12
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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 | Lib.Exponentiation.Definition.comm_monoid Prims.int | Prims.Tot | [
"total"
] | [] | [
"Lib.Exponentiation.Definition.Mkcomm_monoid",
"Prims.int",
"FStar.Mul.op_Star",
"FStar.Math.Lemmas.mul_one_right_is_same",
"FStar.Math.Lemmas.paren_mul_right",
"FStar.Math.Lemmas.swap_mul"
] | [] | false | false | false | true | false | let mk_nat_comm_monoid:LE.comm_monoid int =
| {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul_one_right_is_same;
LE.lemma_mul_assoc = Math.Lemmas.paren_mul_right;
LE.lemma_mul_comm = Math.Lemmas.swap_mul
} | false |
Lib.NatMod.fsti | Lib.NatMod.div_mod | val div_mod (#m: pos{1 < m}) (a b: nat_mod m) : nat_mod m | val div_mod (#m: pos{1 < m}) (a b: nat_mod m) : nat_mod m | let div_mod (#m:pos{1 < m}) (a:nat_mod m) (b:nat_mod m) : nat_mod m = mul_mod a (inv_mod b) | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 91,
"end_line": 115,
"start_col": 0,
"start_line": 115
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.NatMod.nat_mod m -> b: Lib.NatMod.nat_mod m -> Lib.NatMod.nat_mod m | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.NatMod.nat_mod",
"Lib.NatMod.mul_mod",
"Lib.NatMod.inv_mod"
] | [] | false | false | false | false | false | let div_mod (#m: pos{1 < m}) (a b: nat_mod m) : nat_mod m =
| mul_mod a (inv_mod b) | false |
Vale.Def.Opaque_s.fst | Vale.Def.Opaque_s.opaque_assert | val opaque_assert (#a:Type) (s:string) (x1 x2:a) (p:Type0) : Lemma
(requires norm [delta_only [s]] (x1 == opaque_make x2) /\ (x1 == x2 ==> p))
(ensures p) | val opaque_assert (#a:Type) (s:string) (x1 x2:a) (p:Type0) : Lemma
(requires norm [delta_only [s]] (x1 == opaque_make x2) /\ (x1 == x2 ==> p))
(ensures p) | let opaque_assert #a s x1 x2 p =
norm_spec [delta_only [s]] (x1 == opaque_make x2) | {
"file_name": "vale/specs/defs/Vale.Def.Opaque_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 10,
"start_col": 0,
"start_line": 9
} | module Vale.Def.Opaque_s
open FStar.Mul
let opaque_make #a x = x
let opaque_reveal #a s x1 x2 =
norm_spec [delta_only [s]] (x1 == opaque_make x2) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.Def.Opaque_s.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def",
... | {
"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 | s: Prims.string -> x1: a -> x2: a -> p: Type0
-> FStar.Pervasives.Lemma
(requires
FStar.Pervasives.norm [FStar.Pervasives.delta_only [s]]
(x1 == Vale.Def.Opaque_s.opaque_make x2) /\ (x1 == x2 ==> p)) (ensures p) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.string",
"FStar.Pervasives.norm_spec",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.delta_only",
"Prims.Nil",
"Prims.logical",
"Prims.eq2",
"Vale.Def.Opaque_s.opaque_make",
"Prims.unit"
] | [] | true | false | true | false | false | let opaque_assert #a s x1 x2 p =
| norm_spec [delta_only [s]] (x1 == opaque_make x2) | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.mref | val mref (a: Type0) (rel: preorder a) : Type0 | val mref (a: Type0) (rel: preorder a) : Type0 | let mref (a:Type0) (rel:preorder a) : Type0 = core_mref a | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 57,
"end_line": 40,
"start_col": 0,
"start_line": 40
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type0 -> rel: FStar.Preorder.preorder a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.core_mref"
] | [] | false | false | false | true | true | let mref (a: Type0) (rel: preorder a) : Type0 =
| core_mref a | false |
Lib.NatMod.fsti | Lib.NatMod.one_mod | val one_mod (#m: pos) : nat_mod m | val one_mod (#m: pos) : nat_mod m | let one_mod (#m:pos) : nat_mod m = 1 % m | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 53,
"start_col": 0,
"start_line": 53
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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 | Lib.NatMod.nat_mod m | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Prims.op_Modulus",
"Lib.NatMod.nat_mod"
] | [] | false | false | false | false | false | let one_mod (#m: pos) : nat_mod m =
| 1 % m | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.fresh | val fresh : r: FStar.Monotonic.Heap.mref a rel -> h0: FStar.Monotonic.Heap.heap -> h1: FStar.Monotonic.Heap.heap
-> Prims.logical | let fresh (#a:Type) (#rel:preorder a) (r:mref a rel) (h0:heap) (h1:heap) =
r `unused_in` h0 /\ h1 `contains` r | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 58,
"start_col": 0,
"start_line": 57
} | (*
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.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.Heap.mref a rel -> h0: FStar.Monotonic.Heap.heap -> h1: FStar.Monotonic.Heap.heap
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.heap",
"Prims.l_and",
"FStar.Monotonic.Heap.unused_in",
"FStar.Monotonic.Heap.contains",
"Prims.logical"
] | [] | false | false | false | false | true | let fresh (#a: Type) (#rel: preorder a) (r: mref a rel) (h0 h1: heap) =
| r `unused_in` h0 /\ h1 `contains` r | false | |
Lib.NatMod.fsti | Lib.NatMod.sub_mod | val sub_mod (#m: pos) (a b: nat_mod m) : nat_mod m | val sub_mod (#m: pos) (a b: nat_mod m) : nat_mod m | let sub_mod (#m:pos) (a:nat_mod m) (b:nat_mod m) : nat_mod m = (a - b) % m | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 74,
"end_line": 56,
"start_col": 0,
"start_line": 56
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.NatMod.nat_mod m -> b: Lib.NatMod.nat_mod m -> Lib.NatMod.nat_mod m | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Lib.NatMod.nat_mod",
"Prims.op_Modulus",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let sub_mod (#m: pos) (a b: nat_mod m) : nat_mod m =
| (a - b) % m | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.equal_dom | val equal_dom (h1 h2: heap) : GTot Type0 | val equal_dom (h1 h2: heap) : GTot Type0 | let equal_dom (h1:heap) (h2:heap) :GTot Type0 =
(forall (a:Type0) (rel:preorder a) (r:mref a rel).
{:pattern (h1 `contains` r) \/ (h2 `contains` r)}
h1 `contains` r <==> h2 `contains` r) /\
(forall (a:Type0) (rel:preorder a) (r:mref a rel).
{:pattern (r `unused_in` h1) \/ (r `unused_in` h2)}
r `... | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 103,
"start_col": 0,
"start_line": 97
} | (*
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.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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 | h1: FStar.Monotonic.Heap.heap -> h2: FStar.Monotonic.Heap.heap -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.Heap.heap",
"Prims.l_and",
"Prims.l_Forall",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"Prims.l_iff",
"FStar.Monotonic.Heap.contains",
"FStar.Monotonic.Heap.unused_in"
] | [] | false | false | false | false | true | let equal_dom (h1 h2: heap) : GTot Type0 =
| (forall (a: Type0) (rel: preorder a) (r: mref a rel).
{:pattern (h1 `contains` r)\/(h2 `contains` r)}
h1 `contains` r <==> h2 `contains` r) /\
(forall (a: Type0) (rel: preorder a) (r: mref a rel).
{:pattern (r `unused_in` h1)\/(r `unused_in` h2)}
r `unused_in` h1 <==> r `unused_in` h2) | false |
Lib.NatMod.fsti | Lib.NatMod.pow_mod_ | val pow_mod_ (#m: pos{1 < m}) (a: nat_mod m) (b: nat) : Tot (nat_mod m) (decreases b) | val pow_mod_ (#m: pos{1 < m}) (a: nat_mod m) (b: nat) : Tot (nat_mod m) (decreases b) | let rec pow_mod_ (#m:pos{1 < m}) (a:nat_mod m) (b:nat) : Tot (nat_mod m) (decreases b) =
if b = 0 then 1
else
if b % 2 = 0 then pow_mod_ (mul_mod a a) (b / 2)
else mul_mod a (pow_mod_ (mul_mod a a) (b / 2)) | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 79,
"start_col": 0,
"start_line": 75
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.NatMod.nat_mod m -> b: Prims.nat -> Prims.Tot (Lib.NatMod.nat_mod m) | Prims.Tot | [
"total",
""
] | [] | [
"Prims.pos",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.NatMod.nat_mod",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Prims.op_Modulus",
"Lib.NatMod.pow_mod_",
"Lib.NatMod.mul_mod",
"Prims.op_Division"
] | [
"recursion"
] | false | false | false | false | false | let rec pow_mod_ (#m: pos{1 < m}) (a: nat_mod m) (b: nat) : Tot (nat_mod m) (decreases b) =
| if b = 0
then 1
else
if b % 2 = 0 then pow_mod_ (mul_mod a a) (b / 2) else mul_mod a (pow_mod_ (mul_mod a a) (b / 2)) | false |
Lib.NatMod.fsti | Lib.NatMod.add_mod | val add_mod (#m: pos) (a b: nat_mod m) : nat_mod m | val add_mod (#m: pos) (a b: nat_mod m) : nat_mod m | let add_mod (#m:pos) (a:nat_mod m) (b:nat_mod m) : nat_mod m = (a + b) % m | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 74,
"end_line": 55,
"start_col": 0,
"start_line": 55
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.NatMod.nat_mod m -> b: Lib.NatMod.nat_mod m -> Lib.NatMod.nat_mod m | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Lib.NatMod.nat_mod",
"Prims.op_Modulus",
"Prims.op_Addition"
] | [] | false | false | false | false | false | let add_mod (#m: pos) (a b: nat_mod m) : nat_mod m =
| (a + b) % m | false |
Lib.NatMod.fsti | Lib.NatMod.pow | val pow (x: int) (n: nat) : Tot int | val pow (x: int) (n: nat) : Tot int | let rec pow (x:int) (n:nat) : Tot int =
if n = 0 then 1
else x * pow x (n - 1) | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 23,
"start_col": 0,
"start_line": 21
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.int -> n: Prims.nat -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.nat",
"Prims.op_Equality",
"Prims.bool",
"FStar.Mul.op_Star",
"Lib.NatMod.pow",
"Prims.op_Subtraction"
] | [
"recursion"
] | false | false | false | true | false | let rec pow (x: int) (n: nat) : Tot int =
| if n = 0 then 1 else x * pow x (n - 1) | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.compare_addrs | val compare_addrs
(#a #b: Type0)
(#rel1: preorder a)
(#rel2: preorder b)
(r1: mref a rel1)
(r2: mref b rel2)
: GTot bool | val compare_addrs
(#a #b: Type0)
(#rel1: preorder a)
(#rel2: preorder b)
(r1: mref a rel1)
(r2: mref b rel2)
: GTot bool | let compare_addrs (#a #b:Type0) (#rel1:preorder a) (#rel2:preorder b) (r1:mref a rel1) (r2:mref b rel2)
:GTot bool = addr_of r1 = addr_of r2 | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 47,
"start_col": 0,
"start_line": 46
} | (*
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.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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 | r1: FStar.Monotonic.Heap.mref a rel1 -> r2: FStar.Monotonic.Heap.mref b rel2
-> Prims.GTot Prims.bool | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"Prims.op_Equality",
"Prims.pos",
"FStar.Monotonic.Heap.addr_of",
"Prims.bool"
] | [] | false | false | false | false | false | let compare_addrs
(#a #b: Type0)
(#rel1: preorder a)
(#rel2: preorder b)
(r1: mref a rel1)
(r2: mref b rel2)
: GTot bool =
| addr_of r1 = addr_of r2 | false |
Vale.Math.Poly2.Bits.fsti | Vale.Math.Poly2.Bits.poly128_of_nat32s | val poly128_of_nat32s (a0 a1 a2 a3: nat32) : poly | val poly128_of_nat32s (a0 a1 a2 a3: nat32) : poly | let poly128_of_nat32s (a0 a1 a2 a3:nat32) : poly =
poly128_of_poly32s (of_nat32 a0) (of_nat32 a1) (of_nat32 a2) (of_nat32 a3) | {
"file_name": "vale/code/lib/math/Vale.Math.Poly2.Bits.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 59,
"start_col": 0,
"start_line": 58
} | module Vale.Math.Poly2.Bits
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.UInt
open FStar.Seq
open Vale.Arch.Types
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Lemmas
val lemma_to_of_uint (n:pos) (u:uint_t n) : Lemma
(ensures to_uint n (of_uint ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Lemmas.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"p... | [
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Bits_s",
"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 |
a0: Vale.Def.Types_s.nat32 ->
a1: Vale.Def.Types_s.nat32 ->
a2: Vale.Def.Types_s.nat32 ->
a3: Vale.Def.Types_s.nat32
-> Vale.Math.Poly2_s.poly | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Types_s.nat32",
"Vale.Math.Poly2.Bits.poly128_of_poly32s",
"Vale.Math.Poly2.Bits.of_nat32",
"Vale.Math.Poly2_s.poly"
] | [] | false | false | false | true | false | let poly128_of_nat32s (a0 a1 a2 a3: nat32) : poly =
| poly128_of_poly32s (of_nat32 a0) (of_nat32 a1) (of_nat32 a2) (of_nat32 a3) | false |
Lib.NatMod.fsti | Lib.NatMod.inv_mod | val inv_mod (#m: pos{1 < m}) (a: nat_mod m) : nat_mod m | val inv_mod (#m: pos{1 < m}) (a: nat_mod m) : nat_mod m | let inv_mod (#m:pos{1 < m}) (a:nat_mod m) : nat_mod m = pow_mod #m a (m - 2) | {
"file_name": "lib/Lib.NatMod.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 76,
"end_line": 114,
"start_col": 0,
"start_line": 114
} | module Lib.NatMod
open FStar.Mul
module Fermat = FStar.Math.Fermat
module Euclid = FStar.Math.Euclid
module LE = Lib.Exponentiation.Definition
#set-options "--z3rlimit 10 --fuel 0 --ifuel 0"
let mk_nat_comm_monoid : LE.comm_monoid int = {
LE.one = 1;
LE.mul = FStar.Mul.op_Star;
LE.lemma_one = Math.Lemmas.mul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Exponentiation.Definition.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Math.Fermat.fsti.checked",
"FStar.Math.Euclid.fsti.checked"
],
"interface_file... | [
{
"abbrev": true,
"full_module": "Lib.Exponentiation.Definition",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "FStar.Math.Fermat",
"short_module": "Fermat"
},
{
"abbrev"... | {
"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.NatMod.nat_mod m -> Lib.NatMod.nat_mod m | Prims.Tot | [
"total"
] | [] | [
"Prims.pos",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.NatMod.nat_mod",
"Lib.NatMod.pow_mod",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let inv_mod (#m: pos{1 < m}) (a: nat_mod m) : nat_mod m =
| pow_mod #m a (m - 2) | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.only | val only (#a: Type0) (#rel: preorder a) (x: mref a rel) : GTot (set nat) | val only (#a: Type0) (#rel: preorder a) (x: mref a rel) : GTot (set nat) | let only (#a:Type0) (#rel:preorder a) (x:mref a rel) :GTot (set nat) = S.singleton (addr_of x) | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 94,
"end_line": 62,
"start_col": 0,
"start_line": 62
} | (*
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.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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.Monotonic.Heap.mref a rel -> Prims.GTot (FStar.Monotonic.Heap.set Prims.nat) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Set.singleton",
"Prims.nat",
"FStar.Monotonic.Heap.addr_of",
"FStar.Monotonic.Heap.set"
] | [] | false | false | false | false | false | let only (#a: Type0) (#rel: preorder a) (x: mref a rel) : GTot (set nat) =
| S.singleton (addr_of x) | false |
Vale.Math.Poly2.Bits.fsti | Vale.Math.Poly2.Bits.poly128_of_poly32s | val poly128_of_poly32s (a0 a1 a2 a3: poly) : poly | val poly128_of_poly32s (a0 a1 a2 a3: poly) : poly | let poly128_of_poly32s (a0 a1 a2 a3:poly) : poly =
a0 +. shift a1 32 +. shift a2 64 +. shift a3 96 | {
"file_name": "vale/code/lib/math/Vale.Math.Poly2.Bits.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 49,
"end_line": 56,
"start_col": 0,
"start_line": 55
} | module Vale.Math.Poly2.Bits
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.UInt
open FStar.Seq
open Vale.Arch.Types
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Lemmas
val lemma_to_of_uint (n:pos) (u:uint_t n) : Lemma
(ensures to_uint n (of_uint ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Lemmas.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"p... | [
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Bits_s",
"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 |
a0: Vale.Math.Poly2_s.poly ->
a1: Vale.Math.Poly2_s.poly ->
a2: Vale.Math.Poly2_s.poly ->
a3: Vale.Math.Poly2_s.poly
-> Vale.Math.Poly2_s.poly | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Vale.Math.Poly2.op_Plus_Dot",
"Vale.Math.Poly2_s.shift"
] | [] | false | false | false | true | false | let poly128_of_poly32s (a0 a1 a2 a3: poly) : poly =
| a0 +. shift a1 32 +. shift a2 64 +. shift a3 96 | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.op_Hat_Plus_Hat | val ( ^+^ )
(#a #b: Type0)
(#rel1: preorder a)
(#rel2: preorder b)
(r1: mref a rel1)
(r2: mref b rel2)
: GTot (set nat) | val ( ^+^ )
(#a #b: Type0)
(#rel1: preorder a)
(#rel2: preorder b)
(r1: mref a rel1)
(r2: mref b rel2)
: GTot (set nat) | let op_Hat_Plus_Hat (#a:Type0) (#b:Type0) (#rel1:preorder a) (#rel2:preorder b) (r1:mref a rel1) (r2:mref b rel2)
:GTot (set nat) = S.union (only r1) (only r2) | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 47,
"end_line": 69,
"start_col": 0,
"start_line": 68
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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 | r1: FStar.Monotonic.Heap.mref a rel1 -> r2: FStar.Monotonic.Heap.mref b rel2
-> Prims.GTot (FStar.Monotonic.Heap.set Prims.nat) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Set.union",
"Prims.nat",
"FStar.Monotonic.Heap.only",
"FStar.Monotonic.Heap.set"
] | [] | false | false | false | false | false | let ( ^+^ )
(#a #b: Type0)
(#rel1: preorder a)
(#rel2: preorder b)
(r1: mref a rel1)
(r2: mref b rel2)
: GTot (set nat) =
| S.union (only r1) (only r2) | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.only_t | val only_t (#a: Type0) (#rel: preorder a) (x: mref a rel) : GTot (tset nat) | val only_t (#a: Type0) (#rel: preorder a) (x: mref a rel) : GTot (tset nat) | let only_t (#a:Type0) (#rel:preorder a) (x:mref a rel) :GTot (tset nat) = TS.singleton (addr_of x) | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 98,
"end_line": 60,
"start_col": 0,
"start_line": 60
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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.Monotonic.Heap.mref a rel -> Prims.GTot (FStar.Monotonic.Heap.tset Prims.nat) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.TSet.singleton",
"Prims.nat",
"FStar.Monotonic.Heap.addr_of",
"FStar.Monotonic.Heap.tset"
] | [] | false | false | false | false | false | let only_t (#a: Type0) (#rel: preorder a) (x: mref a rel) : GTot (tset nat) =
| TS.singleton (addr_of x) | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.modifies | val modifies : s: FStar.Monotonic.Heap.set Prims.nat ->
h0: FStar.Monotonic.Heap.heap ->
h1: FStar.Monotonic.Heap.heap
-> Prims.logical | let modifies (s:set nat) (h0:heap) (h1:heap) = modifies_t (TS.tset_of_set s) h0 h1 | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 82,
"end_line": 95,
"start_col": 0,
"start_line": 95
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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 |
s: FStar.Monotonic.Heap.set Prims.nat ->
h0: FStar.Monotonic.Heap.heap ->
h1: FStar.Monotonic.Heap.heap
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.set",
"Prims.nat",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.modifies_t",
"FStar.TSet.tset_of_set",
"Prims.logical"
] | [] | false | false | false | true | true | let modifies (s: set nat) (h0 h1: heap) =
| modifies_t (TS.tset_of_set s) h0 h1 | false | |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.op_Plus_Plus_Hat | val ( ++^ ) (#a: Type0) (#rel: preorder a) (s: set nat) (r: mref a rel) : GTot (set nat) | val ( ++^ ) (#a: Type0) (#rel: preorder a) (s: set nat) (r: mref a rel) : GTot (set nat) | let op_Plus_Plus_Hat (#a:Type0) (#rel:preorder a) (s:set nat) (r:mref a rel) :GTot (set nat) = S.union s (only r) | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 113,
"end_line": 66,
"start_col": 0,
"start_line": 66
} | (*
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.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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 | s: FStar.Monotonic.Heap.set Prims.nat -> r: FStar.Monotonic.Heap.mref a rel
-> Prims.GTot (FStar.Monotonic.Heap.set Prims.nat) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.set",
"Prims.nat",
"FStar.Monotonic.Heap.mref",
"FStar.Set.union",
"FStar.Monotonic.Heap.only"
] | [] | false | false | false | false | false | let ( ++^ ) (#a: Type0) (#rel: preorder a) (s: set nat) (r: mref a rel) : GTot (set nat) =
| S.union s (only r) | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.op_Hat_Plus_Plus | val ( ^++ ) (#a: Type0) (#rel: preorder a) (r: mref a rel) (s: set nat) : GTot (set nat) | val ( ^++ ) (#a: Type0) (#rel: preorder a) (r: mref a rel) (s: set nat) : GTot (set nat) | let op_Hat_Plus_Plus (#a:Type0) (#rel:preorder a) (r:mref a rel) (s:set nat) :GTot (set nat) = S.union (only r) s | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 113,
"end_line": 64,
"start_col": 0,
"start_line": 64
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.Heap.mref a rel -> s: FStar.Monotonic.Heap.set Prims.nat
-> Prims.GTot (FStar.Monotonic.Heap.set Prims.nat) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.set",
"Prims.nat",
"FStar.Set.union",
"FStar.Monotonic.Heap.only"
] | [] | false | false | false | false | false | let ( ^++ ) (#a: Type0) (#rel: preorder a) (r: mref a rel) (s: set nat) : GTot (set nat) =
| S.union (only r) s | false |
FStar.Monotonic.Heap.fsti | FStar.Monotonic.Heap.modifies_t | val modifies_t : s: FStar.Monotonic.Heap.tset Prims.nat ->
h0: FStar.Monotonic.Heap.heap ->
h1: FStar.Monotonic.Heap.heap
-> Prims.logical | let modifies_t (s:tset nat) (h0:heap) (h1:heap) =
(forall (a:Type) (rel:preorder a) (r:mref a rel).{:pattern (sel h1 r)}
((~ (TS.mem (addr_of r) s)) /\ h0 `contains` r) ==> sel h1 r == sel h0 r) /\
(forall (a:Type) (rel:preorder a) (r:mref a rel).{:pattern (contains h1 r)}
... | {
"file_name": "ulib/FStar.Monotonic.Heap.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 92,
"start_col": 0,
"start_line": 83
} | (*
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.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Monotonic.Heap.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"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 |
s: FStar.Monotonic.Heap.tset Prims.nat ->
h0: FStar.Monotonic.Heap.heap ->
h1: FStar.Monotonic.Heap.heap
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.tset",
"Prims.nat",
"FStar.Monotonic.Heap.heap",
"Prims.l_and",
"Prims.l_Forall",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"Prims.l_imp",
"Prims.l_not",
"FStar.TSet.mem",
"FStar.Monotonic.Heap.addr_of",
"FStar.Monotonic.Heap.contains",
"Prims.eq2",
"FSt... | [] | false | false | false | true | true | let modifies_t (s: tset nat) (h0 h1: heap) =
| (forall (a: Type) (rel: preorder a) (r: mref a rel). {:pattern (sel h1 r)}
((~(TS.mem (addr_of r) s)) /\ h0 `contains` r) ==> sel h1 r == sel h0 r) /\
(forall (a: Type) (rel: preorder a) (r: mref a rel). {:pattern (contains h1 r)}
h0 `contains` r ==> h1 `contains` r) /\
(forall (a: Type) (rel: preorder a) (r: m... | false | |
Vale.Math.Poly2.Bits.fsti | Vale.Math.Poly2.Bits.of_uint_ | val of_uint_ (n: nat) (u: uint_t n) : poly | val of_uint_ (n: nat) (u: uint_t n) : poly | let of_uint_ (n:nat) (u:uint_t n) : poly =
if n = 0 then zero else of_uint n u | {
"file_name": "vale/code/lib/math/Vale.Math.Poly2.Bits.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 21,
"start_col": 0,
"start_line": 20
} | module Vale.Math.Poly2.Bits
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.UInt
open FStar.Seq
open Vale.Arch.Types
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Lemmas
val lemma_to_of_uint (n:pos) (u:uint_t n) : Lemma
(ensures to_uint n (of_uint ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Lemmas.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"p... | [
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Bits_s",
"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 | n: Prims.nat -> u8: FStar.UInt.uint_t n -> Vale.Math.Poly2_s.poly | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"FStar.UInt.uint_t",
"Prims.op_Equality",
"Prims.int",
"Vale.Math.Poly2_s.zero",
"Prims.bool",
"Vale.Math.Poly2.Bits_s.of_uint",
"Vale.Math.Poly2_s.poly"
] | [] | false | false | false | false | false | let of_uint_ (n: nat) (u: uint_t n) : poly =
| if n = 0 then zero else of_uint n u | false |
Vale.Math.Poly2.Bits.fsti | Vale.Math.Poly2.Bits.poly_nat_eq_rec | val poly_nat_eq_rec (len: nat) (p: poly) (c n: nat) : bool | val poly_nat_eq_rec (len: nat) (p: poly) (c n: nat) : bool | let rec poly_nat_eq_rec (len:nat) (p:poly) (c:nat) (n:nat) : bool =
if n = 0 then c = 0
else
(c % 2 = (if p.[len - n] then 1 else 0)) &&
poly_nat_eq_rec len p (c / 2) (n - 1) | {
"file_name": "vale/code/lib/math/Vale.Math.Poly2.Bits.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 31,
"start_col": 0,
"start_line": 27
} | module Vale.Math.Poly2.Bits
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.UInt
open FStar.Seq
open Vale.Arch.Types
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Lemmas
val lemma_to_of_uint (n:pos) (u:uint_t n) : Lemma
(ensures to_uint n (of_uint ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Lemmas.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"p... | [
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Bits_s",
"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 | len: Prims.nat -> p: Vale.Math.Poly2_s.poly -> c: Prims.nat -> n: Prims.nat -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.Math.Poly2_s.poly",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Prims.op_AmpAmp",
"Prims.op_Modulus",
"Vale.Math.Poly2_s.op_String_Access",
"Prims.op_Subtraction",
"Vale.Math.Poly2.Bits.poly_nat_eq_rec",
"Prims.op_Division"
] | [
"recursion"
] | false | false | false | true | false | let rec poly_nat_eq_rec (len: nat) (p: poly) (c n: nat) : bool =
| if n = 0
then c = 0
else (c % 2 = (if p.[ len - n ] then 1 else 0)) && poly_nat_eq_rec len p (c / 2) (n - 1) | false |
Pulse.Main.fst | Pulse.Main.join_smt_goals | val join_smt_goals: Prims.unit -> Tac unit | val join_smt_goals: Prims.unit -> Tac unit | let join_smt_goals () : Tac unit =
let open FStar.Tactics.V2 in
let open FStar.List.Tot in
if RU.debug_at_level (top_env ()) "pulse.join" then
dump "PULSE: Goals before join";
(* Join *)
let smt_goals = smt_goals () in
set_goals (goals () @ smt_goals);
set_smt_goals [];
let n = List.Tot.length (go... | {
"file_name": "lib/steel/pulse/Pulse.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 168,
"start_col": 0,
"start_line": 142
} | (*
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": [
"PulseSyntaxExtension.ASTBuilder.fsti.checked",
"Pulse.Typing.Printer.fst.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Builder.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checke... | [
{
"abbrev": true,
"full_module": "Pulse.Recursion",
"short_module": "Rec"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.Stubs.Tactics.V2.Builtins.dump",
"Prims.bool",
"Pulse.RuntimeUtils.debug_at_level",
"FStar.Stubs.Reflection.Types.env",
"FStar.Stubs.Tactics.V2.Builtins.top_env",
"FStar.Tactics.SMT.set_rlimit",
"Prims.int",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.op_Subtraction",
... | [] | false | true | false | false | false | let join_smt_goals () : Tac unit =
| let open FStar.Tactics.V2 in
let open FStar.List.Tot in
if RU.debug_at_level (top_env ()) "pulse.join" then dump "PULSE: Goals before join";
let smt_goals = smt_goals () in
set_goals (goals () @ smt_goals);
set_smt_goals [];
let n = List.Tot.length (goals ()) in
ignore (repeat join);
if not (Nil? (goals ()))
then
(le... | false |
Spec.Hash.Incremental.fsti | Spec.Hash.Incremental.hash_is_hash_incremental | val hash_is_hash_incremental : a: Spec.Hash.Definitions.fixed_len_alg ->
input:
Lib.ByteSequence.bytes
{Spec.Hash.Definitions.less_than_max_input_length (FStar.Seq.Base.length input) a}
-> Prims.unit | let hash_is_hash_incremental (a: fixed_len_alg) (input: bytes { S.length input `less_than_max_input_length` a }) =
hash_is_hash_incremental' a input () | {
"file_name": "specs/lemmas/Spec.Hash.Incremental.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 31,
"start_col": 0,
"start_line": 30
} | module Spec.Hash.Incremental
module S = FStar.Seq
module Blake2 = Spec.Blake2
open Spec.Agile.Hash
open Spec.Hash.Definitions
open FStar.Mul
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntTypes
module Loops = Lib.LoopCombinators
module UpdateMulti = Lib.UpdateMulti
#set-options "--fuel 0 --ifuel 0 --z3rlimit ... | {
"checked_file": "/",
"dependencies": [
"Spec.Hash.Incremental.Definitions.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Blake2.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.UpdateMulti.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinat... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Incremental.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.fixed_len_alg ->
input:
Lib.ByteSequence.bytes
{Spec.Hash.Definitions.less_than_max_input_length (FStar.Seq.Base.length input) a}
-> Prims.unit | Prims.Tot | [
"total"
] | [] | [
"Spec.Hash.Definitions.fixed_len_alg",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Spec.Hash.Definitions.less_than_max_input_length",
"FStar.Seq.Base.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.Hash.Incremental.hash_is_hash_incremental'",
"Prims.unit"
] | [] | false | false | false | false | false | let hash_is_hash_incremental
(a: fixed_len_alg)
(input: bytes{(S.length input) `less_than_max_input_length` a})
=
| hash_is_hash_incremental' a input () | false | |
Lib.Loops.fst | Lib.Loops.while | val while:
inv: (mem -> Type0)
-> guard: (h:mem{inv h} -> GTot bool)
-> test: (unit -> Stack bool
(requires inv)
(ensures fun h0 b h1 -> b == guard h0 /\ h0 == h1))
-> body: (unit -> Stack unit
(requires fun h -> inv h /\ guard h)
... | val while:
inv: (mem -> Type0)
-> guard: (h:mem{inv h} -> GTot bool)
-> test: (unit -> Stack bool
(requires inv)
(ensures fun h0 b h1 -> b == guard h0 /\ h0 == h1))
-> body: (unit -> Stack unit
(requires fun h -> inv h /\ guard h)
... | let while inv guard test body =
let test: unit -> Stack bool
(requires fun h -> inv h) //AR: C.Loops.while precondition is written in eta-expanded form
(ensures fun _ b h -> inv h /\ b == guard h)
= test
in
C.Loops.while #inv #(fun b h -> inv h /\ b == guard h) test body | {
"file_name": "lib/Lib.Loops.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 18,
"start_col": 0,
"start_line": 12
} | module Lib.Loops
open Lib.IntTypes
let for start finish inv f =
C.Loops.for
start
finish
(fun h i -> v start <= i /\ i <= v finish /\ inv h i)
(fun i -> f i) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Hy... | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
inv: (_: FStar.Monotonic.HyperStack.mem -> Type0) ->
guard: (h: FStar.Monotonic.HyperStack.mem{inv h} -> Prims.GTot Prims.bool) ->
test: (_: Prims.unit -> FStar.HyperStack.ST.Stack Prims.bool) ->
body: (_: Prims.unit -> FStar.HyperStack.ST.Stack Prims.unit)
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.bool",
"Prims.unit",
"Prims.l_and",
"Prims.eq2",
"Prims.b2t",
"C.Loops.while"
] | [] | false | true | false | false | false | let while inv guard test body =
| let test: unit -> Stack bool (requires fun h -> inv h) (ensures fun _ b h -> inv h /\ b == guard h)
=
test
in
C.Loops.while #inv #(fun b h -> inv h /\ b == guard h) test body | false |
Lib.Loops.fst | Lib.Loops.for | val for:
start:size_t
-> finish:size_t{v finish >= v start}
-> inv:(mem -> (i:nat{v start <= i /\ i <= v finish}) -> Type0)
-> f:(i:size_t{v start <= v i /\ v i < v finish} -> Stack unit
(requires fun h -> inv h (v i))
(ensures fun h_1 _ h_2 -> inv h_2 (v i + 1))) ->
Sta... | val for:
start:size_t
-> finish:size_t{v finish >= v start}
-> inv:(mem -> (i:nat{v start <= i /\ i <= v finish}) -> Type0)
-> f:(i:size_t{v start <= v i /\ v i < v finish} -> Stack unit
(requires fun h -> inv h (v i))
(ensures fun h_1 _ h_2 -> inv h_2 (v i + 1))) ->
Sta... | let for start finish inv f =
C.Loops.for
start
finish
(fun h i -> v start <= i /\ i <= v finish /\ inv h i)
(fun i -> f i) | {
"file_name": "lib/Lib.Loops.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 10,
"start_col": 0,
"start_line": 5
} | module Lib.Loops
open Lib.IntTypes | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Hy... | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
start: Lib.IntTypes.size_t ->
finish: Lib.IntTypes.size_t{Lib.IntTypes.v finish >= Lib.IntTypes.v start} ->
inv:
(
_: FStar.Monotonic.HyperStack.mem ->
i: Prims.nat{Lib.IntTypes.v start <= i /\ i <= Lib.IntTypes.v finish}
-> Type0) ->
f:
(
i:
... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.Monotonic.HyperStack.mem",
"Prims.nat",
"Prims.l_and",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.unit",
"Prims.op_Addition",
"C.Loops.for",
"F... | [] | false | true | false | false | false | let for start finish inv f =
| C.Loops.for start finish (fun h i -> v start <= i /\ i <= v finish /\ inv h i) (fun i -> f i) | false |
Hacl.Impl.Curve25519.Generic.fsti | Hacl.Impl.Curve25519.Generic.secret_to_public_st | val secret_to_public_st : s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> p: Type0 -> Type0 | let secret_to_public_st (s: field_spec) (p: Type0) =
o:lbuffer uint8 32ul
-> i:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
p /\
live h0 o /\ live h0 i /\ disjoint o i)
(ensures fun h0 _ h1 -> modifies (loc o) h0 h1 /\
as_seq h1 o == S.secret_to_public (as_seq h0 i)) | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 54,
"end_line": 34,
"start_col": 0,
"start_line": 26
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Curve25519.Fields
module S = Spec.Curve25519
inline_for_extraction noextract
let scalarmult_st (s:field_spec) (p: Type0) =
o:lbuffer uint8 32ul
-> k:lbuffer uint8 32ul
-> i:lb... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Curve25519.Fields.fst.checked",
"FStar.UInt32.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"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 | s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> p: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Lib.Buffer.disjoint",
"Lib.Buffer.modifies",
"Lib.Buffer.loc",
"Prims.eq... | [] | false | false | false | true | true | let secret_to_public_st (s: field_spec) (p: Type0) =
| o: lbuffer uint8 32ul -> i: lbuffer uint8 32ul
-> Stack unit
(requires fun h0 -> p /\ live h0 o /\ live h0 i /\ disjoint o i)
(ensures
fun h0 _ h1 -> modifies (loc o) h0 h1 /\ as_seq h1 o == S.secret_to_public (as_seq h0 i)) | false | |
Hacl.Impl.Curve25519.Generic.fsti | Hacl.Impl.Curve25519.Generic.scalarmult_st | val scalarmult_st : s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> p: Type0 -> Type0 | let scalarmult_st (s:field_spec) (p: Type0) =
o:lbuffer uint8 32ul
-> k:lbuffer uint8 32ul
-> i:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
p /\
live h0 o /\ live h0 k /\ live h0 i /\
disjoint o i /\ disjoint o k)
(ensures fun h0 _ h1 -> modifies (loc o) h0 h1 /\
as_s... | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 62,
"end_line": 23,
"start_col": 0,
"start_line": 13
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Curve25519.Fields
module S = Spec.Curve25519 | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Curve25519.Fields.fst.checked",
"FStar.UInt32.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"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 | s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> p: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Lib.Buffer.disjoint",
"Lib.Buffer.modifies",
"Lib.Buffer.loc",
"Prims.eq... | [] | false | false | false | true | true | let scalarmult_st (s: field_spec) (p: Type0) =
| o: lbuffer uint8 32ul -> k: lbuffer uint8 32ul -> i: lbuffer uint8 32ul
-> Stack unit
(requires fun h0 -> p /\ live h0 o /\ live h0 k /\ live h0 i /\ disjoint o i /\ disjoint o k)
(ensures
fun h0 _ h1 ->
modifies (loc o) h0 h1 /\ as_seq h1 o == S.scalarmult (as_seq h0 k) (as_seq h0 i)) | false | |
Pulse.Main.fst | Pulse.Main.check_pulse | val check_pulse (namespaces:list string)
(module_abbrevs:list (string & string))
(content:string)
(file_name:string)
(line col:int)
(nm:string)
: RT.dsl_tac_t | val check_pulse (namespaces:list string)
(module_abbrevs:list (string & string))
(content:string)
(file_name:string)
(line col:int)
(nm:string)
: RT.dsl_tac_t | let check_pulse (namespaces:list string)
(module_abbrevs:list (string & string))
(content:string)
(file_name:string)
(line col:int)
(nm:string)
: RT.dsl_tac_t
= fun env ->
match PulseSyntaxExtension.ASTBuilder.parse_pulse env name... | {
"file_name": "lib/steel/pulse/Pulse.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 36,
"end_line": 214,
"start_col": 0,
"start_line": 190
} | (*
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": [
"PulseSyntaxExtension.ASTBuilder.fsti.checked",
"Pulse.Typing.Printer.fst.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Builder.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checke... | [
{
"abbrev": true,
"full_module": "Pulse.Recursion",
"short_module": "Rec"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 |
namespaces: Prims.list Prims.string ->
module_abbrevs: Prims.list (Prims.string * Prims.string) ->
content: Prims.string ->
file_name: Prims.string ->
line: Prims.int ->
col: Prims.int ->
nm: Prims.string
-> FStar.Reflection.Typing.dsl_tac_t | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Prims.string",
"FStar.Pervasives.Native.tuple2",
"Prims.int",
"FStar.Reflection.Typing.fstar_top_env",
"Pulse.Syntax.Base.decl",
"Pulse.Main.main",
"Pulse.Syntax.Base.tm_emp",
"FStar.Reflection.Typing.dsl_tac_result_t",
"FStar.Tactics.V2.Derived.fail",
"FStar.Range.range",
"Prim... | [] | false | false | false | true | false | let check_pulse
(namespaces: list string)
(module_abbrevs: list (string & string))
(content file_name: string)
(line col: int)
(nm: string)
: RT.dsl_tac_t =
| fun env ->
match
PulseSyntaxExtension.ASTBuilder.parse_pulse env
namespaces
module_abbrevs
content
file_name
line
col
with
| Inl decl -> main nm decl tm_emp env
| Inr None -> T.fail "Pulse parser failed"
| Inr (Some (msg, range)) ->
let i =
Issue.mk_issue "Err... | false |
Pulse.Main.fst | Pulse.Main.mk_abs | val mk_abs (g: env) (qbs: list (option qualifier & binder & bv)) (body: st_term) (comp: comp)
: TacH st_term
(fun _ -> not (Nil? qbs))
(fun _ r ->
match r with
| FStar.Tactics.Result.Success v _ -> Tm_Abs? v.term
| _ -> False) | val mk_abs (g: env) (qbs: list (option qualifier & binder & bv)) (body: st_term) (comp: comp)
: TacH st_term
(fun _ -> not (Nil? qbs))
(fun _ r ->
match r with
| FStar.Tactics.Result.Success v _ -> Tm_Abs? v.term
| _ -> False) | let rec mk_abs (g:env) (qbs:list (option qualifier & binder & bv)) (body:st_term) (comp:comp)
: TacH st_term (fun _ -> not (Nil? qbs))
(fun _ r -> match r with FStar.Tactics.Result.Success v _ -> Tm_Abs? v.term | _ -> False)
=
let with_range (s:st_term') (r:range) : st_term =
{ term = s; range = r;... | {
"file_name": "lib/steel/pulse/Pulse.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 81,
"end_line": 55,
"start_col": 0,
"start_line": 39
} | (*
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": [
"PulseSyntaxExtension.ASTBuilder.fsti.checked",
"Pulse.Typing.Printer.fst.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Builder.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checke... | [
{
"abbrev": true,
"full_module": "Pulse.Recursion",
"short_module": "Rec"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 ->
qbs:
Prims.list ((FStar.Pervasives.Native.option Pulse.Syntax.Base.qualifier *
Pulse.Syntax.Base.binder) *
Pulse.Syntax.Base.bv) ->
body: Pulse.Syntax.Base.st_term ->
comp: Pulse.Syntax.Base.comp
-> FStar.Tactics.Effect.TacH Pulse.Syntax.Base.st_te... | FStar.Tactics.Effect.TacH | [] | [] | [
"Pulse.Typing.Env.env",
"Prims.list",
"FStar.Pervasives.Native.tuple3",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.qualifier",
"Pulse.Syntax.Base.binder",
"Pulse.Syntax.Base.bv",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp",
"Pulse.Syntax.Builder.tm_abs",
"Pulse.Syntax.Base.__... | [
"recursion"
] | false | true | false | false | false | let rec mk_abs (g: env) (qbs: list (option qualifier & binder & bv)) (body: st_term) (comp: comp)
: TacH st_term
(fun _ -> not (Nil? qbs))
(fun _ r ->
match r with
| FStar.Tactics.Result.Success v _ -> Tm_Abs? v.term
| _ -> False) =
| let with_range (s: st_term') (r: range) : st_term =
{ term = s; range = r; effect_tag = default_effect_hint }
in
match qbs with
| [q, last, last_bv] ->
let body = close_st_term body last_bv.bv_index in
let comp = close_comp comp last_bv.bv_index in
let asc = { annotated = Some comp; elaborated = None } in
wit... | false |
Pulse.Main.fst | Pulse.Main.main' | val main' (nm: string) (d: decl) (pre: term) (g: RT.fstar_top_env) : T.Tac (RT.dsl_tac_result_t g) | val main' (nm: string) (d: decl) (pre: term) (g: RT.fstar_top_env) : T.Tac (RT.dsl_tac_result_t g) | let main' (nm:string) (d:decl) (pre:term) (g:RT.fstar_top_env)
: T.Tac (RT.dsl_tac_result_t g)
= match Pulse.Soundness.Common.check_top_level_environment g with
| None -> T.fail "pulse main: top-level environment does not include stt at the expected types"
| Some g ->
if RU.debug_at_level (fstar_env g... | {
"file_name": "lib/steel/pulse/Pulse.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 39,
"end_line": 140,
"start_col": 0,
"start_line": 127
} | (*
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": [
"PulseSyntaxExtension.ASTBuilder.fsti.checked",
"Pulse.Typing.Printer.fst.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Builder.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checke... | [
{
"abbrev": true,
"full_module": "Pulse.Recursion",
"short_module": "Rec"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 |
nm: Prims.string ->
d: Pulse.Syntax.Base.decl ->
pre: Pulse.Syntax.Base.term ->
g: FStar.Reflection.Typing.fstar_top_env
-> FStar.Tactics.Effect.Tac (FStar.Reflection.Typing.dsl_tac_result_t g) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.string",
"Pulse.Syntax.Base.decl",
"Pulse.Syntax.Base.term",
"FStar.Reflection.Typing.fstar_top_env",
"Pulse.Soundness.Common.check_top_level_environment",
"FStar.Tactics.V2.Derived.fail",
"FStar.Reflection.Typing.dsl_tac_result_t",
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.typ",
... | [] | false | true | false | false | false | let main' (nm: string) (d: decl) (pre: term) (g: RT.fstar_top_env) : T.Tac (RT.dsl_tac_result_t g) =
| match Pulse.Soundness.Common.check_top_level_environment g with
| None -> T.fail "pulse main: top-level environment does not include stt at the expected types"
| Some g ->
if RU.debug_at_level (fstar_env g) "Pulse"
then T.print (Printf.sprintf "About to check pulse decl:\n%s\n" (P.decl_to_string d));
let (| pre ,... | false |
Lib.Loops.fst | Lib.Loops.square_while | val square_while: unit -> Stack UInt32.t (fun _ -> true) (fun h0 x h1 -> x == 9ul) | val square_while: unit -> Stack UInt32.t (fun _ -> true) (fun h0 x h1 -> x == 9ul) | let square_while () =
let open LowStar.Buffer in
let open LowStar.BufferOps in
let open FStar.UInt32 in
push_frame();
let l = [ 1ul; 2ul; 3ul ] in
let b = alloca_of_list l in
let r = alloca 0ul 1ul in
let h = HyperStack.ST.get() in
assert (forall i. Seq.index (Seq.seq_of_list l) i == List.Tot.index l ... | {
"file_name": "lib/Lib.Loops.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 48,
"start_col": 0,
"start_line": 25
} | module Lib.Loops
open Lib.IntTypes
let for start finish inv f =
C.Loops.for
start
finish
(fun h i -> v start <= i /\ i <= v finish /\ inv h i)
(fun i -> f i)
let while inv guard test body =
let test: unit -> Stack bool
(requires fun h -> inv h) //AR: C.Loops.while precondition is written in ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Hy... | [
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 3,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.HyperStack.ST.Stack FStar.UInt32.t | FStar.HyperStack.ST.Stack | [] | [] | [
"Prims.unit",
"FStar.UInt32.t",
"FStar.HyperStack.ST.pop_frame",
"LowStar.BufferOps.op_Array_Access",
"LowStar.Buffer.trivial_preorder",
"FStar.UInt32.__uint_to_t",
"Lib.Loops.while",
"FStar.UInt32.op_Less_Hat",
"Prims.bool",
"LowStar.BufferOps.op_Bang_Star",
"LowStar.BufferOps.op_Array_Assignme... | [] | false | true | false | false | false | let square_while () =
| let open LowStar.Buffer in
let open LowStar.BufferOps in
let open FStar.UInt32 in
push_frame ();
let l = [1ul; 2ul; 3ul] in
let b = alloca_of_list l in
let r = alloca 0ul 1ul in
let h = HyperStack.ST.get () in
assert (forall i. Seq.index (Seq.seq_of_list l) i == List.Tot.index l i);
let h0 = HyperStack.ST.get () in
let... | false |
Hacl.Impl.Curve25519.Generic.fsti | Hacl.Impl.Curve25519.Generic.ecdh_st | val ecdh_st : s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> p: Type0 -> Type0 | let ecdh_st (s:field_spec) (p: Type0) =
o:lbuffer uint8 32ul
-> k:lbuffer uint8 32ul
-> i:lbuffer uint8 32ul
-> Stack bool
(requires fun h0 ->
p /\
live h0 o /\ live h0 k /\ live h0 i /\
disjoint o i /\ disjoint o k)
(ensures fun h0 r h1 -> modifies (loc o) h0 h1 /\
as_seq h1 ... | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 97,
"end_line": 48,
"start_col": 0,
"start_line": 37
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Curve25519.Fields
module S = Spec.Curve25519
inline_for_extraction noextract
let scalarmult_st (s:field_spec) (p: Type0) =
o:lbuffer uint8 32ul
-> k:lbuffer uint8 32ul
-> i:lb... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.Curve25519.Fields.fst.checked",
"FStar.UInt32.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"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 | s: Hacl.Impl.Curve25519.Fields.Core.field_spec -> p: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Prims.bool",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Lib.Buffer.disjoint",
"Lib.Buffer.modifies",
"Lib.Buffer.loc",
"Prims.eq... | [] | false | false | false | true | true | let ecdh_st (s: field_spec) (p: Type0) =
| o: lbuffer uint8 32ul -> k: lbuffer uint8 32ul -> i: lbuffer uint8 32ul
-> Stack bool
(requires fun h0 -> p /\ live h0 o /\ live h0 k /\ live h0 i /\ disjoint o i /\ disjoint o k)
(ensures
fun h0 r h1 ->
modifies (loc o) h0 h1 /\ as_seq h1 o == S.scalarmult (as_seq h0 k) (as_seq h0 i) /\... | false | |
Pulse.Main.fst | Pulse.Main.check_fndecl | val check_fndecl
(d: decl{FnDecl? d.d})
(g: Soundness.Common.stt_env{bindings g == []})
(pre: term)
(pre_typing: tot_typing g pre tm_vprop)
: T.Tac (RT.dsl_tac_result_t (fstar_env g)) | val check_fndecl
(d: decl{FnDecl? d.d})
(g: Soundness.Common.stt_env{bindings g == []})
(pre: term)
(pre_typing: tot_typing g pre tm_vprop)
: T.Tac (RT.dsl_tac_result_t (fstar_env g)) | let check_fndecl
(d : decl{FnDecl? d.d})
(g : Soundness.Common.stt_env{bindings g == []})
(pre : term) (pre_typing : tot_typing g pre tm_vprop)
: T.Tac (RT.dsl_tac_result_t (fstar_env g))
=
(* Maybe add a recursive knot before starting *)
let FnDecl fn_d = d.d in
let nm_orig = fst (inspect_ident f... | {
"file_name": "lib/steel/pulse/Pulse.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 125,
"start_col": 0,
"start_line": 57
} | (*
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": [
"PulseSyntaxExtension.ASTBuilder.fsti.checked",
"Pulse.Typing.Printer.fst.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Builder.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checke... | [
{
"abbrev": true,
"full_module": "Pulse.Recursion",
"short_module": "Rec"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 |
d: Pulse.Syntax.Base.decl{FnDecl? (Mkdecl?.d d)} ->
g: Pulse.Soundness.Common.stt_env{Pulse.Typing.Env.bindings g == []} ->
pre: Pulse.Syntax.Base.term ->
pre_typing: Pulse.Typing.tot_typing g pre Pulse.Syntax.Base.tm_vprop
-> FStar.Tactics.Effect.Tac
(FStar.Reflection.Typing.dsl_tac_result_t (Pu... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Syntax.Base.decl",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_FnDecl",
"Pulse.Syntax.Base.__proj__Mkdecl__item__d",
"Pulse.Soundness.Common.stt_env",
"Prims.eq2",
"Prims.list",
"Pulse.Typing.Env.binding",
"Pulse.Typing.Env.bindings",
"Prims.Nil",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot... | [] | false | true | false | false | false | let check_fndecl
(d: decl{FnDecl? d.d})
(g: Soundness.Common.stt_env{bindings g == []})
(pre: term)
(pre_typing: tot_typing g pre tm_vprop)
: T.Tac (RT.dsl_tac_result_t (fstar_env g)) =
| let FnDecl fn_d = d.d in
let nm_orig = fst (inspect_ident fn_d.id) in
let d = if fn_d.isrec then Recursion.add_knot g d.range d else d in
let FnDecl { id = id ; isrec = isrec ; bs = bs ; comp = comp ; meas = meas ; body = body } = d.d in
let nm_aux = fst (inspect_ident id) in
if Nil? bs then fail g (Some d.range) "main... | false |
TwoLockQueue.fst | TwoLockQueue.new_queue | val new_queue (#a: _) (x: a) : SteelT (t a) emp (fun _ -> emp) | val new_queue (#a: _) (x: a) : SteelT (t a) emp (fun _ -> emp) | let new_queue (#a:_) (x:a)
: SteelT (t a) emp (fun _ -> emp)
= let new_qptr (#a:_) (q:Q.t a)
: SteelT (q_ptr a) emp (fun qp -> ghost_pts_to qp.ghost half q)
= // Allocates the concrete pointer.
let ptr = alloc_pt q in
// Allocates the ghost state, and sets the corresponding lock invarian... | {
"file_name": "share/steel/examples/steel/TwoLockQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 162,
"start_col": 0,
"start_line": 140
} | module TwoLockQueue
open FStar.Ghost
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.FractionalPermission
open Steel.Reference
open Steel.SpinLock
module L = FStar.List.Tot
module U = Steel.Utils
module Q = Queue
/// This module provides an implementation of Michael and Scott's two lock queue... | {
"checked_file": "/",
"dependencies": [
"Steel.Utils.fst.checked",
"Steel.SpinLock.fsti.checked",
"Steel.Reference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"Queue.fsti.check... | [
{
"abbrev": true,
"full_module": "Queue",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "Steel.Utils",
"short_module": "U"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.SpinLock"... | {
"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 -> Steel.Effect.SteelT (TwoLockQueue.t a) | Steel.Effect.SteelT | [] | [] | [
"Steel.Effect.Atomic.return",
"TwoLockQueue.t",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__unit",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.req",
"Steel.Effect.Common.rm",
"TwoLockQueue.Mkt",
"Steel.Ef... | [] | false | true | false | false | false | let new_queue (#a: _) (x: a) : SteelT (t a) emp (fun _ -> emp) =
| let new_qptr (#a: _) (q: Q.t a) : SteelT (q_ptr a) emp (fun qp -> ghost_pts_to qp.ghost half q) =
let ptr = alloc_pt q in
let ghost = ghost_alloc_pt q in
ghost_share_pt ghost;
intro_exists _ (fun q -> (pts_to ptr full q) `star` (ghost_pts_to ghost half q));
let lock = Steel.SpinLock.new_lock _ in
{ ptr = pt... | false |
FStar.Issue.fsti | FStar.Issue.issue_level_string | val issue_level_string : Type0 | let issue_level_string = s:string {
s == "Info" \/
s == "Warning" \/
s == "Error" \/
s == "Feature not yet implemented: "
} | {
"file_name": "ulib/FStar.Issue.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 14,
"start_col": 0,
"start_line": 9
} | module FStar.Issue
open FStar.Range
module Pprint = FStar.Stubs.Pprint
new
val issue : Type0 | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Pprint.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Issue.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.Stubs.Pprint",
"short_module": "Pprint"
},
{
"abbrev": false,
"full_module": "FStar.Range",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.l_or",
"Prims.eq2"
] | [] | false | false | false | true | true | let issue_level_string =
| s: string{s == "Info" \/ s == "Warning" \/ s == "Error" \/ s == "Feature not yet implemented: "} | false | |
FStar.Issue.fsti | FStar.Issue.mk_issue | val mk_issue : i: FStar.Issue.issue_level_string ->
msg: Prims.string ->
range: FStar.Pervasives.Native.option FStar.Range.range ->
number: FStar.Pervasives.Native.option Prims.int ->
ctx: Prims.list Prims.string
-> FStar.Issue.issue | let mk_issue (i:issue_level_string)
(msg:string)
(range:option range)
(number:option int)
(ctx:list string)
= mk_issue_doc i [Pprint.arbitrary_string msg] range number ctx | {
"file_name": "ulib/FStar.Issue.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 49,
"start_col": 0,
"start_line": 44
} | module FStar.Issue
open FStar.Range
module Pprint = FStar.Stubs.Pprint
new
val issue : Type0
let issue_level_string = s:string {
s == "Info" \/
s == "Warning" \/
s == "Error" \/
s == "Feature not yet implemented: "
}
val message_of_issue (i:issue) : Tot (list Pprint.document)
val level_of_issue (i:issue) :... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Stubs.Pprint.fsti.checked",
"FStar.Range.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Issue.fsti"
} | [
{
"abbrev": true,
"full_module": "FStar.Stubs.Pprint",
"short_module": "Pprint"
},
{
"abbrev": false,
"full_module": "FStar.Range",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"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 |
i: FStar.Issue.issue_level_string ->
msg: Prims.string ->
range: FStar.Pervasives.Native.option FStar.Range.range ->
number: FStar.Pervasives.Native.option Prims.int ->
ctx: Prims.list Prims.string
-> FStar.Issue.issue | Prims.Tot | [
"total"
] | [] | [
"FStar.Issue.issue_level_string",
"Prims.string",
"FStar.Pervasives.Native.option",
"FStar.Range.range",
"Prims.int",
"Prims.list",
"FStar.Issue.mk_issue_doc",
"Prims.Cons",
"FStar.Stubs.Pprint.document",
"FStar.Stubs.Pprint.arbitrary_string",
"Prims.Nil",
"FStar.Issue.issue"
] | [] | false | false | false | true | false | let mk_issue
(i: issue_level_string)
(msg: string)
(range: option range)
(number: option int)
(ctx: list string)
=
| mk_issue_doc i [Pprint.arbitrary_string msg] range number ctx | false | |
Hacl.Spec.Curve25519.Field64.Core.fst | Hacl.Spec.Curve25519.Field64.Core.felem | val felem : Type0 | let felem = SD.lbignum U64 4 | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 19,
"start_col": 0,
"start_line": 19
} | module Hacl.Spec.Curve25519.Field64.Core
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Curve25519.Field64.Definition
module P = Spec.Curve25519
module CL = Hacl.Spec.Curve25519.Field64.Lemmas
module SD = Hacl.Spec.Bignum.Definitions
module SB = Hacl.Spec.Bignum
#reset-options "--z3rlimit 50 --... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field64.Lemmas.fst.checked",
"Hacl.Spec.Curve25519.Field64.Definition.fst.checked",
"Hacl.Spec.Bignum.Definitions.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "CL"
},
{
... | {
"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.Spec.Bignum.Definitions.lbignum",
"Lib.IntTypes.U64"
] | [] | false | false | false | true | true | let felem =
| SD.lbignum U64 4 | false | |
Hacl.Spec.Curve25519.Field64.Core.fst | Hacl.Spec.Curve25519.Field64.Core.mul1 | val mul1: f:felem -> u:uint64 ->
Pure (uint64 & felem)
(requires True)
(ensures fun (c, r) ->
SD.bn_v r + v c * pow2 256 == SD.bn_v f * v u) | val mul1: f:felem -> u:uint64 ->
Pure (uint64 & felem)
(requires True)
(ensures fun (c, r) ->
SD.bn_v r + v c * pow2 256 == SD.bn_v f * v u) | let mul1 f u =
let c, out = SB.bn_mul1 f u in
SB.bn_mul1_lemma f u;
c, out | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 62,
"start_col": 0,
"start_line": 59
} | module Hacl.Spec.Curve25519.Field64.Core
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Curve25519.Field64.Definition
module P = Spec.Curve25519
module CL = Hacl.Spec.Curve25519.Field64.Lemmas
module SD = Hacl.Spec.Bignum.Definitions
module SB = Hacl.Spec.Bignum
#reset-options "--z3rlimit 50 --... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field64.Lemmas.fst.checked",
"Hacl.Spec.Curve25519.Field64.Definition.fst.checked",
"Hacl.Spec.Bignum.Definitions.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "CL"
},
{
... | {
"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.Curve25519.Field64.Core.felem -> u19: Lib.IntTypes.uint64
-> Prims.Pure (Lib.IntTypes.uint64 * Hacl.Spec.Curve25519.Field64.Core.felem) | Prims.Pure | [] | [] | [
"Hacl.Spec.Curve25519.Field64.Core.felem",
"Lib.IntTypes.uint64",
"Hacl.Spec.Bignum.Definitions.limb",
"Lib.IntTypes.U64",
"Hacl.Spec.Bignum.Definitions.lbignum",
"FStar.Pervasives.Native.Mktuple2",
"Prims.unit",
"Hacl.Spec.Bignum.bn_mul1_lemma",
"FStar.Pervasives.Native.tuple2",
"Hacl.Spec.Bignum... | [] | false | false | false | false | false | let mul1 f u =
| let c, out = SB.bn_mul1 f u in
SB.bn_mul1_lemma f u;
c, out | false |
Hacl.Spec.Curve25519.Field64.Core.fst | Hacl.Spec.Curve25519.Field64.Core.add4 | val add4: f1:felem -> f2:felem ->
Pure (uint64 & felem)
(requires True)
(ensures fun (c, r) -> v c <= 1 /\
SD.bn_v r + v c * pow2 256 == SD.bn_v f1 + SD.bn_v f2) | val add4: f1:felem -> f2:felem ->
Pure (uint64 & felem)
(requires True)
(ensures fun (c, r) -> v c <= 1 /\
SD.bn_v r + v c * pow2 256 == SD.bn_v f1 + SD.bn_v f2) | let add4 f1 f2 =
let c, out = SB.bn_add f1 f2 in
SB.bn_add_lemma f1 f2;
c, out | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 172,
"start_col": 0,
"start_line": 169
} | module Hacl.Spec.Curve25519.Field64.Core
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Curve25519.Field64.Definition
module P = Spec.Curve25519
module CL = Hacl.Spec.Curve25519.Field64.Lemmas
module SD = Hacl.Spec.Bignum.Definitions
module SB = Hacl.Spec.Bignum
#reset-options "--z3rlimit 50 --... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field64.Lemmas.fst.checked",
"Hacl.Spec.Curve25519.Field64.Definition.fst.checked",
"Hacl.Spec.Bignum.Definitions.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "CL"
},
{
... | {
"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 | f1: Hacl.Spec.Curve25519.Field64.Core.felem -> f2: Hacl.Spec.Curve25519.Field64.Core.felem
-> Prims.Pure (Lib.IntTypes.uint64 * Hacl.Spec.Curve25519.Field64.Core.felem) | Prims.Pure | [] | [] | [
"Hacl.Spec.Curve25519.Field64.Core.felem",
"Hacl.Spec.Bignum.Base.carry",
"Lib.IntTypes.U64",
"Hacl.Spec.Bignum.Definitions.lbignum",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntTypes.uint64",
"Prims.unit",
"Hacl.Spec.Bignum.bn_add_lemma",
"FStar.Pervasives.Native.tuple2",
"Hacl.Spec.Bignum.bn_add... | [] | false | false | false | false | false | let add4 f1 f2 =
| let c, out = SB.bn_add f1 f2 in
SB.bn_add_lemma f1 f2;
c, out | false |
Hacl.Spec.Curve25519.Field64.Core.fst | Hacl.Spec.Curve25519.Field64.Core.felem_wide | val felem_wide : Type0 | let felem_wide = SD.lbignum U64 8 | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | module Hacl.Spec.Curve25519.Field64.Core
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Curve25519.Field64.Definition
module P = Spec.Curve25519
module CL = Hacl.Spec.Curve25519.Field64.Lemmas
module SD = Hacl.Spec.Bignum.Definitions
module SB = Hacl.Spec.Bignum
#reset-options "--z3rlimit 50 --... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field64.Lemmas.fst.checked",
"Hacl.Spec.Curve25519.Field64.Definition.fst.checked",
"Hacl.Spec.Bignum.Definitions.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "CL"
},
{
... | {
"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.Spec.Bignum.Definitions.lbignum",
"Lib.IntTypes.U64"
] | [] | false | false | false | true | true | let felem_wide =
| SD.lbignum U64 8 | false | |
Hacl.Spec.Curve25519.Field64.Core.fst | Hacl.Spec.Curve25519.Field64.Core.carry_pass | val carry_pass: f:felem -> cin:uint64 -> felem | val carry_pass: f:felem -> cin:uint64 -> felem | let carry_pass f cin =
let c, r = add1 f (cin *. u64 38) in
let b1 = r.[0] +. c *. u64 38 in
let out = r.[0] <- b1 in
out | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 82,
"start_col": 0,
"start_line": 78
} | module Hacl.Spec.Curve25519.Field64.Core
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Curve25519.Field64.Definition
module P = Spec.Curve25519
module CL = Hacl.Spec.Curve25519.Field64.Lemmas
module SD = Hacl.Spec.Bignum.Definitions
module SB = Hacl.Spec.Bignum
#reset-options "--z3rlimit 50 --... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field64.Lemmas.fst.checked",
"Hacl.Spec.Curve25519.Field64.Definition.fst.checked",
"Hacl.Spec.Bignum.Definitions.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "CL"
},
{
... | {
"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.Curve25519.Field64.Core.felem -> cin: Lib.IntTypes.uint64
-> Hacl.Spec.Curve25519.Field64.Core.felem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Curve25519.Field64.Core.felem",
"Lib.IntTypes.uint64",
"Lib.Sequence.lseq",
"Hacl.Spec.Bignum.Definitions.limb",
"Lib.IntTypes.U64",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.upd",
"Lib.Sequence.index",
"Prims.l_Forall",
"Prims.nat",
... | [] | false | false | false | true | false | let carry_pass f cin =
| let c, r = add1 f (cin *. u64 38) in
let b1 = r.[ 0 ] +. c *. u64 38 in
let out = r.[ 0 ] <- b1 in
out | false |
Hacl.Spec.Curve25519.Field64.Core.fst | Hacl.Spec.Curve25519.Field64.Core.add1 | val add1: f:felem -> cin:uint64 ->
Pure (uint64 & felem)
(requires True)
(ensures fun (c, r) -> v c <= 1 /\
SD.bn_v r + v c * pow2 256 == SD.bn_v f + v cin) | val add1: f:felem -> cin:uint64 ->
Pure (uint64 & felem)
(requires True)
(ensures fun (c, r) -> v c <= 1 /\
SD.bn_v r + v c * pow2 256 == SD.bn_v f + v cin) | let add1 f cin =
let (c, out) = SB.bn_add1 f cin in
SB.bn_add1_lemma f cin;
(c, out) | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 10,
"end_line": 38,
"start_col": 0,
"start_line": 35
} | module Hacl.Spec.Curve25519.Field64.Core
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Curve25519.Field64.Definition
module P = Spec.Curve25519
module CL = Hacl.Spec.Curve25519.Field64.Lemmas
module SD = Hacl.Spec.Bignum.Definitions
module SB = Hacl.Spec.Bignum
#reset-options "--z3rlimit 50 --... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field64.Lemmas.fst.checked",
"Hacl.Spec.Curve25519.Field64.Definition.fst.checked",
"Hacl.Spec.Bignum.Definitions.f... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum",
"short_module": "SB"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Definitions",
"short_module": "SD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "CL"
},
{
... | {
"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.Curve25519.Field64.Core.felem -> cin: Lib.IntTypes.uint64
-> Prims.Pure (Lib.IntTypes.uint64 * Hacl.Spec.Curve25519.Field64.Core.felem) | Prims.Pure | [] | [] | [
"Hacl.Spec.Curve25519.Field64.Core.felem",
"Lib.IntTypes.uint64",
"Hacl.Spec.Bignum.Base.carry",
"Lib.IntTypes.U64",
"Hacl.Spec.Bignum.Definitions.lbignum",
"FStar.Pervasives.Native.Mktuple2",
"Prims.unit",
"Hacl.Spec.Bignum.bn_add1_lemma",
"FStar.Pervasives.Native.tuple2",
"Hacl.Spec.Bignum.bn_ad... | [] | false | false | false | false | false | let add1 f cin =
| let c, out = SB.bn_add1 f cin in
SB.bn_add1_lemma f cin;
(c, out) | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.