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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.serialize32_bounded_int32_4 | val serialize32_bounded_int32_4
(min32: U32.t)
(max32: U32.t { 16777216 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
: Tot (serializer32 (serialize_bounded_int32 (U32.v min32) (U32.v max32))) | val serialize32_bounded_int32_4
(min32: U32.t)
(max32: U32.t { 16777216 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
: Tot (serializer32 (serialize_bounded_int32 (U32.v min32) (U32.v max32))) | let serialize32_bounded_int32_4
min max
= serialize32_bounded_int32' min max 4ul | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 40,
"end_line": 320,
"start_col": 0,
"start_line": 318
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 16777216 <= FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 4294967296 }
-> LowParse.SLow.Base.serializer32 (LowParse.Spec.BoundedInt.serialize_bounded_int32 (FStar.UInt32.v
m... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"Prims.op_LessThan",
"LowParse.SLow.BoundedInt.serialize32_bounded_int32'",
"FStar.UInt32.__uint_to_t",
"LowParse.SLow.Base.serializer32",
"LowParse.Spec.BoundedInt.parse_bounded_int32_kind",
"LowParse.Sp... | [] | false | false | false | false | false | let serialize32_bounded_int32_4 min max =
| serialize32_bounded_int32' min max 4ul | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.parse32_bounded_int32_le_4 | val parse32_bounded_int32_le_4
(min32: U32.t)
(max32: U32.t { 16777216 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
: Tot (parser32 (parse_bounded_int32_le (U32.v min32) (U32.v max32))) | val parse32_bounded_int32_le_4
(min32: U32.t)
(max32: U32.t { 16777216 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
: Tot (parser32 (parse_bounded_int32_le (U32.v min32) (U32.v max32))) | let parse32_bounded_int32_le_4
min max
= parse32_bounded_int32_le' min max 4ul | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 39,
"end_line": 356,
"start_col": 0,
"start_line": 354
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 16777216 <= FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 4294967296 }
-> LowParse.SLow.Base.parser32 (LowParse.Spec.BoundedInt.parse_bounded_int32_le (FStar.UInt32.v min32
)
... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"Prims.op_LessThan",
"LowParse.SLow.BoundedInt.parse32_bounded_int32_le'",
"FStar.UInt32.__uint_to_t",
"LowParse.SLow.Base.parser32",
"LowParse.Spec.BoundedInt.parse_bounded_int32_kind",
"LowParse.Spec.Bo... | [] | false | false | false | false | false | let parse32_bounded_int32_le_4 min max =
| parse32_bounded_int32_le' min max 4ul | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_wide_felem5_compact | val carry_wide_felem5_compact: #w:lanes -> inp:felem_wide5 w -> felem5 w | val carry_wide_felem5_compact: #w:lanes -> inp:felem_wide5 w -> felem5 w | let carry_wide_felem5_compact #w (x0, x1, x2, x3, x4) =
// m_i <= 4096, x_i <= m_i * max26 * max26
// felem_wide_fits5 (x0, x1, x2, x3, x4) (m0, m1, m2, m3, m4)
let t0, c0 = carry26_wide_zero x0 in
// t0 <= max26 /\ c0 <= (m0 + 1) * max26
let t1, c1 = carry26_wide x1 c0 in
// t1 <= max26 /\ c1 <= (m1 + 1) *... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 83,
"start_col": 0,
"start_line": 60
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | inp: Hacl.Spec.Poly1305.Field32xN.felem_wide5 w -> Hacl.Spec.Poly1305.Field32xN.felem5 w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"FStar.Pervasives.Native.Mktuple5",
"Lib.IntVector.vec_t",
"Lib.IntTypes.U64",
"Lib.IntVector.vec_add_mod",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"FStar.Pervasives.Native.tuple... | [] | false | false | false | false | false | let carry_wide_felem5_compact #w (x0, x1, x2, x3, x4) =
| let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = carry26_wide_zero x3 in
let t3', c6 = carry26 t3 c2 in
let t4, c4 = carry26_wide x4 c3 in
let t4' = vec_add_mod t4 c6 in
let t0', c5 = carry26 t0 (vec_smul_mod c4 (u64 5)) in
let t1' = vec_add_mod t1 ... | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.serialize32_bounded_int32_le_3 | val serialize32_bounded_int32_le_3
(min32: U32.t)
(max32: U32.t { 65536 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 16777216 })
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | val serialize32_bounded_int32_le_3
(min32: U32.t)
(max32: U32.t { 65536 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 16777216 })
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | let serialize32_bounded_int32_le_3
min max
= serialize32_bounded_int32_le' min max 3ul | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 43,
"end_line": 392,
"start_col": 0,
"start_line": 390
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 65536 <= FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 16777216 }
-> LowParse.SLow.Base.serializer32 (LowParse.Spec.BoundedInt.serialize_bounded_int32_le (FStar.UInt32.v
min... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"Prims.op_LessThan",
"LowParse.SLow.BoundedInt.serialize32_bounded_int32_le'",
"FStar.UInt32.__uint_to_t",
"LowParse.SLow.Base.serializer32",
"LowParse.Spec.BoundedInt.parse_bounded_int32_kind",
"LowParse... | [] | false | false | false | false | false | let serialize32_bounded_int32_le_3 min max =
| serialize32_bounded_int32_le' min max 3ul | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.lemma_prime | val lemma_prime: unit -> Lemma (pow2 130 % prime = 5) | val lemma_prime: unit -> Lemma (pow2 130 % prime = 5) | let lemma_prime () =
assert_norm (pow2 130 % prime = 5 % prime);
assert_norm (5 < prime);
FStar.Math.Lemmas.modulo_lemma 5 prime | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 19,
"start_col": 0,
"start_line": 16
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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.unit -> FStar.Pervasives.Lemma (ensures Prims.pow2 130 % Hacl.Spec.Poly1305.Vec.prime = 5) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.unit",
"FStar.Math.Lemmas.modulo_lemma",
"Hacl.Spec.Poly1305.Vec.prime",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.pow2"
] | [] | true | false | true | false | false | let lemma_prime () =
| assert_norm (pow2 130 % prime = 5 % prime);
assert_norm (5 < prime);
FStar.Math.Lemmas.modulo_lemma 5 prime | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_wide_felem5_eval_lemma | val carry_wide_felem5_eval_lemma:
#w:lanes
-> inp:felem_wide5 w
-> Lemma
(requires felem_wide_fits5 inp (126, 102, 78, 54, 30))
(ensures feval5 (carry_wide_felem5 #w inp) == feval5 inp) | val carry_wide_felem5_eval_lemma:
#w:lanes
-> inp:felem_wide5 w
-> Lemma
(requires felem_wide_fits5 inp (126, 102, 78, 54, 30))
(ensures feval5 (carry_wide_felem5 #w inp) == feval5 inp) | let carry_wide_felem5_eval_lemma #w inp =
let o = carry_wide_felem5 #w inp in
FStar.Classical.forall_intro (carry_wide_felem5_eval_lemma_i #w inp);
eq_intro (feval5 o) (feval5 inp) | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 469,
"start_col": 0,
"start_line": 466
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | inp: Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5 inp (126, 102, 78, 54, 30))
(ensures
Hacl.Spec.Poly1305.Field32xN.feval5 (Hacl.Spec.Poly1305.Field32xN.carry_wide_felem5 inp) ==
Hacl.Spec.Poly1305.Field32xN.fe... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Lib.Sequence.eq_intro",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Field32xN.feval5",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Prims.l_... | [] | false | false | true | false | false | let carry_wide_felem5_eval_lemma #w inp =
| let o = carry_wide_felem5 #w inp in
FStar.Classical.forall_intro (carry_wide_felem5_eval_lemma_i #w inp);
eq_intro (feval5 o) (feval5 inp) | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.parse32_bounded_int32_3 | val parse32_bounded_int32_3
(min32: U32.t)
(max32: U32.t { 65536 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 16777216 })
: Tot (parser32 (parse_bounded_int32 (U32.v min32) (U32.v max32))) | val parse32_bounded_int32_3
(min32: U32.t)
(max32: U32.t { 65536 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 16777216 })
: Tot (parser32 (parse_bounded_int32 (U32.v min32) (U32.v max32))) | let parse32_bounded_int32_3
min max
= parse32_bounded_int32' min max 3ul | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 36,
"end_line": 279,
"start_col": 0,
"start_line": 277
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 65536 <= FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 16777216 }
-> LowParse.SLow.Base.parser32 (LowParse.Spec.BoundedInt.parse_bounded_int32 (FStar.UInt32.v min32
)
... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"Prims.op_LessThan",
"LowParse.SLow.BoundedInt.parse32_bounded_int32'",
"FStar.UInt32.__uint_to_t",
"LowParse.SLow.Base.parser32",
"LowParse.Spec.BoundedInt.parse_bounded_int32_kind",
"LowParse.Spec.Bound... | [] | false | false | false | false | false | let parse32_bounded_int32_3 min max =
| parse32_bounded_int32' min max 3ul | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.serialize32_bounded_int32_le_2 | val serialize32_bounded_int32_le_2
(min32: U32.t)
(max32: U32.t { 256 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 65536 })
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | val serialize32_bounded_int32_le_2
(min32: U32.t)
(max32: U32.t { 256 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 65536 })
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | let serialize32_bounded_int32_le_2
min max
= serialize32_bounded_int32_le' min max 2ul | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 43,
"end_line": 388,
"start_col": 0,
"start_line": 386
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 256 <= FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 65536 }
-> LowParse.SLow.Base.serializer32 (LowParse.Spec.BoundedInt.serialize_bounded_int32_le (FStar.UInt32.v
min32)
... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"Prims.op_LessThan",
"LowParse.SLow.BoundedInt.serialize32_bounded_int32_le'",
"FStar.UInt32.__uint_to_t",
"LowParse.SLow.Base.serializer32",
"LowParse.Spec.BoundedInt.parse_bounded_int32_kind",
"LowParse... | [] | false | false | false | false | false | let serialize32_bounded_int32_le_2 min max =
| serialize32_bounded_int32_le' min max 2ul | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.parse32_bounded_int32_le' | val parse32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t{0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296})
(sz32: U32.t{log256' (U32.v max32) == U32.v sz32})
: Tot (parser32 (parse_bounded_int32_le (U32.v min32) (U32.v max32))) | val parse32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t{0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296})
(sz32: U32.t{log256' (U32.v max32) == U32.v sz32})
: Tot (parser32 (parse_bounded_int32_le (U32.v min32) (U32.v max32))) | let parse32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t { 0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
(sz32: U32.t { log256' (U32.v max32) == U32.v sz32 })
: Tot (parser32 (parse_bounded_int32_le (U32.v min32) (U32.v max32)))
= [@inline_let]
let sz = U32.v sz32 in
[@inline_... | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 340,
"start_col": 0,
"start_line": 324
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 0 < FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 4294967296 } ->
sz32:
FStar.UInt32.t{LowParse.Spec.BoundedInt.log256' (FStar.UInt32.v max32) == FStar.UInt32.v sz32}
-> LowPars... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"Prims.op_LessThanOrEqual",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"FStar.UInt.size",
"FStar.UInt32.n",
"LowParse.Spec.BoundedInt.log256'",
"LowParse.SLow.Combinators.parse3... | [] | false | false | false | false | false | let parse32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t{0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296})
(sz32: U32.t{log256' (U32.v max32) == U32.v sz32})
: Tot (parser32 (parse_bounded_int32_le (U32.v min32) (U32.v max32))) =
| [@@ inline_let ]let sz = U32.v sz32 in
[@@ inline_let ]let min = U32.v min32 in
[@@ inline_let ]let max = U32.v max32 in
parse32_synth ((parse_bounded_integer_le sz) `parse_filter` (in_bounds min max))
(fun x -> (x <: bounded_int32 min max))
(fun x -> x)
(parse32_filter (parse32_bounded_integer_le sz)
(in_b... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_wide_zero | val carry26_wide_zero: #w:lanes -> l:uint64xN w -> uint64xN w & uint64xN w | val carry26_wide_zero: #w:lanes -> l:uint64xN w -> uint64xN w & uint64xN w | let carry26_wide_zero #w l = (vec_and l (mask26 w), vec_shift_right l 26ul) | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 75,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | l: Hacl.Spec.Poly1305.Field32xN.uint64xN w
-> Hacl.Spec.Poly1305.Field32xN.uint64xN w * Hacl.Spec.Poly1305.Field32xN.uint64xN w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntVector.vec_and",
"Lib.IntTypes.U64",
"Hacl.Spec.Poly1305.Field32xN.mask26",
"Lib.IntVector.vec_shift_right",
"FStar.UInt32.__uint_to_t",
"FStar.Pervasives.Native.tuple2"
] | [] | false | false | false | false | false | let carry26_wide_zero #w l =
| (vec_and l (mask26 w), vec_shift_right l 26ul) | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.serialize32_bounded_int32_le_4 | val serialize32_bounded_int32_le_4
(min32: U32.t)
(max32: U32.t { 16777216 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | val serialize32_bounded_int32_le_4
(min32: U32.t)
(max32: U32.t { 16777216 <= U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | let serialize32_bounded_int32_le_4
min max
= serialize32_bounded_int32_le' min max 4ul | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 43,
"end_line": 396,
"start_col": 0,
"start_line": 394
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 16777216 <= FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 4294967296 }
-> LowParse.SLow.Base.serializer32 (LowParse.Spec.BoundedInt.serialize_bounded_int32_le (FStar.UInt32.v
... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"Prims.op_LessThan",
"LowParse.SLow.BoundedInt.serialize32_bounded_int32_le'",
"FStar.UInt32.__uint_to_t",
"LowParse.SLow.Base.serializer32",
"LowParse.Spec.BoundedInt.parse_bounded_int32_kind",
"LowParse... | [] | false | false | false | false | false | let serialize32_bounded_int32_le_4 min max =
| serialize32_bounded_int32_le' min max 4ul | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_wide_zero_eq | val carry26_wide_zero_eq: #w:lanes -> f:uint64xN w -> Lemma
(carry26_wide_zero f == carry26_wide f (zero w)) | val carry26_wide_zero_eq: #w:lanes -> f:uint64xN w -> Lemma
(carry26_wide_zero f == carry26_wide f (zero w)) | let carry26_wide_zero_eq #w f =
let l1 = vec_add_mod f (zero w) in
assert (vec_v l1 == map2 ( +. ) (vec_v f) (vec_v (zero w)));
assert (forall (i:nat{i < w}). uint_v (vec_v l1).[i] == uint_v (vec_v f).[i]);
assert (forall (i:nat{i < w}). (vec_v l1).[i] == (vec_v f).[i]);
eq_intro (vec_v l1) (vec_v f);
asser... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 34,
"start_col": 0,
"start_line": 27
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | f: Hacl.Spec.Poly1305.Field32xN.uint64xN w
-> FStar.Pervasives.Lemma
(ensures
Hacl.Poly1305.Field32xN.Lemmas1.carry26_wide_zero f ==
Hacl.Spec.Poly1305.Field32xN.carry26_wide f (Hacl.Spec.Poly1305.Field32xN.zero w)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.IntVector.vecv_extensionality",
"Lib.IntTypes.U64",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Lib.IntVector.vec_v_t",
"Lib.IntVector.vec_v",
"Lib.Sequence.eq_intro",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC"... | [] | false | false | true | false | false | let carry26_wide_zero_eq #w f =
| let l1 = vec_add_mod f (zero w) in
assert (vec_v l1 == map2 ( +. ) (vec_v f) (vec_v (zero w)));
assert (forall (i: nat{i < w}). uint_v (vec_v l1).[ i ] == uint_v (vec_v f).[ i ]);
assert (forall (i: nat{i < w}). (vec_v l1).[ i ] == (vec_v f).[ i ]);
eq_intro (vec_v l1) (vec_v f);
assert (vec_v l1 == vec_v f);
vecv_exte... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.vec_smul_mod_five_i | val vec_smul_mod_five_i: #w:lanes -> f:uint64xN w{uint64xN_fits f (4096 * max26)} -> i:nat{i < w} -> Lemma
(u64 5 *. (vec_v f).[i] == (vec_v f).[i] +. ((vec_v f).[i] <<. 2ul)) | val vec_smul_mod_five_i: #w:lanes -> f:uint64xN w{uint64xN_fits f (4096 * max26)} -> i:nat{i < w} -> Lemma
(u64 5 *. (vec_v f).[i] == (vec_v f).[i] +. ((vec_v f).[i] <<. 2ul)) | let vec_smul_mod_five_i #w f i =
let f = (vec_v f).[i] in
assert (v (f <<. 2ul) == (v f * pow2 2) % pow2 64);
Math.Lemmas.small_mod (v f * pow2 2) (pow2 64);
Math.Lemmas.small_mod (v f + v f * pow2 2) (pow2 64);
Math.Lemmas.small_mod (5 * v f) (pow2 64);
assert (5 * v f == v f + v f * 4);
v_injective (u64... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 46,
"start_col": 0,
"start_line": 38
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits f (4096 * Hacl.Spec.Poly1305.Field32xN.max26)} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
Lib.IntTypes.u64 5 *. (Lib.IntVector.vec_v f).[ i ] ==
(Lib.IntVector.vec_v f).[ i ] +.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.max26",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.v_injective",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC... | [] | true | false | true | false | false | let vec_smul_mod_five_i #w f i =
| let f = (vec_v f).[ i ] in
assert (v (f <<. 2ul) == (v f * pow2 2) % pow2 64);
Math.Lemmas.small_mod (v f * pow2 2) (pow2 64);
Math.Lemmas.small_mod (v f + v f * pow2 2) (pow2 64);
Math.Lemmas.small_mod (5 * v f) (pow2 64);
assert (5 * v f == v f + v f * 4);
v_injective (u64 5 *. f);
v_injective (f +. (f <<. 2ul)) | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.serialize32_bounded_int32_le' | val serialize32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t{0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296})
(sz32: U32.t{log256' (U32.v max32) == U32.v sz32})
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | val serialize32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t{0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296})
(sz32: U32.t{log256' (U32.v max32) == U32.v sz32})
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) | let serialize32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t { 0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296 })
(sz32: U32.t { log256' (U32.v max32) == U32.v sz32 })
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32)))
= [@inline_let]
let sz = U32.v sz32 in... | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 377,
"start_col": 0,
"start_line": 359
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
min32: FStar.UInt32.t ->
max32:
FStar.UInt32.t
{ 0 < FStar.UInt32.v max32 /\ FStar.UInt32.v min32 <= FStar.UInt32.v max32 /\
FStar.UInt32.v max32 < 4294967296 } ->
sz32:
FStar.UInt32.t{LowParse.Spec.BoundedInt.log256' (FStar.UInt32.v max32) == FStar.UInt32.v sz32}
-> LowPars... | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"Prims.op_LessThanOrEqual",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"FStar.UInt.size",
"FStar.UInt32.n",
"LowParse.Spec.BoundedInt.log256'",
"LowParse.SLow.Combinators.serial... | [] | false | false | false | false | false | let serialize32_bounded_int32_le'
(min32: U32.t)
(max32: U32.t{0 < U32.v max32 /\ U32.v min32 <= U32.v max32 /\ U32.v max32 < 4294967296})
(sz32: U32.t{log256' (U32.v max32) == U32.v sz32})
: Tot (serializer32 (serialize_bounded_int32_le (U32.v min32) (U32.v max32))) =
| [@@ inline_let ]let sz = U32.v sz32 in
[@@ inline_let ]let min = U32.v min32 in
[@@ inline_let ]let max = U32.v max32 in
serialize32_synth ((parse_bounded_integer_le sz) `parse_filter` (in_bounds min max))
(fun x -> (x <: bounded_int32 min max))
_
(serialize32_filter (serialize32_bounded_integer_le sz) (in_bounds... | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.serialize32_bounded_int32_le_fixed_size | val serialize32_bounded_int32_le_fixed_size
(min32: U32.t)
(max32: U32.t { U32.v min32 <= U32.v max32 })
: Tot (serializer32 (serialize_bounded_int32_le_fixed_size (U32.v min32) (U32.v max32))) | val serialize32_bounded_int32_le_fixed_size
(min32: U32.t)
(max32: U32.t { U32.v min32 <= U32.v max32 })
: Tot (serializer32 (serialize_bounded_int32_le_fixed_size (U32.v min32) (U32.v max32))) | let serialize32_bounded_int32_le_fixed_size
min32 max32
= serialize32_filter serialize32_u32_le (in_bounds (U32.v min32) (U32.v max32)) | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 79,
"end_line": 404,
"start_col": 0,
"start_line": 402
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 | min32: FStar.UInt32.t -> max32: FStar.UInt32.t{FStar.UInt32.v min32 <= FStar.UInt32.v max32}
-> LowParse.SLow.Base.serializer32 (LowParse.Spec.BoundedInt.serialize_bounded_int32_le_fixed_size
(FStar.UInt32.v min32)
(FStar.UInt32.v max32)) | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"LowParse.SLow.Combinators.serialize32_filter",
"LowParse.Spec.Int.parse_u32_kind",
"LowParse.Spec.BoundedInt.parse_u32_le",
"LowParse.Spec.BoundedInt.serialize_u32_le",
"LowParse.SLow.BoundedInt.serialize32_u32_le",
"Low... | [] | false | false | false | false | false | let serialize32_bounded_int32_le_fixed_size min32 max32 =
| serialize32_filter serialize32_u32_le (in_bounds (U32.v min32) (U32.v max32)) | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_wide_felem5_fits_lemma | val carry_wide_felem5_fits_lemma:
#w:lanes
-> inp:felem_wide5 w ->
Lemma
(requires felem_wide_fits5 inp (126, 102, 78, 54, 30))
(ensures felem_fits5 (carry_wide_felem5 inp) (1, 2, 1, 1, 2)) | val carry_wide_felem5_fits_lemma:
#w:lanes
-> inp:felem_wide5 w ->
Lemma
(requires felem_wide_fits5 inp (126, 102, 78, 54, 30))
(ensures felem_fits5 (carry_wide_felem5 inp) (1, 2, 1, 1, 2)) | let carry_wide_felem5_fits_lemma #w inp =
let (x0, x1, x2, x3, x4) = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = carry26_wide_zero x3 in
let t3', c6 = carry26 t3 c2 in
let t4, c4 = carry26_wide x4 c3 in
let t4' = vec_add_... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 291,
"start_col": 0,
"start_line": 279
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | inp: Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5 inp (126, 102, 78, 54, 30))
(ensures
Hacl.Spec.Poly1305.Field32xN.felem_fits5 (Hacl.Spec.Poly1305.Field32xN.carry_wide_felem5 inp
)
(1,
2,... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Poly1305.Field32xN.Lemmas1.carry26_fits_lemma",
"Lib.IntVector.vec_smul_mod",
"Lib.IntTypes.U64",
"Lib.IntTypes.u64",
"Prims.unit",
"FStar.Pervasives.Native.tuple2",
"Ha... | [] | false | false | true | false | false | let carry_wide_felem5_fits_lemma #w inp =
| let x0, x1, x2, x3, x4 = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = carry26_wide_zero x3 in
let t3', c6 = carry26 t3 c2 in
let t4, c4 = carry26_wide x4 c3 in
let t4' = vec_add_mod t4 c6 in
carry_wide_felem5_fits_lemma0 #w inp;
vec_smul_... | false |
LowParse.SLow.BoundedInt.fst | LowParse.SLow.BoundedInt.parse32_bounded_int32_le_fixed_size | val parse32_bounded_int32_le_fixed_size
(min32: U32.t)
(max32: U32.t { U32.v min32 <= U32.v max32 })
: Tot (parser32 (parse_bounded_int32_le_fixed_size (U32.v min32) (U32.v max32))) | val parse32_bounded_int32_le_fixed_size
(min32: U32.t)
(max32: U32.t { U32.v min32 <= U32.v max32 })
: Tot (parser32 (parse_bounded_int32_le_fixed_size (U32.v min32) (U32.v max32))) | let parse32_bounded_int32_le_fixed_size
min32 max32
= parse32_filter parse32_u32_le (in_bounds (U32.v min32) (U32.v max32)) (fun x -> not (x `U32.lt` min32 || max32 `U32.lt` x)) | {
"file_name": "src/lowparse/LowParse.SLow.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 125,
"end_line": 400,
"start_col": 0,
"start_line": 398
} | module LowParse.SLow.BoundedInt
open LowParse.SLow.Combinators
#set-options "--split_queries no"
#set-options "--z3rlimit 20"
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module B32 = FStar.Bytes
module E = LowParse.SLow.Endianness
module EI = LowParse.Spec.Endia... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Endianness.Instances.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.SLow.Endianness.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked"... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Endianness.Instances",
"short_module": "EI"
},
{
"abbrev": true,
"full_module": "LowParse.SLow.Endianness",
"short_module": "E"
},
{
"abbre... | {
"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 | min32: FStar.UInt32.t -> max32: FStar.UInt32.t{FStar.UInt32.v min32 <= FStar.UInt32.v max32}
-> LowParse.SLow.Base.parser32 (LowParse.Spec.BoundedInt.parse_bounded_int32_le_fixed_size (FStar.UInt32.v
min32)
(FStar.UInt32.v max32)) | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"LowParse.SLow.Combinators.parse32_filter",
"LowParse.Spec.Int.parse_u32_kind",
"LowParse.Spec.BoundedInt.parse_u32_le",
"LowParse.SLow.BoundedInt.parse32_u32_le",
"LowParse.Spec.BoundedInt.in_bounds",
"Prims.op_Negation"... | [] | false | false | false | false | false | let parse32_bounded_int32_le_fixed_size min32 max32 =
| parse32_filter parse32_u32_le
(in_bounds (U32.v min32) (U32.v max32))
(fun x -> not (x `U32.lt` min32 || max32 `U32.lt` x)) | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.lemma_subtract_p5 | val lemma_subtract_p5:
f:tup64_5{tup64_fits5 f (1, 1, 1, 1, 1)}
-> f':tup64_5 ->
Lemma
(requires
(let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
((v f4 = 0x3ffffff && v f3 = 0x3ffffff && v f2 = 0x3ffffff && v f1 = 0x3ffffff && v f0 >= 0x3fffffb) /\
(v f0' = v f0 - 0x3... | val lemma_subtract_p5:
f:tup64_5{tup64_fits5 f (1, 1, 1, 1, 1)}
-> f':tup64_5 ->
Lemma
(requires
(let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
((v f4 = 0x3ffffff && v f3 = 0x3ffffff && v f2 = 0x3ffffff && v f1 = 0x3ffffff && v f0 >= 0x3fffffb) /\
(v f0' = v f0 - 0x3... | let lemma_subtract_p5 f f' =
let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
assert_norm (max26 = pow2 26 - 1);
if ((v f4 <> 0x3ffffff || v f3 <> 0x3ffffff || v f2 <> 0x3ffffff || v f1 <> 0x3ffffff || v f0 < 0x3fffffb) &&
(v f0' = v f0 && v f1' = v f1 && v f2' = v f2 && v f3' = v f3 &... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 558,
"start_col": 0,
"start_line": 551
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.tup64_5
{Hacl.Spec.Poly1305.Field32xN.tup64_fits5 f (1, 1, 1, 1, 1)} ->
f': Hacl.Spec.Poly1305.Field32xN.tup64_5
-> FStar.Pervasives.Lemma
(requires
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.tup64_5",
"Hacl.Spec.Poly1305.Field32xN.tup64_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Lib.IntTypes.uint64",
"Prims.op_AmpAmp",
"Prims.op_BarBar",
"Prims.op_disEquality",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Pr... | [] | false | false | true | false | false | let lemma_subtract_p5 f f' =
| let f0, f1, f2, f3, f4 = f in
let f0', f1', f2', f3', f4' = f' in
assert_norm (max26 = pow2 26 - 1);
if
((v f4 <> 0x3ffffff || v f3 <> 0x3ffffff || v f2 <> 0x3ffffff || v f1 <> 0x3ffffff ||
v f0 < 0x3fffffb) &&
(v f0' = v f0 && v f1' = v f1 && v f2' = v f2 && v f3' = v f3 && v f4' = v f4))
then lemma_subtra... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.vec_smul_mod_five | val vec_smul_mod_five: #w:lanes -> f:uint64xN w{uint64xN_fits f (4096 * max26)} -> Lemma
(vec_smul_mod f (u64 5) == vec_add_mod f (vec_shift_left f 2ul)) | val vec_smul_mod_five: #w:lanes -> f:uint64xN w{uint64xN_fits f (4096 * max26)} -> Lemma
(vec_smul_mod f (u64 5) == vec_add_mod f (vec_shift_left f 2ul)) | let vec_smul_mod_five #w f =
let r1 = vec_smul_mod f (u64 5) in
let r2 = vec_add_mod f (vec_shift_left f 2ul) in
Classical.forall_intro (vec_smul_mod_five_i #w f);
eq_intro (vec_v r1) (vec_v r2);
vecv_extensionality r1 r2 | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 55,
"start_col": 0,
"start_line": 50
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits f (4096 * Hacl.Spec.Poly1305.Field32xN.max26)}
-> FStar.Pervasives.Lemma
(ensures
Lib.IntVector.vec_smul_mod f (Lib.IntTypes.u64 5) ==
Lib.IntVector.vec_add_mod f (Lib.IntVector.vec_shift_left f 2... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.max26",
"Lib.IntVector.vecv_extensionality",
"Lib.IntTypes.U64",
"Prims.unit",
"Lib.Sequence.eq_intro",
"Lib.IntTypes.uint... | [] | false | false | true | false | false | let vec_smul_mod_five #w f =
| let r1 = vec_smul_mod f (u64 5) in
let r2 = vec_add_mod f (vec_shift_left f 2ul) in
Classical.forall_intro (vec_smul_mod_five_i #w f);
eq_intro (vec_v r1) (vec_v r2);
vecv_extensionality r1 r2 | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t | val acc_inv_t (#w: lanes) (acc: felem5 w) : Type0 | val acc_inv_t (#w: lanes) (acc: felem5 w) : Type0 | let acc_inv_t (#w:lanes) (acc:felem5 w) : Type0 =
let (o0, o1, o2, o3, o4) = acc in
forall (i:nat). i < w ==>
(if uint_v (vec_v o0).[i] >= pow2 26 then
tup64_fits5 (as_tup64_i acc i) (2, 1, 1, 1, 1) /\
uint_v (vec_v o0).[i] % pow2 26 < 47
else tup64_fits5 (as_tup64_i acc i) (1, 1, 1, 1, 1)) | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 639,
"start_col": 0,
"start_line": 633
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | acc: Hacl.Spec.Poly1305.Field32xN.felem5 w -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.uint_v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
... | [] | false | false | false | false | true | let acc_inv_t (#w: lanes) (acc: felem5 w) : Type0 =
| let o0, o1, o2, o3, o4 = acc in
forall (i: nat).
i < w ==>
(if uint_v (vec_v o0).[ i ] >= pow2 26
then tup64_fits5 (as_tup64_i acc i) (2, 1, 1, 1, 1) /\ uint_v (vec_v o0).[ i ] % pow2 26 < 47
else tup64_fits5 (as_tup64_i acc i) (1, 1, 1, 1, 1)) | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_wide_eval_lemma | val carry26_wide_eval_lemma:
#w:lanes
-> #m:scale64
-> l:uint64xN w{felem_wide_fits1 l m}
-> cin:uint64xN w{uint64xN_fits cin (4096 * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
//felem_fits1 l0 1 /\
uint64xN_fits l1 ((m + 1) * max26) /\
(forall (i:nat). i < w ==> (uint64xN_v l).[i] + (uint... | val carry26_wide_eval_lemma:
#w:lanes
-> #m:scale64
-> l:uint64xN w{felem_wide_fits1 l m}
-> cin:uint64xN w{uint64xN_fits cin (4096 * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
//felem_fits1 l0 1 /\
uint64xN_fits l1 ((m + 1) * max26) /\
(forall (i:nat). i < w ==> (uint64xN_v l).[i] + (uint... | let carry26_wide_eval_lemma #w #m l cin =
carry26_wide_fits_lemma #w #m l cin;
match w with
| 1 ->
carry26_wide_lemma_i #w #m l cin 0
| 2 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1
| 4 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1;... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 160,
"start_col": 0,
"start_line": 148
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
l: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_wide_fits1 l m} ->
cin:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin (4096 * Hacl.Spec.Poly1305.Field32xN.max26)}
-> FStar.Pervasives.Lemma
(ensures
(let _ = Hacl.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.scale64",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.felem_wide_fits1",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.max26",
"Hacl.Poly1305.Field32xN.Lemm... | [] | false | false | true | false | false | let carry26_wide_eval_lemma #w #m l cin =
| carry26_wide_fits_lemma #w #m l cin;
match w with
| 1 -> carry26_wide_lemma_i #w #m l cin 0
| 2 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1
| 4 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1;
carry26_wide_lemma_i #w #m l cin 2;
carry26_wide_lemma_i #w... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_wide_lemma_i | val carry26_wide_lemma_i:
#w:lanes
-> #m:scale64
-> l:uint64xN w{felem_wide_fits1 l m}
-> cin:uint64xN w{uint64xN_fits cin (4096 * max26)}
-> i:nat{i < w} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
(uint64xN_v l0).[i] <= max26 /\ (uint64xN_v l1).[i] <= (m + 1) * max26 /\
(uint64xN_v l).[i] + (ui... | val carry26_wide_lemma_i:
#w:lanes
-> #m:scale64
-> l:uint64xN w{felem_wide_fits1 l m}
-> cin:uint64xN w{uint64xN_fits cin (4096 * max26)}
-> i:nat{i < w} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
(uint64xN_v l0).[i] <= max26 /\ (uint64xN_v l1).[i] <= (m + 1) * max26 /\
(uint64xN_v l).[i] + (ui... | let carry26_wide_lemma_i #w #m l cin i =
let l = (vec_v l).[i] in
let cin = (vec_v cin).[i] in
let mask26 = u64 0x3ffffff in
assert_norm (0x3ffffff = pow2 26 - 1);
FStar.Math.Lemmas.modulo_lemma (v l + v cin) (pow2 64);
let l' = l +! cin in
let l0 = l' &. mask26 in
let l1 = l' >>. 26ul in
mod_mask_lem... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 109,
"start_col": 0,
"start_line": 97
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
l: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_wide_fits1 l m} ->
cin:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin (4096 * Hacl.Spec.Poly1305.Field32xN.max26)} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(e... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.scale64",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.felem_wide_fits1",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.max26",
"Prims.nat",
"Prims.b2t",
... | [] | true | false | true | false | false | let carry26_wide_lemma_i #w #m l cin i =
| let l = (vec_v l).[ i ] in
let cin = (vec_v cin).[ i ] in
let mask26 = u64 0x3ffffff in
assert_norm (0x3ffffff = pow2 26 - 1);
FStar.Math.Lemmas.modulo_lemma (v l + v cin) (pow2 64);
let l' = l +! cin in
let l0 = l' &. mask26 in
let l1 = l' >>. 26ul in
mod_mask_lemma l' 26ul;
assert (v (mod_mask #U64 #SEC 26ul) == v ma... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_wide_felem5_fits_lemma0 | val carry_wide_felem5_fits_lemma0:
#w:lanes
-> inp:felem_wide5 w{felem_wide_fits5 inp (126, 102, 78, 54, 30)} ->
Lemma (let (x0, x1, x2, x3, x4) = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = carry26_wide_zero x3 in
let ... | val carry_wide_felem5_fits_lemma0:
#w:lanes
-> inp:felem_wide5 w{felem_wide_fits5 inp (126, 102, 78, 54, 30)} ->
Lemma (let (x0, x1, x2, x3, x4) = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = carry26_wide_zero x3 in
let ... | let carry_wide_felem5_fits_lemma0 #w inp =
let (x0, x1, x2, x3, x4) = inp in
let t0, c0 = carry26_wide_zero x0 in
carry26_wide_zero_eq x0;
carry26_wide_fits_lemma #w #126 x0 (zero w);
let t1, c1 = carry26_wide x1 c0 in
carry26_wide_fits_lemma #w #102 x1 c0;
let t2, c2 = carry26_wide x2 c1 in
carry26_wid... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 268,
"start_col": 0,
"start_line": 253
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
inp:
Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
{Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5 inp (126, 102, 78, 54, 30)}
-> FStar.Pervasives.Lemma
(ensures
(let _ = inp in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ x0 x1 x2 x3 x4 = _ in
let _ = Hacl.Poly1305.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Poly1305.Field32xN.Lemmas1.carry26_wide_fits_lemma",
"Prims.unit",
"FStar... | [] | false | false | true | false | false | let carry_wide_felem5_fits_lemma0 #w inp =
| let x0, x1, x2, x3, x4 = inp in
let t0, c0 = carry26_wide_zero x0 in
carry26_wide_zero_eq x0;
carry26_wide_fits_lemma #w #126 x0 (zero w);
let t1, c1 = carry26_wide x1 c0 in
carry26_wide_fits_lemma #w #102 x1 c0;
let t2, c2 = carry26_wide x2 c1 in
carry26_wide_fits_lemma #w #78 x2 c1;
let t3, c3 = carry26_wide_zero x3 ... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_eval_lemma | val carry_full_felem5_eval_lemma:
#w:lanes
-> inp:felem_wide5 w
-> Lemma
(requires felem_fits5 inp (8, 8, 8, 8, 8))
(ensures feval5 (carry_full_felem5 #w inp) == feval5 inp) | val carry_full_felem5_eval_lemma:
#w:lanes
-> inp:felem_wide5 w
-> Lemma
(requires felem_fits5 inp (8, 8, 8, 8, 8))
(ensures feval5 (carry_full_felem5 #w inp) == feval5 inp) | let carry_full_felem5_eval_lemma #w inp =
let o = carry_full_felem5 #w inp in
FStar.Classical.forall_intro (carry_full_felem5_eval_lemma_i #w inp);
eq_intro (feval5 o) (feval5 inp) | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 868,
"start_col": 0,
"start_line": 865
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | inp: Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Poly1305.Field32xN.felem_fits5 inp (8, 8, 8, 8, 8))
(ensures
Hacl.Spec.Poly1305.Field32xN.feval5 (Hacl.Spec.Poly1305.Field32xN.carry_full_felem5 inp) ==
Hacl.Spec.Poly1305.Field32xN.feval5 inp) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Lib.Sequence.eq_intro",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Field32xN.feval5",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Prims.l_... | [] | false | false | true | false | false | let carry_full_felem5_eval_lemma #w inp =
| let o = carry_full_felem5 #w inp in
FStar.Classical.forall_intro (carry_full_felem5_eval_lemma_i #w inp);
eq_intro (feval5 o) (feval5 inp) | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_lemma_i | val carry26_lemma_i:
#w:lanes
-> m:scale64
-> ml:scale32
-> l:uint64xN w{felem_fits1 l ml}
-> cin:uint64xN w{uint64xN_fits cin (m * max26)}
-> i:nat{i < w} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
(uint64xN_v l0).[i] <= max26 /\ (uint64xN_v l1).[i] < m + ml /\
(uint64xN_v l).[i] + (uint64xN_... | val carry26_lemma_i:
#w:lanes
-> m:scale64
-> ml:scale32
-> l:uint64xN w{felem_fits1 l ml}
-> cin:uint64xN w{uint64xN_fits cin (m * max26)}
-> i:nat{i < w} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
(uint64xN_v l0).[i] <= max26 /\ (uint64xN_v l1).[i] < m + ml /\
(uint64xN_v l).[i] + (uint64xN_... | let carry26_lemma_i #w m ml l cin i =
let l = (vec_v l).[i] in
let cin = (vec_v cin).[i] in
let mask26 = u64 0x3ffffff in
assert_norm (0x3ffffff = pow2 26 - 1);
FStar.Math.Lemmas.modulo_lemma (v l + v cin) (pow2 64);
let l' = l +! cin in
let l0 = l' &. mask26 in
let l1 = l' >>. 26ul in
mod_mask_lemma ... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 186,
"start_col": 0,
"start_line": 174
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
m: Hacl.Spec.Poly1305.Field32xN.scale64 ->
ml: Hacl.Spec.Poly1305.Field32xN.scale32 ->
l: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_fits1 l ml} ->
cin:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin (m * Hacl.Spec.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.scale64",
"Hacl.Spec.Poly1305.Field32xN.scale32",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.felem_fits1",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.ma... | [] | true | false | true | false | false | let carry26_lemma_i #w m ml l cin i =
| let l = (vec_v l).[ i ] in
let cin = (vec_v cin).[ i ] in
let mask26 = u64 0x3ffffff in
assert_norm (0x3ffffff = pow2 26 - 1);
FStar.Math.Lemmas.modulo_lemma (v l + v cin) (pow2 64);
let l' = l +! cin in
let l0 = l' &. mask26 in
let l1 = l' >>. 26ul in
mod_mask_lemma l' 26ul;
assert (v (mod_mask #U64 #SEC 26ul) == v ma... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.lemma_subtract_p5_0 | val lemma_subtract_p5_0:
f:tup64_5{tup64_fits5 f (1, 1, 1, 1, 1)}
-> f':tup64_5 ->
Lemma
(requires
(let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
(v f4 <> 0x3ffffff || v f3 <> 0x3ffffff || v f2 <> 0x3ffffff || v f1 <> 0x3ffffff || v f0 < 0x3fffffb) /\
(v f0' = v f0 && v ... | val lemma_subtract_p5_0:
f:tup64_5{tup64_fits5 f (1, 1, 1, 1, 1)}
-> f':tup64_5 ->
Lemma
(requires
(let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
(v f4 <> 0x3ffffff || v f3 <> 0x3ffffff || v f2 <> 0x3ffffff || v f1 <> 0x3ffffff || v f0 < 0x3fffffb) /\
(v f0' = v f0 && v ... | let lemma_subtract_p5_0 f f' =
let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
assert_norm (max26 = pow2 26 - 1);
assert_norm (0x3ffffff = max26);
assert_norm (0x3fffffb = max26 - 4);
assert (as_nat5 f == v f0 + v f1 * pow26 + v f2 * pow52 + v f3 * pow78 + v f4 * pow104);
assert (as_... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 495,
"start_col": 0,
"start_line": 484
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.tup64_5
{Hacl.Spec.Poly1305.Field32xN.tup64_fits5 f (1, 1, 1, 1, 1)} ->
f': Hacl.Spec.Poly1305.Field32xN.tup64_5
-> FStar.Pervasives.Lemma
(requires
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.tup64_5",
"Hacl.Spec.Poly1305.Field32xN.tup64_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Lib.IntTypes.uint64",
"FStar.Math.Lemmas.modulo_lemma",
"Hacl.Spec.Poly1305.Field32xN.as_nat5",
"Hacl.Spec.Poly1305.Vec.prime",
"Prims.unit",
"Prims._assert",
"Pr... | [] | false | false | true | false | false | let lemma_subtract_p5_0 f f' =
| let f0, f1, f2, f3, f4 = f in
let f0', f1', f2', f3', f4' = f' in
assert_norm (max26 = pow2 26 - 1);
assert_norm (0x3ffffff = max26);
assert_norm (0x3fffffb = max26 - 4);
assert (as_nat5 f == v f0 + v f1 * pow26 + v f2 * pow52 + v f3 * pow78 + v f4 * pow104);
assert (as_nat5 f <=
pow26 - 5 + (pow2 26 - 1) * pow26 +... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.subtract_p5_felem5_lemma_i | val subtract_p5_felem5_lemma_i:
#w:lanes
-> f:felem5 w{felem_fits5 f (1, 1, 1, 1, 1)}
-> i:nat{i < w} ->
Lemma
(tup64_fits5 (as_tup64_i (subtract_p5 #w f) i) (1, 1, 1, 1, 1) /\
as_nat5 (as_tup64_i (subtract_p5 #w f) i) == as_nat5 (as_tup64_i f i) % prime) | val subtract_p5_felem5_lemma_i:
#w:lanes
-> f:felem5 w{felem_fits5 f (1, 1, 1, 1, 1)}
-> i:nat{i < w} ->
Lemma
(tup64_fits5 (as_tup64_i (subtract_p5 #w f) i) (1, 1, 1, 1, 1) /\
as_nat5 (as_tup64_i (subtract_p5 #w f) i) == as_nat5 (as_tup64_i f i) % prime) | let subtract_p5_felem5_lemma_i #w f i =
assert (subtract_p5_s #w f i == as_tup64_i (subtract_p5 #w f) i) | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 608,
"start_col": 0,
"start_line": 607
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (1, 1, 1, 1, 1)} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Poly1305.Field32xN.tup64_fits5 (Hacl.Spec.Poly1305.Field32xN.as_tup64_i (Hacl.Spec.Poly1305.Field32xN.subtract_p5
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims._assert",
"Prims.eq2",
"Hacl.Spec.Poly1305.Field32xN.tup64_5",
"Hacl.Poly1305.Field32... | [] | true | false | true | false | false | let subtract_p5_felem5_lemma_i #w f i =
| assert (subtract_p5_s #w f i == as_tup64_i (subtract_p5 #w f) i) | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_eval_lemma | val carry26_eval_lemma:
#w:lanes
-> m:scale64
-> ml:scale32
-> l:uint64xN w{felem_fits1 l ml}
-> cin:uint64xN w{uint64xN_fits cin (m * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
felem_fits1 l0 1 /\ uint64xN_fits l1 (m + ml) /\
(forall (i:nat). i < w ==> (uint64xN_v l).[i] + (uint64xN_v ci... | val carry26_eval_lemma:
#w:lanes
-> m:scale64
-> ml:scale32
-> l:uint64xN w{felem_fits1 l ml}
-> cin:uint64xN w{uint64xN_fits cin (m * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
felem_fits1 l0 1 /\ uint64xN_fits l1 (m + ml) /\
(forall (i:nat). i < w ==> (uint64xN_v l).[i] + (uint64xN_v ci... | let carry26_eval_lemma #w m ml l cin =
match w with
| 1 ->
carry26_lemma_i #w m ml l cin 0
| 2 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1
| 4 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1;
carry26_lemma_i #w m ml l cin 2;
carry26_lemma_i... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 236,
"start_col": 0,
"start_line": 225
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
m: Hacl.Spec.Poly1305.Field32xN.scale64 ->
ml: Hacl.Spec.Poly1305.Field32xN.scale32 ->
l: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_fits1 l ml} ->
cin:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin (m * Hacl.Spec.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.scale64",
"Hacl.Spec.Poly1305.Field32xN.scale32",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.felem_fits1",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.ma... | [] | false | false | true | false | false | let carry26_eval_lemma #w m ml l cin =
| match w with
| 1 -> carry26_lemma_i #w m ml l cin 0
| 2 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1
| 4 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1;
carry26_lemma_i #w m ml l cin 2;
carry26_lemma_i #w m ml l cin 3 | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_lemma_i | val acc_inv_lemma_i:
#w:lanes
-> acc:felem5 w{felem_fits5 acc (1, 1, 1, 1, 1)}
-> cin:uint64xN w{uint64xN_fits cin 45}
-> i:nat{i < w} ->
Lemma
(let (i0, i1, i2, i3, i4) = acc in
let i0' = vec_add_mod i0 cin in
let acc1 = (i0', i1, i2, i3, i4) in
(if (uint64xN_v i0').[i] >= pow2 26 then
tup64_... | val acc_inv_lemma_i:
#w:lanes
-> acc:felem5 w{felem_fits5 acc (1, 1, 1, 1, 1)}
-> cin:uint64xN w{uint64xN_fits cin 45}
-> i:nat{i < w} ->
Lemma
(let (i0, i1, i2, i3, i4) = acc in
let i0' = vec_add_mod i0 cin in
let acc1 = (i0', i1, i2, i3, i4) in
(if (uint64xN_v i0').[i] >= pow2 26 then
tup64_... | let acc_inv_lemma_i #w acc cin i =
let (i0, i1, i2, i3, i4) = acc in
let i0' = vec_add_mod i0 cin in
assert ((vec_v i0').[i] == (vec_v i0).[i] +. (vec_v cin).[i]);
assert ((uint64xN_v i0).[i] + (uint64xN_v cin).[i] <= max26 + 46);
assert_norm (max26 = pow2 26 - 1);
FStar.Math.Lemmas.euclidean_division_defin... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 104,
"end_line": 661,
"start_col": 0,
"start_line": 655
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
acc:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 acc (1, 1, 1, 1, 1)} ->
cin: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin 45} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
(let _ = acc in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.... | [] | false | false | true | false | false | let acc_inv_lemma_i #w acc cin i =
| let i0, i1, i2, i3, i4 = acc in
let i0' = vec_add_mod i0 cin in
assert ((vec_v i0').[ i ] == (vec_v i0).[ i ] +. (vec_v cin).[ i ]);
assert ((uint64xN_v i0).[ i ] + (uint64xN_v cin).[ i ] <= max26 + 46);
assert_norm (max26 = pow2 26 - 1);
FStar.Math.Lemmas.euclidean_division_definition ((uint64xN_v i0).[ i ] + (uint64x... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_fits_lemma0 | val carry_full_felem5_fits_lemma0: #w:lanes -> f:felem5 w{felem_fits5 f (8, 8, 8, 8, 8)} ->
Lemma (let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in
fe... | val carry_full_felem5_fits_lemma0: #w:lanes -> f:felem5 w{felem_fits5 f (8, 8, 8, 8, 8)} ->
Lemma (let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in
fe... | let carry_full_felem5_fits_lemma0 #w (f0, f1, f2, f3, f4) =
let tmp0,c0 = carry26 f0 (zero w) in
carry26_fits_lemma 1 8 f0 (zero w);
let tmp1,c1 = carry26 f1 c0 in
carry26_fits_lemma 1 8 f1 c0;
let tmp2,c2 = carry26 f2 c1 in
carry26_fits_lemma 1 8 f2 c1;
let tmp3,c3 = carry26 f3 c2 in
carry26_fits_lemma... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 705,
"start_col": 0,
"start_line": 693
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (8, 8, 8, 8, 8)}
-> FStar.Pervasives.Lemma
(ensures
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in
let _ = Hacl.Spec.Poly1305.Field32xN.carry26 ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Prims._assert",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"Prims.unit",
"Hacl.Poly... | [] | false | false | true | false | false | let carry_full_felem5_fits_lemma0 #w (f0, f1, f2, f3, f4) =
| let tmp0, c0 = carry26 f0 (zero w) in
carry26_fits_lemma 1 8 f0 (zero w);
let tmp1, c1 = carry26 f1 c0 in
carry26_fits_lemma 1 8 f1 c0;
let tmp2, c2 = carry26 f2 c1 in
carry26_fits_lemma 1 8 f2 c1;
let tmp3, c3 = carry26 f3 c2 in
carry26_fits_lemma 1 8 f3 c2;
let tmp4, c4 = carry26 f4 c3 in
carry26_fits_lemma 1 8 f4 c3... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_fits_lemma | val carry26_fits_lemma:
#w:lanes
-> m:scale64
-> ml:scale32
-> l:uint64xN w{felem_fits1 l ml}
-> cin:uint64xN w{uint64xN_fits cin (m * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
felem_fits1 l0 1 /\ uint64xN_fits l1 (m + ml)) | val carry26_fits_lemma:
#w:lanes
-> m:scale64
-> ml:scale32
-> l:uint64xN w{felem_fits1 l ml}
-> cin:uint64xN w{uint64xN_fits cin (m * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
felem_fits1 l0 1 /\ uint64xN_fits l1 (m + ml)) | let carry26_fits_lemma #w m ml l cin =
match w with
| 1 ->
carry26_lemma_i #w m ml l cin 0
| 2 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1
| 4 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1;
carry26_lemma_i #w m ml l cin 2;
carry26_lemma_i... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 210,
"start_col": 0,
"start_line": 199
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
m: Hacl.Spec.Poly1305.Field32xN.scale64 ->
ml: Hacl.Spec.Poly1305.Field32xN.scale32 ->
l: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_fits1 l ml} ->
cin:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin (m * Hacl.Spec.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.scale64",
"Hacl.Spec.Poly1305.Field32xN.scale32",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.felem_fits1",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.ma... | [] | false | false | true | false | false | let carry26_fits_lemma #w m ml l cin =
| match w with
| 1 -> carry26_lemma_i #w m ml l cin 0
| 2 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1
| 4 ->
carry26_lemma_i #w m ml l cin 0;
carry26_lemma_i #w m ml l cin 1;
carry26_lemma_i #w m ml l cin 2;
carry26_lemma_i #w m ml l cin 3 | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.subtract_p5_s | val subtract_p5_s:
#w:lanes
-> f:felem5 w{felem_fits5 f (1, 1, 1, 1, 1)}
-> i:nat{i < w} ->
Pure tup64_5
(requires True)
(ensures fun out ->
tup64_fits5 out (1, 1, 1, 1, 1) /\
as_nat5 out == as_nat5 (as_tup64_i f i) % prime) | val subtract_p5_s:
#w:lanes
-> f:felem5 w{felem_fits5 f (1, 1, 1, 1, 1)}
-> i:nat{i < w} ->
Pure tup64_5
(requires True)
(ensures fun out ->
tup64_fits5 out (1, 1, 1, 1, 1) /\
as_nat5 out == as_nat5 (as_tup64_i f i) % prime) | let subtract_p5_s #w f i =
let (f0, f1, f2, f3, f4) = as_tup64_i f i in
let mask0 = eq_mask f4 (u64 0x3ffffff) in
let mask1 = mask0 &. eq_mask f3 (u64 0x3ffffff) in
let mask2 = mask1 &. eq_mask f2 (u64 0x3ffffff) in
let mask3 = mask2 &. eq_mask f1 (u64 0x3ffffff) in
let mask4 = mask3 &. gte_mask f0 (u64 0x3... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 595,
"start_col": 0,
"start_line": 573
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (1, 1, 1, 1, 1)} ->
i: Prims.nat{i < w}
-> Prims.Pure Hacl.Spec.Poly1305.Field32xN.tup64_5 | Prims.Pure | [] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.uint64",
"Prims.unit",
"Hacl.Poly1305.Field32xN.Lemmas1.lemma_subtract_p5",
"L... | [] | false | false | false | false | false | let subtract_p5_s #w f i =
| let f0, f1, f2, f3, f4 = as_tup64_i f i in
let mask0 = eq_mask f4 (u64 0x3ffffff) in
let mask1 = mask0 &. eq_mask f3 (u64 0x3ffffff) in
let mask2 = mask1 &. eq_mask f2 (u64 0x3ffffff) in
let mask3 = mask2 &. eq_mask f1 (u64 0x3ffffff) in
let mask4 = mask3 &. gte_mask f0 (u64 0x3fffffb) in
let p0 = mask4 &. u64 0x3fffff... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_lemma | val carry_full_felem5_lemma:
#w:lanes
-> f:felem5 w{felem_fits5 f (8, 8, 8, 8, 8)} ->
Lemma
(felem_fits5 (carry_full_felem5 f) (2, 1, 1, 1, 1) /\
feval5 (carry_full_felem5 f) == feval5 f) | val carry_full_felem5_lemma:
#w:lanes
-> f:felem5 w{felem_fits5 f (8, 8, 8, 8, 8)} ->
Lemma
(felem_fits5 (carry_full_felem5 f) (2, 1, 1, 1, 1) /\
feval5 (carry_full_felem5 f) == feval5 f) | let carry_full_felem5_lemma #w f =
carry_full_felem5_eval_lemma f;
carry_full_felem5_fits_lemma f | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 879,
"start_col": 0,
"start_line": 877
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (8, 8, 8, 8, 8)}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Poly1305.Field32xN.felem_fits5 (Hacl.Spec.Poly1305.Field32xN.carry_full_felem5 f)
(2,
1,
1,
1,
1) /\
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_fits_lemma",
"Prims.unit",
"Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_eva... | [] | true | false | true | false | false | let carry_full_felem5_lemma #w f =
| carry_full_felem5_eval_lemma f;
carry_full_felem5_fits_lemma f | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_fits_lemma | val carry_full_felem5_fits_lemma: #w:lanes -> f:felem5 w{felem_fits5 f (8, 8, 8, 8, 8)} ->
Lemma (acc_inv_t (carry_full_felem5 f)) | val carry_full_felem5_fits_lemma: #w:lanes -> f:felem5 w{felem_fits5 f (8, 8, 8, 8, 8)} ->
Lemma (acc_inv_t (carry_full_felem5 f)) | let carry_full_felem5_fits_lemma #w f =
let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in
carry_full_felem5_fits_lemma0 #w f;
assert (felem_fits1 tmp0 1 /\ uint6... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 72,
"end_line": 720,
"start_col": 0,
"start_line": 710
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (8, 8, 8, 8, 8)}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t (Hacl.Spec.Poly1305.Field32xN.carry_full_felem5 f)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_lemma",
"Lib.IntVector.vec_smul_mod",
"Lib.IntTy... | [] | false | false | true | false | false | let carry_full_felem5_fits_lemma #w f =
| let f0, f1, f2, f3, f4 = f in
let tmp0, c0 = carry26 f0 (zero w) in
let tmp1, c1 = carry26 f1 c0 in
let tmp2, c2 = carry26 f2 c1 in
let tmp3, c3 = carry26 f3 c2 in
let tmp4, c4 = carry26 f4 c3 in
carry_full_felem5_fits_lemma0 #w f;
assert (felem_fits1 tmp0 1 /\ uint64xN_fits c4 9);
let tmp0' = vec_add_mod tmp0 (vec_smu... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_lemma_i | val carry_reduce_lemma_i:
#w:lanes
-> l:uint64xN w
-> cin:uint64xN w
-> i:nat{i < w} ->
Lemma
(requires
(uint64xN_v l).[i] <= 2 * max26 /\
(uint64xN_v cin).[i] <= 62 * max26)
(ensures
(let (l0, l1) = carry26 #w l cin in
(uint64xN_v l0).[i] <= max26 /\ (uint64xN_v l1).[i] <= 63 /\
(uin... | val carry_reduce_lemma_i:
#w:lanes
-> l:uint64xN w
-> cin:uint64xN w
-> i:nat{i < w} ->
Lemma
(requires
(uint64xN_v l).[i] <= 2 * max26 /\
(uint64xN_v cin).[i] <= 62 * max26)
(ensures
(let (l0, l1) = carry26 #w l cin in
(uint64xN_v l0).[i] <= max26 /\ (uint64xN_v l1).[i] <= 63 /\
(uin... | let carry_reduce_lemma_i #w l cin i =
let li = (vec_v l).[i] in
let cini = (vec_v cin).[i] in
let mask26 = u64 0x3ffffff in
assert_norm (0x3ffffff = pow2 26 - 1);
FStar.Math.Lemmas.modulo_lemma (v li + v cini) (pow2 64);
let li' = li +! cini in
let li0 = li' &. mask26 in
let li1 = li' >>. 26ul in
mod_... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 909,
"start_col": 0,
"start_line": 897
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
l: Hacl.Spec.Poly1305.Field32xN.uint64xN w ->
cin: Hacl.Spec.Poly1305.Field32xN.uint64xN w ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(requires
(Hacl.Spec.Poly1305.Field32xN.uint64xN_v l).[ i ] <= 2 * Hacl.Spec.Poly1305.Field32xN.max26 /\
(Hacl.Spec.Poly1305.Field32xN.uint64xN... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Math.Lemmas.pow2_minus",
"Prims.unit",
"FStar.Math.Lemmas.pow2_modulo_modulo_lemma_1",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims._assert",... | [] | true | false | true | false | false | let carry_reduce_lemma_i #w l cin i =
| let li = (vec_v l).[ i ] in
let cini = (vec_v cin).[ i ] in
let mask26 = u64 0x3ffffff in
assert_norm (0x3ffffff = pow2 26 - 1);
FStar.Math.Lemmas.modulo_lemma (v li + v cini) (pow2 64);
let li' = li +! cini in
let li0 = li' &. mask26 in
let li1 = li' >>. 26ul in
mod_mask_lemma li' 26ul;
assert (v (mod_mask #U64 #SEC 2... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_felem5_lemma | val carry_reduce_felem5_lemma:
#w:lanes
-> f:felem5 w{acc_inv_t f} ->
Lemma
(felem_fits5 (carry_full_felem5 f) (1, 1, 1, 1, 1) /\
feval5 (carry_full_felem5 f) == feval5 f) | val carry_reduce_felem5_lemma:
#w:lanes
-> f:felem5 w{acc_inv_t f} ->
Lemma
(felem_fits5 (carry_full_felem5 f) (1, 1, 1, 1, 1) /\
feval5 (carry_full_felem5 f) == feval5 f) | let carry_reduce_felem5_lemma #w f =
carry_reduce_felem5_fits_lemma #w f;
carry_full_felem5_eval_lemma f | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 1033,
"start_col": 0,
"start_line": 1031
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | f: Hacl.Spec.Poly1305.Field32xN.felem5 w {Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t f}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Poly1305.Field32xN.felem_fits5 (Hacl.Spec.Poly1305.Field32xN.carry_full_felem5 f)
(1,
1,
1,
1,
1) /\
Hacl.Spec.Poly1305.Field32xN.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t",
"Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_eval_lemma",
"Prims.unit",
"Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_felem5_fits_lemma"
] | [] | true | false | true | false | false | let carry_reduce_felem5_lemma #w f =
| carry_reduce_felem5_fits_lemma #w f;
carry_full_felem5_eval_lemma f | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_eval_lemma_i1 | val carry_full_felem5_eval_lemma_i1:
#w:lanes
-> inp:felem_wide5 w{felem_fits5 inp (8, 8, 8, 8, 8)}
-> i:nat{i < w} ->
Lemma
(let (i0, i1, i2, i3, i4) = inp in
let tmp0,c0 = carry26 i0 (zero w) in
let tmp1,c1 = carry26 i1 c0 in
let tmp2,c2 = carry26 i2 c1 in
let tmp3,c3 = carry26 i3 c2 in
let... | val carry_full_felem5_eval_lemma_i1:
#w:lanes
-> inp:felem_wide5 w{felem_fits5 inp (8, 8, 8, 8, 8)}
-> i:nat{i < w} ->
Lemma
(let (i0, i1, i2, i3, i4) = inp in
let tmp0,c0 = carry26 i0 (zero w) in
let tmp1,c1 = carry26 i1 c0 in
let tmp2,c2 = carry26 i2 c1 in
let tmp3,c3 = carry26 i3 c2 in
let... | let carry_full_felem5_eval_lemma_i1 #w inp i =
let (i0, i1, i2, i3, i4) = inp in
let tmp0,c0 = carry26 i0 (zero w) in
let tmp1,c1 = carry26 i1 c0 in
let tmp2,c2 = carry26 i2 c1 in
let tmp3,c3 = carry26 i3 c2 in
let tmp4,c4 = carry26 i4 c3 in
let tmp = (tmp0, tmp1, tmp2, tmp3, tmp4) in
let (t0, t1, t2, ... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 89,
"end_line": 822,
"start_col": 0,
"start_line": 792
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
inp:
Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 inp (8, 8, 8, 8, 8)} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
(let _ = inp in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ i0 i1 i2 i3 i4 = _ in
let _ =... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims... | [] | false | false | true | false | false | let carry_full_felem5_eval_lemma_i1 #w inp i =
| let i0, i1, i2, i3, i4 = inp in
let tmp0, c0 = carry26 i0 (zero w) in
let tmp1, c1 = carry26 i1 c0 in
let tmp2, c2 = carry26 i2 c1 in
let tmp3, c3 = carry26 i3 c2 in
let tmp4, c4 = carry26 i4 c3 in
let tmp = (tmp0, tmp1, tmp2, tmp3, tmp4) in
let t0, t1, t2, t3, t4 = as_tup64_i tmp i in
let ti0, ti1, ti2, ti3, ti4 = as_... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.subtract_p5_felem5_lemma | val subtract_p5_felem5_lemma:
#w:lanes
-> f:felem5 w{felem_fits5 f (1, 1, 1, 1, 1)} ->
Lemma
(felem_fits5 (subtract_p5 f) (1, 1, 1, 1, 1) /\
(fas_nat5 (subtract_p5 f)).[0] == (feval5 f).[0]) | val subtract_p5_felem5_lemma:
#w:lanes
-> f:felem5 w{felem_fits5 f (1, 1, 1, 1, 1)} ->
Lemma
(felem_fits5 (subtract_p5 f) (1, 1, 1, 1, 1) /\
(fas_nat5 (subtract_p5 f)).[0] == (feval5 f).[0]) | let subtract_p5_felem5_lemma #w f =
match w with
| 1 ->
subtract_p5_felem5_lemma_i #w f 0
| 2 ->
subtract_p5_felem5_lemma_i #w f 0;
subtract_p5_felem5_lemma_i #w f 1
| 4 ->
subtract_p5_felem5_lemma_i #w f 0;
subtract_p5_felem5_lemma_i #w f 1;
subtract_p5_felem5_lemma_i #w f 2;
subtra... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 629,
"start_col": 0,
"start_line": 618
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (1, 1, 1, 1, 1)}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Poly1305.Field32xN.felem_fits5 (Hacl.Spec.Poly1305.Field32xN.subtract_p5 f)
(1,
1,
1,
1,
1) /\
(... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Poly1305.Field32xN.Lemmas1.subtract_p5_felem5_lemma_i",
"Prims.unit"
] | [] | false | false | true | false | false | let subtract_p5_felem5_lemma #w f =
| match w with
| 1 -> subtract_p5_felem5_lemma_i #w f 0
| 2 ->
subtract_p5_felem5_lemma_i #w f 0;
subtract_p5_felem5_lemma_i #w f 1
| 4 ->
subtract_p5_felem5_lemma_i #w f 0;
subtract_p5_felem5_lemma_i #w f 1;
subtract_p5_felem5_lemma_i #w f 2;
subtract_p5_felem5_lemma_i #w f 3 | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_felem5_fits_lemma_i1 | val carry_reduce_felem5_fits_lemma_i1:
#w:lanes
-> f:felem5 w{acc_inv_t f}
-> i:nat{i < w} ->
Lemma
(let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in... | val carry_reduce_felem5_fits_lemma_i1:
#w:lanes
-> f:felem5 w{acc_inv_t f}
-> i:nat{i < w} ->
Lemma
(let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in... | let carry_reduce_felem5_fits_lemma_i1 #w f i =
let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
carry_reduce_lemma_i f0 (zero w) i;
let tmp1,c1 = carry26 f1 c0 in
carry_reduce_lemma_i f1 c0 i;
let tmp2,c2 = carry26 f2 c1 in
carry_reduce_lemma_i f2 c1 i;
let tmp3,c3 = carry26 f3 c2 in... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 977,
"start_col": 0,
"start_line": 964
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f: Hacl.Spec.Poly1305.Field32xN.felem5 w {Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t f} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in
let _ = Hacl.Spec.Poly1305.Field32xN.carry26 f0... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Prims._assert",
"Hacl.Spec.Poly1305.Field32xN.tup64_fits5",
"Hacl.Spec.Poly1305.Field32... | [] | false | false | true | false | false | let carry_reduce_felem5_fits_lemma_i1 #w f i =
| let f0, f1, f2, f3, f4 = f in
let tmp0, c0 = carry26 f0 (zero w) in
carry_reduce_lemma_i f0 (zero w) i;
let tmp1, c1 = carry26 f1 c0 in
carry_reduce_lemma_i f1 c0 i;
let tmp2, c2 = carry26 f2 c1 in
carry_reduce_lemma_i f2 c1 i;
let tmp3, c3 = carry26 f3 c2 in
carry_reduce_lemma_i f3 c2 i;
let tmp4, c4 = carry26 f4 c3 i... | false |
MerkleTree.New.High.Correct.Insertion.fst | MerkleTree.New.High.Correct.Insertion.create_empty_mt_inv_ok | val create_empty_mt_inv_ok:
#hsz:pos -> #f:MTS.hash_fun_t #hsz ->
unit ->
Lemma (empty_olds_inv #_ #f 0;
mt_inv #hsz (create_empty_mt #_ #f ()) (empty_hashes 32)) | val create_empty_mt_inv_ok:
#hsz:pos -> #f:MTS.hash_fun_t #hsz ->
unit ->
Lemma (empty_olds_inv #_ #f 0;
mt_inv #hsz (create_empty_mt #_ #f ()) (empty_hashes 32)) | let create_empty_mt_inv_ok #_ #f _ =
merge_hs_empty #_ #f 32;
mt_hashes_inv_empty #_ #f 0 | {
"file_name": "src/MerkleTree.New.High.Correct.Insertion.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 29,
"end_line": 182,
"start_col": 0,
"start_line": 180
} | module MerkleTree.New.High.Correct.Insertion
open EverCrypt
open EverCrypt.Helpers
open FStar.Classical
open FStar.Ghost
open FStar.Seq
module List = FStar.List.Tot
module S = FStar.Seq
module U32 = FStar.UInt32
module U8 = FStar.UInt8
type uint32_t = U32.t
type uint8_t = U8.t
module EHS = EverCrypt.Hash
module MT... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MerkleTree.Spec.fst.checked",
"MerkleTree.New.High.Correct.Base.fst.checked",
"MerkleTree.New.High.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.che... | [
{
"abbrev": false,
"full_module": "MerkleTree.New.High.Correct.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.New.High",
"short_module": null
},
{
"abbrev": true,
"full_module": "MerkleTree.Spec",
"short_module": "MTS"
},
{
"abbrev": ... | {
"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.Pervasives.Lemma
(ensures
(MerkleTree.New.High.Correct.Insertion.empty_olds_inv 0;
MerkleTree.New.High.Correct.Base.mt_inv (MerkleTree.New.High.create_empty_mt ())
(MerkleTree.New.High.Correct.Base.empty_hashes 32))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.unit",
"MerkleTree.New.High.Correct.Base.mt_hashes_inv_empty",
"MerkleTree.New.High.Correct.Base.merge_hs_empty"
] | [] | true | false | true | false | false | let create_empty_mt_inv_ok #_ #f _ =
| merge_hs_empty #_ #f 32;
mt_hashes_inv_empty #_ #f 0 | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_eval_lemma_i | val carry_full_felem5_eval_lemma_i:
#w:lanes
-> inp:felem_wide5 w{felem_fits5 inp (8, 8, 8, 8, 8)}
-> i:nat{i < w} ->
Lemma ((feval5 (carry_full_felem5 #w inp)).[i] == (feval5 inp).[i]) | val carry_full_felem5_eval_lemma_i:
#w:lanes
-> inp:felem_wide5 w{felem_fits5 inp (8, 8, 8, 8, 8)}
-> i:nat{i < w} ->
Lemma ((feval5 (carry_full_felem5 #w inp)).[i] == (feval5 inp).[i]) | let carry_full_felem5_eval_lemma_i #w inp i =
let (i0, i1, i2, i3, i4) = inp in
let tmp0,c0 = carry26 i0 (zero w) in
let tmp1,c1 = carry26 i1 c0 in
let tmp2,c2 = carry26 i2 c1 in
let tmp3,c3 = carry26 i3 c2 in
let tmp4,c4 = carry26 i4 c3 in
let tmp = (tmp0, tmp1, tmp2, tmp3, tmp4) in
let (t0, t1, t2, t... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 855,
"start_col": 0,
"start_line": 831
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
inp:
Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 inp (8, 8, 8, 8, 8)} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
(Hacl.Spec.Poly1305.Field32xN.feval5 (Hacl.Spec.Poly1305.Field32xN.carry_full_felem5 inp)).[ i
] ==
(Hac... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims... | [] | false | false | true | false | false | let carry_full_felem5_eval_lemma_i #w inp i =
| let i0, i1, i2, i3, i4 = inp in
let tmp0, c0 = carry26 i0 (zero w) in
let tmp1, c1 = carry26 i1 c0 in
let tmp2, c2 = carry26 i2 c1 in
let tmp3, c3 = carry26 i3 c2 in
let tmp4, c4 = carry26 i4 c3 in
let tmp = (tmp0, tmp1, tmp2, tmp3, tmp4) in
let t0, t1, t2, t3, t4 = as_tup64_i tmp i in
let ti0, ti1, ti2, ti3, ti4 = as_... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_lemma | val acc_inv_lemma:
#w:lanes
-> acc:felem5 w{felem_fits5 acc (1, 1, 1, 1, 1)}
-> cin:uint64xN w{uint64xN_fits cin 45} ->
Lemma
(let (i0, i1, i2, i3, i4) = acc in
let i0' = vec_add_mod i0 cin in
acc_inv_t (i0', i1, i2, i3, i4)) | val acc_inv_lemma:
#w:lanes
-> acc:felem5 w{felem_fits5 acc (1, 1, 1, 1, 1)}
-> cin:uint64xN w{uint64xN_fits cin 45} ->
Lemma
(let (i0, i1, i2, i3, i4) = acc in
let i0' = vec_add_mod i0 cin in
acc_inv_t (i0', i1, i2, i3, i4)) | let acc_inv_lemma #w acc cin =
match w with
| 1 ->
acc_inv_lemma_i #w acc cin 0
| 2 ->
acc_inv_lemma_i #w acc cin 0;
acc_inv_lemma_i #w acc cin 1
| 4 ->
acc_inv_lemma_i #w acc cin 0;
acc_inv_lemma_i #w acc cin 1;
acc_inv_lemma_i #w acc cin 2;
acc_inv_lemma_i #w acc cin 3 | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 683,
"start_col": 0,
"start_line": 672
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
acc:
Hacl.Spec.Poly1305.Field32xN.felem5 w
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 acc (1, 1, 1, 1, 1)} ->
cin: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin 45}
-> FStar.Pervasives.Lemma
(ensures
(let _ = acc in
(let FStar.Pervasive... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_lemm... | [] | false | false | true | false | false | let acc_inv_lemma #w acc cin =
| match w with
| 1 -> acc_inv_lemma_i #w acc cin 0
| 2 ->
acc_inv_lemma_i #w acc cin 0;
acc_inv_lemma_i #w acc cin 1
| 4 ->
acc_inv_lemma_i #w acc cin 0;
acc_inv_lemma_i #w acc cin 1;
acc_inv_lemma_i #w acc cin 2;
acc_inv_lemma_i #w acc cin 3 | false |
MerkleTree.New.High.Correct.Insertion.fst | MerkleTree.New.High.Correct.Insertion.empty_olds_inv | val empty_olds_inv:
#hsz:pos -> #f:MTS.hash_fun_t #hsz ->
lv:nat{lv <= 32} ->
Lemma (requires True)
(ensures (mt_olds_inv #hsz lv 0 (empty_hashes 32)))
(decreases (32 - lv)) | val empty_olds_inv:
#hsz:pos -> #f:MTS.hash_fun_t #hsz ->
lv:nat{lv <= 32} ->
Lemma (requires True)
(ensures (mt_olds_inv #hsz lv 0 (empty_hashes 32)))
(decreases (32 - lv)) | let rec empty_olds_inv #_ #f lv =
if lv = 32 then ()
else empty_olds_inv #_ #f (lv + 1) | {
"file_name": "src/MerkleTree.New.High.Correct.Insertion.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 36,
"end_line": 173,
"start_col": 0,
"start_line": 171
} | module MerkleTree.New.High.Correct.Insertion
open EverCrypt
open EverCrypt.Helpers
open FStar.Classical
open FStar.Ghost
open FStar.Seq
module List = FStar.List.Tot
module S = FStar.Seq
module U32 = FStar.UInt32
module U8 = FStar.UInt8
type uint32_t = U32.t
type uint8_t = U8.t
module EHS = EverCrypt.Hash
module MT... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MerkleTree.Spec.fst.checked",
"MerkleTree.New.High.Correct.Base.fst.checked",
"MerkleTree.New.High.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.che... | [
{
"abbrev": false,
"full_module": "MerkleTree.New.High.Correct.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.New.High",
"short_module": null
},
{
"abbrev": true,
"full_module": "MerkleTree.Spec",
"short_module": "MTS"
},
{
"abbrev": ... | {
"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 | lv: Prims.nat{lv <= 32}
-> FStar.Pervasives.Lemma
(ensures
MerkleTree.New.High.Correct.Base.mt_olds_inv lv
0
(MerkleTree.New.High.Correct.Base.empty_hashes 32)) (decreases 32 - lv) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"MerkleTree.New.High.Correct.Insertion.empty_olds_inv",
"Prims.op_Addition",
"Prims.unit"
] | [
"recursion"
] | false | false | true | false | false | let rec empty_olds_inv #_ #f lv =
| if lv = 32 then () else empty_olds_inv #_ #f (lv + 1) | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_felem5_fits_lemma | val carry_reduce_felem5_fits_lemma:
#w:lanes
-> f:felem5 w{acc_inv_t f} ->
Lemma (felem_fits5 (carry_full_felem5 f) (1, 1, 1, 1, 1)) | val carry_reduce_felem5_fits_lemma:
#w:lanes
-> f:felem5 w{acc_inv_t f} ->
Lemma (felem_fits5 (carry_full_felem5 f) (1, 1, 1, 1, 1)) | let carry_reduce_felem5_fits_lemma #w f =
match w with
| 1 ->
carry_reduce_felem5_fits_lemma_i #w f 0
| 2 ->
carry_reduce_felem5_fits_lemma_i #w f 0;
carry_reduce_felem5_fits_lemma_i #w f 1
| 4 ->
carry_reduce_felem5_fits_lemma_i #w f 0;
carry_reduce_felem5_fits_lemma_i #w f 1;
carry_red... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 43,
"end_line": 1021,
"start_col": 0,
"start_line": 1010
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 | f: Hacl.Spec.Poly1305.Field32xN.felem5 w {Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t f}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Poly1305.Field32xN.felem_fits5 (Hacl.Spec.Poly1305.Field32xN.carry_full_felem5 f)
(1,
1,
1,
1,
1)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t",
"Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_felem5_fits_lemma_i",
"Prims.unit"
] | [] | false | false | true | false | false | let carry_reduce_felem5_fits_lemma #w f =
| match w with
| 1 -> carry_reduce_felem5_fits_lemma_i #w f 0
| 2 ->
carry_reduce_felem5_fits_lemma_i #w f 0;
carry_reduce_felem5_fits_lemma_i #w f 1
| 4 ->
carry_reduce_felem5_fits_lemma_i #w f 0;
carry_reduce_felem5_fits_lemma_i #w f 1;
carry_reduce_felem5_fits_lemma_i #w f 2;
carry_reduce_felem5_fits_lemma... | false |
MerkleTree.New.High.Correct.Insertion.fst | MerkleTree.New.High.Correct.Insertion.create_mt_inv_ok | val create_mt_inv_ok:
#hsz:pos -> #f:MTS.hash_fun_t #hsz ->
init:hash ->
Lemma (empty_olds_inv #_ #f 0;
mt_inv #hsz (mt_create hsz f init) (empty_hashes 32)) | val create_mt_inv_ok:
#hsz:pos -> #f:MTS.hash_fun_t #hsz ->
init:hash ->
Lemma (empty_olds_inv #_ #f 0;
mt_inv #hsz (mt_create hsz f init) (empty_hashes 32)) | let create_mt_inv_ok #hsz #f init =
create_empty_mt_inv_ok #_ #f ();
empty_olds_inv #_ #f 0;
mt_insert_inv_preserved #_ (create_empty_mt #hsz #f ()) init (empty_hashes 32) | {
"file_name": "src/MerkleTree.New.High.Correct.Insertion.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 80,
"end_line": 192,
"start_col": 0,
"start_line": 189
} | module MerkleTree.New.High.Correct.Insertion
open EverCrypt
open EverCrypt.Helpers
open FStar.Classical
open FStar.Ghost
open FStar.Seq
module List = FStar.List.Tot
module S = FStar.Seq
module U32 = FStar.UInt32
module U8 = FStar.UInt8
type uint32_t = U32.t
type uint8_t = U8.t
module EHS = EverCrypt.Hash
module MT... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MerkleTree.Spec.fst.checked",
"MerkleTree.New.High.Correct.Base.fst.checked",
"MerkleTree.New.High.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.che... | [
{
"abbrev": false,
"full_module": "MerkleTree.New.High.Correct.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.New.High",
"short_module": null
},
{
"abbrev": true,
"full_module": "MerkleTree.Spec",
"short_module": "MTS"
},
{
"abbrev": ... | {
"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 | init: MerkleTree.New.High.hash
-> FStar.Pervasives.Lemma
(ensures
(MerkleTree.New.High.Correct.Insertion.empty_olds_inv 0;
MerkleTree.New.High.Correct.Base.mt_inv (MerkleTree.New.High.mt_create hsz f init)
(MerkleTree.New.High.Correct.Base.empty_hashes 32))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"MerkleTree.New.High.hash",
"MerkleTree.New.High.Correct.Insertion.mt_insert_inv_preserved",
"MerkleTree.New.High.create_empty_mt",
"MerkleTree.New.High.Correct.Base.empty_hashes",
"Prims.unit",
"MerkleTree.New.High.Correct.Insertion.empty_olds_inv",
"Merkl... | [] | true | false | true | false | false | let create_mt_inv_ok #hsz #f init =
| create_empty_mt_inv_ok #_ #f ();
empty_olds_inv #_ #f 0;
mt_insert_inv_preserved #_ (create_empty_mt #hsz #f ()) init (empty_hashes 32) | false |
MerkleTree.New.High.Correct.Insertion.fst | MerkleTree.New.High.Correct.Insertion.mt_insert_inv_preserved | val mt_insert_inv_preserved:
#hsz:pos ->
mt:merkle_tree #hsz {mt_wf_elts mt /\ mt_not_full mt} -> v:hash ->
olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz 0 (MT?.i mt) olds} ->
Lemma (requires (mt_inv #hsz mt olds))
(ensures (mt_inv #hsz (mt_insert mt v) olds)) | val mt_insert_inv_preserved:
#hsz:pos ->
mt:merkle_tree #hsz {mt_wf_elts mt /\ mt_not_full mt} -> v:hash ->
olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz 0 (MT?.i mt) olds} ->
Lemma (requires (mt_inv #hsz mt olds))
(ensures (mt_inv #hsz (mt_insert mt v) olds)) | let mt_insert_inv_preserved #_ mt v olds =
insert_inv_preserved #_ #(MT?.hash_fun mt) 0 (MT?.i mt) (MT?.j mt) olds (MT?.hs mt) v | {
"file_name": "src/MerkleTree.New.High.Correct.Insertion.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 87,
"end_line": 161,
"start_col": 0,
"start_line": 160
} | module MerkleTree.New.High.Correct.Insertion
open EverCrypt
open EverCrypt.Helpers
open FStar.Classical
open FStar.Ghost
open FStar.Seq
module List = FStar.List.Tot
module S = FStar.Seq
module U32 = FStar.UInt32
module U8 = FStar.UInt8
type uint32_t = U32.t
type uint8_t = U8.t
module EHS = EverCrypt.Hash
module MT... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MerkleTree.Spec.fst.checked",
"MerkleTree.New.High.Correct.Base.fst.checked",
"MerkleTree.New.High.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.che... | [
{
"abbrev": false,
"full_module": "MerkleTree.New.High.Correct.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.New.High",
"short_module": null
},
{
"abbrev": true,
"full_module": "MerkleTree.Spec",
"short_module": "MTS"
},
{
"abbrev": ... | {
"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 |
mt:
MerkleTree.New.High.merkle_tree
{MerkleTree.New.High.mt_wf_elts mt /\ MerkleTree.New.High.mt_not_full mt} ->
v: MerkleTree.New.High.hash ->
olds:
MerkleTree.New.High.hashess
{ FStar.Seq.Base.length olds = 32 /\
MerkleTree.New.High.Correct.Base.mt_olds_inv 0 (MT?.i ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"MerkleTree.New.High.merkle_tree",
"Prims.l_and",
"MerkleTree.New.High.mt_wf_elts",
"Prims.b2t",
"MerkleTree.New.High.mt_not_full",
"MerkleTree.New.High.hash",
"MerkleTree.New.High.hashess",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"MerkleTree.New.High.hashes",
... | [] | true | false | true | false | false | let mt_insert_inv_preserved #_ mt v olds =
| insert_inv_preserved #_ #(MT?.hash_fun mt) 0 (MT?.i mt) (MT?.j mt) olds (MT?.hs mt) v | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.lemma_subtract_p5_1 | val lemma_subtract_p5_1:
f:tup64_5{tup64_fits5 f (1, 1, 1, 1, 1)}
-> f':tup64_5 ->
Lemma
(requires
(let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
(v f4 = 0x3ffffff && v f3 = 0x3ffffff && v f2 = 0x3ffffff && v f1 = 0x3ffffff && v f0 >= 0x3fffffb) /\
(v f0' = v f0 - 0x3fff... | val lemma_subtract_p5_1:
f:tup64_5{tup64_fits5 f (1, 1, 1, 1, 1)}
-> f':tup64_5 ->
Lemma
(requires
(let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
(v f4 = 0x3ffffff && v f3 = 0x3ffffff && v f2 = 0x3ffffff && v f1 = 0x3ffffff && v f0 >= 0x3fffffb) /\
(v f0' = v f0 - 0x3fff... | let lemma_subtract_p5_1 f f' =
let (f0, f1, f2, f3, f4) = f in
let (f0', f1', f2', f3', f4') = f' in
//assert_norm (max26 = pow2 26 - 1);
assert_norm (0x3ffffff = pow2 26 - 1);
assert_norm (0x3fffffb = pow2 26 - 5);
assert (as_nat5 f' < prime);
calc (==) {
as_nat5 f' % prime;
(==) { }
(v f0' +... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 535,
"start_col": 0,
"start_line": 509
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f:
Hacl.Spec.Poly1305.Field32xN.tup64_5
{Hacl.Spec.Poly1305.Field32xN.tup64_fits5 f (1, 1, 1, 1, 1)} ->
f': Hacl.Spec.Poly1305.Field32xN.tup64_5
-> FStar.Pervasives.Lemma
(requires
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.tup64_5",
"Hacl.Spec.Poly1305.Field32xN.tup64_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Lib.IntTypes.uint64",
"FStar.Math.Lemmas.modulo_lemma",
"Hacl.Spec.Poly1305.Field32xN.as_nat5",
"Hacl.Spec.Poly1305.Vec.prime",
"Prims.unit",
"Prims._assert",
"Pr... | [] | false | false | true | false | false | let lemma_subtract_p5_1 f f' =
| let f0, f1, f2, f3, f4 = f in
let f0', f1', f2', f3', f4' = f' in
assert_norm (0x3ffffff = pow2 26 - 1);
assert_norm (0x3fffffb = pow2 26 - 5);
assert (as_nat5 f' < prime);
calc ( == ) {
as_nat5 f' % prime;
( == ) { () }
(v f0' + v f1' * pow26 + v f2' * pow52 + v f3' * pow78 + v f4' * pow104) % prime;
( == ) { ... | false |
Test.Vectors.Chacha20Poly1305.fst | Test.Vectors.Chacha20Poly1305.output9 | val output9:(b: B.buffer UInt8.t {B.length b = 1040 /\ B.recallable b}) | val output9:(b: B.buffer UInt8.t {B.length b = 1040 /\ B.recallable b}) | let output9: (b: B.buffer UInt8.t { B.length b = 1040 /\ B.recallable b }) =
[@inline_let] let l = [ 0xe5uy; 0x26uy; 0xa4uy; 0x3duy; 0xbduy; 0x33uy; 0xd0uy; 0x4buy; 0x6fuy; 0x05uy; 0xa7uy; 0x6euy; 0x12uy; 0x7auy; 0xd2uy; 0x74uy; 0xa6uy; 0xdduy; 0xbduy; 0x95uy; 0xebuy; 0xf9uy; 0xa4uy; 0xf1uy; 0x59uy; 0x93uy; 0x91uy; 0... | {
"file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 402,
"start_col": 0,
"start_line": 399
} | module Test.Vectors.Chacha20Poly1305
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) =
[@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_fil... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 1040 /\ LowStar.Monotonic.Buffer.recallable b} | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length"... | [] | false | false | false | false | false | let output9:(b: B.buffer UInt8.t {B.length b = 1040 /\ B.recallable b}) =
| [@@ inline_let ]let l =
[
0xe5uy; 0x26uy; 0xa4uy; 0x3duy; 0xbduy; 0x33uy; 0xd0uy; 0x4buy; 0x6fuy; 0x05uy; 0xa7uy; 0x6euy;
0x12uy; 0x7auy; 0xd2uy; 0x74uy; 0xa6uy; 0xdduy; 0xbduy; 0x95uy; 0xebuy; 0xf9uy; 0xa4uy; 0xf1uy;
0x59uy; 0x93uy; 0x91uy; 0x70uy; 0xd9uy; 0xfeuy; 0x9auy; 0xcduy; 0x53uy; 0x1fuy; 0x3auy; ... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_felem5_fits_lemma_i | val carry_reduce_felem5_fits_lemma_i:
#w:lanes
-> f:felem5 w{acc_inv_t f}
-> i:nat{i < w} ->
Lemma (tup64_fits5 (as_tup64_i (carry_full_felem5 f) i) (1, 1, 1, 1, 1)) | val carry_reduce_felem5_fits_lemma_i:
#w:lanes
-> f:felem5 w{acc_inv_t f}
-> i:nat{i < w} ->
Lemma (tup64_fits5 (as_tup64_i (carry_full_felem5 f) i) (1, 1, 1, 1, 1)) | let carry_reduce_felem5_fits_lemma_i #w f i =
assert_norm (max26 == pow2 26 - 1);
let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in
carry_reduce_felem5_fits_lemm... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 1001,
"start_col": 0,
"start_line": 986
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f: Hacl.Spec.Poly1305.Field32xN.felem5 w {Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t f} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Poly1305.Field32xN.tup64_fits5 (Hacl.Spec.Poly1305.Field32xN.as_tup64_i (Hacl.Spec.Poly1305.Field32xN.carry_full_felem5
f)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Prims._assert",
"Hacl.Spec.Poly1305.Field32xN.tup64_fits5",
"Hacl.Spec.Poly1305.Field32... | [] | false | false | true | false | false | let carry_reduce_felem5_fits_lemma_i #w f i =
| assert_norm (max26 == pow2 26 - 1);
let f0, f1, f2, f3, f4 = f in
let tmp0, c0 = carry26 f0 (zero w) in
let tmp1, c1 = carry26 f1 c0 in
let tmp2, c2 = carry26 f2 c1 in
let tmp3, c3 = carry26 f3 c2 in
let tmp4, c4 = carry26 f4 c3 in
carry_reduce_felem5_fits_lemma_i1 #w f i;
FStar.Math.Lemmas.modulo_lemma ((uint64xN_v c4... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_wide_felem5_eval_lemma_i0 | val carry_wide_felem5_eval_lemma_i0:
inp:tup64_5
-> tmp:tup64_5
-> vc0:nat -> vc1:nat -> vc2:nat -> vc3:nat -> vc4:nat -> vc6:nat ->
Lemma
(requires
(let (t0, t1, t2, t3, t4) = tmp in
let (xi0, xi1, xi2, xi3, xi4) = inp in
v xi0 == vc0 * pow2 26 + v t0 /\
v xi1 + vc0 == vc1 * pow2 26 + v t1 /... | val carry_wide_felem5_eval_lemma_i0:
inp:tup64_5
-> tmp:tup64_5
-> vc0:nat -> vc1:nat -> vc2:nat -> vc3:nat -> vc4:nat -> vc6:nat ->
Lemma
(requires
(let (t0, t1, t2, t3, t4) = tmp in
let (xi0, xi1, xi2, xi3, xi4) = inp in
v xi0 == vc0 * pow2 26 + v t0 /\
v xi1 + vc0 == vc1 * pow2 26 + v t1 /... | let carry_wide_felem5_eval_lemma_i0 inp tmp vc0 vc1 vc2 vc3 vc4 vc6 =
let (t0, t1, t2, t3, t4) = tmp in
let (xi0, xi1, xi2, xi3, xi4) = inp in
let tmp_n = v t0 + v t1 * pow26 + v t2 * pow52 + v t3 * pow78 + v t4 * pow104 in
calc (==) {
as_nat5 inp % prime;
(==) { }
(v xi0 + v xi1 * pow26 + v xi2 * ... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 59,
"end_line": 343,
"start_col": 0,
"start_line": 313
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
inp: Hacl.Spec.Poly1305.Field32xN.tup64_5 ->
tmp: Hacl.Spec.Poly1305.Field32xN.tup64_5 ->
vc0: Prims.nat ->
vc1: Prims.nat ->
vc2: Prims.nat ->
vc3: Prims.nat ->
vc4: Prims.nat ->
vc6: Prims.nat
-> FStar.Pervasives.Lemma
(requires
(let _ = tmp in
(let FStar.Per... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.tup64_5",
"Prims.nat",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Hacl.Spec.Poly1305.Field32xN.as_nat5",
"Hacl.Spec.Poly1305.Vec.prime",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.unit",
"FStar.Calc.calc_finish",... | [] | false | false | true | false | false | let carry_wide_felem5_eval_lemma_i0 inp tmp vc0 vc1 vc2 vc3 vc4 vc6 =
| let t0, t1, t2, t3, t4 = tmp in
let xi0, xi1, xi2, xi3, xi4 = inp in
let tmp_n = v t0 + v t1 * pow26 + v t2 * pow52 + v t3 * pow78 + v t4 * pow104 in
calc ( == ) {
as_nat5 inp % prime;
( == ) { () }
(v xi0 + v xi1 * pow26 + v xi2 * pow52 + v xi3 * pow78 + v xi4 * pow104) % prime;
( == ) { () }
(vc0 * pow2 26 ... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_wide_felem5_eval_lemma_i1 | val carry_wide_felem5_eval_lemma_i1:
#w:lanes
-> inp:felem_wide5 w{felem_wide_fits5 inp (126, 102, 78, 54, 30)}
-> i:nat{i < w} ->
Lemma (let (x0, x1, x2, x3, x4) = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = ca... | val carry_wide_felem5_eval_lemma_i1:
#w:lanes
-> inp:felem_wide5 w{felem_wide_fits5 inp (126, 102, 78, 54, 30)}
-> i:nat{i < w} ->
Lemma (let (x0, x1, x2, x3, x4) = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = ca... | let carry_wide_felem5_eval_lemma_i1 #w inp i =
let (x0, x1, x2, x3, x4) = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = carry26_wide_zero x3 in
carry26_wide_zero_eq x3;
carry26_wide_fits_lemma #w #54 x3 (zero w);
let t3', c... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 118,
"end_line": 408,
"start_col": 0,
"start_line": 363
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
inp:
Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
{Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5 inp (126, 102, 78, 54, 30)} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
(let _ = inp in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ x0 x1 x2 x3 x4 = _ in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.IntTypes.uint64",
"Prims._assert",
"... | [] | false | false | true | false | false | let carry_wide_felem5_eval_lemma_i1 #w inp i =
| let x0, x1, x2, x3, x4 = inp in
let t0, c0 = carry26_wide_zero x0 in
let t1, c1 = carry26_wide x1 c0 in
let t2, c2 = carry26_wide x2 c1 in
let t3, c3 = carry26_wide_zero x3 in
carry26_wide_zero_eq x3;
carry26_wide_fits_lemma #w #54 x3 (zero w);
let t3', c6 = carry26 t3 c2 in
carry26_eval_lemma 79 1 t3 c2;
carry26_fits_... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_full_felem5_eval_lemma_i0 | val carry_full_felem5_eval_lemma_i0:
inp:tup64_5
-> tmp:tup64_5
-> vc0:nat -> vc1:nat -> vc2:nat -> vc3:nat -> vc4:nat ->
Lemma
(requires
(let (t0, t1, t2, t3, t4) = tmp in
let (ti0, ti1, ti2, ti3, ti4) = inp in
v ti0 == vc0 * pow2 26 + v t0 /\
v ti1 + vc0 == vc1 * pow2 26 + v t1 /\
v ti2... | val carry_full_felem5_eval_lemma_i0:
inp:tup64_5
-> tmp:tup64_5
-> vc0:nat -> vc1:nat -> vc2:nat -> vc3:nat -> vc4:nat ->
Lemma
(requires
(let (t0, t1, t2, t3, t4) = tmp in
let (ti0, ti1, ti2, ti3, ti4) = inp in
v ti0 == vc0 * pow2 26 + v t0 /\
v ti1 + vc0 == vc1 * pow2 26 + v t1 /\
v ti2... | let carry_full_felem5_eval_lemma_i0 inp tmp vc0 vc1 vc2 vc3 vc4 =
let (t0, t1, t2, t3, t4) = tmp in
let (ti0, ti1, ti2, ti3, ti4) = inp in
let tmp_n = v t0 + v t1 * pow26 + v t2 * pow52 + v t3 * pow78 + v t4 * pow104 in
calc (==) {
as_nat5 inp % prime;
(==) { }
(v ti0 + v ti1 * pow26 + v ti2 * pow5... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 59,
"end_line": 772,
"start_col": 0,
"start_line": 742
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
inp: Hacl.Spec.Poly1305.Field32xN.tup64_5 ->
tmp: Hacl.Spec.Poly1305.Field32xN.tup64_5 ->
vc0: Prims.nat ->
vc1: Prims.nat ->
vc2: Prims.nat ->
vc3: Prims.nat ->
vc4: Prims.nat
-> FStar.Pervasives.Lemma
(requires
(let _ = tmp in
(let FStar.Pervasives.Native.Mktuple... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.tup64_5",
"Prims.nat",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Hacl.Spec.Poly1305.Field32xN.as_nat5",
"Hacl.Spec.Poly1305.Vec.prime",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.unit",
"FStar.Calc.calc_finish",... | [] | false | false | true | false | false | let carry_full_felem5_eval_lemma_i0 inp tmp vc0 vc1 vc2 vc3 vc4 =
| let t0, t1, t2, t3, t4 = tmp in
let ti0, ti1, ti2, ti3, ti4 = inp in
let tmp_n = v t0 + v t1 * pow26 + v t2 * pow52 + v t3 * pow78 + v t4 * pow104 in
calc ( == ) {
as_nat5 inp % prime;
( == ) { () }
(v ti0 + v ti1 * pow26 + v ti2 * pow52 + v ti3 * pow78 + v ti4 * pow104) % prime;
( == ) { () }
(vc0 * pow2 26 ... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_reduce_felem5_fits_lemma_i0 | val carry_reduce_felem5_fits_lemma_i0:
#w:lanes
-> f:felem5 w{acc_inv_t f}
-> i:nat{i < w} ->
Lemma
(let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in... | val carry_reduce_felem5_fits_lemma_i0:
#w:lanes
-> f:felem5 w{acc_inv_t f}
-> i:nat{i < w} ->
Lemma
(let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
let tmp1,c1 = carry26 f1 c0 in
let tmp2,c2 = carry26 f2 c1 in
let tmp3,c3 = carry26 f3 c2 in
let tmp4,c4 = carry26 f4 c3 in... | let carry_reduce_felem5_fits_lemma_i0 #w f i =
let (f0, f1, f2, f3, f4) = f in
let tmp0,c0 = carry26 f0 (zero w) in
carry_reduce_lemma_i f0 (zero w) i;
assert (if (uint64xN_v f0).[i] < pow2 26 then (uint64xN_v tmp0).[i] < pow2 26 else (uint64xN_v tmp0).[i] <= 46);
assert (if (uint64xN_v f0).[i] < pow2 26 then... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 130,
"end_line": 946,
"start_col": 0,
"start_line": 928
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
f: Hacl.Spec.Poly1305.Field32xN.felem5 w {Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t f} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
(let _ = f in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in
let _ = Hacl.Spec.Poly1305.Field32xN.carry26 f0... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Poly1305.Field32xN.Lemmas1.acc_inv_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Prims._assert",
"Lib.Sequence.op_String_Access",
"Hacl.Spec.Poly1305.Field32xN.uint64xN... | [] | false | false | true | false | false | let carry_reduce_felem5_fits_lemma_i0 #w f i =
| let f0, f1, f2, f3, f4 = f in
let tmp0, c0 = carry26 f0 (zero w) in
carry_reduce_lemma_i f0 (zero w) i;
assert (if (uint64xN_v f0).[ i ] < pow2 26
then (uint64xN_v tmp0).[ i ] < pow2 26
else (uint64xN_v tmp0).[ i ] <= 46);
assert (if (uint64xN_v f0).[ i ] < pow2 26
then (uint64xN_v c0).[ i ] = 0
else (u... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry_wide_felem5_eval_lemma_i | val carry_wide_felem5_eval_lemma_i:
#w:lanes
-> inp:felem_wide5 w{felem_wide_fits5 inp (126, 102, 78, 54, 30)}
-> i:nat{i < w} ->
Lemma ((feval5 (carry_wide_felem5 #w inp)).[i] == (feval5 inp).[i]) | val carry_wide_felem5_eval_lemma_i:
#w:lanes
-> inp:felem_wide5 w{felem_wide_fits5 inp (126, 102, 78, 54, 30)}
-> i:nat{i < w} ->
Lemma ((feval5 (carry_wide_felem5 #w inp)).[i] == (feval5 inp).[i]) | let carry_wide_felem5_eval_lemma_i #w inp i =
let (x0, x1, x2, x3, x4) = inp in
let tmp0, c0 = carry26_wide_zero x0 in
let tmp1, c1 = carry26_wide x1 c0 in
let tmp2, c2 = carry26_wide x2 c1 in
let tmp3, c3 = carry26_wide_zero x3 in
let tmp3', c6 = carry26 tmp3 c2 in
let tmp4, c4 = carry26_wide x4 c3 in
... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 456,
"start_col": 0,
"start_line": 418
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
inp:
Hacl.Spec.Poly1305.Field32xN.felem_wide5 w
{Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5 inp (126, 102, 78, 54, 30)} ->
i: Prims.nat{i < w}
-> FStar.Pervasives.Lemma
(ensures
(Hacl.Spec.Poly1305.Field32xN.feval5 (Hacl.Spec.Poly1305.Field32xN.carry_wide_felem5 inp)).[ i
] =... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.felem_wide5",
"Hacl.Spec.Poly1305.Field32xN.felem_wide_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.IntTypes.uint64",
"Hacl.Poly1305.Field... | [] | false | false | true | false | false | let carry_wide_felem5_eval_lemma_i #w inp i =
| let x0, x1, x2, x3, x4 = inp in
let tmp0, c0 = carry26_wide_zero x0 in
let tmp1, c1 = carry26_wide x1 c0 in
let tmp2, c2 = carry26_wide x2 c1 in
let tmp3, c3 = carry26_wide_zero x3 in
let tmp3', c6 = carry26 tmp3 c2 in
let tmp4, c4 = carry26_wide x4 c3 in
let tmp4' = vec_add_mod tmp4 c6 in
carry_wide_felem5_fits_lemma0... | false |
Hacl.Poly1305.Field32xN.Lemmas1.fst | Hacl.Poly1305.Field32xN.Lemmas1.carry26_wide_fits_lemma | val carry26_wide_fits_lemma:
#w:lanes
-> #m:scale64
-> l:uint64xN w{felem_wide_fits1 l m}
-> cin:uint64xN w{uint64xN_fits cin (4096 * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
felem_fits1 l0 1 /\ uint64xN_fits l1 ((m + 1) * max26)) | val carry26_wide_fits_lemma:
#w:lanes
-> #m:scale64
-> l:uint64xN w{felem_wide_fits1 l m}
-> cin:uint64xN w{uint64xN_fits cin (4096 * max26)} ->
Lemma
(let (l0, l1) = carry26 #w l cin in
felem_fits1 l0 1 /\ uint64xN_fits l1 ((m + 1) * max26)) | let carry26_wide_fits_lemma #w #m l cin =
match w with
| 1 ->
carry26_wide_lemma_i #w #m l cin 0
| 2 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1
| 4 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1;
carry26_wide_lemma_i #w #m l cin 2... | {
"file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 133,
"start_col": 0,
"start_line": 122
} | module Hacl.Poly1305.Field32xN.Lemmas1
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open FStar.Calc
open Hacl.Spec.Poly1305.Vec
include Hacl.Spec.Poly1305.Field32xN
#set-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0"
val lemma_prime: unit -> Lemma (pow... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Nativ... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Field32xN",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,... | {
"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 |
l: Hacl.Spec.Poly1305.Field32xN.uint64xN w {Hacl.Spec.Poly1305.Field32xN.felem_wide_fits1 l m} ->
cin:
Hacl.Spec.Poly1305.Field32xN.uint64xN w
{Hacl.Spec.Poly1305.Field32xN.uint64xN_fits cin (4096 * Hacl.Spec.Poly1305.Field32xN.max26)}
-> FStar.Pervasives.Lemma
(ensures
(let _ = Hacl.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.lanes",
"Hacl.Spec.Poly1305.Field32xN.scale64",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Hacl.Spec.Poly1305.Field32xN.felem_wide_fits1",
"Hacl.Spec.Poly1305.Field32xN.uint64xN_fits",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Field32xN.max26",
"Hacl.Poly1305.Field32xN.Lemm... | [] | false | false | true | false | false | let carry26_wide_fits_lemma #w #m l cin =
| match w with
| 1 -> carry26_wide_lemma_i #w #m l cin 0
| 2 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1
| 4 ->
carry26_wide_lemma_i #w #m l cin 0;
carry26_wide_lemma_i #w #m l cin 1;
carry26_wide_lemma_i #w #m l cin 2;
carry26_wide_lemma_i #w #m l cin 3 | false |
FStar.Universe.PCM.fst | FStar.Universe.PCM.raise_frame_preserving_upd | val raise_frame_preserving_upd (#a: _) (#p: pcm a) (#x #y: a) (f: frame_preserving_upd p x y)
: frame_preserving_upd (raise p) (raise_val x) (raise_val y) | val raise_frame_preserving_upd (#a: _) (#p: pcm a) (#x #y: a) (f: frame_preserving_upd p x y)
: frame_preserving_upd (raise p) (raise_val x) (raise_val y) | let raise_frame_preserving_upd #a (#p:pcm a) (#x #y:a) (f:frame_preserving_upd p x y)
: frame_preserving_upd (raise p) (raise_val x) (raise_val y)
= fun v ->
let u = f (downgrade_val v) in
let v_new = raise_val u in
assert (forall frame. composable p y frame ==> composable (raise p) (raise_val y) ... | {
"file_name": "ulib/experimental/FStar.Universe.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 46,
"start_col": 0,
"start_line": 39
} | (*
Copyright 2021 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Universe.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Classical.Sugar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: FStar.PCM.frame_preserving_upd p x y
-> FStar.PCM.frame_preserving_upd (FStar.Universe.PCM.raise p)
(FStar.Universe.raise_val x)
(FStar.Universe.raise_val y) | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.PCM.frame_preserving_upd",
"FStar.Universe.raise_t",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm__item__refine",
"FStar.Universe.PCM.raise",
"FStar.PCM.compatible",
"FStar.Universe.raise_val",
"Prims.unit",
"Prims._assert",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.PCM.comp... | [] | false | false | false | false | false | let raise_frame_preserving_upd #a (#p: pcm a) (#x: a) (#y: a) (f: frame_preserving_upd p x y)
: frame_preserving_upd (raise p) (raise_val x) (raise_val y) =
| fun v ->
let u = f (downgrade_val v) in
let v_new = raise_val u in
assert (forall frame.
composable p y frame ==> composable (raise p) (raise_val y) (raise_val frame));
assert (forall frame.
composable (raise p) (raise_val x) frame ==> composable p x (downgrade_val frame));
v_new | false |
FStar.Universe.PCM.fst | FStar.Universe.PCM.raise | val raise (#a: Type) (p: pcm a) : pcm (raise_t u#a u#b a) | val raise (#a: Type) (p: pcm a) : pcm (raise_t u#a u#b a) | let raise (#a:Type) (p:pcm a)
: pcm (raise_t u#a u#b a)
= {
p = {
composable = (fun x y -> p.p.composable (downgrade_val x) (downgrade_val y));
op = (fun x y -> raise_val (p.p.op (downgrade_val x) (downgrade_val y)));
one = raise_val p.p.one;
};
comm = (f... | {
"file_name": "ulib/experimental/FStar.Universe.PCM.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 37,
"start_col": 0,
"start_line": 24
} | (*
Copyright 2021 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Universe.PCM.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Classical.Sugar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> FStar.PCM.pcm (FStar.Universe.raise_t a) | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.PCM.Mkpcm",
"FStar.Universe.raise_t",
"FStar.PCM.Mkpcm'",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"FStar.PCM.__proj__Mkpcm__item__p",
"FStar.Universe.downgrade_val",
"Prims.prop",
"FStar.Universe.raise_val",
"FStar.PCM.__proj__Mkpcm'__item__op",
"FStar.PCM.__proj__M... | [] | false | false | false | true | false | let raise (#a: Type) (p: pcm a) : pcm (raise_t u#a u#b a) =
| {
p
=
{
composable = (fun x y -> p.p.composable (downgrade_val x) (downgrade_val y));
op = (fun x y -> raise_val (p.p.op (downgrade_val x) (downgrade_val y)));
one = raise_val p.p.one
};
comm = (fun x y -> p.comm (downgrade_val x) (downgrade_val y));
assoc = (fun x y z -> p.assoc (downgrade_val ... | false |
EverParse3d.InputStream.All.fst | EverParse3d.InputStream.All.t | val t : Type0 | val t : Type0 | let t = t | {
"file_name": "src/3d/prelude/extern/EverParse3d.InputStream.All.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 7,
"start_col": 0,
"start_line": 7
} | module EverParse3d.InputStream.All
open EverParse3d.InputStream.Extern
module Aux = EverParse3d.InputStream.Extern.Base | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"EverParse3d.InputStream.Extern.Base.fsti.checked",
"EverParse3d.InputStream.Extern.fst.checked"
],
"interface_file": true,
"source_file": "EverParse3d.InputStream.All.fst"
} | [
{
"abbrev": true,
"full_module": "EverParse3d.InputStream.Extern.Base",
"short_module": "Aux"
},
{
"abbrev": false,
"full_module": "EverParse3d.InputStream.Extern",
"short_module": null
},
{
"abbrev": false,
"full_module": "EverParse3d.InputStream.Base",
"short_module": n... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.InputStream.Extern.t"
] | [] | false | false | false | true | true | let t =
| t | false |
Vale.AES.OptPublic.fst | Vale.AES.OptPublic.shift_gf128_key_1 | val shift_gf128_key_1 (h: poly) : poly | val shift_gf128_key_1 (h: poly) : poly | let shift_gf128_key_1 (h:poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h | {
"file_name": "vale/code/crypto/aes/Vale.AES.OptPublic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 43,
"end_line": 13,
"start_col": 0,
"start_line": 12
} | module Vale.AES.OptPublic
open FStar.Mul
open FStar.Seq
open Vale.Def.Types_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.Def.Words_s | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.Bits.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.AES.GF128_s.fsti.checked",
"Val... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128_s",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"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 | h: Vale.Math.Poly2_s.poly -> Vale.Math.Poly2_s.poly | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Vale.AES.GF128.shift_key_1",
"Vale.AES.GF128_s.gf128_modulus_low_terms"
] | [] | false | false | false | true | false | let shift_gf128_key_1 (h: poly) : poly =
| shift_key_1 128 gf128_modulus_low_terms h | false |
Vale.AES.OptPublic.fst | Vale.AES.OptPublic.gf128_power | val gf128_power (h: poly) (n: nat) : poly | val gf128_power (h: poly) (n: nat) : poly | let gf128_power (h:poly) (n:nat) : poly = shift_gf128_key_1 (g_power h n) | {
"file_name": "vale/code/crypto/aes/Vale.AES.OptPublic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 73,
"end_line": 20,
"start_col": 0,
"start_line": 20
} | module Vale.AES.OptPublic
open FStar.Mul
open FStar.Seq
open Vale.Def.Types_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.Def.Words_s
let shift_gf128_key_1 (h:poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h
let rec g_power (a:poly) (n:nat) : poly ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.Bits.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.AES.GF128_s.fsti.checked",
"Val... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128_s",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"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 | h: Vale.Math.Poly2_s.poly -> n: Prims.nat -> Vale.Math.Poly2_s.poly | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Prims.nat",
"Vale.AES.OptPublic.shift_gf128_key_1",
"Vale.AES.OptPublic.g_power"
] | [] | false | false | false | true | false | let gf128_power (h: poly) (n: nat) : poly =
| shift_gf128_key_1 (g_power h n) | false |
Vale.AES.OptPublic.fst | Vale.AES.OptPublic.get_hkeys_reqs_injective | val get_hkeys_reqs_injective (h_BE:quad32) (s1 s2:Seq.seq quad32) : Lemma
(requires
Seq.length s1 = 8 /\ Seq.length s2 = 8 /\
hkeys_reqs_pub s1 h_BE /\ hkeys_reqs_pub s2 h_BE)
(ensures s1 == s2) | val get_hkeys_reqs_injective (h_BE:quad32) (s1 s2:Seq.seq quad32) : Lemma
(requires
Seq.length s1 = 8 /\ Seq.length s2 = 8 /\
hkeys_reqs_pub s1 h_BE /\ hkeys_reqs_pub s2 h_BE)
(ensures s1 == s2) | let get_hkeys_reqs_injective h_BE s1 s2 =
lemma_of_quad32_inj (Seq.index s1 0) (Seq.index s2 0);
lemma_of_quad32_inj (Seq.index s1 1) (Seq.index s2 1);
lemma_of_quad32_inj (Seq.index s1 3) (Seq.index s2 3);
lemma_of_quad32_inj (Seq.index s1 4) (Seq.index s2 4);
lemma_of_quad32_inj (Seq.index s1 6) (Seq.index ... | {
"file_name": "vale/code/crypto/aes/Vale.AES.OptPublic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 84,
"start_col": 0,
"start_line": 77
} | module Vale.AES.OptPublic
open FStar.Mul
open FStar.Seq
open Vale.Def.Types_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.Def.Words_s
let shift_gf128_key_1 (h:poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h
let rec g_power (a:poly) (n:nat) : poly ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.Bits.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.AES.GF128_s.fsti.checked",
"Val... | [
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Bits",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h_BE: Vale.Def.Types_s.quad32 ->
s1: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
s2: FStar.Seq.Base.seq Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(requires
FStar.Seq.Base.length s1 = 8 /\ FStar.Seq.Base.length s2 = 8 /\
Vale.AES.OptPublic.hkeys_reqs_pub s1 h_BE /\ Vale.AES... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.quad32",
"FStar.Seq.Base.seq",
"Prims._assert",
"FStar.Seq.Base.equal",
"Prims.unit",
"Vale.AES.OptPublic.lemma_of_quad32_inj",
"FStar.Seq.Base.index"
] | [] | true | false | true | false | false | let get_hkeys_reqs_injective h_BE s1 s2 =
| lemma_of_quad32_inj (Seq.index s1 0) (Seq.index s2 0);
lemma_of_quad32_inj (Seq.index s1 1) (Seq.index s2 1);
lemma_of_quad32_inj (Seq.index s1 3) (Seq.index s2 3);
lemma_of_quad32_inj (Seq.index s1 4) (Seq.index s2 4);
lemma_of_quad32_inj (Seq.index s1 6) (Seq.index s2 6);
lemma_of_quad32_inj (Seq.index s1 7) (Seq.ind... | false |
Vale.AES.OptPublic.fst | Vale.AES.OptPublic.lemma_of_quad32_inj | val lemma_of_quad32_inj (q q': quad32)
: Lemma (requires of_quad32 q == of_quad32 q') (ensures q == q') | val lemma_of_quad32_inj (q q': quad32)
: Lemma (requires of_quad32 q == of_quad32 q') (ensures q == q') | let lemma_of_quad32_inj (q q':quad32) : Lemma
(requires of_quad32 q == of_quad32 q')
(ensures q == q')
= lemma_to_of_quad32 q; lemma_to_of_quad32 q' | {
"file_name": "vale/code/crypto/aes/Vale.AES.OptPublic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 75,
"start_col": 0,
"start_line": 72
} | module Vale.AES.OptPublic
open FStar.Mul
open FStar.Seq
open Vale.Def.Types_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.Def.Words_s
let shift_gf128_key_1 (h:poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h
let rec g_power (a:poly) (n:nat) : poly ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.Bits.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.AES.GF128_s.fsti.checked",
"Val... | [
{
"abbrev": false,
"full_module": "FStar.UInt",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Bits",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | q: Vale.Def.Types_s.quad32 -> q': Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(requires Vale.Math.Poly2.Bits_s.of_quad32 q == Vale.Math.Poly2.Bits_s.of_quad32 q')
(ensures q == q') | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.quad32",
"Vale.Math.Poly2.Bits.lemma_to_of_quad32",
"Prims.unit",
"Prims.eq2",
"Vale.Math.Poly2_s.poly",
"Vale.Math.Poly2.Bits_s.of_quad32",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let lemma_of_quad32_inj (q q': quad32)
: Lemma (requires of_quad32 q == of_quad32 q') (ensures q == q') =
| lemma_to_of_quad32 q;
lemma_to_of_quad32 q' | false |
Vale.AES.OptPublic.fst | Vale.AES.OptPublic.g_power | val g_power (a: poly) (n: nat) : poly | val g_power (a: poly) (n: nat) : poly | let rec g_power (a:poly) (n:nat) : poly =
if n = 0 then zero else // arbitrary value for n = 0
if n = 1 then a else
a *~ g_power a (n - 1) | {
"file_name": "vale/code/crypto/aes/Vale.AES.OptPublic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 18,
"start_col": 0,
"start_line": 15
} | module Vale.AES.OptPublic
open FStar.Mul
open FStar.Seq
open Vale.Def.Types_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.Def.Words_s
let shift_gf128_key_1 (h:poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.Bits.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.AES.GF128_s.fsti.checked",
"Val... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128_s",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"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 | a: Vale.Math.Poly2_s.poly -> n: Prims.nat -> Vale.Math.Poly2_s.poly | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Vale.Math.Poly2_s.zero",
"Prims.bool",
"Vale.AES.GF128.op_Star_Tilde",
"Vale.AES.OptPublic.g_power",
"Prims.op_Subtraction"
] | [
"recursion"
] | false | false | false | true | false | let rec g_power (a: poly) (n: nat) : poly =
| if n = 0 then zero else if n = 1 then a else a *~ g_power a (n - 1) | false |
FStar.BufferNG.fst | FStar.BufferNG.typ | val typ : Type0 | let typ = (t: P.typ { supported t } ) | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 43,
"start_col": 0,
"start_line": 43
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pointer.Base.typ",
"Prims.b2t",
"FStar.BufferNG.supported"
] | [] | false | false | false | true | true | let typ =
| (t: P.typ{supported t}) | false | |
FStar.BufferNG.fst | FStar.BufferNG.unused_in | val unused_in (#a: typ) (b: buffer a) (h: HS.mem) : GTot Type0 | val unused_in (#a: typ) (b: buffer a) (h: HS.mem) : GTot Type0 | let unused_in (#a: typ) (b: buffer a) (h: HS.mem) : GTot Type0 =
P.buffer_unused_in b h | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 57,
"start_col": 0,
"start_line": 56
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.Pointer.Base.buffer_unused_in"
] | [] | false | false | false | false | true | let unused_in (#a: typ) (b: buffer a) (h: HS.mem) : GTot Type0 =
| P.buffer_unused_in b h | false |
Vale.AES.OptPublic.fst | Vale.AES.OptPublic.hkeys_reqs_pub | val hkeys_reqs_pub (hkeys:FStar.Seq.seq quad32) (h_BE:quad32) : Vale.Def.Prop_s.prop0 | val hkeys_reqs_pub (hkeys:FStar.Seq.seq quad32) (h_BE:quad32) : Vale.Def.Prop_s.prop0 | let hkeys_reqs_pub (hkeys:seq quad32) (h_BE:quad32) : Vale.Def.Prop_s.prop0
=
let h = of_quad32 (reverse_bytes_quad32 (reverse_bytes_quad32 h_BE)) in
length hkeys >= 8 /\
of_quad32 (index hkeys 0) == gf128_power h 1 /\
of_quad32 (index hkeys 1) == gf128_power h 2 /\
index hkeys 2 == h_BE /\
of_quad32 (ind... | {
"file_name": "vale/code/crypto/aes/Vale.AES.OptPublic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 33,
"start_col": 0,
"start_line": 22
} | module Vale.AES.OptPublic
open FStar.Mul
open FStar.Seq
open Vale.Def.Types_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.Def.Words_s
let shift_gf128_key_1 (h:poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h
let rec g_power (a:poly) (n:nat) : poly ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.Bits.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.AES.GF128_s.fsti.checked",
"Val... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GF128_s",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"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 | hkeys: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> h_BE: Vale.Def.Types_s.quad32
-> Vale.Def.Prop_s.prop0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.Seq.Base.length",
"Prims.eq2",
"Vale.Math.Poly2_s.poly",
"Vale.Math.Poly2.Bits_s.of_quad32",
"FStar.Seq.Base.index",
"Vale.AES.OptPublic.gf128_power",
"Vale.Def.Words_s.four",
"... | [] | false | false | false | true | false | let hkeys_reqs_pub (hkeys: seq quad32) (h_BE: quad32) : Vale.Def.Prop_s.prop0 =
| let h = of_quad32 (reverse_bytes_quad32 (reverse_bytes_quad32 h_BE)) in
length hkeys >= 8 /\ of_quad32 (index hkeys 0) == gf128_power h 1 /\
of_quad32 (index hkeys 1) == gf128_power h 2 /\ index hkeys 2 == h_BE /\
of_quad32 (index hkeys 3) == gf128_power h 3 /\ of_quad32 (index hkeys 4) == gf128_power h 4 /\
index hkey... | false |
FStar.BufferNG.fst | FStar.BufferNG.buffer | val buffer (t: typ) : Tot Type0 | val buffer (t: typ) : Tot Type0 | let buffer
(t: typ)
: Tot Type0
= P.buffer t | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 49,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.BufferNG.typ -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.BufferNG.typ",
"FStar.Pointer.Base.buffer"
] | [] | false | false | false | true | true | let buffer (t: typ) : Tot Type0 =
| P.buffer t | false |
FStar.BufferNG.fst | FStar.BufferNG.live | val live (#a: typ) (h: HS.mem) (b: buffer a) : GTot Type0 | val live (#a: typ) (h: HS.mem) (b: buffer a) : GTot Type0 | let live (#a: typ) (h: HS.mem) (b: buffer a) : GTot Type0 =
P.buffer_readable h b | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 53,
"start_col": 0,
"start_line": 52
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> b: FStar.BufferNG.buffer a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.Monotonic.HyperStack.mem",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.buffer_readable"
] | [] | false | false | false | false | true | let live (#a: typ) (h: HS.mem) (b: buffer a) : GTot Type0 =
| P.buffer_readable h b | false |
FStar.BufferNG.fst | FStar.BufferNG.frameOf | val frameOf (#a: typ) (b: buffer a) : GTot HH.rid | val frameOf (#a: typ) (b: buffer a) : GTot HH.rid | let frameOf (#a: typ) (b: buffer a) : GTot HH.rid =
P.frameOf_buffer b | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> Prims.GTot FStar.Monotonic.HyperHeap.rid | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.frameOf_buffer",
"FStar.Monotonic.HyperHeap.rid"
] | [] | false | false | false | false | false | let frameOf (#a: typ) (b: buffer a) : GTot HH.rid =
| P.frameOf_buffer b | false |
FStar.BufferNG.fst | FStar.BufferNG.as_addr | val as_addr (#a: typ) (b: buffer a) : GTot nat | val as_addr (#a: typ) (b: buffer a) : GTot nat | let as_addr (#a: typ) (b: buffer a) : GTot nat =
P.buffer_as_addr b | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 65,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.buffer_as_addr",
"Prims.nat"
] | [] | false | false | false | false | false | let as_addr (#a: typ) (b: buffer a) : GTot nat =
| P.buffer_as_addr b | false |
FStar.BufferNG.fst | FStar.BufferNG.includes | val includes (#a: typ) (x y: buffer a) : GTot Type0 | val includes (#a: typ) (x y: buffer a) : GTot Type0 | let includes
(#a: typ)
(x y: buffer a)
: GTot Type0
= P.buffer_includes x y | {
"file_name": "ulib/legacy/FStar.BufferNG.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": 80
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.BufferNG.buffer a -> y: FStar.BufferNG.buffer a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.buffer_includes"
] | [] | false | false | false | false | true | let includes (#a: typ) (x y: buffer a) : GTot Type0 =
| P.buffer_includes x y | false |
FStar.BufferNG.fst | FStar.BufferNG.disjoint | val disjoint (#a #a': typ) (x: buffer a) (y: buffer a') : GTot Type0 | val disjoint (#a #a': typ) (x: buffer a) (y: buffer a') : GTot Type0 | let disjoint (#a #a' : typ) (x: buffer a) (y: buffer a') : GTot Type0 =
P.loc_disjoint (P.loc_buffer x) (P.loc_buffer y) | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 109,
"start_col": 0,
"start_line": 108
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.BufferNG.buffer a -> y: FStar.BufferNG.buffer a' -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.loc_disjoint",
"FStar.Pointer.Base.loc_buffer"
] | [] | false | false | false | false | true | let disjoint (#a #a': typ) (x: buffer a) (y: buffer a') : GTot Type0 =
| P.loc_disjoint (P.loc_buffer x) (P.loc_buffer y) | false |
FStar.BufferNG.fst | FStar.BufferNG.p | val p (#a: typ) (init: list (P.type_of_typ a)) : GTot Type0 | val p (#a: typ) (init: list (P.type_of_typ a)) : GTot Type0 | let p (#a:typ) (init:list (P.type_of_typ a)) : GTot Type0 =
normalize (0 < FStar.List.Tot.length init) /\
normalize (FStar.List.Tot.length init < UInt.max_int 32) | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 162,
"start_col": 7,
"start_line": 160
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | init: Prims.list (FStar.Pointer.Base.type_of_typ a) -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"Prims.list",
"FStar.Pointer.Base.type_of_typ",
"Prims.l_and",
"FStar.Pervasives.normalize",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"FStar.UInt.max_int"
] | [] | false | false | false | false | true | let p (#a: typ) (init: list (P.type_of_typ a)) : GTot Type0 =
| normalize (0 < FStar.List.Tot.length init) /\
normalize (FStar.List.Tot.length init < UInt.max_int 32) | false |
FStar.BufferNG.fst | FStar.BufferNG.includes_trans | val includes_trans (#a: _) (x y z: buffer a)
: Lemma (requires (x `includes` y /\ y `includes` z)) (ensures (x `includes` z)) | val includes_trans (#a: _) (x y z: buffer a)
: Lemma (requires (x `includes` y /\ y `includes` z)) (ensures (x `includes` z)) | let includes_trans #a (x y z: buffer a)
: Lemma
(requires (x `includes` y /\ y `includes` z))
(ensures (x `includes` z))
= P.buffer_includes_trans x y z | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 105,
"start_col": 0,
"start_line": 101
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.BufferNG.buffer a -> y: FStar.BufferNG.buffer a -> z: FStar.BufferNG.buffer a
-> FStar.Pervasives.Lemma (requires FStar.BufferNG.includes x y /\ FStar.BufferNG.includes y z)
(ensures FStar.BufferNG.includes x z) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.buffer_includes_trans",
"Prims.unit",
"Prims.l_and",
"FStar.BufferNG.includes",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let includes_trans #a (x: buffer a) (y: buffer a) (z: buffer a)
: Lemma (requires (x `includes` y /\ y `includes` z)) (ensures (x `includes` z)) =
| P.buffer_includes_trans x y z | false |
FStar.BufferNG.fst | FStar.BufferNG.q | val q (#a: typ) (len: nat) (buf: buffer a) : GTot Type0 | val q (#a: typ) (len: nat) (buf: buffer a) : GTot Type0 | let q (#a:typ) (len:nat) (buf:buffer a) : GTot Type0 =
normalize (length buf == len) | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 165,
"start_col": 7,
"start_line": 164
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | len: Prims.nat -> buf: FStar.BufferNG.buffer a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"Prims.nat",
"FStar.BufferNG.buffer",
"FStar.Pervasives.normalize",
"Prims.eq2",
"FStar.BufferNG.length"
] | [] | false | false | false | false | true | let q (#a: typ) (len: nat) (buf: buffer a) : GTot Type0 =
| normalize (length buf == len) | false |
FStar.BufferNG.fst | FStar.BufferNG.equal | val equal (#a: typ) (h: HS.mem) (b: buffer a) (h': HS.mem) (b': buffer a) : GTot Type0 | val equal (#a: typ) (h: HS.mem) (b: buffer a) (h': HS.mem) (b': buffer a) : GTot Type0 | let equal (#a: typ) (h: HS.mem) (b: buffer a) (h' : HS.mem) (b' : buffer a) : GTot Type0 =
as_seq h b == as_seq h' b' | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 77,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.HyperStack.mem ->
b: FStar.BufferNG.buffer a ->
h': FStar.Monotonic.HyperStack.mem ->
b': FStar.BufferNG.buffer a
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.Monotonic.HyperStack.mem",
"FStar.BufferNG.buffer",
"Prims.eq2",
"FStar.Seq.Base.seq",
"FStar.Pointer.Base.type_of_typ",
"Prims.l_or",
"Prims.nat",
"FStar.Seq.Base.length",
"FStar.BufferNG.length",
"FStar.BufferNG.as_seq"
] | [] | false | false | false | false | true | let equal (#a: typ) (h: HS.mem) (b: buffer a) (h': HS.mem) (b': buffer a) : GTot Type0 =
| as_seq h b == as_seq h' b' | false |
FStar.BufferNG.fst | FStar.BufferNG.struct_typ_supported | val struct_typ_supported (l: list (string * P.typ)) : Tot bool | val struct_typ_supported (l: list (string * P.typ)) : Tot bool | let rec supported
(t : P.typ)
: Tot bool
= match t with
| P.TBase _ -> true
| P.TStruct l -> struct_typ_supported l.P.fields
| _ -> false
and struct_typ_supported
(l: list (string * P.typ))
: Tot bool
= match l with
| [] -> true
| (_, t) :: l' -> supported t && struct_typ_supported l' | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 41,
"start_col": 0,
"start_line": 28
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list (Prims.string * FStar.Pointer.Base.typ) -> Prims.bool | Prims.Tot | [
"total"
] | [
"supported",
"struct_typ_supported"
] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.string",
"FStar.Pointer.Base.typ",
"Prims.op_AmpAmp",
"FStar.BufferNG.supported",
"FStar.BufferNG.struct_typ_supported",
"Prims.bool"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec struct_typ_supported (l: list (string * P.typ)) : Tot bool =
| match l with
| [] -> true
| (_, t) :: l' -> supported t && struct_typ_supported l' | false |
FStar.BufferNG.fst | FStar.BufferNG.length | val length (#a: typ) (b: buffer a) : GTot nat | val length (#a: typ) (b: buffer a) : GTot nat | let length (#a: typ) (b: buffer a) : GTot nat =
UInt32.v (P.buffer_length b) | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 61,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.v",
"FStar.Pointer.Base.buffer_length",
"Prims.nat"
] | [] | false | false | false | false | false | let length (#a: typ) (b: buffer a) : GTot nat =
| UInt32.v (P.buffer_length b) | false |
Vale.AES.OptPublic.fst | Vale.AES.OptPublic.get_hkeys_reqs | val get_hkeys_reqs (h_BE:quad32) : (s:Seq.lseq quad32 8{hkeys_reqs_pub s h_BE}) | val get_hkeys_reqs (h_BE:quad32) : (s:Seq.lseq quad32 8{hkeys_reqs_pub s h_BE}) | let get_hkeys_reqs h_BE =
let h = of_quad32 (reverse_bytes_quad32 (reverse_bytes_quad32 h_BE)) in
let l = [to_quad32 (gf128_power h 1);
to_quad32 (gf128_power h 2);
h_BE;
to_quad32 (gf128_power h 3);
to_quad32 (gf128_power h 4);
Mkfour 0 0 0 0;
to_quad32 (gf128_power h 5);
to_quad... | {
"file_name": "vale/code/crypto/aes/Vale.AES.OptPublic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 68,
"start_col": 0,
"start_line": 40
} | module Vale.AES.OptPublic
open FStar.Mul
open FStar.Seq
open Vale.Def.Types_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.Def.Words_s
let shift_gf128_key_1 (h:poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h
let rec g_power (a:poly) (n:nat) : poly ... | {
"checked_file": "/",
"dependencies": [
"Vale.Math.Poly2_s.fsti.checked",
"Vale.Math.Poly2.Bits_s.fsti.checked",
"Vale.Math.Poly2.Bits.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.AES.GF128_s.fsti.checked",
"Val... | [
{
"abbrev": false,
"full_module": "Vale.Math.Poly2.Bits",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h_BE: Vale.Def.Types_s.quad32
-> s:
FStar.Seq.Properties.lseq Vale.Def.Types_s.quad32 8 {Vale.AES.OptPublic.hkeys_reqs_pub s h_BE} | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Types_s.quad32",
"Prims.unit",
"Prims._assert",
"Vale.AES.OptPublic.hkeys_reqs_pub",
"Vale.Math.Poly2.Bits.lemma_of_to_quad32",
"Vale.AES.OptPublic.gf128_power",
"FStar.Seq.Properties.lemma_seq_of_list_induction",
"FStar.List.Tot.Base.tl",
"FStar.Seq.Base.seq",
"Prims.eq2",
"Prims.nat"... | [] | false | false | false | false | false | let get_hkeys_reqs h_BE =
| let h = of_quad32 (reverse_bytes_quad32 (reverse_bytes_quad32 h_BE)) in
let l =
[
to_quad32 (gf128_power h 1);
to_quad32 (gf128_power h 2);
h_BE;
to_quad32 (gf128_power h 3);
to_quad32 (gf128_power h 4);
Mkfour 0 0 0 0;
to_quad32 (gf128_power h 5);
to_quad32 (gf128_power h 6)
]
in
as... | false |
FStar.BufferNG.fst | FStar.BufferNG.includes_live | val includes_live (#a: typ) (h: HS.mem) (x y: buffer a)
: Lemma (requires (x `includes` y /\ live h x)) (ensures (live h y)) | val includes_live (#a: typ) (h: HS.mem) (x y: buffer a)
: Lemma (requires (x `includes` y /\ live h x)) (ensures (live h y)) | let includes_live
(#a: typ)
(h: HS.mem)
(x y : buffer a)
: Lemma
(requires (x `includes` y /\ live h x))
(ensures (live h y))
= P.buffer_includes_elim x y | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 93,
"start_col": 0,
"start_line": 86
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> x: FStar.BufferNG.buffer a -> y: FStar.BufferNG.buffer a
-> FStar.Pervasives.Lemma (requires FStar.BufferNG.includes x y /\ FStar.BufferNG.live h x)
(ensures FStar.BufferNG.live h y) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.BufferNG.typ",
"FStar.Monotonic.HyperStack.mem",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.buffer_includes_elim",
"Prims.unit",
"Prims.l_and",
"FStar.BufferNG.includes",
"FStar.BufferNG.live",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let includes_live (#a: typ) (h: HS.mem) (x y: buffer a)
: Lemma (requires (x `includes` y /\ live h x)) (ensures (live h y)) =
| P.buffer_includes_elim x y | false |
FStar.BufferNG.fst | FStar.BufferNG.lemma_disjoint_sub | val lemma_disjoint_sub (#a #a': _) (x subx: buffer a) (y: buffer a')
: Lemma (requires (includes x subx /\ disjoint x y))
(ensures (disjoint subx y))
[SMTPat (disjoint subx y); SMTPat (includes x subx)] | val lemma_disjoint_sub (#a #a': _) (x subx: buffer a) (y: buffer a')
: Lemma (requires (includes x subx /\ disjoint x y))
(ensures (disjoint subx y))
[SMTPat (disjoint subx y); SMTPat (includes x subx)] | let lemma_disjoint_sub #a #a' (x:buffer a) (subx:buffer a) (y:buffer a') : Lemma
(requires (includes x subx /\ disjoint x y))
(ensures (disjoint subx y))
[SMTPat (disjoint subx y); SMTPat (includes x subx)]
= P.buffer_includes_loc_includes x subx;
P.loc_disjoint_includes (P.loc_buffer x) (P.loc_buffer y) (... | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 98,
"end_line": 123,
"start_col": 0,
"start_line": 118
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.BufferNG.buffer a -> subx: FStar.BufferNG.buffer a -> y: FStar.BufferNG.buffer a'
-> FStar.Pervasives.Lemma (requires FStar.BufferNG.includes x subx /\ FStar.BufferNG.disjoint x y)
(ensures FStar.BufferNG.disjoint subx y)
[SMTPat (FStar.BufferNG.disjoint subx y); SMTPat (FStar.BufferNG.includes x... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.loc_disjoint_includes",
"FStar.Pointer.Base.loc_buffer",
"Prims.unit",
"FStar.Pointer.Base.buffer_includes_loc_includes",
"Prims.l_and",
"FStar.BufferNG.includes",
"FStar.BufferNG.disjoint",
"Prims.squash",
"Prims.Cons",
"FStar... | [] | true | false | true | false | false | let lemma_disjoint_sub #a #a' (x: buffer a) (subx: buffer a) (y: buffer a')
: Lemma (requires (includes x subx /\ disjoint x y))
(ensures (disjoint subx y))
[SMTPat (disjoint subx y); SMTPat (includes x subx)] =
| P.buffer_includes_loc_includes x subx;
P.loc_disjoint_includes (P.loc_buffer x) (P.loc_buffer y) (P.loc_buffer subx) (P.loc_buffer y) | false |
FStar.BufferNG.fst | FStar.BufferNG.supported | val supported (t: P.typ) : Tot bool | val supported (t: P.typ) : Tot bool | let rec supported
(t : P.typ)
: Tot bool
= match t with
| P.TBase _ -> true
| P.TStruct l -> struct_typ_supported l.P.fields
| _ -> false
and struct_typ_supported
(l: list (string * P.typ))
: Tot bool
= match l with
| [] -> true
| (_, t) :: l' -> supported t && struct_typ_supported l' | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 41,
"start_col": 0,
"start_line": 28
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Pointer.Base.typ -> Prims.bool | Prims.Tot | [
"total"
] | [
"supported",
"struct_typ_supported"
] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.base_typ",
"FStar.Pointer.Base.struct_typ",
"FStar.BufferNG.struct_typ_supported",
"FStar.Pointer.Base.__proj__Mkstruct_typ__item__fields",
"Prims.bool"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec supported (t: P.typ) : Tot bool =
| match t with
| P.TBase _ -> true
| P.TStruct l -> struct_typ_supported l.P.fields
| _ -> false | false |
FStar.BufferNG.fst | FStar.BufferNG.gsub | val gsub (#a: typ) (b: buffer a) (i len: UInt32.t)
: Ghost (buffer a) (requires (UInt32.v i + UInt32.v len <= length b)) (ensures (fun _ -> True)) | val gsub (#a: typ) (b: buffer a) (i len: UInt32.t)
: Ghost (buffer a) (requires (UInt32.v i + UInt32.v len <= length b)) (ensures (fun _ -> True)) | let gsub
(#a: typ)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t)
: Ghost (buffer a)
(requires (UInt32.v i + UInt32.v len <= length b))
(ensures (fun _ -> True))
= P.gsub_buffer b i len | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 275,
"start_col": 0,
"start_line": 267
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> i: FStar.UInt32.t -> len: FStar.UInt32.t
-> Prims.Ghost (FStar.BufferNG.buffer a) | Prims.Ghost | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Base.gsub_buffer",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.UInt32.v",
"FStar.BufferNG.length",
"Prims.l_True"
] | [] | false | false | false | false | false | let gsub (#a: typ) (b: buffer a) (i len: UInt32.t)
: Ghost (buffer a) (requires (UInt32.v i + UInt32.v len <= length b)) (ensures (fun _ -> True)) =
| P.gsub_buffer b i len | false |
FStar.BufferNG.fst | FStar.BufferNG.as_seq | val as_seq (#a: typ) (h: HS.mem) (b: buffer a)
: GTot (s: Seq.seq (P.type_of_typ a) {Seq.length s == length b}) | val as_seq (#a: typ) (h: HS.mem) (b: buffer a)
: GTot (s: Seq.seq (P.type_of_typ a) {Seq.length s == length b}) | let as_seq (#a: typ) (h: HS.mem) (b: buffer a) : GTot (s: Seq.seq (P.type_of_typ a) { Seq.length s == length b } ) =
P.buffer_as_seq h b | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 73,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> b: FStar.BufferNG.buffer a
-> Prims.GTot
(s:
FStar.Seq.Base.seq (FStar.Pointer.Base.type_of_typ a)
{FStar.Seq.Base.length s == FStar.BufferNG.length b}) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.BufferNG.typ",
"FStar.Monotonic.HyperStack.mem",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.buffer_as_seq",
"FStar.Seq.Base.seq",
"FStar.Pointer.Base.type_of_typ",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"FStar.BufferNG.length"
] | [] | false | false | false | false | false | let as_seq (#a: typ) (h: HS.mem) (b: buffer a)
: GTot (s: Seq.seq (P.type_of_typ a) {Seq.length s == length b}) =
| P.buffer_as_seq h b | false |
FStar.BufferNG.fst | FStar.BufferNG.create | val create
(#a:typ)
(init: P.type_of_typ a)
(len:UInt32.t)
: HST.StackInline (buffer a)
(requires (fun h ->
UInt32.v len > 0
))
(ensures (fun (h0: HS.mem) b h1 ->
UInt32.v len > 0 /\
b `unused_in` h0 /\
live h1 b /\
length b == UInt32.v len /\
frameOf b == (HS.get_tip h0) /\
P.mo... | val create
(#a:typ)
(init: P.type_of_typ a)
(len:UInt32.t)
: HST.StackInline (buffer a)
(requires (fun h ->
UInt32.v len > 0
))
(ensures (fun (h0: HS.mem) b h1 ->
UInt32.v len > 0 /\
b `unused_in` h0 /\
live h1 b /\
length b == UInt32.v len /\
frameOf b == (HS.get_tip h0) /\
P.mo... | let create #a init len =
let len : P.array_length_t = len in
let content = P.screate (P.TArray len a) (Some (Seq.create (UInt32.v len) init)) in
P.buffer_of_array_pointer content | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 158,
"start_col": 0,
"start_line": 155
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | init: FStar.Pointer.Base.type_of_typ a -> len: FStar.UInt32.t
-> FStar.HyperStack.ST.StackInline (FStar.BufferNG.buffer a) | FStar.HyperStack.ST.StackInline | [] | [] | [
"FStar.BufferNG.typ",
"FStar.Pointer.Base.type_of_typ",
"FStar.UInt32.t",
"FStar.Pointer.Base.buffer_of_array_pointer",
"FStar.Pointer.Base.buffer",
"FStar.Pointer.Base.pointer",
"FStar.Pointer.Base.TArray",
"FStar.Pointer.Base.screate",
"FStar.Pervasives.Native.Some",
"FStar.Seq.Base.create",
"... | [] | false | true | false | false | false | let create #a init len =
| let len:P.array_length_t = len in
let content = P.screate (P.TArray len a) (Some (Seq.create (UInt32.v len) init)) in
P.buffer_of_array_pointer content | false |
FStar.BufferNG.fst | FStar.BufferNG.offset | val offset (#a: typ) (b: buffer a) (i: UInt32.t)
: HST.Stack (buffer a)
(requires (fun h0 -> live h0 b /\ UInt32.v i <= length b))
(ensures (fun h0 b' h1 -> h1 == h0 /\ UInt32.v i <= length b /\ b' == goffset b i)) | val offset (#a: typ) (b: buffer a) (i: UInt32.t)
: HST.Stack (buffer a)
(requires (fun h0 -> live h0 b /\ UInt32.v i <= length b))
(ensures (fun h0 b' h1 -> h1 == h0 /\ UInt32.v i <= length b /\ b' == goffset b i)) | let offset
(#a:typ)
(b:buffer a)
(i:UInt32.t)
: HST.Stack (buffer a)
(requires (fun h0 ->
live h0 b /\
UInt32.v i <= length b
))
(ensures (fun h0 b' h1 ->
h1 == h0 /\
UInt32.v i <= length b /\
b' == goffset b i
))
= P.offset_buffer b i | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 370,
"start_col": 0,
"start_line": 356
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> i: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack (FStar.BufferNG.buffer a) | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Base.offset_buffer",
"FStar.Pointer.Base.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.BufferNG.live",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.BufferNG.length",
"Prims... | [] | false | true | false | false | false | let offset (#a: typ) (b: buffer a) (i: UInt32.t)
: HST.Stack (buffer a)
(requires (fun h0 -> live h0 b /\ UInt32.v i <= length b))
(ensures (fun h0 b' h1 -> h1 == h0 /\ UInt32.v i <= length b /\ b' == goffset b i)) =
| P.offset_buffer b i | false |
FStar.BufferNG.fst | FStar.BufferNG.includes_as_seq | val includes_as_seq (#a h1 h2: _) (x y: buffer a)
: Lemma (requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y)) | val includes_as_seq (#a h1 h2: _) (x y: buffer a)
: Lemma (requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y)) | let includes_as_seq #a h1 h2 (x: buffer a) (y: buffer a)
: Lemma
(requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y))
= P.buffer_includes_elim x y | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 28,
"end_line": 99,
"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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h1: FStar.Monotonic.HyperStack.mem ->
h2: FStar.Monotonic.HyperStack.mem ->
x: FStar.BufferNG.buffer a ->
y: FStar.BufferNG.buffer a
-> FStar.Pervasives.Lemma
(requires
FStar.BufferNG.includes x y /\ FStar.BufferNG.as_seq h1 x == FStar.BufferNG.as_seq h2 x)
(ensures FStar.BufferNG... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.BufferNG.typ",
"FStar.Monotonic.HyperStack.mem",
"FStar.BufferNG.buffer",
"FStar.Pointer.Base.buffer_includes_elim",
"Prims.unit",
"Prims.l_and",
"FStar.BufferNG.includes",
"Prims.eq2",
"FStar.Seq.Base.seq",
"FStar.Pointer.Base.type_of_typ",
"Prims.l_or",
"Prims.nat",
"FStar.Seq.Base.... | [] | true | false | true | false | false | let includes_as_seq #a h1 h2 (x: buffer a) (y: buffer a)
: Lemma (requires (x `includes` y /\ as_seq h1 x == as_seq h2 x))
(ensures (as_seq h1 y == as_seq h2 y)) =
| P.buffer_includes_elim x y | false |
FStar.BufferNG.fst | FStar.BufferNG.sub | val sub (#a: typ) (b: buffer a) (i len: UInt32.t)
: HST.Stack (buffer a)
(requires (fun h -> live h b /\ UInt32.v i + UInt32.v len <= length b))
(ensures
(fun h0 b' h1 ->
live h0 b /\ UInt32.v i + UInt32.v len <= length b /\ h1 == h0 /\ b' == gsub b i len /\
b `includes` ... | val sub (#a: typ) (b: buffer a) (i len: UInt32.t)
: HST.Stack (buffer a)
(requires (fun h -> live h b /\ UInt32.v i + UInt32.v len <= length b))
(ensures
(fun h0 b' h1 ->
live h0 b /\ UInt32.v i + UInt32.v len <= length b /\ h1 == h0 /\ b' == gsub b i len /\
b `includes` ... | let sub
(#a: typ)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t)
: HST.Stack (buffer a)
(requires (fun h ->
live h b /\
UInt32.v i + UInt32.v len <= length b
))
(ensures (fun h0 b' h1 ->
live h0 b /\
UInt32.v i + UInt32.v len <= length b /\
h1 == h0 /\
b' == gsub b i len /\
b `inc... | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 294,
"start_col": 0,
"start_line": 277
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> i: FStar.UInt32.t -> len: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack (FStar.BufferNG.buffer a) | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Base.sub_buffer",
"FStar.Pointer.Base.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.BufferNG.live",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.UInt32.v",
"FStar.Buffer... | [] | false | true | false | false | false | let sub (#a: typ) (b: buffer a) (i len: UInt32.t)
: HST.Stack (buffer a)
(requires (fun h -> live h b /\ UInt32.v i + UInt32.v len <= length b))
(ensures
(fun h0 b' h1 ->
live h0 b /\ UInt32.v i + UInt32.v len <= length b /\ h1 == h0 /\ b' == gsub b i len /\
b `includes` ... | P.sub_buffer b i len | false |
FStar.BufferNG.fst | FStar.BufferNG.createL | val createL
(#a: typ)
(init:list (P.type_of_typ a))
: HST.StackInline (buffer a)
(requires (fun h -> p #a init))
(ensures (fun (h0: HS.mem) b h1 ->
let len = FStar.List.Tot.length init in
len > 0 /\
b `unused_in` h0 /\
live h1 b /\
length b == len /\
frameOf b == (HS.get_tip h0) /\... | val createL
(#a: typ)
(init:list (P.type_of_typ a))
: HST.StackInline (buffer a)
(requires (fun h -> p #a init))
(ensures (fun (h0: HS.mem) b h1 ->
let len = FStar.List.Tot.length init in
len > 0 /\
b `unused_in` h0 /\
live h1 b /\
length b == len /\
frameOf b == (HS.get_tip h0) /\... | let createL #a init =
let len : P.array_length_t = UInt32.uint_to_t (List.Tot.length init) in
let s = Seq.seq_of_list init in
let content = P.screate (P.TArray len a) (Some s) in
P.buffer_of_array_pointer content | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 191,
"start_col": 0,
"start_line": 187
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"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 | init: Prims.list (FStar.Pointer.Base.type_of_typ a)
-> FStar.HyperStack.ST.StackInline (FStar.BufferNG.buffer a) | FStar.HyperStack.ST.StackInline | [] | [] | [
"FStar.BufferNG.typ",
"Prims.list",
"FStar.Pointer.Base.type_of_typ",
"FStar.Pointer.Base.buffer_of_array_pointer",
"FStar.Pointer.Base.buffer",
"FStar.Pointer.Base.pointer",
"FStar.Pointer.Base.TArray",
"FStar.Pointer.Base.screate",
"FStar.Pervasives.Native.Some",
"FStar.BufferNG.buffer",
"FSta... | [] | false | true | false | false | false | let createL #a init =
| let len:P.array_length_t = UInt32.uint_to_t (List.Tot.length init) in
let s = Seq.seq_of_list init in
let content = P.screate (P.TArray len a) (Some s) in
P.buffer_of_array_pointer content | false |
FStar.BufferNG.fst | FStar.BufferNG.live_slice_middle | val live_slice_middle
(#t: typ)
(b: buffer t)
(i: UInt32.t)
(len: UInt32.t)
(h: HS.mem)
: Lemma
(requires (
UInt32.v i + UInt32.v len <= length b /\
live h (gsub b 0ul i) /\
live h (gsub b i len) /\ (
let off = UInt32.add i len in
live h (gsub b off (UInt32.sub (P.buffer_length b) off))
... | val live_slice_middle
(#t: typ)
(b: buffer t)
(i: UInt32.t)
(len: UInt32.t)
(h: HS.mem)
: Lemma
(requires (
UInt32.v i + UInt32.v len <= length b /\
live h (gsub b 0ul i) /\
live h (gsub b i len) /\ (
let off = UInt32.add i len in
live h (gsub b off (UInt32.sub (P.buffer_length b) off))
... | let live_slice_middle #t b i len h =
P.buffer_readable_gsub_merge b i len h | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 442,
"start_col": 0,
"start_line": 441
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: FStar.BufferNG.buffer t ->
i: FStar.UInt32.t ->
len: FStar.UInt32.t ->
h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
FStar.UInt32.v i + FStar.UInt32.v len <= FStar.BufferNG.length b /\
FStar.BufferNG.live h (FStar.BufferNG.gsub b 0ul i) /\
FSta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"FStar.Pointer.Derived1.buffer_readable_gsub_merge",
"Prims.unit"
] | [] | true | false | true | false | false | let live_slice_middle #t b i len h =
| P.buffer_readable_gsub_merge b i len h | false |
FStar.BufferNG.fst | FStar.BufferNG.goffset | val goffset (#a: typ) (b: buffer a) (i: UInt32.t)
: Ghost (buffer a)
(requires (UInt32.v i <= length b))
(ensures
(fun b' -> UInt32.v i <= length b /\ b' == gsub b i (UInt32.sub (P.buffer_length b) i))) | val goffset (#a: typ) (b: buffer a) (i: UInt32.t)
: Ghost (buffer a)
(requires (UInt32.v i <= length b))
(ensures
(fun b' -> UInt32.v i <= length b /\ b' == gsub b i (UInt32.sub (P.buffer_length b) i))) | let goffset
(#a: typ)
(b: buffer a)
(i: UInt32.t)
: Ghost (buffer a)
(requires (UInt32.v i <= length b))
(ensures (fun b' ->
UInt32.v i <= length b /\
b' == gsub b i (UInt32.sub (P.buffer_length b) i)
))
= P.gsub_buffer b i (UInt32.sub (P.buffer_length b) i) | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 354,
"start_col": 0,
"start_line": 344
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> i: FStar.UInt32.t -> Prims.Ghost (FStar.BufferNG.buffer a) | Prims.Ghost | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Base.gsub_buffer",
"FStar.UInt32.sub",
"FStar.Pointer.Base.buffer_length",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.BufferNG.length",
"Prims.l_and",
"Prims.eq2",
"FStar.BufferNG.gsub"
] | [] | false | false | false | false | false | let goffset (#a: typ) (b: buffer a) (i: UInt32.t)
: Ghost (buffer a)
(requires (UInt32.v i <= length b))
(ensures
(fun b' -> UInt32.v i <= length b /\ b' == gsub b i (UInt32.sub (P.buffer_length b) i))) =
| P.gsub_buffer b i (UInt32.sub (P.buffer_length b) i) | false |
FStar.BufferNG.fst | FStar.BufferNG.op_Array_Access | val op_Array_Access: #a:typ -> b:buffer a -> n:UInt32.t -> HST.Stack (P.type_of_typ a)
(requires (fun h -> UInt32.v n<length b /\ live h b))
(ensures (fun h0 z h1 -> h1 == h0 /\
UInt32.v n<length b /\
z == Seq.index (as_seq h0 b) (UInt32.v n))) | val op_Array_Access: #a:typ -> b:buffer a -> n:UInt32.t -> HST.Stack (P.type_of_typ a)
(requires (fun h -> UInt32.v n<length b /\ live h b))
(ensures (fun h0 z h1 -> h1 == h0 /\
UInt32.v n<length b /\
z == Seq.index (as_seq h0 b) (UInt32.v n))) | let op_Array_Access #a b n = index #a b n | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 415,
"start_col": 0,
"start_line": 415
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> n: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack (FStar.Pointer.Base.type_of_typ a) | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.BufferNG.index",
"FStar.Pointer.Base.type_of_typ"
] | [] | false | true | false | false | false | let ( .() ) #a b n =
| index #a b n | false |
FStar.BufferNG.fst | FStar.BufferNG.eqb | val eqb: #a:typ -> b1:buffer a -> b2:buffer a
-> len:UInt32.t
-> HST.ST bool
(requires (fun h ->
hasEq (P.type_of_typ a) /\
UInt32.v len <= length b1 /\
UInt32.v len <= length b2 /\
live h b1 /\
live h b2
))
(ensures (fun h0 z h1 ->
h1 == h0 /\
UInt32.v len <= ... | val eqb: #a:typ -> b1:buffer a -> b2:buffer a
-> len:UInt32.t
-> HST.ST bool
(requires (fun h ->
hasEq (P.type_of_typ a) /\
UInt32.v len <= length b1 /\
UInt32.v len <= length b2 /\
live h b1 /\
live h b2
))
(ensures (fun h0 z h1 ->
h1 == h0 /\
UInt32.v len <= ... | let eqb #a b1 b2 len =
P.buffer_contents_equal b1 b2 len | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 406,
"start_col": 0,
"start_line": 405
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b1: FStar.BufferNG.buffer a -> b2: FStar.BufferNG.buffer a -> len: FStar.UInt32.t
-> FStar.HyperStack.ST.ST Prims.bool | FStar.HyperStack.ST.ST | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Derived1.buffer_contents_equal",
"Prims.bool"
] | [] | false | true | false | false | false | let eqb #a b1 b2 len =
| P.buffer_contents_equal b1 b2 len | false |
FStar.BufferNG.fst | FStar.BufferNG.upd | val upd
(#a: typ)
(b: buffer a)
(n: UInt32.t)
(z: P.type_of_typ a)
: HST.Stack unit
(requires (fun h ->
live h b /\
UInt32.v n < length b
))
(ensures (fun h0 _ h1 ->
live h1 b /\
UInt32.v n < length b /\
P.modifies (P.loc_pointer (P.gpointer_of_buffer_cell b n)) h0 h1 /\
as_seq h1 ... | val upd
(#a: typ)
(b: buffer a)
(n: UInt32.t)
(z: P.type_of_typ a)
: HST.Stack unit
(requires (fun h ->
live h b /\
UInt32.v n < length b
))
(ensures (fun h0 _ h1 ->
live h1 b /\
UInt32.v n < length b /\
P.modifies (P.loc_pointer (P.gpointer_of_buffer_cell b n)) h0 h1 /\
as_seq h1 ... | let upd #a b n z =
let h0 = HST.get () in
P.write_buffer b n z;
let h1 = HST.get () in
assert (Seq.equal (as_seq h1 b) (Seq.upd (as_seq h0 b) (UInt32.v n) z)) | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 73,
"end_line": 259,
"start_col": 0,
"start_line": 255
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> n: FStar.UInt32.t -> z: FStar.Pointer.Base.type_of_typ a
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Base.type_of_typ",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.BufferNG.as_seq",
"FStar.Seq.Base.upd",
"FStar.UInt32.v",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"FStar.Point... | [] | false | true | false | false | false | let upd #a b n z =
| let h0 = HST.get () in
P.write_buffer b n z;
let h1 = HST.get () in
assert (Seq.equal (as_seq h1 b) (Seq.upd (as_seq h0 b) (UInt32.v n) z)) | false |
FStar.BufferNG.fst | FStar.BufferNG.op_Array_Assignment | val op_Array_Assignment: #a:typ -> b:buffer a -> n:UInt32.t -> z:P.type_of_typ a -> HST.Stack unit
(requires (fun h -> live h b /\ UInt32.v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ UInt32.v n < length b
/\ P.modifies (P.loc_pointer (P.gpointer_of_buffer_cell b n)) h0 h1
/\ as_seq h1... | val op_Array_Assignment: #a:typ -> b:buffer a -> n:UInt32.t -> z:P.type_of_typ a -> HST.Stack unit
(requires (fun h -> live h b /\ UInt32.v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ UInt32.v n < length b
/\ P.modifies (P.loc_pointer (P.gpointer_of_buffer_cell b n)) h0 h1
/\ as_seq h1... | let op_Array_Assignment #a b n z = upd #a b n z | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 47,
"end_line": 422,
"start_col": 0,
"start_line": 422
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> n: FStar.UInt32.t -> z: FStar.Pointer.Base.type_of_typ a
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Base.type_of_typ",
"FStar.BufferNG.upd",
"Prims.unit"
] | [] | false | true | false | false | false | let ( .()<- ) #a b n z =
| upd #a b n z | false |
FStar.BufferNG.fst | FStar.BufferNG.index | val index
(#a: typ)
(b: buffer a)
(n: UInt32.t)
: HST.Stack (P.type_of_typ a)
(requires (fun h ->
UInt32.v n < length b /\
live h b
))
(ensures (fun h0 z h1 ->
UInt32.v n < length b /\
h1 == h0 /\
z == Seq.index (as_seq h0 b) (UInt32.v n)
)) | val index
(#a: typ)
(b: buffer a)
(n: UInt32.t)
: HST.Stack (P.type_of_typ a)
(requires (fun h ->
UInt32.v n < length b /\
live h b
))
(ensures (fun h0 z h1 ->
UInt32.v n < length b /\
h1 == h0 /\
z == Seq.index (as_seq h0 b) (UInt32.v n)
)) | let index #a b n =
P.read_buffer b n | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 236,
"start_col": 0,
"start_line": 235
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.BufferNG.buffer a -> n: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack (FStar.Pointer.Base.type_of_typ a) | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Base.read_buffer",
"FStar.Pointer.Base.type_of_typ"
] | [] | false | true | false | false | false | let index #a b n =
| P.read_buffer b n | false |
Vale.AES.GCTR_BE_s.fst | Vale.AES.GCTR_BE_s.is_gctr_plain | val is_gctr_plain (p: seq nat8) : prop0 | val is_gctr_plain (p: seq nat8) : prop0 | let is_gctr_plain (p:seq nat8) : prop0 = length p < pow2_32 | {
"file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 59,
"end_line": 17,
"start_col": 0,
"start_line": 17
} | module Vale.AES.GCTR_BE_s
// IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open Vale.AES.AES_BE_s
... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.AES_BE_s.fst.checked",
"prims.fst.... | [
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_BE_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale... | {
"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 | p: FStar.Seq.Base.seq Vale.Def.Types_s.nat8 -> Vale.Def.Prop_s.prop0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat8",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Vale.Def.Words_s.pow2_32",
"Vale.Def.Prop_s.prop0"
] | [] | false | false | false | true | false | let is_gctr_plain (p: seq nat8) : prop0 =
| length p < pow2_32 | false |
FStar.BufferNG.fst | FStar.BufferNG.lemma_sub_spec | val lemma_sub_spec (#a: typ) (b: buffer a) (i len: UInt32.t) (h: HS.mem)
: Lemma (requires (UInt32.v i + UInt32.v len <= length b /\ live h b))
(ensures
(UInt32.v i + UInt32.v len <= length b /\ live h (gsub b i len) /\
as_seq h (gsub b i len) == Seq.slice (as_seq h b) (UInt32.v i) (UInt32.v... | val lemma_sub_spec (#a: typ) (b: buffer a) (i len: UInt32.t) (h: HS.mem)
: Lemma (requires (UInt32.v i + UInt32.v len <= length b /\ live h b))
(ensures
(UInt32.v i + UInt32.v len <= length b /\ live h (gsub b i len) /\
as_seq h (gsub b i len) == Seq.slice (as_seq h b) (UInt32.v i) (UInt32.v... | let lemma_sub_spec (#a:typ) (b:buffer a)
(i:UInt32.t)
(len:UInt32.t)
(h: HS.mem)
: Lemma
(requires (
UInt32.v i + UInt32.v len <= length b /\
live h b
))
(ensures (
UInt32.v i + UInt32.v len <= length b /\
live h (gsub b i len) /\
as_seq h (gsub b i len) == Seq.slice (as_seq h b) (UInt3... | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 114,
"end_line": 340,
"start_col": 0,
"start_line": 322
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: FStar.BufferNG.buffer a ->
i: FStar.UInt32.t ->
len: FStar.UInt32.t ->
h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
FStar.UInt32.v i + FStar.UInt32.v len <= FStar.BufferNG.length b /\ FStar.BufferNG.live h b)
(ensures
FStar.UInt32.v i + FStar.UI... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.BufferNG.typ",
"FStar.BufferNG.buffer",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"FStar.Seq.Base.lemma_eq_intro",
"FStar.Pointer.Base.type_of_typ",
"FStar.BufferNG.as_seq",
"FStar.BufferNG.gsub",
"FStar.Seq.Base.slice",
"FStar.UInt32.v",
"Prims.op_Addition",
"Prims.unit",
"... | [] | true | false | true | false | false | let lemma_sub_spec (#a: typ) (b: buffer a) (i len: UInt32.t) (h: HS.mem)
: Lemma (requires (UInt32.v i + UInt32.v len <= length b /\ live h b))
(ensures
(UInt32.v i + UInt32.v len <= length b /\ live h (gsub b i len) /\
as_seq h (gsub b i len) == Seq.slice (as_seq h b) (UInt32.v i) (UInt32.v... | Seq.lemma_eq_intro (as_seq h (gsub b i len))
(Seq.slice (as_seq h b) (UInt32.v i) (UInt32.v i + UInt32.v len)) | false |
FStar.BufferNG.fst | FStar.BufferNG.rcreate | val rcreate
(#a: typ)
(r:HH.rid)
(init: P.type_of_typ a)
(len:UInt32.t)
: HST.ST (buffer a)
(requires (fun h ->
HST.is_eternal_region r /\
HST.witnessed (HST.region_contains_pred r) /\
UInt32.v len > 0
))
(ensures (fun (h0: HS.mem) b h1 ->
b `unused_in` h0 /\
live h1 b /\
length b ... | val rcreate
(#a: typ)
(r:HH.rid)
(init: P.type_of_typ a)
(len:UInt32.t)
: HST.ST (buffer a)
(requires (fun h ->
HST.is_eternal_region r /\
HST.witnessed (HST.region_contains_pred r) /\
UInt32.v len > 0
))
(ensures (fun (h0: HS.mem) b h1 ->
b `unused_in` h0 /\
live h1 b /\
length b ... | let rcreate #a r init len =
let len : P.array_length_t = len in
let content = P.ecreate (P.TArray len a) r (Some (Seq.create (UInt32.v len) init)) in
P.buffer_of_array_pointer content | {
"file_name": "ulib/legacy/FStar.BufferNG.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 218,
"start_col": 0,
"start_line": 215
} | (*
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.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pointer.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.S... | [
{
"abbrev": true,
"full_module": "FStar.Pointer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.HyperHeap.rid -> init: FStar.Pointer.Base.type_of_typ a -> len: FStar.UInt32.t
-> FStar.HyperStack.ST.ST (FStar.BufferNG.buffer a) | FStar.HyperStack.ST.ST | [] | [] | [
"FStar.BufferNG.typ",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Pointer.Base.type_of_typ",
"FStar.UInt32.t",
"FStar.Pointer.Base.buffer_of_array_pointer",
"FStar.Pointer.Base.buffer",
"FStar.Pointer.Base.pointer",
"FStar.Pointer.Base.TArray",
"FStar.Pointer.Base.ecreate",
"FStar.Pervasives.Native.So... | [] | false | true | false | false | false | let rcreate #a r init len =
| let len:P.array_length_t = len in
let content = P.ecreate (P.TArray len a) r (Some (Seq.create (UInt32.v len) init)) in
P.buffer_of_array_pointer content | false |
Vale.AES.GCTR_BE_s.fst | Vale.AES.GCTR_BE_s.gctr_encrypt | val gctr_encrypt : icb: Vale.Def.Types_s.quad32 ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.nat8 ->
alg: Vale.AES.AES_common_s.algorithm ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32
-> Prims.Pure (FStar.Seq.Base.seq Vale.Def.Types_s.nat8) | let gctr_encrypt = opaque_make gctr_encrypt_def | {
"file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 67,
"end_line": 69,
"start_col": 19,
"start_line": 69
} | module Vale.AES.GCTR_BE_s
// IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open Vale.AES.AES_BE_s
... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.AES_BE_s.fst.checked",
"prims.fst.... | [
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_BE_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale... | {
"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 |
icb: Vale.Def.Types_s.quad32 ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.nat8 ->
alg: Vale.AES.AES_common_s.algorithm ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32
-> Prims.Pure (FStar.Seq.Base.seq Vale.Def.Types_s.nat8) | Prims.Pure | [] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.Def.Types_s.quad32",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat8",
"Vale.AES.AES_common_s.algorithm",
"Vale.Def.Types_s.nat32",
"Prims.l_and",
"Vale.AES.GCTR_BE_s.is_gctr_plain",
"Vale.AES.AES_BE_s.is_aes_key_word",
"Prims.l_True",
"Vale.AES.GCTR_BE_s.gctr... | [] | false | false | false | false | false | let gctr_encrypt =
| opaque_make gctr_encrypt_def | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.