effect
stringclasses
48 values
original_source_type
stringlengths
0
23k
opens_and_abbrevs
listlengths
2
92
isa_cross_project_example
bool
1 class
source_definition
stringlengths
9
57.9k
partial_definition
stringlengths
7
23.3k
is_div
bool
2 classes
is_type
null
is_proof
bool
2 classes
completed_definiton
stringlengths
1
250k
dependencies
dict
effect_flags
listlengths
0
2
ideal_premises
listlengths
0
236
mutual_with
listlengths
0
11
file_context
stringlengths
0
407k
interleaved
bool
1 class
is_simply_typed
bool
2 classes
file_name
stringlengths
5
48
vconfig
dict
is_simple_lemma
null
source_type
stringlengths
10
23k
proof_features
listlengths
0
1
name
stringlengths
8
95
source
dict
verbose_type
stringlengths
1
7.42k
source_range
dict
FStar.Pervasives.Lemma
val lset_bit5_lemma1: f:lseq uint64 5 -> i:size_nat{i <= 128 /\ i / 26 = 1} -> Lemma (requires (forall (i:nat). i < 5 ==> v f.[i] <= max26) /\ as_nat5 (f.[0], f.[1], f.[2], f.[3], f.[4]) < pow2 i) (ensures (let b = u64 1 <<. size (i % 26) in let out = f.[i / 26] <- f.[i / 26] |. b in (for...
[ { "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,...
false
let lset_bit5_lemma1 f i = let b = u64 1 <<. size (i % 26) in let out = f.[1] <- f.[1] |. b in let (f0, f1, f2, f3, f4) = (f.[0], f.[1], f.[2], f.[3], f.[4]) in let (o0, o1, o2, o3, o4) = (out.[0], out.[1], out.[2], out.[3], out.[4]) in assert (v f1 * pow2 26 < pow2 i); FStar.Math.Lemmas.lemma_div_lt_nat (v...
val lset_bit5_lemma1: f:lseq uint64 5 -> i:size_nat{i <= 128 /\ i / 26 = 1} -> Lemma (requires (forall (i:nat). i < 5 ==> v f.[i] <= max26) /\ as_nat5 (f.[0], f.[1], f.[2], f.[3], f.[4]) < pow2 i) (ensures (let b = u64 1 <<. size (i % 26) in let out = f.[i / 26] <- f.[i / 26] |. b in (for...
false
null
true
let b = u64 1 <<. size (i % 26) in let out = f.[ 1 ] <- f.[ 1 ] |. b in let f0, f1, f2, f3, f4 = (f.[ 0 ], f.[ 1 ], f.[ 2 ], f.[ 3 ], f.[ 4 ]) in let o0, o1, o2, o3, o4 = (out.[ 0 ], out.[ 1 ], out.[ 2 ], out.[ 3 ], out.[ 4 ]) in assert (v f1 * pow2 26 < pow2 i); FStar.Math.Lemmas.lemma_div_lt_nat (v f1 * pow2 26) i 26...
{ "checked_file": "Hacl.Poly1305.Field32xN.Lemmas2.fst.checked", "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....
[ "lemma" ]
[ "Lib.Sequence.lseq", "Lib.IntTypes.uint64", "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Prims.op_Division", "Prims._assert", "Prims.eq2", "Hacl.Spec.Poly1305.Field32xN.as_nat5", "FStar.Pervasives.Native.Mktuple5", "Pri...
[]
module Hacl.Poly1305.Field32xN.Lemmas2 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 #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_mult_le: a:nat -> b:nat ...
false
false
Hacl.Poly1305.Field32xN.Lemmas2.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...
null
val lset_bit5_lemma1: f:lseq uint64 5 -> i:size_nat{i <= 128 /\ i / 26 = 1} -> Lemma (requires (forall (i:nat). i < 5 ==> v f.[i] <= max26) /\ as_nat5 (f.[0], f.[1], f.[2], f.[3], f.[4]) < pow2 i) (ensures (let b = u64 1 <<. size (i % 26) in let out = f.[i / 26] <- f.[i / 26] |. b in (for...
[]
Hacl.Poly1305.Field32xN.Lemmas2.lset_bit5_lemma1
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
f: Lib.Sequence.lseq Lib.IntTypes.uint64 5 -> i: Lib.IntTypes.size_nat{i <= 128 /\ i / 26 = 1} -> FStar.Pervasives.Lemma (requires (forall (i: Prims.nat). i < 5 ==> Lib.IntTypes.v f.[ i ] <= Hacl.Spec.Poly1305.Field32xN.max26) /\ Hacl.Spec.Poly1305.Field32xN.as_nat5 (f.[ 0 ], f.[ 1 ]...
{ "end_col": 80, "end_line": 626, "start_col": 26, "start_line": 601 }
FStar.Pervasives.Lemma
val lset_bit5_lemma4: f:lseq uint64 5 -> i:size_nat{i <= 128 /\ i / 26 = 4} -> Lemma (requires (forall (i:nat). i < 5 ==> v f.[i] <= max26) /\ as_nat5 (f.[0], f.[1], f.[2], f.[3], f.[4]) < pow2 i) (ensures (let b = u64 1 <<. size (i % 26) in let out = f.[i / 26] <- f.[i / 26] |. b in (for...
[ { "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,...
false
let lset_bit5_lemma4 f i = let b = u64 1 <<. size (i % 26) in let out = f.[4] <- f.[4] |. b in let (f0, f1, f2, f3, f4) = (f.[0], f.[1], f.[2], f.[3], f.[4]) in let (o0, o1, o2, o3, o4) = (out.[0], out.[1], out.[2], out.[3], out.[4]) in assert (v f4 * pow104 < pow2 i); FStar.Math.Lemmas.lemma_div_lt_nat (v ...
val lset_bit5_lemma4: f:lseq uint64 5 -> i:size_nat{i <= 128 /\ i / 26 = 4} -> Lemma (requires (forall (i:nat). i < 5 ==> v f.[i] <= max26) /\ as_nat5 (f.[0], f.[1], f.[2], f.[3], f.[4]) < pow2 i) (ensures (let b = u64 1 <<. size (i % 26) in let out = f.[i / 26] <- f.[i / 26] |. b in (for...
false
null
true
let b = u64 1 <<. size (i % 26) in let out = f.[ 4 ] <- f.[ 4 ] |. b in let f0, f1, f2, f3, f4 = (f.[ 0 ], f.[ 1 ], f.[ 2 ], f.[ 3 ], f.[ 4 ]) in let o0, o1, o2, o3, o4 = (out.[ 0 ], out.[ 1 ], out.[ 2 ], out.[ 3 ], out.[ 4 ]) in assert (v f4 * pow104 < pow2 i); FStar.Math.Lemmas.lemma_div_lt_nat (v f4 * pow104) i 104;...
{ "checked_file": "Hacl.Poly1305.Field32xN.Lemmas2.fst.checked", "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....
[ "lemma" ]
[ "Lib.Sequence.lseq", "Lib.IntTypes.uint64", "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Prims.op_Division", "Prims._assert", "Prims.eq2", "Hacl.Spec.Poly1305.Field32xN.as_nat5", "FStar.Pervasives.Native.Mktuple5", "Pri...
[]
module Hacl.Poly1305.Field32xN.Lemmas2 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 #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_mult_le: a:nat -> b:nat ...
false
false
Hacl.Poly1305.Field32xN.Lemmas2.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...
null
val lset_bit5_lemma4: f:lseq uint64 5 -> i:size_nat{i <= 128 /\ i / 26 = 4} -> Lemma (requires (forall (i:nat). i < 5 ==> v f.[i] <= max26) /\ as_nat5 (f.[0], f.[1], f.[2], f.[3], f.[4]) < pow2 i) (ensures (let b = u64 1 <<. size (i % 26) in let out = f.[i / 26] <- f.[i / 26] |. b in (for...
[]
Hacl.Poly1305.Field32xN.Lemmas2.lset_bit5_lemma4
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
f: Lib.Sequence.lseq Lib.IntTypes.uint64 5 -> i: Lib.IntTypes.size_nat{i <= 128 /\ i / 26 = 4} -> FStar.Pervasives.Lemma (requires (forall (i: Prims.nat). i < 5 ==> Lib.IntTypes.v f.[ i ] <= Hacl.Spec.Poly1305.Field32xN.max26) /\ Hacl.Spec.Poly1305.Field32xN.as_nat5 (f.[ 0 ], f.[ 1 ]...
{ "end_col": 80, "end_line": 752, "start_col": 26, "start_line": 727 }
Prims.Pure
val store_tup64_lemma: f:tup64_5 -> Pure (uint64 & uint64) (requires tup64_fits5 f (1, 1, 1, 1, 1)) (ensures (fun (lo, hi) -> v hi * pow2 64 + v lo == as_nat5 f % pow2 128))
[ { "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,...
false
let store_tup64_lemma f = let (f0, f1, f2, f3, f4) = f in let lo = f0 |. (f1 <<. 26ul) |. (f2 <<. 52ul) in let hi = (f2 >>. 12ul) |. (f3 <<. 14ul) |. (f4 <<. 40ul) in lemma_store_felem_lo f lo; lemma_store_felem_hi f hi; assert (v lo == v f0 + v f1 * pow2 26 + (v f2 * pow2 52) % pow2 64); assert (v hi ==...
val store_tup64_lemma: f:tup64_5 -> Pure (uint64 & uint64) (requires tup64_fits5 f (1, 1, 1, 1, 1)) (ensures (fun (lo, hi) -> v hi * pow2 64 + v lo == as_nat5 f % pow2 128)) let store_tup64_lemma f =
false
null
false
let f0, f1, f2, f3, f4 = f in let lo = f0 |. (f1 <<. 26ul) |. (f2 <<. 52ul) in let hi = (f2 >>. 12ul) |. (f3 <<. 14ul) |. (f4 <<. 40ul) in lemma_store_felem_lo f lo; lemma_store_felem_hi f hi; assert (v lo == v f0 + v f1 * pow2 26 + (v f2 * pow2 52) % pow2 64); assert (v hi == v f2 / pow2 12 + v f3 * pow2 14 + (v f4 * ...
{ "checked_file": "Hacl.Poly1305.Field32xN.Lemmas2.fst.checked", "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....
[]
[ "Hacl.Spec.Poly1305.Field32xN.tup64_5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Prims.pow2", "Prims.op_Modulus", ...
[]
module Hacl.Poly1305.Field32xN.Lemmas2 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 #reset-options "--z3rlimit 50 --using_facts_from '* -FStar.Seq' --max_fuel 0 --max_ifuel 0" val lemma_mult_le: a:nat -> b:nat ...
false
false
Hacl.Poly1305.Field32xN.Lemmas2.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...
null
val store_tup64_lemma: f:tup64_5 -> Pure (uint64 & uint64) (requires tup64_fits5 f (1, 1, 1, 1, 1)) (ensures (fun (lo, hi) -> v hi * pow2 64 + v lo == as_nat5 f % pow2 128))
[]
Hacl.Poly1305.Field32xN.Lemmas2.store_tup64_lemma
{ "file_name": "code/poly1305/Hacl.Poly1305.Field32xN.Lemmas2.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
f: Hacl.Spec.Poly1305.Field32xN.tup64_5 -> Prims.Pure (Lib.IntTypes.uint64 * Lib.IntTypes.uint64)
{ "end_col": 8, "end_line": 503, "start_col": 25, "start_line": 464 }
FStar.Pervasives.Lemma
val lemma_bound_mul64_wide (ma mb:nat) (mma mmb:nat) (a b:uint64) : Lemma (requires v a <= ma * mma /\ v b <= mb * mmb) (ensures (let r = mul64_wide a b in v r = v a * v b /\ v r <= ma * mb * (mma * mmb)))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_mul64_wide ma mb mma mmb a b = ML.lemma_bound_mul64_wide ma mb mma mmb (v a) (v b)
val lemma_bound_mul64_wide (ma mb:nat) (mma mmb:nat) (a b:uint64) : Lemma (requires v a <= ma * mma /\ v b <= mb * mmb) (ensures (let r = mul64_wide a b in v r = v a * v b /\ v r <= ma * mb * (mma * mmb))) let lemma_bound_mul64_wide ma mb mma mmb a b =
false
null
true
ML.lemma_bound_mul64_wide ma mb mma mmb (v a) (v b)
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint64", "Hacl.Spec.K256.MathLemmas.lemma_bound_mul64_wide", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.unit" ]
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_mul64_wide (ma mb:nat) (mma mmb:nat) (a b:uint64) : Lemma (requires v a <= ma * mma /\ v b <= mb * mmb) (ensures (let r = mul64_wide a b in v r = v a * v b /\ v r <= ma * mb * (mma * mmb)))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_mul64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
ma: Prims.nat -> mb: Prims.nat -> mma: Prims.nat -> mmb: Prims.nat -> a: Lib.IntTypes.uint64 -> b: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a <= ma * mma /\ Lib.IntTypes.v b <= mb * mmb) (ensures (let r = Lib.IntTypes.mul64_wide a b in Lib...
{ "end_col": 53, "end_line": 22, "start_col": 2, "start_line": 22 }
FStar.Pervasives.Lemma
val lemma_bound_c0: c0:uint128 -> Lemma (requires v c0 <= 4096 * (max48 * max48)) (ensures v c0 / pow2 64 <= pow2 44)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_c0 c0 = lemma_u128_div64_max48 4096 c0; assert_norm (pow2 12 = 4096); Math.Lemmas.pow2_plus 12 32
val lemma_bound_c0: c0:uint128 -> Lemma (requires v c0 <= 4096 * (max48 * max48)) (ensures v c0 / pow2 64 <= pow2 44) let lemma_bound_c0 c0 =
false
null
true
lemma_u128_div64_max48 4096 c0; assert_norm (pow2 12 = 4096); Math.Lemmas.pow2_plus 12 32
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint128", "FStar.Math.Lemmas.pow2_plus", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.pow2", "Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_div64_max48" ]
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_c0: c0:uint128 -> Lemma (requires v c0 <= 4096 * (max48 * max48)) (ensures v c0 / pow2 64 <= pow2 44)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_c0
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c0: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v c0 <= 4096 * (Hacl.Spec.K256.Field52.Definitions.max48 * Hacl.Spec.K256.Field52.Definitions.max48) ) (ensures Lib.IntTypes.v c0 / Prims.pow2 64 <= Prims.pow2 44)
{ "end_col": 29, "end_line": 443, "start_col": 2, "start_line": 441 }
FStar.Pervasives.Lemma
val lemma_u128_div52: md:pos -> a:uint128 -> Lemma (requires v a <= md * max52 * max52) (ensures v a / pow2 52 <= md * max52)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_u128_div52 md a = Math.Lemmas.lemma_mult_lt_left (md * max52) max52 (pow2 52); Math.Lemmas.lemma_div_le (v a) (md * max52 * pow2 52) (pow2 52); Math.Lemmas.multiple_division_lemma (md * max52) (pow2 52)
val lemma_u128_div52: md:pos -> a:uint128 -> Lemma (requires v a <= md * max52 * max52) (ensures v a / pow2 52 <= md * max52) let lemma_u128_div52 md a =
false
null
true
Math.Lemmas.lemma_mult_lt_left (md * max52) max52 (pow2 52); Math.Lemmas.lemma_div_le (v a) ((md * max52) * pow2 52) (pow2 52); Math.Lemmas.multiple_division_lemma (md * max52) (pow2 52)
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.pos", "Lib.IntTypes.uint128", "FStar.Math.Lemmas.multiple_division_lemma", "FStar.Mul.op_Star", "Hacl.Spec.K256.Field52.Definitions.max52", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.lemma_div_le", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Math.Lemmas.lemma_m...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_u128_div52: md:pos -> a:uint128 -> Lemma (requires v a <= md * max52 * max52) (ensures v a / pow2 52 <= md * max52)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_div52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.pos -> a: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a <= (md * Hacl.Spec.K256.Field52.Definitions.max52) * Hacl.Spec.K256.Field52.Definitions.max52) (ensures Lib.IntTypes.v a / Prims.pow2 52 <= md * Hacl.Spec.K256.Field52.Definitions.max52)
{ "end_col": 60, "end_line": 399, "start_col": 2, "start_line": 397 }
FStar.Pervasives.Lemma
val lemma_u128_div64_max52: md:pos -> a:uint128 -> Lemma (requires v a <= md * (max52 * max52)) (ensures v a / pow2 64 <= md * pow2 40)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_u128_div64_max52 md a = assert_norm (max52 < pow2 52); ML.lemma_ab_lt_cd max52 max52 (pow2 52) (pow2 52); Math.Lemmas.pow2_plus 52 52; assert (max52 * max52 < pow2 104); Math.Lemmas.lemma_mult_le_left md (max52 * max52) (pow2 104); assert (v a < md * pow2 104); Math.Lemmas.lemma_div_le (v a) (m...
val lemma_u128_div64_max52: md:pos -> a:uint128 -> Lemma (requires v a <= md * (max52 * max52)) (ensures v a / pow2 64 <= md * pow2 40) let lemma_u128_div64_max52 md a =
false
null
true
assert_norm (max52 < pow2 52); ML.lemma_ab_lt_cd max52 max52 (pow2 52) (pow2 52); Math.Lemmas.pow2_plus 52 52; assert (max52 * max52 < pow2 104); Math.Lemmas.lemma_mult_le_left md (max52 * max52) (pow2 104); assert (v a < md * pow2 104); Math.Lemmas.lemma_div_le (v a) (md * pow2 104) (pow2 64); Math.Lemmas.pow2_plus 64...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.pos", "Lib.IntTypes.uint128", "FStar.Math.Lemmas.multiple_division_lemma", "FStar.Mul.op_Star", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.pow2_plus", "FStar.Math.Lemmas.lemma_div_le", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Prims._assert", "Prims.b2t", "Prim...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_u128_div64_max52: md:pos -> a:uint128 -> Lemma (requires v a <= md * (max52 * max52)) (ensures v a / pow2 64 <= md * pow2 40)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_div64_max52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.pos -> a: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a <= md * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52)) (ensures Lib.IntTypes.v a / Prims.pow2 64 <= md * Prims.pow2 40)
{ "end_col": 62, "end_line": 433, "start_col": 2, "start_line": 424 }
FStar.Pervasives.Lemma
val lemma_16_max52_max48: a:pos -> Lemma ((a * 16) * (max52 * max48) < a * (max52 * max52))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_16_max52_max48 a = assert_norm (16 * (max52 * max48) < max52 * max52); calc (<) { (a * 16) * (max52 * max48); (==) { Math.Lemmas.paren_mul_right a 16 (max52 * max48) } a * (16 * (max52 * max48)); (<) { Math.Lemmas.lemma_mult_lt_left a (16 * (max52 * max48)) (max52 * max52) } a * (max52...
val lemma_16_max52_max48: a:pos -> Lemma ((a * 16) * (max52 * max48) < a * (max52 * max52)) let lemma_16_max52_max48 a =
false
null
true
assert_norm (16 * (max52 * max48) < max52 * max52); calc ( < ) { (a * 16) * (max52 * max48); ( == ) { Math.Lemmas.paren_mul_right a 16 (max52 * max48) } a * (16 * (max52 * max48)); ( < ) { Math.Lemmas.lemma_mult_lt_left a (16 * (max52 * max48)) (max52 * max52) } a * (max52 * max52); }
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.pos", "FStar.Calc.calc_finish", "Prims.int", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Hacl.Spec.K256.Field52.Definitions.max52", "Hacl.Spec.K256.Field52.Definitions.max48", "Prims.Cons", "FStar.Preorder.relation", "Prims.eq2", "Prims.Nil", "Prims.unit", "FStar.Calc.ca...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_16_max52_max48: a:pos -> Lemma ((a * 16) * (max52 * max48) < a * (max52 * max52))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_16_max52_max48
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Prims.pos -> FStar.Pervasives.Lemma (ensures (a * 16) * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max48) < a * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52))
{ "end_col": 3, "end_line": 58, "start_col": 2, "start_line": 51 }
FStar.Pervasives.Lemma
val lemma_four_mul64_wide (a0 a1 a2 a3 b0 b1 b2 b3:uint64) : Lemma (requires felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64) (ensures (let d = mul64_wide a0 b3 +. mul64_wide a1 b2...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_four_mul64_wide a0 a1 a2 a3 b0 b1 b2 b3 = lemma_bound_mul64_wide 64 64 max52 max52 a0 b3; lemma_bound_mul64_wide 64 64 max52 max52 a1 b2; lemma_bound_mul64_wide 64 64 max52 max52 a2 b1; lemma_bound_mul64_wide 64 64 max52 max52 a3 b0; assert (v a0 * v b3 + v a1 * v b2 + v a2 * v b1 + v a3 * v b0 <= 1...
val lemma_four_mul64_wide (a0 a1 a2 a3 b0 b1 b2 b3:uint64) : Lemma (requires felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64) (ensures (let d = mul64_wide a0 b3 +. mul64_wide a1 b2...
false
null
true
lemma_bound_mul64_wide 64 64 max52 max52 a0 b3; lemma_bound_mul64_wide 64 64 max52 max52 a1 b2; lemma_bound_mul64_wide 64 64 max52 max52 a2 b1; lemma_bound_mul64_wide 64 64 max52 max52 a3 b0; assert (v a0 * v b3 + v a1 * v b2 + v a2 * v b1 + v a3 * v b0 <= 16384 * (max52 * max52)); assert_norm (16384 * (max52 * max52) ...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.K256.Field52.Definitions.max52", ...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_four_mul64_wide (a0 a1 a2 a3 b0 b1 b2 b3:uint64) : Lemma (requires felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64) (ensures (let d = mul64_wide a0 b3 +. mul64_wide a1 b2...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_four_mul64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> b0: Lib.IntTypes.uint64 -> b1: Lib.IntTypes.uint64 -> b2: Lib.IntTypes.uint64 -> b3: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Hacl.Spec.K256.Field52...
{ "end_col": 90, "end_line": 46, "start_col": 2, "start_line": 37 }
FStar.Pervasives.Lemma
val lemma_mod_add_last (c12 t4':uint64) : Lemma (requires v c12 < pow2 48 /\ v t4' < pow2 48) (ensures (let r4 = c12 +. t4' in v r4 = v c12 + v t4' /\ felem_fits_last1 r4 2))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_mod_add_last c12 t4' = let r4 = c12 +. t4' in assert (v c12 + v t4' < pow2 48 + pow2 48); Math.Lemmas.pow2_double_sum 48; assert (v c12 + v t4' < pow2 49); Math.Lemmas.pow2_lt_compat 64 49; Math.Lemmas.small_mod (v c12 + v t4') (pow2 64); assert (v r4 = v c12 + v t4')
val lemma_mod_add_last (c12 t4':uint64) : Lemma (requires v c12 < pow2 48 /\ v t4' < pow2 48) (ensures (let r4 = c12 +. t4' in v r4 = v c12 + v t4' /\ felem_fits_last1 r4 2)) let lemma_mod_add_last c12 t4' =
false
null
true
let r4 = c12 +. t4' in assert (v c12 + v t4' < pow2 48 + pow2 48); Math.Lemmas.pow2_double_sum 48; assert (v c12 + v t4' < pow2 49); Math.Lemmas.pow2_lt_compat 64 49; Math.Lemmas.small_mod (v c12 + v t4') (pow2 64); assert (v r4 = v c12 + v t4')
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint64", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.op_Addition", "Prims.unit", "FStar.Math.Lemmas.small_mod", "Prims.pow2", "FStar.Math.Lemmas.pow2_lt_compat", "Prims.op_LessThan", "FStar...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_mod_add_last (c12 t4':uint64) : Lemma (requires v c12 < pow2 48 /\ v t4' < pow2 48) (ensures (let r4 = c12 +. t4' in v r4 = v c12 + v t4' /\ felem_fits_last1 r4 2))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_mod_add_last
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c12: Lib.IntTypes.uint64 -> t4': Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v c12 < Prims.pow2 48 /\ Lib.IntTypes.v t4' < Prims.pow2 48) (ensures (let r4 = c12 +. t4' in Lib.IntTypes.v r4 = Lib.IntTypes.v c12 + Lib.IntTypes.v t4' /\ Hacl.Spec.K256.Fiel...
{ "end_col": 31, "end_line": 573, "start_col": 32, "start_line": 566 }
FStar.Pervasives.Lemma
val lemma_u128_div64_max48: md:pos -> a:uint128 -> Lemma (requires v a <= md * (max48 * max48)) (ensures v a / pow2 64 <= md * pow2 32)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_u128_div64_max48 md a = assert_norm (max48 < pow2 48); ML.lemma_ab_lt_cd max48 max48 (pow2 48) (pow2 48); Math.Lemmas.pow2_plus 48 48; assert (max48 * max48 < pow2 96); Math.Lemmas.lemma_mult_le_left md (max48 * max48) (pow2 96); assert (v a < md * pow2 96); Math.Lemmas.lemma_div_le (v a) (md *...
val lemma_u128_div64_max48: md:pos -> a:uint128 -> Lemma (requires v a <= md * (max48 * max48)) (ensures v a / pow2 64 <= md * pow2 32) let lemma_u128_div64_max48 md a =
false
null
true
assert_norm (max48 < pow2 48); ML.lemma_ab_lt_cd max48 max48 (pow2 48) (pow2 48); Math.Lemmas.pow2_plus 48 48; assert (max48 * max48 < pow2 96); Math.Lemmas.lemma_mult_le_left md (max48 * max48) (pow2 96); assert (v a < md * pow2 96); Math.Lemmas.lemma_div_le (v a) (md * pow2 96) (pow2 64); Math.Lemmas.pow2_plus 64 32;...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.pos", "Lib.IntTypes.uint128", "FStar.Math.Lemmas.multiple_division_lemma", "FStar.Mul.op_Star", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.pow2_plus", "FStar.Math.Lemmas.lemma_div_le", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Prims._assert", "Prims.b2t", "Prim...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_u128_div64_max48: md:pos -> a:uint128 -> Lemma (requires v a <= md * (max48 * max48)) (ensures v a / pow2 64 <= md * pow2 32)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_div64_max48
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.pos -> a: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a <= md * (Hacl.Spec.K256.Field52.Definitions.max48 * Hacl.Spec.K256.Field52.Definitions.max48)) (ensures Lib.IntTypes.v a / Prims.pow2 64 <= md * Prims.pow2 32)
{ "end_col": 62, "end_line": 416, "start_col": 2, "start_line": 407 }
FStar.Pervasives.Lemma
val lemma_u128_to_u64_mask52: d:uint128 -> Lemma (let r = to_u64 d &. mask52 in v r = v d % pow2 52 /\ felem_fits1 r 1)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_u128_to_u64_mask52 d = let r = to_u64 d &. mask52 in LD.lemma_mask52 (to_u64 d); assert (v r = v d % pow2 64 % pow2 52); Math.Lemmas.pow2_modulo_modulo_lemma_1 (v d) 52 64
val lemma_u128_to_u64_mask52: d:uint128 -> Lemma (let r = to_u64 d &. mask52 in v r = v d % pow2 52 /\ felem_fits1 r 1) let lemma_u128_to_u64_mask52 d =
false
null
true
let r = to_u64 d &. mask52 in LD.lemma_mask52 (to_u64 d); assert (v r = v d % pow2 64 % pow2 52); Math.Lemmas.pow2_modulo_modulo_lemma_1 (v d) 52 64
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint128", "FStar.Math.Lemmas.pow2_modulo_modulo_lemma_1", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Prims.unit", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.U64", "Prims.op_Modulus", "Prims.pow2", "Hacl.Spec.K256.Field52.Def...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_u128_to_u64_mask52: d:uint128 -> Lemma (let r = to_u64 d &. mask52 in v r = v d % pow2 52 /\ felem_fits1 r 1)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_to_u64_mask52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
d: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (ensures (let r = Lib.IntTypes.to_u64 d &. Hacl.Spec.K256.Field52.Definitions.mask52 in Lib.IntTypes.v r = Lib.IntTypes.v d % Prims.pow2 52 /\ Hacl.Spec.K256.Field52.Definitions.felem_fits1 r 1))
{ "end_col": 52, "end_line": 475, "start_col": 32, "start_line": 471 }
FStar.Pervasives.Lemma
val lemma_bound_d10: d10:uint128 -> Lemma (requires v d10 <= 513 * (max52 * max52)) (ensures v d10 / pow2 64 < pow2 50)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_d10 d10 = lemma_u128_div64_max52 513 d10; assert_norm (513 < pow2 10); Math.Lemmas.lemma_mult_le_right (pow2 38) 513 (pow2 10); Math.Lemmas.pow2_plus 10 40
val lemma_bound_d10: d10:uint128 -> Lemma (requires v d10 <= 513 * (max52 * max52)) (ensures v d10 / pow2 64 < pow2 50) let lemma_bound_d10 d10 =
false
null
true
lemma_u128_div64_max52 513 d10; assert_norm (513 < pow2 10); Math.Lemmas.lemma_mult_le_right (pow2 38) 513 (pow2 10); Math.Lemmas.pow2_plus 10 40
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint128", "FStar.Math.Lemmas.pow2_plus", "Prims.unit", "FStar.Math.Lemmas.lemma_mult_le_right", "Prims.pow2", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_div64_max52" ]
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_d10: d10:uint128 -> Lemma (requires v d10 <= 513 * (max52 * max52)) (ensures v d10 / pow2 64 < pow2 50)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_d10
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
d10: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d10 <= 513 * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52)) (ensures Lib.IntTypes.v d10 / Prims.pow2 64 < Prims.pow2 50)
{ "end_col": 29, "end_line": 454, "start_col": 2, "start_line": 451 }
FStar.Pervasives.Lemma
val lemma_bound_mask52_rsh52: md:pos -> d:uint128 -> Lemma (requires v d <= md * (max52 * max52) /\ md <= 16385) (ensures (let r = to_u64 d &. mask52 in let k = d >>. 52ul in v r = v d % pow2 52 /\ v k = v d / pow2 52 /\ felem_fits1 r 1 /\ v k <= md * max52))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_mask52_rsh52 md d = lemma_u128_to_u64_mask52 d; lemma_u128_div52 md d
val lemma_bound_mask52_rsh52: md:pos -> d:uint128 -> Lemma (requires v d <= md * (max52 * max52) /\ md <= 16385) (ensures (let r = to_u64 d &. mask52 in let k = d >>. 52ul in v r = v d % pow2 52 /\ v k = v d / pow2 52 /\ felem_fits1 r 1 /\ v k <= md * max52)) let lemma_bound_mask52_rsh52 md d =
false
null
true
lemma_u128_to_u64_mask52 d; lemma_u128_div52 md d
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.pos", "Lib.IntTypes.uint128", "Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_div52", "Prims.unit", "Hacl.Spec.K256.Field52.Lemmas5.lemma_u128_to_u64_mask52" ]
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_mask52_rsh52: md:pos -> d:uint128 -> Lemma (requires v d <= md * (max52 * max52) /\ md <= 16385) (ensures (let r = to_u64 d &. mask52 in let k = d >>. 52ul in v r = v d % pow2 52 /\ v k = v d / pow2 52 /\ felem_fits1 r 1 /\ v k <= md * max52))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_mask52_rsh52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.pos -> d: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52) /\ md <= 16385) (ensures (let r = Lib.IntTypes.to_u64 d &. Hacl.Spec.K256.Field52.Defi...
{ "end_col": 23, "end_line": 486, "start_col": 2, "start_line": 485 }
FStar.Pervasives.Lemma
val lemma_bound_add_mul64_wide_r_lsh12 (md:nat) (d:uint128) (c:uint64) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 12801 /\ v c <= pow2 44) (ensures (let r = d +. mul64_wide (u64 0x1000003D10 <<. 12ul) c in v r = v d + 0x1000003D10 * pow2 12 * v c /\ v r <= (md + 1) * (max52 * max52)))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_add_mul64_wide_r_lsh12 md d c = let rs = u64 0x1000003D10 <<. 12ul in lemma_r_lsh12 (); Math.Lemmas.pow2_lt_compat 45 44; lemma_add_mul64_wide 49 45 md d rs c
val lemma_bound_add_mul64_wide_r_lsh12 (md:nat) (d:uint128) (c:uint64) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 12801 /\ v c <= pow2 44) (ensures (let r = d +. mul64_wide (u64 0x1000003D10 <<. 12ul) c in v r = v d + 0x1000003D10 * pow2 12 * v c /\ v r <= (md + 1) * (max52 * max52))) let lemma_bou...
false
null
true
let rs = u64 0x1000003D10 <<. 12ul in lemma_r_lsh12 (); Math.Lemmas.pow2_lt_compat 45 44; lemma_add_mul64_wide 49 45 md d rs c
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Lemmas5.lemma_add_mul64_wide", "Prims.unit", "FStar.Math.Lemmas.pow2_lt_compat", "Hacl.Spec.K256.Field52.Lemmas5.lemma_r_lsh12", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Less...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_add_mul64_wide_r_lsh12 (md:nat) (d:uint128) (c:uint64) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 12801 /\ v c <= pow2 44) (ensures (let r = d +. mul64_wide (u64 0x1000003D10 <<. 12ul) c in v r = v d + 0x1000003D10 * pow2 12 * v c /\ v r <= (md + 1) * (max52 * max52)))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_add_mul64_wide_r_lsh12
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> c: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52) /\ md <= 12801 /\ Lib.IntTypes.v c <= Prims.pow2 44) (ensures ...
{ "end_col": 38, "end_line": 347, "start_col": 47, "start_line": 343 }
FStar.Pervasives.Lemma
val lemma_bound_rsh64_to: a:uint128 -> Lemma (v (to_u64 (a >>. 64ul)) = v a / pow2 64)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_rsh64_to a = let r = to_u64 (a >>. 64ul) in assert (v r == (v a / pow2 64) % pow2 64); Math.Lemmas.lemma_div_lt (v a) 128 64; Math.Lemmas.small_mod (v a / pow2 64) (pow2 64)
val lemma_bound_rsh64_to: a:uint128 -> Lemma (v (to_u64 (a >>. 64ul)) = v a / pow2 64) let lemma_bound_rsh64_to a =
false
null
true
let r = to_u64 (a >>. 64ul) in assert (v r == (v a / pow2 64) % pow2 64); Math.Lemmas.lemma_div_lt (v a) 128 64; Math.Lemmas.small_mod (v a / pow2 64) (pow2 64)
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint128", "FStar.Math.Lemmas.small_mod", "Prims.op_Division", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.lemma_div_lt", "Prims._assert", "Prims.eq2", "Prims.int", "Lib.IntTypes.U64", "Prims.op_Modulus", "Lib.Int...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_rsh64_to: a:uint128 -> Lemma (v (to_u64 (a >>. 64ul)) = v a / pow2 64)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_rsh64_to
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (ensures Lib.IntTypes.v (Lib.IntTypes.to_u64 (a >>. 64ul)) = Lib.IntTypes.v a / Prims.pow2 64)
{ "end_col": 49, "end_line": 464, "start_col": 28, "start_line": 460 }
FStar.Pervasives.Lemma
val lemma_four_sqr64_wide (a0 a1 a2 a3:uint64) : Lemma (requires felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64) (ensures (let d = mul64_wide (a0 *. u64 2) a3 +. mul64_wide (a1 *. u64 2) a2 in v d = v a0 * v a3 + v a1 * v a2 + v a2 * v a1 + v a3 * v a0 /\ v d <= ...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_four_sqr64_wide a0 a1 a2 a3 = let r0 = a0 *. u64 2 in let r1 = a1 *. u64 2 in lemma_mul_by2 64 max52 a0; lemma_mul_by2 64 max52 a1; assert (v r0 = v a0 * 2 /\ v r1 = v a1 * 2); lemma_bound_mul64_wide 128 64 max52 max52 r0 a3; lemma_bound_mul64_wide 128 64 max52 max52 r1 a2; assert (v a0 * 2 *...
val lemma_four_sqr64_wide (a0 a1 a2 a3:uint64) : Lemma (requires felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64) (ensures (let d = mul64_wide (a0 *. u64 2) a3 +. mul64_wide (a1 *. u64 2) a2 in v d = v a0 * v a3 + v a1 * v a2 + v a2 * v a1 + v a3 * v a0 /\ v d <= ...
false
null
true
let r0 = a0 *. u64 2 in let r1 = a1 *. u64 2 in lemma_mul_by2 64 max52 a0; lemma_mul_by2 64 max52 a1; assert (v r0 = v a0 * 2 /\ v r1 = v a1 * 2); lemma_bound_mul64_wide 128 64 max52 max52 r0 a3; lemma_bound_mul64_wide 128 64 max52 max52 r1 a2; assert ((v a0 * 2) * v a3 + (v a1 * 2) * v a2 <= 16384 * (max52 * max52)); ...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint64", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.Calc.calc_init...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_four_sqr64_wide (a0 a1 a2 a3:uint64) : Lemma (requires felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64) (ensures (let d = mul64_wide (a0 *. u64 2) a3 +. mul64_wide (a1 *. u64 2) a2 in v d = v a0 * v a3 + v a1 * v a2 + v a2 * v a1 + v a3 * v a0 /\ v d <= ...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_four_sqr64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Hacl.Spec.K256.Field52.Definitions.felem_fits1 a0 64 /\ Hacl.Spec.K256.Field52.Definitions.felem_fits1 a1 64 /\ Hacl.Spec.K256.Fie...
{ "end_col": 3, "end_line": 629, "start_col": 39, "start_line": 610 }
FStar.Pervasives.Lemma
val lemma_bound_mask52_rsh52_sp: d:uint128 -> Lemma (requires v d < pow2 100) (ensures (let r = to_u64 d &. mask52 in let k = to_u64 (d >>. 52ul) in v r = v d % pow2 52 /\ v k = v d / pow2 52 /\ felem_fits1 r 1 /\ v k < pow2 48))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_mask52_rsh52_sp d = let r = to_u64 d &. mask52 in lemma_u128_to_u64_mask52 d; let k = to_u64 (d >>. 52ul) in assert (v k == v d / pow2 52 % pow2 64); Math.Lemmas.lemma_div_lt (v d) 100 52; Math.Lemmas.pow2_lt_compat 64 48; Math.Lemmas.small_mod (v d / pow2 52) (pow2 64)
val lemma_bound_mask52_rsh52_sp: d:uint128 -> Lemma (requires v d < pow2 100) (ensures (let r = to_u64 d &. mask52 in let k = to_u64 (d >>. 52ul) in v r = v d % pow2 52 /\ v k = v d / pow2 52 /\ felem_fits1 r 1 /\ v k < pow2 48)) let lemma_bound_mask52_rsh52_sp d =
false
null
true
let r = to_u64 d &. mask52 in lemma_u128_to_u64_mask52 d; let k = to_u64 (d >>. 52ul) in assert (v k == v d / pow2 52 % pow2 64); Math.Lemmas.lemma_div_lt (v d) 100 52; Math.Lemmas.pow2_lt_compat 64 48; Math.Lemmas.small_mod (v d / pow2 52) (pow2 64)
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint128", "FStar.Math.Lemmas.small_mod", "Prims.op_Division", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.pow2_lt_compat", "FStar.Math.Lemmas.lemma_div_lt", "Prims._assert", "Prims.eq2", "Prims.int", "Lib.IntTypes....
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_mask52_rsh52_sp: d:uint128 -> Lemma (requires v d < pow2 100) (ensures (let r = to_u64 d &. mask52 in let k = to_u64 (d >>. 52ul) in v r = v d % pow2 52 /\ v k = v d / pow2 52 /\ felem_fits1 r 1 /\ v k < pow2 48))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_mask52_rsh52_sp
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
d: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d < Prims.pow2 100) (ensures (let r = Lib.IntTypes.to_u64 d &. Hacl.Spec.K256.Field52.Definitions.mask52 in let k = Lib.IntTypes.to_u64 (d >>. 52ul) in Lib.IntTypes.v r = Lib.IntTypes.v d % Prims.pow2 52 /\ ...
{ "end_col": 49, "end_line": 527, "start_col": 35, "start_line": 519 }
FStar.Pervasives.Lemma
val lemma_r_lsh12: unit -> Lemma (let rs = u64 0x1000003D10 <<. 12ul in v rs = 0x1000003D10 * pow2 12 /\ v rs < pow2 49)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_r_lsh12 () = let rs = u64 0x1000003D10 <<. 12ul in assert_norm (0x1000003D10 < pow2 37); assert (v rs = 0x1000003D10 * pow2 12 % pow2 64); calc (<) { 0x1000003D10 * pow2 12; (<) { Math.Lemmas.lemma_mult_lt_right (pow2 12) 0x1000003D10 (pow2 37) } pow2 37 * pow2 12; (==) { Math.Lemmas....
val lemma_r_lsh12: unit -> Lemma (let rs = u64 0x1000003D10 <<. 12ul in v rs = 0x1000003D10 * pow2 12 /\ v rs < pow2 49) let lemma_r_lsh12 () =
false
null
true
let rs = u64 0x1000003D10 <<. 12ul in assert_norm (0x1000003D10 < pow2 37); assert (v rs = 0x1000003D10 * pow2 12 % pow2 64); calc ( < ) { 0x1000003D10 * pow2 12; ( < ) { Math.Lemmas.lemma_mult_lt_right (pow2 12) 0x1000003D10 (pow2 37) } pow2 37 * pow2 12; ( == ) { Math.Lemmas.pow2_plus 12 37 } pow2 49; }; Ma...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.unit", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Prims.pow2", "FStar.Math.Lemmas.small_mod", "FStar.Math.Lemmas.pow2_lt_compat", "FStar.Calc.calc_finish", "Prims.op_LessThan", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_r_lsh12: unit -> Lemma (let rs = u64 0x1000003D10 <<. 12ul in v rs = 0x1000003D10 * pow2 12 /\ v rs < pow2 49)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_r_lsh12
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> FStar.Pervasives.Lemma (ensures (let rs = Lib.IntTypes.u64 0x1000003D10 <<. 12ul in Lib.IntTypes.v rs = 0x1000003D10 * Prims.pow2 12 /\ Lib.IntTypes.v rs < Prims.pow2 49))
{ "end_col": 40, "end_line": 286, "start_col": 22, "start_line": 271 }
FStar.Pervasives.Lemma
val lemma_r_rsh4: unit -> Lemma (let rs = u64 0x1000003D10 >>. 4ul in v rs = 0x1000003D10 / pow2 4 /\ v rs < pow2 33)
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_r_rsh4 () = let rs = u64 0x1000003D10 >>. 4ul in assert_norm (0x1000003D10 < pow2 37); Math.Lemmas.lemma_div_lt 0x1000003D10 37 4
val lemma_r_rsh4: unit -> Lemma (let rs = u64 0x1000003D10 >>. 4ul in v rs = 0x1000003D10 / pow2 4 /\ v rs < pow2 33) let lemma_r_rsh4 () =
false
null
true
let rs = u64 0x1000003D10 >>. 4ul in assert_norm (0x1000003D10 < pow2 37); Math.Lemmas.lemma_div_lt 0x1000003D10 37 4
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.unit", "FStar.Math.Lemmas.lemma_div_lt", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Greater_Greater_Dot", "Lib.IntTypes.u64", "FStar.UInt32.__uint_to_t" ]
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_r_rsh4: unit -> Lemma (let rs = u64 0x1000003D10 >>. 4ul in v rs = 0x1000003D10 / pow2 4 /\ v rs < pow2 33)
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_r_rsh4
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> FStar.Pervasives.Lemma (ensures (let rs = Lib.IntTypes.u64 0x1000003D10 >>. 4ul in Lib.IntTypes.v rs = 0x1000003D10 / Prims.pow2 4 /\ Lib.IntTypes.v rs < Prims.pow2 33))
{ "end_col": 44, "end_line": 296, "start_col": 21, "start_line": 293 }
FStar.Pervasives.Lemma
val lemma_bound_add_mul64_wide_r (md:nat) (d c:uint128) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 16384) (ensures (let r = d +. mul64_wide (u64 0x1000003D10) (to_u64 c) in v r = v d + 0x1000003D10 * (v c % pow2 64) /\ v r <= (md + 1) * (max52 * max52)))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_add_mul64_wide_r md d c = assert_norm (0x1000003D10 < pow2 37); lemma_add_mul64_wide 37 64 md d (u64 0x1000003D10) (to_u64 c)
val lemma_bound_add_mul64_wide_r (md:nat) (d c:uint128) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 16384) (ensures (let r = d +. mul64_wide (u64 0x1000003D10) (to_u64 c) in v r = v d + 0x1000003D10 * (v c % pow2 64) /\ v r <= (md + 1) * (max52 * max52))) let lemma_bound_add_mul64_wide_r md d c =
false
null
true
assert_norm (0x1000003D10 < pow2 37); lemma_add_mul64_wide 37 64 md d (u64 0x1000003D10) (to_u64 c)
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Hacl.Spec.K256.Field52.Lemmas5.lemma_add_mul64_wide", "Lib.IntTypes.u64", "Lib.IntTypes.to_u64", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2" ]
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_add_mul64_wide_r (md:nat) (d c:uint128) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 16384) (ensures (let r = d +. mul64_wide (u64 0x1000003D10) (to_u64 c) in v r = v d + 0x1000003D10 * (v c % pow2 64) /\ v r <= (md + 1) * (max52 * max52)))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_add_mul64_wide_r
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> c: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52) /\ md <= 16384) (ensures (let r = d +. Lib.IntT...
{ "end_col": 63, "end_line": 335, "start_col": 2, "start_line": 334 }
FStar.Pervasives.Lemma
val lemma_bound_mask48_rsh48: t4:uint64 -> Lemma (requires felem_fits1 t4 1) (ensures (let tx = t4 >>. 48ul in let r = t4 &. mask48 in v tx = v t4 / pow2 48 /\ v r = v t4 % pow2 48 /\ felem_fits_last1 r 1 /\ v tx < pow2 4))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_mask48_rsh48 t4 = LD.lemma_mask48 t4; Math.Lemmas.lemma_div_lt (v t4) 52 48
val lemma_bound_mask48_rsh48: t4:uint64 -> Lemma (requires felem_fits1 t4 1) (ensures (let tx = t4 >>. 48ul in let r = t4 &. mask48 in v tx = v t4 / pow2 48 /\ v r = v t4 % pow2 48 /\ felem_fits_last1 r 1 /\ v tx < pow2 4)) let lemma_bound_mask48_rsh48 t4 =
false
null
true
LD.lemma_mask48 t4; Math.Lemmas.lemma_div_lt (v t4) 52 48
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint64", "FStar.Math.Lemmas.lemma_div_lt", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.unit", "Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_mask48" ]
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_mask48_rsh48: t4:uint64 -> Lemma (requires felem_fits1 t4 1) (ensures (let tx = t4 >>. 48ul in let r = t4 &. mask48 in v tx = v t4 / pow2 48 /\ v r = v t4 % pow2 48 /\ felem_fits_last1 r 1 /\ v tx < pow2 4))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_mask48_rsh48
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Hacl.Spec.K256.Field52.Definitions.felem_fits1 t4 1) (ensures (let tx = t4 >>. 48ul in let r = t4 &. Hacl.Spec.K256.Field52.Definitions.mask48 in Lib.IntTypes.v tx = Lib.IntTypes.v t4 / Prims.pow2 48 /\ Lib.IntType...
{ "end_col": 39, "end_line": 510, "start_col": 2, "start_line": 509 }
FStar.Pervasives.Lemma
val lemma_bound_add_mul64_wide_r_rsh4 (md:nat) (d:uint128) (c:uint64) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 4096 /\ v c < pow2 56) (ensures (let r = d +. mul64_wide c (u64 0x1000003D10 >>. 4ul) in v r = v d + v c * (0x1000003D10 / pow2 4) /\ v r <= (md + 1) * (max52 * max52)))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_add_mul64_wide_r_rsh4 md d c = let rs = u64 0x1000003D10 >>. 4ul in lemma_r_rsh4 (); lemma_add_mul64_wide 33 56 md d rs c
val lemma_bound_add_mul64_wide_r_rsh4 (md:nat) (d:uint128) (c:uint64) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 4096 /\ v c < pow2 56) (ensures (let r = d +. mul64_wide c (u64 0x1000003D10 >>. 4ul) in v r = v d + v c * (0x1000003D10 / pow2 4) /\ v r <= (md + 1) * (max52 * max52))) let lemma_bound_...
false
null
true
let rs = u64 0x1000003D10 >>. 4ul in lemma_r_rsh4 (); lemma_add_mul64_wide 33 56 md d rs c
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Lemmas5.lemma_add_mul64_wide", "Prims.unit", "Hacl.Spec.K256.Field52.Lemmas5.lemma_r_rsh4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Greater_Greater_Dot", "Lib.IntTypes.u64",...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_add_mul64_wide_r_rsh4 (md:nat) (d:uint128) (c:uint64) : Lemma (requires v d <= md * (max52 * max52) /\ md <= 4096 /\ v c < pow2 56) (ensures (let r = d +. mul64_wide c (u64 0x1000003D10 >>. 4ul) in v r = v d + v c * (0x1000003D10 / pow2 4) /\ v r <= (md + 1) * (max52 * max52)))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_add_mul64_wide_r_rsh4
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> c: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52) /\ md <= 4096 /\ Lib.IntTypes.v c < Prims.pow2 56) (ensures ...
{ "end_col": 38, "end_line": 358, "start_col": 46, "start_line": 355 }
FStar.Pervasives.Lemma
val lemma_add_two_mul64_wide52 (md:nat) (d:uint128) (a0 a1 b0 b1:uint64) : Lemma (requires v d <= md * max52 /\ md <= 4097 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64) (ensures (let d1 = d +. mul64_wide a0 b1 +. mul64_wide a1 b0 in v d1 == v d + v a0 * v b1...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_two_mul64_wide52 md d a0 a1 b0 b1 = lemma_bound_mul64_wide 64 64 max52 max52 a0 b1; lemma_bound_mul64_wide 64 64 max52 max52 a1 b0; assert (v d + v a0 * v b1 + v a1 * v b0 <= md * max52 + 8192 * (max52 * max52)); calc (<=) { md * max52 + 8192 * (max52 * max52); (<=) { assert_norm (4097 < ...
val lemma_add_two_mul64_wide52 (md:nat) (d:uint128) (a0 a1 b0 b1:uint64) : Lemma (requires v d <= md * max52 /\ md <= 4097 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64) (ensures (let d1 = d +. mul64_wide a0 b1 +. mul64_wide a1 b0 in v d1 == v d + v a0 * v b1...
false
null
true
lemma_bound_mul64_wide 64 64 max52 max52 a0 b1; lemma_bound_mul64_wide 64 64 max52 max52 a1 b0; assert (v d + v a0 * v b1 + v a1 * v b0 <= md * max52 + 8192 * (max52 * max52)); calc ( <= ) { md * max52 + 8192 * (max52 * max52); ( <= ) { (assert_norm (4097 < max52); Math.Lemmas.lemma_mult_le_right max52 md max52...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_two_mul64_wide52 (md:nat) (d:uint128) (a0 a1 b0 b1:uint64) : Lemma (requires v d <= md * max52 /\ md <= 4097 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64) (ensures (let d1 = d +. mul64_wide a0 b1 +. mul64_wide a1 b0 in v d1 == v d + v a0 * v b1...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_two_mul64_wide52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> b0: Lib.IntTypes.uint64 -> b1: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 4097 /\ Hac...
{ "end_col": 68, "end_line": 233, "start_col": 2, "start_line": 219 }
FStar.Pervasives.Lemma
val lemma_add_three_mul64_wide52 (md:nat) (d:uint128) (a0 a1 a2 b0 b1 b2:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8194 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64) (ensures (let d1 = d +. mul64_wide a0 b...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_three_mul64_wide52 md d a0 a1 a2 b0 b1 b2 = lemma_bound_mul64_wide 64 64 max52 max52 a0 b2; lemma_bound_mul64_wide 64 64 max52 max52 a1 b1; lemma_bound_mul64_wide 64 64 max52 max52 a2 b0; assert (v d + v a0 * v b2 + v a1 * v b1 + v a2 * v b0 <= md * max52 + 12288 * (max52 * max52)); calc (<...
val lemma_add_three_mul64_wide52 (md:nat) (d:uint128) (a0 a1 a2 b0 b1 b2:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8194 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64) (ensures (let d1 = d +. mul64_wide a0 b...
false
null
true
lemma_bound_mul64_wide 64 64 max52 max52 a0 b2; lemma_bound_mul64_wide 64 64 max52 max52 a1 b1; lemma_bound_mul64_wide 64 64 max52 max52 a2 b0; assert (v d + v a0 * v b2 + v a1 * v b1 + v a2 * v b0 <= md * max52 + 12288 * (max52 * max52)); calc ( <= ) { md * max52 + 12288 * (max52 * max52); ( <= ) { (assert_norm (8...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_three_mul64_wide52 (md:nat) (d:uint128) (a0 a1 a2 b0 b1 b2:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8194 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64) (ensures (let d1 = d +. mul64_wide a0 b...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_three_mul64_wide52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> b0: Lib.IntTypes.uint64 -> b1: Lib.IntTypes.uint64 -> b2: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Sp...
{ "end_col": 82, "end_line": 170, "start_col": 2, "start_line": 153 }
FStar.Pervasives.Lemma
val lemma_mul_by2: m:nat -> max:nat -> a:uint64 -> Lemma (requires v a <= m * max /\ 2 * m <= 4096 /\ max <= max52) (ensures (let r = a *. u64 2 in v r = v a * 2 /\ v r <= (2 * m) * max))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_mul_by2 m max a = let r = a *. u64 2 in calc (<=) { v a * 2; (<=) { Math.Lemmas.lemma_mult_le_right 2 (v a) (m * max) } m * max * 2; (==) { Math.Lemmas.swap_mul (m * max) 2 } 2 * (m * max); (==) { Math.Lemmas.paren_mul_right 2 m max } 2 * m * max; }; assert (v a * 2 <= 2 ...
val lemma_mul_by2: m:nat -> max:nat -> a:uint64 -> Lemma (requires v a <= m * max /\ 2 * m <= 4096 /\ max <= max52) (ensures (let r = a *. u64 2 in v r = v a * 2 /\ v r <= (2 * m) * max)) let lemma_mul_by2 m max a =
false
null
true
let r = a *. u64 2 in calc ( <= ) { v a * 2; ( <= ) { Math.Lemmas.lemma_mult_le_right 2 (v a) (m * max) } (m * max) * 2; ( == ) { Math.Lemmas.swap_mul (m * max) 2 } 2 * (m * max); ( == ) { Math.Lemmas.paren_mul_right 2 m max } (2 * m) * max; }; assert (v a * 2 <= (2 * m) * max); ML.lemma_ab_le_cd (2 * m) ...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "FStar.Mul.op_Star", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.K256.Field52.Definitions.max52", "Hacl....
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_mul_by2: m:nat -> max:nat -> a:uint64 -> Lemma (requires v a <= m * max /\ 2 * m <= 4096 /\ max <= max52) (ensures (let r = a *. u64 2 in v r = v a * 2 /\ v r <= (2 * m) * max))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_mul_by2
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
m: Prims.nat -> max: Prims.nat -> a: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a <= m * max /\ 2 * m <= 4096 /\ max <= Hacl.Spec.K256.Field52.Definitions.max52) (ensures (let r = a *. Lib.IntTypes.u64 2 in Lib.IntTypes.v r = Lib.IntTypes.v a *...
{ "end_col": 43, "end_line": 598, "start_col": 27, "start_line": 583 }
FStar.Pervasives.Lemma
val lemma_bound_add_mul64_wide_r_mask52 (md:pos) (d8 c5:uint128) : Lemma (requires v d8 <= md * (max52 * max52) /\ v c5 <= md * (max52 * max52) /\ md <= 8193) (ensures (let r = c5 +. mul64_wide (to_u64 d8 &. mask52) (u64 0x1000003D10) in let d9 = d8 >>. 52ul in v d9 = v d8 / pow2 52 /\ v d9 <= md * max52 /\ ...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_add_mul64_wide_r_mask52 md d8 c5 = let tm = to_u64 d8 &. mask52 in lemma_bound_mask52_rsh52 md d8; assert_norm (0x1000003D10 < pow2 37); lemma_add_mul64_wide 64 37 md c5 tm (u64 0x1000003D10)
val lemma_bound_add_mul64_wide_r_mask52 (md:pos) (d8 c5:uint128) : Lemma (requires v d8 <= md * (max52 * max52) /\ v c5 <= md * (max52 * max52) /\ md <= 8193) (ensures (let r = c5 +. mul64_wide (to_u64 d8 &. mask52) (u64 0x1000003D10) in let d9 = d8 >>. 52ul in v d9 = v d8 / pow2 52 /\ v d9 <= md * max52 /\ ...
false
null
true
let tm = to_u64 d8 &. mask52 in lemma_bound_mask52_rsh52 md d8; assert_norm (0x1000003D10 < pow2 37); lemma_add_mul64_wide 64 37 md c5 tm (u64 0x1000003D10)
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.pos", "Lib.IntTypes.uint128", "Hacl.Spec.K256.Field52.Lemmas5.lemma_add_mul64_wide", "Lib.IntTypes.u64", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_mask52_rsh52", "Lib.IntTypes.int_t", "Lib.In...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_add_mul64_wide_r_mask52 (md:pos) (d8 c5:uint128) : Lemma (requires v d8 <= md * (max52 * max52) /\ v c5 <= md * (max52 * max52) /\ md <= 8193) (ensures (let r = c5 +. mul64_wide (to_u64 d8 &. mask52) (u64 0x1000003D10) in let d9 = d8 >>. 52ul in v d9 = v d8 / pow2 52 /\ v d9 <= md * max52 /\ ...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_add_mul64_wide_r_mask52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.pos -> d8: Lib.IntTypes.uint128 -> c5: Lib.IntTypes.uint128 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d8 <= md * (Hacl.Spec.K256.Field52.Definitions.max52 * Hacl.Spec.K256.Field52.Definitions.max52) /\ Lib.IntTypes.v c5 <= md * (Hacl.Spec.K256.Field52.Definitio...
{ "end_col": 56, "end_line": 499, "start_col": 50, "start_line": 495 }
FStar.Pervasives.Lemma
val lemma_add_two_mul64_wide (md:nat) (d:uint128) (a3 a4 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8193 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fits_last1 b4 64) (ensures (let d1 = d +. mul64_wide a3 b4 +. mul64_wide a4 b3 in v d1 == v d + v a...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_two_mul64_wide md d a3 a4 b3 b4 = lemma_bound_mul64_wide 64 64 max52 max48 a3 b4; lemma_bound_mul64_wide 64 64 max48 max52 a4 b3; Math.Lemmas.swap_mul max52 max48; assert (v d + v a3 * v b4 + v a4 * v b3 <= md * max52 + 8192 * (max52 * max48)); calc (<) { md * max52 + 8192 * (max52 * max48)...
val lemma_add_two_mul64_wide (md:nat) (d:uint128) (a3 a4 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8193 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fits_last1 b4 64) (ensures (let d1 = d +. mul64_wide a3 b4 +. mul64_wide a4 b3 in v d1 == v d + v a...
false
null
true
lemma_bound_mul64_wide 64 64 max52 max48 a3 b4; lemma_bound_mul64_wide 64 64 max48 max52 a4 b3; Math.Lemmas.swap_mul max52 max48; assert (v d + v a3 * v b4 + v a4 * v b3 <= md * max52 + 8192 * (max52 * max48)); calc ( < ) { md * max52 + 8192 * (max52 * max48); ( < ) { lemma_16_max52_max48 512 } md * max52 + 512 *...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_two_mul64_wide (md:nat) (d:uint128) (a3 a4 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8193 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fits_last1 b4 64) (ensures (let d1 = d +. mul64_wide a3 b4 +. mul64_wide a4 b3 in v d1 == v d + v a...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_two_mul64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> b3: Lib.IntTypes.uint64 -> b4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 8193 /\ Hac...
{ "end_col": 68, "end_line": 264, "start_col": 2, "start_line": 247 }
FStar.Pervasives.Lemma
val lemma_add_mul64_wide (pa pb md:nat) (d:uint128) (a b:uint64) : Lemma (requires v a < pow2 pa /\ v b < pow2 pb /\ md + 1 <= 16385 /\ // md + 1 <= pow2 24 v d <= md * (max52 * max52) /\ pa + pb <= 103) (ensures (let r = d +. mul64_wide a b in v r = v d + v a * v b /\ v r <= (md + 1) * (max52 * max52))...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_mul64_wide pa pb md d a b = let r = d +. mul64_wide a b in lemma_bound_mul64_wide 1 1 (pow2 pa) (pow2 pb) a b; assert (v d + v a * v b <= md * (max52 * max52) + pow2 pa * pow2 pb); calc (<) { md * (max52 * max52) + pow2 pa * pow2 pb; (==) { Math.Lemmas.pow2_plus pa pb } md * (max52 * ...
val lemma_add_mul64_wide (pa pb md:nat) (d:uint128) (a b:uint64) : Lemma (requires v a < pow2 pa /\ v b < pow2 pb /\ md + 1 <= 16385 /\ // md + 1 <= pow2 24 v d <= md * (max52 * max52) /\ pa + pb <= 103) (ensures (let r = d +. mul64_wide a b in v r = v d + v a * v b /\ v r <= (md + 1) * (max52 * max52))...
false
null
true
let r = d +. mul64_wide a b in lemma_bound_mul64_wide 1 1 (pow2 pa) (pow2 pb) a b; assert (v d + v a * v b <= md * (max52 * max52) + pow2 pa * pow2 pb); calc ( < ) { md * (max52 * max52) + pow2 pa * pow2 pb; ( == ) { Math.Lemmas.pow2_plus pa pb } md * (max52 * max52) + pow2 (pa + pb); ( <= ) { Math.Lemmas.pow2_...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_mul64_wide (pa pb md:nat) (d:uint128) (a b:uint64) : Lemma (requires v a < pow2 pa /\ v b < pow2 pb /\ md + 1 <= 16385 /\ // md + 1 <= pow2 24 v d <= md * (max52 * max52) /\ pa + pb <= 103) (ensures (let r = d +. mul64_wide a b in v r = v d + v a * v b /\ v r <= (md + 1) * (max52 * max52))...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_mul64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
pa: Prims.nat -> pb: Prims.nat -> md: Prims.nat -> d: Lib.IntTypes.uint128 -> a: Lib.IntTypes.uint64 -> b: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a < Prims.pow2 pa /\ Lib.IntTypes.v b < Prims.pow2 pb /\ md + 1 <= 16385 /\ Lib.IntTypes.v d ...
{ "end_col": 52, "end_line": 325, "start_col": 41, "start_line": 306 }
FStar.Pervasives.Lemma
val lemma_tx_logor_u0_lsh4 (tx u0:uint64) : Lemma (requires v tx < pow2 4 /\ felem_fits1 u0 1) (ensures (let u0' = tx |. (u0 <<. 4ul) in v u0' == v tx + v u0 * pow2 4 /\ v u0' < pow2 56))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_tx_logor_u0_lsh4 tx u0 = let u0' = tx |. (u0 <<. 4ul) in assert (v (u0 <<. 4ul) = v u0 * pow2 4 % pow2 64); calc (<=) { v u0 * pow2 4; (<=) { Math.Lemmas.lemma_mult_le_right (pow2 4) (v u0) (pow2 52 - 1) } (pow2 52 - 1) * pow2 4; (==) { Math.Lemmas.distributivity_sub_left (pow2 52) 1 (p...
val lemma_tx_logor_u0_lsh4 (tx u0:uint64) : Lemma (requires v tx < pow2 4 /\ felem_fits1 u0 1) (ensures (let u0' = tx |. (u0 <<. 4ul) in v u0' == v tx + v u0 * pow2 4 /\ v u0' < pow2 56)) let lemma_tx_logor_u0_lsh4 tx u0 =
false
null
true
let u0' = tx |. (u0 <<. 4ul) in assert (v (u0 <<. 4ul) = v u0 * pow2 4 % pow2 64); calc ( <= ) { v u0 * pow2 4; ( <= ) { Math.Lemmas.lemma_mult_le_right (pow2 4) (v u0) (pow2 52 - 1) } (pow2 52 - 1) * pow2 4; ( == ) { Math.Lemmas.distributivity_sub_left (pow2 52) 1 (pow2 4) } pow2 52 * pow2 4 - pow2 4; ( ==...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Lib.IntTypes.uint64", "Prims._assert", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.pow2", "Prims.unit", "Prims.eq2", "Prims.int", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.logor_disjoint", "Lib.IntTypes.op_Less_Less_Do...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_tx_logor_u0_lsh4 (tx u0:uint64) : Lemma (requires v tx < pow2 4 /\ felem_fits1 u0 1) (ensures (let u0' = tx |. (u0 <<. 4ul) in v u0' == v tx + v u0 * pow2 4 /\ v u0' < pow2 56))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_tx_logor_u0_lsh4
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
tx: Lib.IntTypes.uint64 -> u0: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v tx < Prims.pow2 4 /\ Hacl.Spec.K256.Field52.Definitions.felem_fits1 u0 1) (ensures (let u0' = tx |. u0 <<. 4ul in Lib.IntTypes.v u0' == Lib.IntTypes.v tx + Lib.IntTypes.v u0 * Pr...
{ "end_col": 26, "end_line": 558, "start_col": 34, "start_line": 535 }
FStar.Pervasives.Lemma
val lemma_add_four_mul64_wide (md:nat) (d:uint128) (a1 a2 a3 a4 b1 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 12802 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fi...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_four_mul64_wide md d a1 a2 a3 a4 b1 b2 b3 b4 = lemma_bound_mul64_wide 64 64 max52 max48 a1 b4; lemma_bound_mul64_wide 64 64 max52 max52 a2 b3; lemma_bound_mul64_wide 64 64 max52 max52 a3 b2; lemma_bound_mul64_wide 64 64 max48 max52 a4 b1; assert (v d + v a1 * v b4 + v a2 * v b3 + v a3 * v b2 + v...
val lemma_add_four_mul64_wide (md:nat) (d:uint128) (a1 a2 a3 a4 b1 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 12802 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fi...
false
null
true
lemma_bound_mul64_wide 64 64 max52 max48 a1 b4; lemma_bound_mul64_wide 64 64 max52 max52 a2 b3; lemma_bound_mul64_wide 64 64 max52 max52 a3 b2; lemma_bound_mul64_wide 64 64 max48 max52 a4 b1; assert (v d + v a1 * v b4 + v a2 * v b3 + v a3 * v b2 + v a4 * v b1 <= md * max52 + 8192 * (max52 * max48) + 8192 * (max52 *...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_four_mul64_wide (md:nat) (d:uint128) (a1 a2 a3 a4 b1 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 12802 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fi...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_four_mul64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> b1: Lib.IntTypes.uint64 -> b2: Lib.IntTypes.uint64 -> b3: Lib.IntTypes.uint64 -> b4: Lib.IntTypes.uint64 -> FStar.Pervasives....
{ "end_col": 96, "end_line": 138, "start_col": 2, "start_line": 117 }
FStar.Pervasives.Lemma
val lemma_add_three_mul64_wide (md:nat) (d:uint128) (a2 a3 a4 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8705 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fits_last1 b4 64) (ensures (let d1 = d +. mul64_w...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_three_mul64_wide md d a2 a3 a4 b2 b3 b4 = lemma_bound_mul64_wide 64 64 max52 max48 a2 b4; lemma_bound_mul64_wide 64 64 max52 max52 a3 b3; lemma_bound_mul64_wide 64 64 max48 max52 a4 b2; Math.Lemmas.swap_mul max52 max48; assert (v d + v a2 * v b4 + v a3 * v b3 + v a4 * v b2 <= md * max52 + 81...
val lemma_add_three_mul64_wide (md:nat) (d:uint128) (a2 a3 a4 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8705 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fits_last1 b4 64) (ensures (let d1 = d +. mul64_w...
false
null
true
lemma_bound_mul64_wide 64 64 max52 max48 a2 b4; lemma_bound_mul64_wide 64 64 max52 max52 a3 b3; lemma_bound_mul64_wide 64 64 max48 max52 a4 b2; Math.Lemmas.swap_mul max52 max48; assert (v d + v a2 * v b4 + v a3 * v b3 + v a4 * v b2 <= md * max52 + 8192 * (max52 * max48) + 4096 * (max52 * max52)); calc ( < ) { md ...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_three_mul64_wide (md:nat) (d:uint128) (a2 a3 a4 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8705 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_fits1 b3 64 /\ felem_fits_last1 a4 64 /\ felem_fits_last1 b4 64) (ensures (let d1 = d +. mul64_w...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_three_mul64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> b2: Lib.IntTypes.uint64 -> b3: Lib.IntTypes.uint64 -> b4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Sp...
{ "end_col": 82, "end_line": 205, "start_col": 2, "start_line": 185 }
FStar.Pervasives.Lemma
val lemma_add_five_mul64_wide (md:nat) (d:uint128) (a0 a1 a2 a3 a4 b0 b1 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 16385 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_f...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_five_mul64_wide md d a0 a1 a2 a3 a4 b0 b1 b2 b3 b4 = lemma_bound_mul64_wide 64 64 max52 max48 a0 b4; lemma_bound_mul64_wide 64 64 max52 max52 a1 b3; lemma_bound_mul64_wide 64 64 max52 max52 a2 b2; lemma_bound_mul64_wide 64 64 max52 max52 a3 b1; lemma_bound_mul64_wide 64 64 max48 max52 a4 b0; M...
val lemma_add_five_mul64_wide (md:nat) (d:uint128) (a0 a1 a2 a3 a4 b0 b1 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 16385 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_f...
false
null
true
lemma_bound_mul64_wide 64 64 max52 max48 a0 b4; lemma_bound_mul64_wide 64 64 max52 max52 a1 b3; lemma_bound_mul64_wide 64 64 max52 max52 a2 b2; lemma_bound_mul64_wide 64 64 max52 max52 a3 b1; lemma_bound_mul64_wide 64 64 max48 max52 a4 b0; Math.Lemmas.swap_mul max52 max48; assert (v d + v a0 * v b4 + v a1 * v b3 + v a2...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_five_mul64_wide (md:nat) (d:uint128) (a0 a1 a2 a3 a4 b0 b1 b2 b3 b4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 16385 /\ felem_fits1 a0 64 /\ felem_fits1 b0 64 /\ felem_fits1 a1 64 /\ felem_fits1 b1 64 /\ felem_fits1 a2 64 /\ felem_fits1 b2 64 /\ felem_fits1 a3 64 /\ felem_f...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_five_mul64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> b0: Lib.IntTypes.uint64 -> b1: Lib.IntTypes.uint64 -> b2: Lib.IntTypes.uint64 -> b3: Lib.IntType...
{ "end_col": 110, "end_line": 100, "start_col": 2, "start_line": 76 }
FStar.Pervasives.Lemma
val lemma_add_three_sqr64_wide52 (md:nat) (d:uint128) (a0 a1 a2:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8194 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64) (ensures (let d1 = d +. mul64_wide (a0 *. u64 2) a2 +. mul64_wide a1 a1 in v d1 == v d + v a0 * v a2 + v a1 * v...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_three_sqr64_wide52 md d a0 a1 a2 = lemma_mul_by2 64 max52 a0; lemma_bound_mul64_wide 128 64 max52 max52 (a0 *. u64 2) a2; lemma_bound_mul64_wide 64 64 max52 max52 a1 a1; assert (v d + v a0 * v a2 + v a1 * v a1 + v a2 * v a0 <= md * max52 + 12288 * (max52 * max52)); calc (<) { md * max52...
val lemma_add_three_sqr64_wide52 (md:nat) (d:uint128) (a0 a1 a2:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8194 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64) (ensures (let d1 = d +. mul64_wide (a0 *. u64 2) a2 +. mul64_wide a1 a1 in v d1 == v d + v a0 * v a2 + v a1 * v...
false
null
true
lemma_mul_by2 64 max52 a0; lemma_bound_mul64_wide 128 64 max52 max52 (a0 *. u64 2) a2; lemma_bound_mul64_wide 64 64 max52 max52 a1 a1; assert (v d + v a0 * v a2 + v a1 * v a1 + v a2 * v a0 <= md * max52 + 12288 * (max52 * max52)); calc ( < ) { md * max52 + 12288 * (max52 * max52); ( < ) { (assert_norm (8194 < max52...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", ...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_three_sqr64_wide52 (md:nat) (d:uint128) (a0 a1 a2:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8194 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64) (ensures (let d1 = d +. mul64_wide (a0 *. u64 2) a2 +. mul64_wide a1 a1 in v d1 == v d + v a0 * v a2 + v a1 * v...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_three_sqr64_wide52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 8194 /\ Hacl.Spec.K256.Field52.Definitions...
{ "end_col": 3, "end_line": 823, "start_col": 2, "start_line": 802 }
FStar.Pervasives.Lemma
val lemma_add_two_sqr64_wide52 (md:nat) (d:uint128) (a0 a1:uint64) : Lemma (requires v d <= md * max52 /\ md <= 4097 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64) (ensures (let d1 = d +. mul64_wide (a0 *. u64 2) a1 in v d1 == v d + v a0 * v a1 + v a1 * v a0 /\ v d1 <= 8193 * (max52 * max52)))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_two_sqr64_wide52 md d a0 a1 = lemma_mul_by2 64 max52 a0; lemma_bound_mul64_wide 128 64 max52 max52 (a0 *. u64 2) a1; assert (v d + v a0 * 2 * v a1 <= md * max52 + 8192 * (max52 * max52)); calc (<) { md * max52 + 8192 * (max52 * max52); (<) { assert_norm (4097 < max52); Math.Lemmas.lemma_m...
val lemma_add_two_sqr64_wide52 (md:nat) (d:uint128) (a0 a1:uint64) : Lemma (requires v d <= md * max52 /\ md <= 4097 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64) (ensures (let d1 = d +. mul64_wide (a0 *. u64 2) a1 in v d1 == v d + v a0 * v a1 + v a1 * v a0 /\ v d1 <= 8193 * (max52 * max52))) let le...
false
null
true
lemma_mul_by2 64 max52 a0; lemma_bound_mul64_wide 128 64 max52 max52 (a0 *. u64 2) a1; assert (v d + (v a0 * 2) * v a1 <= md * max52 + 8192 * (max52 * max52)); calc ( < ) { md * max52 + 8192 * (max52 * max52); ( < ) { (assert_norm (4097 < max52); Math.Lemmas.lemma_mult_lt_right max52 md max52) } max52 * max52...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_two_sqr64_wide52 (md:nat) (d:uint128) (a0 a1:uint64) : Lemma (requires v d <= md * max52 /\ md <= 4097 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64) (ensures (let d1 = d +. mul64_wide (a0 *. u64 2) a1 in v d1 == v d + v a0 * v a1 + v a1 * v a0 /\ v d1 <= 8193 * (max52 * max52)))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_two_sqr64_wide52
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 4097 /\ Hacl.Spec.K256.Field52.Definitions.felem_fits1 a0 64 /\ Hacl.Spec.K256.Fie...
{ "end_col": 58, "end_line": 749, "start_col": 2, "start_line": 737 }
FStar.Pervasives.Lemma
val lemma_add_three_sqr64_wide (md:nat) (d:uint128) (a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8705 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a2 (a4 *. u64 2) +. mul64_wide a3 a3 in v d1 == v d + v a2 * v a4 + v a3 ...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_three_sqr64_wide md d a2 a3 a4 = assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_bound_mul64_wide 64 128 max52 max48 a2 (a4 *. u64 2); lemma_bound_mul64_wide 64 64 max52 max52 a3 a3; assert (v d + v a2 * (v a4 * 2) + v a3 * v a3 <= md * max52 + 8192 * (max52 * max48) + 4096 * ...
val lemma_add_three_sqr64_wide (md:nat) (d:uint128) (a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8705 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a2 (a4 *. u64 2) +. mul64_wide a3 a3 in v d1 == v d + v a2 * v a4 + v a3 ...
false
null
true
assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_bound_mul64_wide 64 128 max52 max48 a2 (a4 *. u64 2); lemma_bound_mul64_wide 64 64 max52 max52 a3 a3; assert (v d + v a2 * (v a4 * 2) + v a3 * v a3 <= md * max52 + 8192 * (max52 * max48) + 4096 * (max52 * max52)); calc ( < ) { md * max52 + 8192 * (max5...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", ...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_three_sqr64_wide (md:nat) (d:uint128) (a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 8705 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a2 (a4 *. u64 2) +. mul64_wide a3 a3 in v d1 == v d + v a2 * v a4 + v a3 ...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_three_sqr64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 8705 /\ Hacl.Spec.K256.Field52.Definitions...
{ "end_col": 3, "end_line": 788, "start_col": 2, "start_line": 763 }
FStar.Pervasives.Lemma
val lemma_add_five_sqr64_wide (md:nat) (d:uint128) (a0 a1 a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 16385 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a0 (a4 *. u64 2) +. mul64...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_five_sqr64_wide md d a0 a1 a2 a3 a4 = let r4 = a4 *. u64 2 in let r1 = a1 *. u64 2 in assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_mul_by2 64 max52 a1; assert (v r4 = v a4 * 2 /\ v r1 = v a1 * 2); lemma_bound_mul64_wide 64 128 max52 max48 a0 r4; lemma_bound_mul64_wide 128...
val lemma_add_five_sqr64_wide (md:nat) (d:uint128) (a0 a1 a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 16385 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a0 (a4 *. u64 2) +. mul64...
false
null
true
let r4 = a4 *. u64 2 in let r1 = a1 *. u64 2 in assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_mul_by2 64 max52 a1; assert (v r4 = v a4 * 2 /\ v r1 = v a1 * 2); lemma_bound_mul64_wide 64 128 max52 max48 a0 r4; lemma_bound_mul64_wide 128 64 max52 max52 r1 a3; lemma_bound_mul64_wide 64 64 max52 max52 a2 a2...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", ...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_five_sqr64_wide (md:nat) (d:uint128) (a0 a1 a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 16385 /\ felem_fits1 a0 64 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a0 (a4 *. u64 2) +. mul64...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_five_sqr64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a0: Lib.IntTypes.uint64 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max...
{ "end_col": 3, "end_line": 678, "start_col": 51, "start_line": 643 }
FStar.Pervasives.Lemma
val lemma_bound_add_mul64_wide_r_lsh12_add (md:nat) (c:uint128) (d t3:uint64) : Lemma (requires v c <= md * max52 /\ md <= 12290 /\ v d < pow2 50 /\ felem_fits1 t3 1) (ensures (let r = c +. mul64_wide (u64 0x1000003D10 <<. 12ul) d +. to_u128 t3 in v r = v c + 0x1000003D10 * pow2 12 * v d + v t3 /\ v r < pow2 1...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_bound_add_mul64_wide_r_lsh12_add md c d t3 = let rs = u64 0x1000003D10 <<. 12ul in lemma_r_lsh12 (); assert (v rs = 0x1000003D10 * pow2 12 /\ v rs < pow2 49); let r = c +. mul64_wide rs d +. to_u128 t3 in lemma_bound_mul64_wide 1 1 (pow2 49) (pow2 50) rs d; assert (v (mul64_wide rs d) = v rs * v ...
val lemma_bound_add_mul64_wide_r_lsh12_add (md:nat) (c:uint128) (d t3:uint64) : Lemma (requires v c <= md * max52 /\ md <= 12290 /\ v d < pow2 50 /\ felem_fits1 t3 1) (ensures (let r = c +. mul64_wide (u64 0x1000003D10 <<. 12ul) d +. to_u128 t3 in v r = v c + 0x1000003D10 * pow2 12 * v d + v t3 /\ v r < pow2 1...
false
null
true
let rs = u64 0x1000003D10 <<. 12ul in lemma_r_lsh12 (); assert (v rs = 0x1000003D10 * pow2 12 /\ v rs < pow2 49); let r = c +. mul64_wide rs d +. to_u128 t3 in lemma_bound_mul64_wide 1 1 (pow2 49) (pow2 50) rs d; assert (v (mul64_wide rs d) = v rs * v d /\ v rs * v d < pow2 49 * pow2 50); calc ( < ) { md * max52 + po...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.pow2_lt_compat", "FStar.Calc.ca...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_bound_add_mul64_wide_r_lsh12_add (md:nat) (c:uint128) (d t3:uint64) : Lemma (requires v c <= md * max52 /\ md <= 12290 /\ v d < pow2 50 /\ felem_fits1 t3 1) (ensures (let r = c +. mul64_wide (u64 0x1000003D10 <<. 12ul) d +. to_u128 t3 in v r = v c + 0x1000003D10 * pow2 12 * v d + v t3 /\ v r < pow2 1...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_bound_add_mul64_wide_r_lsh12_add
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> c: Lib.IntTypes.uint128 -> d: Lib.IntTypes.uint64 -> t3: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v c <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 12290 /\ Lib.IntTypes.v d < Prims.pow2 50 /\ Hacl.Spec.K256.Field52.Definitions.felem_fits1...
{ "end_col": 60, "end_line": 389, "start_col": 54, "start_line": 366 }
FStar.Pervasives.Lemma
val lemma_add_four_sqr64_wide (md:nat) (d:uint128) (a1 a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 12802 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a1 (a4 *. u64 2) +. mul64_wide (a2 *. u64 2) a3 in ...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_four_sqr64_wide md d a1 a2 a3 a4 = let r4 = a4 *. u64 2 in let r2 = a2 *. u64 2 in assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_mul_by2 64 max52 a2; assert (v r2 = v a2 * 2 /\ v r4 = v a4 * 2); let d1 = d +. mul64_wide a1 r4 +. mul64_wide r2 a3 in lemma_bound_mul64_wide 6...
val lemma_add_four_sqr64_wide (md:nat) (d:uint128) (a1 a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 12802 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a1 (a4 *. u64 2) +. mul64_wide (a2 *. u64 2) a3 in ...
false
null
true
let r4 = a4 *. u64 2 in let r2 = a2 *. u64 2 in assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_mul_by2 64 max52 a2; assert (v r2 = v a2 * 2 /\ v r4 = v a4 * 2); let d1 = d +. mul64_wide a1 r4 +. mul64_wide r2 a3 in lemma_bound_mul64_wide 64 128 max52 max48 a1 (a4 *. u64 2); lemma_bound_mul64_wide 128 64 ...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", ...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_four_sqr64_wide (md:nat) (d:uint128) (a1 a2 a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 12802 /\ felem_fits1 a1 64 /\ felem_fits1 a2 64 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a1 (a4 *. u64 2) +. mul64_wide (a2 *. u64 2) a3 in ...
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_four_sqr64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a1: Lib.IntTypes.uint64 -> a2: Lib.IntTypes.uint64 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 12802 /\ Ha...
{ "end_col": 5, "end_line": 724, "start_col": 48, "start_line": 691 }
FStar.Pervasives.Lemma
val lemma_add_two_sqr64_wide (md:nat) (d:uint128) (a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 64193 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a3 (a4 *. u64 2) in v d1 == v d + v a3 * v a4 + v a4 * v a3 /\ v d1 <= 513 * (max52 * max52)))
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
false
let lemma_add_two_sqr64_wide md d a3 a4 = assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_bound_mul64_wide 64 128 max52 max48 a3 (a4 *. u64 2); assert (v d + v a3 * (v a4 * 2) <= md * max52 + 8192 * (max52 * max48)); calc (<) { md * max52 + 8192 * (max52 * max48); (<=) { lemma_16_max52_...
val lemma_add_two_sqr64_wide (md:nat) (d:uint128) (a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 64193 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a3 (a4 *. u64 2) in v d1 == v d + v a3 * v a4 + v a4 * v a3 /\ v d1 <= 513 * (max52 * max52))) let...
false
null
true
assert_norm (max48 < max52); lemma_mul_by2 64 max48 a4; lemma_bound_mul64_wide 64 128 max52 max48 a3 (a4 *. u64 2); assert (v d + v a3 * (v a4 * 2) <= md * max52 + 8192 * (max52 * max48)); calc ( < ) { md * max52 + 8192 * (max52 * max48); ( <= ) { lemma_16_max52_max48 512 } md * max52 + 512 * (max52 * max52); (...
{ "checked_file": "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.f...
[ "lemma" ]
[ "Prims.nat", "Lib.IntTypes.uint128", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.small_mod", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.IntTypes.U64", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Pr...
[]
module Hacl.Spec.K256.Field52.Lemmas5 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" val lem...
false
false
Hacl.Spec.K256.Field52.Lemmas5.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val lemma_add_two_sqr64_wide (md:nat) (d:uint128) (a3 a4:uint64) : Lemma (requires v d <= md * max52 /\ md <= 64193 /\ felem_fits1 a3 64 /\ felem_fits_last1 a4 64) (ensures (let d1 = d +. mul64_wide a3 (a4 *. u64 2) in v d1 == v d + v a3 * v a4 + v a4 * v a3 /\ v d1 <= 513 * (max52 * max52)))
[]
Hacl.Spec.K256.Field52.Lemmas5.lemma_add_two_sqr64_wide
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas5.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
md: Prims.nat -> d: Lib.IntTypes.uint128 -> a3: Lib.IntTypes.uint64 -> a4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v d <= md * Hacl.Spec.K256.Field52.Definitions.max52 /\ md <= 64193 /\ Hacl.Spec.K256.Field52.Definitions.felem_fits1 a3 64 /\ Hacl.Spec.K256.Fi...
{ "end_col": 60, "end_line": 851, "start_col": 2, "start_line": 836 }
Prims.Tot
val parse_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (parser parse_u32_kind (bitfields uint32 0 32 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let parse_bitfield32 (l: list nat { valid_bitfield_widths 0 32 l }) : Tot (parser parse_u32_kind (bitfields uint32 0 32 l)) = parse_bitfield parse_u32 uint32 l
val parse_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (parser parse_u32_kind (bitfields uint32 0 32 l)) let parse_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (parser parse_u32_kind (bitfields uint32 0 32 l)) =
false
null
false
parse_bitfield parse_u32 uint32 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.parse_bitfield", "FStar.UInt32.t", "LowParse.Spec.Int.parse_u32_kind", "LowParse.Spec.Int.parse_u32", "LowParse.BitFields.uint32", "LowParse.Spec.Base.parser", "LowParse.Spec.BitFiel...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val parse_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (parser parse_u32_kind (bitfields uint32 0 32 l))
[]
LowParse.Spec.BitFields.parse_bitfield32
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 32 l} -> LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u32_kind (LowParse.Spec.BitFields.bitfields LowParse.BitFields.uint32 0 32 l)
{ "end_col": 35, "end_line": 161, "start_col": 2, "start_line": 161 }
Prims.Tot
val serialize_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (serializer (parse_bitfield8 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let serialize_bitfield8 (l: list nat { valid_bitfield_widths 0 8 l }) : Tot (serializer (parse_bitfield8 l)) = serialize_bitfield serialize_u8 uint8 l
val serialize_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (serializer (parse_bitfield8 l)) let serialize_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (serializer (parse_bitfield8 l)) =
false
null
false
serialize_bitfield serialize_u8 uint8 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.serialize_bitfield", "FStar.UInt8.t", "LowParse.Spec.Int.parse_u8_kind", "LowParse.Spec.Int.parse_u8", "LowParse.Spec.Int.serialize_u8", "LowParse.BitFields.uint8", "LowParse.Spec.Ba...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val serialize_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (serializer (parse_bitfield8 l))
[]
LowParse.Spec.BitFields.serialize_bitfield8
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 8 l} -> LowParse.Spec.Base.serializer (LowParse.Spec.BitFields.parse_bitfield8 l)
{ "end_col": 41, "end_line": 176, "start_col": 2, "start_line": 176 }
Prims.Tot
val serialize_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (serializer (parse_bitfield32 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let serialize_bitfield32 (l: list nat { valid_bitfield_widths 0 32 l }) : Tot (serializer (parse_bitfield32 l)) = serialize_bitfield serialize_u32 uint32 l
val serialize_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (serializer (parse_bitfield32 l)) let serialize_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (serializer (parse_bitfield32 l)) =
false
null
false
serialize_bitfield serialize_u32 uint32 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.serialize_bitfield", "FStar.UInt32.t", "LowParse.Spec.Int.parse_u32_kind", "LowParse.Spec.Int.parse_u32", "LowParse.Spec.Int.serialize_u32", "LowParse.BitFields.uint32", "LowParse.Sp...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val serialize_bitfield32 (l: list nat {valid_bitfield_widths 0 32 l}) : Tot (serializer (parse_bitfield32 l))
[]
LowParse.Spec.BitFields.serialize_bitfield32
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 32 l} -> LowParse.Spec.Base.serializer (LowParse.Spec.BitFields.parse_bitfield32 l)
{ "end_col": 43, "end_line": 164, "start_col": 2, "start_line": 164 }
Prims.Tot
val parse_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (parser parse_u64_kind (bitfields uint64 0 64 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let parse_bitfield64 (l: list nat { valid_bitfield_widths 0 64 l }) : Tot (parser parse_u64_kind (bitfields uint64 0 64 l)) = parse_bitfield parse_u64 uint64 l
val parse_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (parser parse_u64_kind (bitfields uint64 0 64 l)) let parse_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (parser parse_u64_kind (bitfields uint64 0 64 l)) =
false
null
false
parse_bitfield parse_u64 uint64 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.parse_bitfield", "FStar.UInt64.t", "LowParse.Spec.Int.parse_u64_kind", "LowParse.Spec.Int.parse_u64", "LowParse.BitFields.uint64", "LowParse.Spec.Base.parser", "LowParse.Spec.BitFiel...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val parse_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (parser parse_u64_kind (bitfields uint64 0 64 l))
[]
LowParse.Spec.BitFields.parse_bitfield64
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 64 l} -> LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u64_kind (LowParse.Spec.BitFields.bitfields LowParse.BitFields.uint64 0 64 l)
{ "end_col": 35, "end_line": 155, "start_col": 2, "start_line": 155 }
Prims.Tot
val serialize_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (serializer (parse_bitfield16 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let serialize_bitfield16 (l: list nat { valid_bitfield_widths 0 16 l }) : Tot (serializer (parse_bitfield16 l)) = serialize_bitfield serialize_u16 uint16 l
val serialize_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (serializer (parse_bitfield16 l)) let serialize_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (serializer (parse_bitfield16 l)) =
false
null
false
serialize_bitfield serialize_u16 uint16 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.serialize_bitfield", "FStar.UInt16.t", "LowParse.Spec.Int.parse_u16_kind", "LowParse.Spec.Int.parse_u16", "LowParse.Spec.Int.serialize_u16", "LowParse.BitFields.uint16", "LowParse.Sp...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val serialize_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (serializer (parse_bitfield16 l))
[]
LowParse.Spec.BitFields.serialize_bitfield16
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 16 l} -> LowParse.Spec.Base.serializer (LowParse.Spec.BitFields.parse_bitfield16 l)
{ "end_col": 43, "end_line": 170, "start_col": 2, "start_line": 170 }
Prims.Tot
val parse_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (parser parse_u16_kind (bitfields uint16 0 16 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let parse_bitfield16 (l: list nat { valid_bitfield_widths 0 16 l }) : Tot (parser parse_u16_kind (bitfields uint16 0 16 l)) = parse_bitfield parse_u16 uint16 l
val parse_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (parser parse_u16_kind (bitfields uint16 0 16 l)) let parse_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (parser parse_u16_kind (bitfields uint16 0 16 l)) =
false
null
false
parse_bitfield parse_u16 uint16 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.parse_bitfield", "FStar.UInt16.t", "LowParse.Spec.Int.parse_u16_kind", "LowParse.Spec.Int.parse_u16", "LowParse.BitFields.uint16", "LowParse.Spec.Base.parser", "LowParse.Spec.BitFiel...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val parse_bitfield16 (l: list nat {valid_bitfield_widths 0 16 l}) : Tot (parser parse_u16_kind (bitfields uint16 0 16 l))
[]
LowParse.Spec.BitFields.parse_bitfield16
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 16 l} -> LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u16_kind (LowParse.Spec.BitFields.bitfields LowParse.BitFields.uint16 0 16 l)
{ "end_col": 35, "end_line": 167, "start_col": 2, "start_line": 167 }
Prims.Tot
val serialize_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (serializer (parse_bitfield64 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let serialize_bitfield64 (l: list nat { valid_bitfield_widths 0 64 l }) : Tot (serializer (parse_bitfield64 l)) = serialize_bitfield serialize_u64 uint64 l
val serialize_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (serializer (parse_bitfield64 l)) let serialize_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (serializer (parse_bitfield64 l)) =
false
null
false
serialize_bitfield serialize_u64 uint64 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.serialize_bitfield", "FStar.UInt64.t", "LowParse.Spec.Int.parse_u64_kind", "LowParse.Spec.Int.parse_u64", "LowParse.Spec.Int.serialize_u64", "LowParse.BitFields.uint64", "LowParse.Sp...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val serialize_bitfield64 (l: list nat {valid_bitfield_widths 0 64 l}) : Tot (serializer (parse_bitfield64 l))
[]
LowParse.Spec.BitFields.serialize_bitfield64
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 64 l} -> LowParse.Spec.Base.serializer (LowParse.Spec.BitFields.parse_bitfield64 l)
{ "end_col": 43, "end_line": 158, "start_col": 2, "start_line": 158 }
Prims.Tot
val parse_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (parser parse_u8_kind (bitfields uint8 0 8 l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let parse_bitfield8 (l: list nat { valid_bitfield_widths 0 8 l }) : Tot (parser parse_u8_kind (bitfields uint8 0 8 l)) = parse_bitfield parse_u8 uint8 l
val parse_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (parser parse_u8_kind (bitfields uint8 0 8 l)) let parse_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (parser parse_u8_kind (bitfields uint8 0 8 l)) =
false
null
false
parse_bitfield parse_u8 uint8 l
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.parse_bitfield", "FStar.UInt8.t", "LowParse.Spec.Int.parse_u8_kind", "LowParse.Spec.Int.parse_u8", "LowParse.BitFields.uint8", "LowParse.Spec.Base.parser", "LowParse.Spec.BitFields.b...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val parse_bitfield8 (l: list nat {valid_bitfield_widths 0 8 l}) : Tot (parser parse_u8_kind (bitfields uint8 0 8 l))
[]
LowParse.Spec.BitFields.parse_bitfield8
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 8 l} -> LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u8_kind (LowParse.Spec.BitFields.bitfields LowParse.BitFields.uint8 0 8 l)
{ "end_col": 33, "end_line": 173, "start_col": 2, "start_line": 173 }
Prims.Tot
val synth_bitfield_recip (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Tot t
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let synth_bitfield_recip (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) (x: bitfields cl lo hi l) : Tot t = synth_bitfield_recip' cl lo hi l x
val synth_bitfield_recip (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Tot t let synth_bitfield_recip (#tot: pos) (#t: Type) (cl: uint_t tot t)...
false
null
false
synth_bitfield_recip' cl lo hi l x
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.bitfields", "LowParse.Spec.BitFields.synth_bitfield_recip'" ]
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield_recip (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Tot t
[]
LowParse.Spec.BitFields.synth_bitfield_recip
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> x: LowParse.Spec.BitFields.bitfields cl lo hi l -> t
{ "end_col": 231, "end_line": 103, "start_col": 197, "start_line": 103 }
Prims.Tot
val synth_bitfield (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: t) : Tot (bitfields cl lo hi l)
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let synth_bitfield (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) (x: t) : Tot (bitfields cl lo hi l) = synth_bitfield' cl lo hi l x
val synth_bitfield (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: t) : Tot (bitfields cl lo hi l) let synth_bitfield (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo...
false
null
false
synth_bitfield' cl lo hi l x
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.synth_bitfield'", "LowParse.Spec.BitFields.bitfields" ]
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: t) : Tot (bitfields cl lo hi l)
[]
LowParse.Spec.BitFields.synth_bitfield
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> x: t -> LowParse.Spec.BitFields.bitfields cl lo hi l
{ "end_col": 221, "end_line": 45, "start_col": 193, "start_line": 45 }
Prims.Tot
val mk_bitfields_destr (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) : Tot (bitfields_destr_t cl lo hi l)
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let mk_bitfields_destr (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) : Tot (bitfields_destr_t cl lo hi l) = norm [delta_only [`%mk_bitfields_destr'; `%bitfields_destr_nil; `%bitfields_destr_cons_nil; `%bitfields_destr_...
val mk_bitfields_destr (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) : Tot (bitfields_destr_t cl lo hi l) let mk_bitfields_destr (#tot: pos) (#t: Type) (cl: uint_t tot t) ...
false
null
false
norm [ delta_only [ `%mk_bitfields_destr'; `%bitfields_destr_nil; `%bitfields_destr_cons_nil; `%bitfields_destr_cons ]; iota; zeta; primops ] (mk_bitfields_destr' cl lo hi l)
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "FStar.Pervasives.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.delta_only", "Prims.string", ...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val mk_bitfields_destr (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) : Tot (bitfields_destr_t cl lo hi l)
[]
LowParse.Spec.BitFields.mk_bitfields_destr
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> LowParse.Spec.BitFields.bitfields_destr_t cl lo hi l
{ "end_col": 172, "end_line": 262, "start_col": 2, "start_line": 262 }
Prims.Tot
val valid_bitfield_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l)
[ { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Int", "short_module": null }, { "abbrev": false, "fu...
false
let rec valid_bitfield_widths (lo: nat) (hi: nat { lo <= hi }) (l: list nat) : Tot bool (decreases l) = match l with | [] -> lo = hi | sz :: q -> lo + sz <= hi && valid_bitfield_widths (lo + sz) hi q
val valid_bitfield_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l) let rec valid_bitfield_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l) =
false
null
false
match l with | [] -> lo = hi | sz :: q -> lo + sz <= hi && valid_bitfield_widths (lo + sz) hi q
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total", "" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "Prims.op_Equality", "Prims.op_AmpAmp", "Prims.op_Addition", "LowParse.Spec.BitFields.valid_bitfield_widths", "Prims.bool" ]
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val valid_bitfield_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l)
[ "recursion" ]
LowParse.Spec.BitFields.valid_bitfield_widths
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
lo: Prims.nat -> hi: Prims.nat{lo <= hi} -> l: Prims.list Prims.nat -> Prims.Tot Prims.bool
{ "end_col": 68, "end_line": 19, "start_col": 2, "start_line": 17 }
Prims.Pure
val bounds_of_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Pure (list nat) (requires (valid_bitfield_widths lo hi l)) (ensures (fun res -> valid_bitfield_bounds lo hi res)) (decreases l)
[ { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Int", "short_module": null }, { "abbrev": false, "fu...
false
let rec bounds_of_widths (lo: nat) (hi: nat { lo <= hi }) (l: list nat) : Pure (list nat) (requires (valid_bitfield_widths lo hi l)) (ensures (fun res -> valid_bitfield_bounds lo hi res)) (decreases l) = match l with | [] -> [] | [_] -> [] | sz :: q -> (lo + sz) :: bounds_of_widths (lo + sz) hi q
val bounds_of_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Pure (list nat) (requires (valid_bitfield_widths lo hi l)) (ensures (fun res -> valid_bitfield_bounds lo hi res)) (decreases l) let rec bounds_of_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Pure (list nat) (requi...
false
null
false
match l with | [] -> [] | [_] -> [] | sz :: q -> (lo + sz) :: bounds_of_widths (lo + sz) hi q
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "Prims.Nil", "Prims.Cons", "Prims.op_Addition", "LowParse.Spec.BitFields.bounds_of_widths", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.valid_bitfield_bounds" ]
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val bounds_of_widths (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Pure (list nat) (requires (valid_bitfield_widths lo hi l)) (ensures (fun res -> valid_bitfield_bounds lo hi res)) (decreases l)
[ "recursion" ]
LowParse.Spec.BitFields.bounds_of_widths
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
lo: Prims.nat -> hi: Prims.nat{lo <= hi} -> l: Prims.list Prims.nat -> Prims.Pure (Prims.list Prims.nat)
{ "end_col": 59, "end_line": 28, "start_col": 2, "start_line": 25 }
Prims.Tot
val valid_bitfield_bounds (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l)
[ { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Int", "short_module": null }, { "abbrev": false, "fu...
false
let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l: list nat) : Tot bool (decreases l) = match l with | [] -> true | mi :: q -> lo <= mi && mi <= hi && valid_bitfield_bounds mi hi q
val valid_bitfield_bounds (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l) let rec valid_bitfield_bounds (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l) =
false
null
false
match l with | [] -> true | mi :: q -> lo <= mi && mi <= hi && valid_bitfield_bounds mi hi q
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total", "" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "Prims.op_AmpAmp", "LowParse.Spec.BitFields.valid_bitfield_bounds", "Prims.bool" ]
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion.
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val valid_bitfield_bounds (lo: nat) (hi: nat{lo <= hi}) (l: list nat) : Tot bool (decreases l)
[ "recursion" ]
LowParse.Spec.BitFields.valid_bitfield_bounds
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
lo: Prims.nat -> hi: Prims.nat{lo <= hi} -> l: Prims.list Prims.nat -> Prims.Tot Prims.bool
{ "end_col": 68, "end_line": 14, "start_col": 2, "start_line": 12 }
Prims.Tot
val valid_bitfield_widths_prefix (lo: nat) (hi: nat{lo <= hi}) (prefix: list nat) (suffix: list nat {valid_bitfield_widths lo hi (prefix `L.append` suffix)}) : Tot (mi: nat{lo <= mi /\ mi <= hi /\ valid_bitfield_widths lo mi prefix}) (decreases prefix)
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "Lo...
false
let rec valid_bitfield_widths_prefix (lo: nat) (hi: nat { lo <= hi }) (prefix: list nat) (suffix: list nat { valid_bitfield_widths lo hi (prefix `L.append` suffix) }) : Tot (mi: nat { lo <= mi /\ mi <= hi /\ valid_bitfield_widths lo mi prefix }) (decreases prefix) = match prefix with | [] -> lo | sz :: q ...
val valid_bitfield_widths_prefix (lo: nat) (hi: nat{lo <= hi}) (prefix: list nat) (suffix: list nat {valid_bitfield_widths lo hi (prefix `L.append` suffix)}) : Tot (mi: nat{lo <= mi /\ mi <= hi /\ valid_bitfield_widths lo mi prefix}) (decreases prefix) let rec valid_bitfield_widths_prefix ...
false
null
false
match prefix with | [] -> lo | sz :: q -> valid_bitfield_widths_prefix (lo + sz) hi q suffix
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total", "" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "FStar.List.Tot.Base.append", "LowParse.Spec.BitFields.valid_bitfield_widths_prefix", "Prims.op_Addition", "Prims.l_and" ]
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val valid_bitfield_widths_prefix (lo: nat) (hi: nat{lo <= hi}) (prefix: list nat) (suffix: list nat {valid_bitfield_widths lo hi (prefix `L.append` suffix)}) : Tot (mi: nat{lo <= mi /\ mi <= hi /\ valid_bitfield_widths lo mi prefix}) (decreases prefix)
[ "recursion" ]
LowParse.Spec.BitFields.valid_bitfield_widths_prefix
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
lo: Prims.nat -> hi: Prims.nat{lo <= hi} -> prefix: Prims.list Prims.nat -> suffix: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi (prefix @ suffix)} -> Prims.Tot (mi: Prims.nat{lo <= mi /\ mi <= hi /\ LowParse.Spec.BitFields.valid_bitfield_widths lo mi pref...
{ "end_col": 65, "end_line": 288, "start_col": 2, "start_line": 286 }
FStar.Pervasives.Lemma
val valid_bitfield_widths_inj (lo: nat) (hi1: nat{lo <= hi1}) (hi2: nat{lo <= hi2}) (l: list nat) : Lemma (requires (valid_bitfield_widths lo hi1 l /\ valid_bitfield_widths lo hi2 l)) (ensures (hi1 == hi2)) (decreases l)
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "Lo...
false
let rec valid_bitfield_widths_inj (lo: nat) (hi1: nat { lo <= hi1 }) (hi2: nat { lo <= hi2 }) (l: list nat) : Lemma (requires (valid_bitfield_widths lo hi1 l /\ valid_bitfield_widths lo hi2 l)) (ensures (hi1 == hi2)) (decreases l) = match l with | [] -> () | sz :: q -> valid_bitfield_widths_inj (lo + ...
val valid_bitfield_widths_inj (lo: nat) (hi1: nat{lo <= hi1}) (hi2: nat{lo <= hi2}) (l: list nat) : Lemma (requires (valid_bitfield_widths lo hi1 l /\ valid_bitfield_widths lo hi2 l)) (ensures (hi1 == hi2)) (decreases l) let rec valid_bitfield_widths_inj (lo: nat) (hi1: nat{lo <= hi1}) ...
false
null
true
match l with | [] -> () | sz :: q -> valid_bitfield_widths_inj (lo + sz) hi1 hi2 q
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "lemma", "" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths_inj", "Prims.op_Addition", "Prims.unit", "Prims.l_and", "LowParse.Spec.BitFields.valid_bitfield_widths", "Prims.squash", "Prims.eq2", "Prims.l_or", "Prims.Nil", "FStar.Pervasi...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val valid_bitfield_widths_inj (lo: nat) (hi1: nat{lo <= hi1}) (hi2: nat{lo <= hi2}) (l: list nat) : Lemma (requires (valid_bitfield_widths lo hi1 l /\ valid_bitfield_widths lo hi2 l)) (ensures (hi1 == hi2)) (decreases l)
[ "recursion" ]
LowParse.Spec.BitFields.valid_bitfield_widths_inj
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
lo: Prims.nat -> hi1: Prims.nat{lo <= hi1} -> hi2: Prims.nat{lo <= hi2} -> l: Prims.list Prims.nat -> FStar.Pervasives.Lemma (requires LowParse.Spec.BitFields.valid_bitfield_widths lo hi1 l /\ LowParse.Spec.BitFields.valid_bitfield_widths lo hi2 l) (ensures hi1 == hi2) (decreases l)
{ "end_col": 60, "end_line": 277, "start_col": 2, "start_line": 275 }
Prims.Tot
val synth_bitfield' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: t) : Tot (bitfields cl lo hi l) (decreases l)
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let rec synth_bitfield' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) (x: t) : Tot (bitfields cl lo hi l) (decreases l) = match l with | [] -> () | [_] -> cl.get_bitfield x lo hi | sz :: q -> (((cl.get_bitfield x lo (lo + ...
val synth_bitfield' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: t) : Tot (bitfields cl lo hi l) (decreases l) let rec synth_bitfield' (#tot: pos) (#t: Type) (cl: uin...
false
null
false
match l with | [] -> () | [_] -> cl.get_bitfield x lo hi | sz :: q -> (((cl.get_bitfield x lo (lo + sz) <: t) <: bitfield cl sz), synth_bitfield' cl (lo + sz) hi q x)
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total", "" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.BitFields.__proj__Mkuint_t__item__get_bitfield", "FStar.Pervasives.Native.Mktuple2", "LowParse.BitFields.bitfiel...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: t) : Tot (bitfields cl lo hi l) (decreases l)
[ "recursion" ]
LowParse.Spec.BitFields.synth_bitfield'
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> x: t -> Prims.Tot (LowParse.Spec.BitFields.bitfields cl lo hi l)
{ "end_col": 111, "end_line": 43, "start_col": 2, "start_line": 40 }
Prims.Tot
val synth_bitfield_recip' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Tot t (decreases l)
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let rec synth_bitfield_recip' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) (x: bitfields cl lo hi l) : Tot t (decreases l) = match l with | [] -> cl.uint_to_t 0 | [_] -> cl.set_bitfield (cl.uint_to_t 0) lo hi x | sz :: q ...
val synth_bitfield_recip' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Tot t (decreases l) let rec synth_bitfield_recip' (#tot: pos) (#t: Type) ...
false
null
false
match l with | [] -> cl.uint_to_t 0 | [_] -> cl.set_bitfield (cl.uint_to_t 0) lo hi x | sz :: q -> let hd, tl = x <: (bitfield cl sz & bitfields cl (lo + sz) hi q) in cl.set_bitfield (synth_bitfield_recip' cl (lo + sz) hi q tl) lo (lo + sz) hd
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total", "" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.bitfields", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "LowParse.BitFields.__proj__M...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield_recip' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Tot t (decreases l)
[ "recursion" ]
LowParse.Spec.BitFields.synth_bitfield_recip'
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> x: LowParse.Spec.BitFields.bitfields cl lo hi l -> Prims.Tot t
{ "end_col": 80, "end_line": 101, "start_col": 2, "start_line": 96 }
Prims.Tot
val mk_bitfields_destr' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) : Tot (bitfields_destr_t cl lo hi l) (decreases l)
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let rec mk_bitfields_destr' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) : Tot (bitfields_destr_t cl lo hi l) (decreases l) = match l with | [] -> bitfields_destr_nil cl lo | [sz] -> bitfields_destr_cons_nil cl ...
val mk_bitfields_destr' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) : Tot (bitfields_destr_t cl lo hi l) (decreases l) let rec mk_bitfields_destr' (#tot: pos) (#t: Type) (cl: ...
false
null
false
match l with | [] -> bitfields_destr_nil cl lo | [sz] -> bitfields_destr_cons_nil cl lo sz | sz :: q -> bitfields_destr_cons cl lo sz hi q (mk_bitfields_destr' cl (lo + sz) hi q)
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total", "" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.bitfields_destr_nil", "LowParse.Spec.BitFields.bitfields_destr_cons_nil", "LowParse.Spec.BitField...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val mk_bitfields_destr' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) : Tot (bitfields_destr_t cl lo hi l) (decreases l)
[ "recursion" ]
LowParse.Spec.BitFields.mk_bitfields_destr'
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> Prims.Tot (LowParse.Spec.BitFields.bitfields_destr_t cl lo hi l)
{ "end_col": 89, "end_line": 250, "start_col": 2, "start_line": 247 }
Prims.Tot
val parse_bitfield (#t: Type) (#k: parser_kind) (p: parser k t) (#tot: pos) (cl: uint_t tot t) (l: list nat {valid_bitfield_widths 0 tot l}) : Tot (parser k (bitfields cl 0 tot l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let parse_bitfield (#t: Type) (#k: parser_kind) (p: parser k t) (#tot: pos) (cl: uint_t tot t) (l: list nat { valid_bitfield_widths 0 tot l }) : Tot (parser k (bitfields cl 0 tot l)) = p `parse_synth` synth_bitfield cl 0 tot l
val parse_bitfield (#t: Type) (#k: parser_kind) (p: parser k t) (#tot: pos) (cl: uint_t tot t) (l: list nat {valid_bitfield_widths 0 tot l}) : Tot (parser k (bitfields cl 0 tot l)) let parse_bitfield (#t: Type) (#k: parser_kind) (p: parser k t) (#tot: pos)...
false
null
false
p `parse_synth` (synth_bitfield cl 0 tot l)
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.pos", "LowParse.BitFields.uint_t", "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.BitFields.bitfields", "LowParse.Spec.BitFields...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val parse_bitfield (#t: Type) (#k: parser_kind) (p: parser k t) (#tot: pos) (cl: uint_t tot t) (l: list nat {valid_bitfield_widths 0 tot l}) : Tot (parser k (bitfields cl 0 tot l))
[]
LowParse.Spec.BitFields.parse_bitfield
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
p: LowParse.Spec.Base.parser k t -> cl: LowParse.BitFields.uint_t tot t -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 tot l} -> LowParse.Spec.Base.parser k (LowParse.Spec.BitFields.bitfields cl 0 tot l)
{ "end_col": 43, "end_line": 93, "start_col": 2, "start_line": 93 }
FStar.Pervasives.Lemma
val synth_bitfield_recip_inverse (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths 0 tot l}) : Lemma ((lo == 0 /\ hi == tot) ==> synth_inverse (synth_bitfield cl lo hi l) (synth_bitfield_recip cl...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let synth_bitfield_recip_inverse (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths 0 tot l }) : Lemma ((lo == 0 /\ hi == tot) ==> synth_inverse (synth_bitfield cl lo hi l) (synth_bitfield_recip cl lo hi l)) [SMTPat (synth_inverse (synth_bi...
val synth_bitfield_recip_inverse (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths 0 tot l}) : Lemma ((lo == 0 /\ hi == tot) ==> synth_inverse (synth_bitfield cl lo hi l) (synth_bitfield_recip cl...
false
null
true
synth_inverse_intro' (synth_bitfield cl 0 tot l) (synth_bitfield_recip cl 0 tot l) (fun x -> synth_bitfield_recip_inverse' cl 0 tot l x)
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "lemma" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.Combinators.synth_inverse_intro'", "LowParse.Spec.BitFields.bitfields", "LowParse.Spec.BitFields.synth_bitf...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield_recip_inverse (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths 0 tot l}) : Lemma ((lo == 0 /\ hi == tot) ==> synth_inverse (synth_bitfield cl lo hi l) (synth_bitfield_recip cl...
[]
LowParse.Spec.BitFields.synth_bitfield_recip_inverse
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 tot l} -> FStar.Pervasives.Lemma (ensures lo == 0 /\ hi == tot ==> LowParse.Spec.Combinators.synth_inverse (Lo...
{ "end_col": 3, "end_line": 141, "start_col": 2, "start_line": 139 }
FStar.Pervasives.Lemma
val synth_bitfield_injective (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths 0 tot l}) : Lemma ((lo == 0 /\ hi == tot) ==> synth_injective (synth_bitfield cl lo hi l)) [SMTPat (synth_injective (synth_b...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let synth_bitfield_injective (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths 0 tot l }) : Lemma ((lo == 0 /\ hi == tot) ==> synth_injective (synth_bitfield cl lo hi l)) [SMTPat (synth_injective (synth_bitfield #tot #t cl lo hi l))] = s...
val synth_bitfield_injective (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths 0 tot l}) : Lemma ((lo == 0 /\ hi == tot) ==> synth_injective (synth_bitfield cl lo hi l)) [SMTPat (synth_injective (synth_b...
false
null
true
synth_injective_intro' (synth_bitfield cl 0 tot l) (fun x y -> synth_bitfield_injective' cl 0 tot l x y; BF.get_bitfield_full (cl.v x); BF.get_bitfield_full (cl.v y); assert (cl.uint_to_t (cl.v x) == cl.uint_to_t (cl.v y)))
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "lemma" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.Combinators.synth_injective_intro'", "LowParse.Spec.BitFields.bitfields", "LowParse.Spec.BitFields.synth_bi...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield_injective (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths 0 tot l}) : Lemma ((lo == 0 /\ hi == tot) ==> synth_injective (synth_bitfield cl lo hi l)) [SMTPat (synth_injective (synth_b...
[]
LowParse.Spec.BitFields.synth_bitfield_injective
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 tot l} -> FStar.Pervasives.Lemma (ensures lo == 0 /\ hi == tot ==> LowParse.Spec.Combinators.synth_injective (...
{ "end_col": 60, "end_line": 68, "start_col": 2, "start_line": 64 }
Prims.Tot
val serialize_bitfield (#t: Type) (#k: parser_kind) (#p: parser k t) (s: serializer p) (#tot: pos) (cl: uint_t tot t) (l: list nat {valid_bitfield_widths 0 tot l}) : Tot (serializer (parse_bitfield p cl l))
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let serialize_bitfield (#t: Type) (#k: parser_kind) (#p: parser k t) (s: serializer p) (#tot: pos) (cl: uint_t tot t) (l: list nat { valid_bitfield_widths 0 tot l }) : Tot (serializer (parse_bitfield p cl l)) = serialize_synth p (synth_bitfield cl 0 tot l) s (synth_bitfield_recip cl 0 tot l) ()
val serialize_bitfield (#t: Type) (#k: parser_kind) (#p: parser k t) (s: serializer p) (#tot: pos) (cl: uint_t tot t) (l: list nat {valid_bitfield_widths 0 tot l}) : Tot (serializer (parse_bitfield p cl l)) let serialize_bitfield (#t: Type) (#k: parser_kind) ...
false
null
false
serialize_synth p (synth_bitfield cl 0 tot l) s (synth_bitfield_recip cl 0 tot l) ()
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.pos", "LowParse.BitFields.uint_t", "Prims.list", "Prims.nat", "Prims.b2t", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.BitFields...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val serialize_bitfield (#t: Type) (#k: parser_kind) (#p: parser k t) (s: serializer p) (#tot: pos) (cl: uint_t tot t) (l: list nat {valid_bitfield_widths 0 tot l}) : Tot (serializer (parse_bitfield p cl l))
[]
LowParse.Spec.BitFields.serialize_bitfield
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
s: LowParse.Spec.Base.serializer p -> cl: LowParse.BitFields.uint_t tot t -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths 0 tot l} -> LowParse.Spec.Base.serializer (LowParse.Spec.BitFields.parse_bitfield p cl l)
{ "end_col": 6, "end_line": 152, "start_col": 2, "start_line": 147 }
Prims.Tot
val bitfields_destr_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat{lo <= tot}) : Tot (bitfields_destr_t cl lo lo [])
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let bitfields_destr_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat { lo <= tot } ) : Tot (bitfields_destr_t cl lo lo []) = fun f_t f x -> f ()
val bitfields_destr_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat{lo <= tot}) : Tot (bitfields_destr_t cl lo lo []) let bitfields_destr_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat{lo <= tot}) : Tot (bitfields_destr_t cl lo lo []) =
false
null
false
fun f_t f x -> f ()
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.Spec.BitFields.bitfields", "Prims.Nil", "LowParse.Spec.BitFields.synth_bitfield", "LowParse.Spec.BitFields.bitfields_destr_t" ]
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val bitfields_destr_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat{lo <= tot}) : Tot (bitfields_destr_t cl lo lo [])
[]
LowParse.Spec.BitFields.bitfields_destr_nil
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat{lo <= tot} -> LowParse.Spec.BitFields.bitfields_destr_t cl lo lo []
{ "end_col": 8, "end_line": 235, "start_col": 2, "start_line": 234 }
Prims.Tot
val bitfields_destr_cons_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (sz: nat{lo + sz <= tot}) : Tot (bitfields_destr_t cl lo (lo + sz) [sz])
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let bitfields_destr_cons_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (sz: nat { lo + sz <= tot }) : Tot (bitfields_destr_t cl lo (lo + sz) [sz]) = fun f_t f x -> f (cl.get_bitfield x lo (lo + sz))
val bitfields_destr_cons_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (sz: nat{lo + sz <= tot}) : Tot (bitfields_destr_t cl lo (lo + sz) [sz]) let bitfields_destr_cons_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (sz: nat{lo + sz <= t...
false
null
false
fun f_t f x -> f (cl.get_bitfield x lo (lo + sz))
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "LowParse.Spec.BitFields.bitfields", "Prims.Cons", "Prims.Nil", "LowParse.BitFields.__proj__Mkuint_t__item__get_bitfield", "LowParse.Spec.BitFields.synth_bitfield", "LowParse.Sp...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val bitfields_destr_cons_nil (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (sz: nat{lo + sz <= tot}) : Tot (bitfields_destr_t cl lo (lo + sz) [sz])
[]
LowParse.Spec.BitFields.bitfields_destr_cons_nil
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> sz: Prims.nat{lo + sz <= tot} -> LowParse.Spec.BitFields.bitfields_destr_t cl lo (lo + sz) [sz]
{ "end_col": 38, "end_line": 224, "start_col": 2, "start_line": 223 }
FStar.Pervasives.Lemma
val synth_bitfield_recip_inverse' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Lemma (ensures (synth_bitfield cl lo hi l (synth_bitfield_recip cl lo hi l x) == ...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let rec synth_bitfield_recip_inverse' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) (x: bitfields cl lo hi l) : Lemma (ensures (synth_bitfield cl lo hi l (synth_bitfield_recip cl lo hi l x) == x)) (decreases l) = match l w...
val synth_bitfield_recip_inverse' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Lemma (ensures (synth_bitfield cl lo hi l (synth_bitfield_recip cl lo hi l x) == ...
false
null
true
match l with | [] -> assert (synth_bitfield cl lo hi l (synth_bitfield_recip cl lo hi l x) == x) | [sz] -> let x = x <: bitfield cl sz in BF.get_bitfield_set_bitfield_same 0 lo hi (cl.v x); assert (synth_bitfield cl lo hi l (synth_bitfield_recip cl lo hi l x) == cl.get_bitfield (cl.set_bitfield (cl.uint_to_...
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "lemma", "" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.bitfields", "Prims._assert", "Prims.eq2", "LowParse.Spec.BitFields.synth_bitfield", "LowParse...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield_recip_inverse' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x: bitfields cl lo hi l) : Lemma (ensures (synth_bitfield cl lo hi l (synth_bitfield_recip cl lo hi l x) == ...
[ "recursion" ]
LowParse.Spec.BitFields.synth_bitfield_recip_inverse'
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> x: LowParse.Spec.BitFields.bitfields cl lo hi l -> FStar.Pervasives.Lemma (ensures LowParse.Spec.BitFiel...
{ "end_col": 79, "end_line": 131, "start_col": 2, "start_line": 113 }
FStar.Pervasives.Lemma
val valid_bitfield_widths_append (lo: nat) (mi: nat{lo <= mi}) (hi: nat{mi <= hi}) (prefix: list nat {valid_bitfield_widths lo mi prefix}) (suffix: list nat {valid_bitfield_widths mi hi suffix}) : Lemma (ensures (valid_bitfield_widths lo hi (prefix `L.append` suffix))) (decreases prefi...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "Lo...
false
let rec valid_bitfield_widths_append (lo: nat) (mi: nat { lo <= mi }) (hi: nat { mi <= hi }) (prefix: list nat { valid_bitfield_widths lo mi prefix }) (suffix: list nat { valid_bitfield_widths mi hi suffix }) : Lemma (ensures (valid_bitfield_widths lo hi (prefix `L.append` suffix))) (decreases prefix) = m...
val valid_bitfield_widths_append (lo: nat) (mi: nat{lo <= mi}) (hi: nat{mi <= hi}) (prefix: list nat {valid_bitfield_widths lo mi prefix}) (suffix: list nat {valid_bitfield_widths mi hi suffix}) : Lemma (ensures (valid_bitfield_widths lo hi (prefix `L.append` suffix))) (decreases prefi...
false
null
true
match prefix with | [] -> () | sz :: q -> valid_bitfield_widths_append (lo + sz) mi hi q suffix
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "lemma", "" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.Spec.BitFields.valid_bitfield_widths_append", "Prims.op_Addition", "Prims.unit", "Prims.l_True", "Prims.squash", "FStar.List.Tot.Base.append", "Prims.Nil", "FStar.Pe...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val valid_bitfield_widths_append (lo: nat) (mi: nat{lo <= mi}) (hi: nat{mi <= hi}) (prefix: list nat {valid_bitfield_widths lo mi prefix}) (suffix: list nat {valid_bitfield_widths mi hi suffix}) : Lemma (ensures (valid_bitfield_widths lo hi (prefix `L.append` suffix))) (decreases prefi...
[ "recursion" ]
LowParse.Spec.BitFields.valid_bitfield_widths_append
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
lo: Prims.nat -> mi: Prims.nat{lo <= mi} -> hi: Prims.nat{mi <= hi} -> prefix: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo mi prefix} -> suffix: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths mi hi suffix} -> FStar.Pervasives.Lemma (ensures Lo...
{ "end_col": 68, "end_line": 301, "start_col": 2, "start_line": 299 }
FStar.Pervasives.Lemma
val synth_bitfield_injective' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x y: t) : Lemma (requires (synth_bitfield cl lo hi l x == synth_bitfield cl lo hi l y)) (ensures (BF.get_b...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let rec synth_bitfield_injective' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) (x y: t) : Lemma (requires (synth_bitfield cl lo hi l x == synth_bitfield cl lo hi l y)) (ensures (BF.get_bitfield (cl.v x) lo hi == BF.get_bitfie...
val synth_bitfield_injective' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x y: t) : Lemma (requires (synth_bitfield cl lo hi l x == synth_bitfield cl lo hi l y)) (ensures (BF.get_b...
false
null
true
match l with | [] -> BF.get_bitfield_empty (cl.v x) lo; BF.get_bitfield_empty (cl.v y) lo | [_] -> () | sz :: q -> synth_bitfield_injective' cl (lo + sz) hi q x y; BF.get_bitfield_partition_2_gen lo (lo + sz) hi (cl.v x) (cl.v y)
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "lemma", "" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "LowParse.BitFields.get_bitfield_empty", "LowParse.BitFields.__proj__Mkuint_t__item__v", "Prims.unit", "LowParse.BitFiel...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield_injective' (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x y: t) : Lemma (requires (synth_bitfield cl lo hi l x == synth_bitfield cl lo hi l y)) (ensures (BF.get_b...
[ "recursion" ]
LowParse.Spec.BitFields.synth_bitfield_injective'
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> x: t -> y: t -> FStar.Pervasives.Lemma (requires LowParse.Spec.BitFields.synth_bitfield cl lo hi l x...
{ "end_col": 69, "end_line": 58, "start_col": 2, "start_line": 51 }
FStar.Pervasives.Lemma
val synth_bitfield_ext (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x y: t) : Lemma (requires (BF.get_bitfield (cl.v x) lo hi == BF.get_bitfield (cl.v y) lo hi)) (ensures (synth_bit...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": true, "full_module": "LowParse.BitFields", "short_module": "BF" }, { "abbrev": false, "full_module": "LowParse.BitFields", "short_module": null }, { "abbrev": false, "full_module...
false
let rec synth_bitfield_ext (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat { valid_bitfield_widths lo hi l }) (x y: t) : Lemma (requires (BF.get_bitfield (cl.v x) lo hi == BF.get_bitfield (cl.v y) lo hi)) (ensures (synth_bitfield cl lo hi l x == synth_bitfield cl...
val synth_bitfield_ext (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x y: t) : Lemma (requires (BF.get_bitfield (cl.v x) lo hi == BF.get_bitfield (cl.v y) lo hi)) (ensures (synth_bit...
false
null
true
match l with | [] -> assert (synth_bitfield cl lo hi l x == synth_bitfield cl lo hi l y) | [_] -> assert (cl.uint_to_t (cl.v (cl.get_bitfield x lo hi)) == cl.uint_to_t (cl.v (cl.get_bitfield y lo hi))); assert (synth_bitfield cl lo hi l x == synth_bitfield cl lo hi l y) | sz :: q -> BF.get_bitfield_get_bitf...
{ "checked_file": "LowParse.Spec.BitFields.fst.checked", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Int.fsti.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.BitFields.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasiv...
[ "lemma", "" ]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "LowParse.Spec.BitFields.valid_bitfield_widths", "Prims._assert", "Prims.eq2", "LowParse.Spec.BitFields.bitfields", "LowParse.Spec.BitFields.synth_bitfield", "Prims.un...
[]
module LowParse.Spec.BitFields include LowParse.Spec.Combinators include LowParse.Spec.Int include LowParse.BitFields module BF = LowParse.BitFields // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. let rec valid_bitfield_bounds (lo: nat) (hi: nat { lo <= hi }) (l:...
false
false
LowParse.Spec.BitFields.fst
{ "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...
null
val synth_bitfield_ext (#tot: pos) (#t: Type) (cl: uint_t tot t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat {valid_bitfield_widths lo hi l}) (x y: t) : Lemma (requires (BF.get_bitfield (cl.v x) lo hi == BF.get_bitfield (cl.v y) lo hi)) (ensures (synth_bit...
[ "recursion" ]
LowParse.Spec.BitFields.synth_bitfield_ext
{ "file_name": "src/lowparse/LowParse.Spec.BitFields.fst", "git_rev": "446a08ce38df905547cf20f28c43776b22b8087a", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
cl: LowParse.BitFields.uint_t tot t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat {LowParse.Spec.BitFields.valid_bitfield_widths lo hi l} -> x: t -> y: t -> FStar.Pervasives.Lemma (requires LowParse.BitFields.get_bitfield (Mkuint_t?.v cl x) ...
{ "end_col": 71, "end_line": 88, "start_col": 2, "start_line": 76 }
FStar.All.ML
val test: Prims.unit -> FStar.All.ML bool
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test () : FStar.All.ML bool = let t0 : bool = test_secret_to_public test2_sk test2_pk in let t1 : bool = test_verify test1_pk test1_msg test1_sgnt in let t2 : bool = test_sign_and_verify test2_sk test2_pk test2_nonce test2_msgHash test2_sgnt in let t3 : bool = test_public_key_compressed test2_pk in let t...
val test: Prims.unit -> FStar.All.ML bool let test () : FStar.All.ML bool =
true
null
false
let t0:bool = test_secret_to_public test2_sk test2_pk in let t1:bool = test_verify test1_pk test1_msg test1_sgnt in let t2:bool = test_sign_and_verify test2_sk test2_pk test2_nonce test2_msgHash test2_sgnt in let t3:bool = test_public_key_compressed test2_pk in let t4:bool = test_public_key_uncompressed test2_pk in if ...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "ml" ]
[ "Prims.unit", "Prims.op_AmpAmp", "Prims.bool", "FStar.IO.print_string", "Spec.K256.Test.test_public_key_uncompressed", "Spec.K256.Test.test2_pk", "Spec.K256.Test.test_public_key_compressed", "Spec.K256.Test.test_sign_and_verify", "Spec.K256.Test.test2_sk", "Spec.K256.Test.test2_nonce", "Spec.K25...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "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...
null
val test: Prims.unit -> FStar.All.ML bool
[]
Spec.K256.Test.test
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
_: Prims.unit -> FStar.All.ML Prims.bool
{ "end_col": 71, "end_line": 207, "start_col": 34, "start_line": 198 }
Prims.Tot
val test1_msg:lbytes 6
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test1_msg : lbytes 6 = let l = List.Tot.map u8_from_UInt8 [ 0x31uy; 0x32uy; 0x33uy; 0x34uy; 0x30uy; 0x30uy ] in assert_norm (List.Tot.length l == 6); of_list l
val test1_msg:lbytes 6 let test1_msg:lbytes 6 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [0x31uy; 0x32uy; 0x33uy; 0x34uy; 0x30uy; 0x30uy] in assert_norm (List.Tot.length l == 6); of_list l
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test1_msg:lbytes 6
[]
Spec.K256.Test.test1_msg
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 6
{ "end_col": 11, "end_line": 35, "start_col": 26, "start_line": 30 }
FStar.All.ML
val test_verify: pk:lbytes 64 -> msg:bytes{length msg <= max_size_t} -> sgnt:lbytes 64 -> FStar.All.ML bool
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test_verify pk msg sgnt = let verify : bool = ecdsa_verify_sha256 (length msg) msg pk sgnt in if verify then begin IO.print_string "Test K256 ecdsa verification: Success!\n"; true end else begin IO.print_string "Test K256 ecdsa verification: Failure :(\n"; false end
val test_verify: pk:lbytes 64 -> msg:bytes{length msg <= max_size_t} -> sgnt:lbytes 64 -> FStar.All.ML bool let test_verify pk msg sgnt =
true
null
false
let verify:bool = ecdsa_verify_sha256 (length msg) msg pk sgnt in if verify then (IO.print_string "Test K256 ecdsa verification: Success!\n"; true) else (IO.print_string "Test K256 ecdsa verification: Failure :(\n"; false)
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "ml" ]
[ "Lib.ByteSequence.lbytes", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.IntTypes.max_size_t", "Prims.bool", "Prims.unit", "FStar.IO.print_string", "Spec.K256.ecdsa_verify_sha256" ]
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test_verify: pk:lbytes 64 -> msg:bytes{length msg <= max_size_t} -> sgnt:lbytes 64 -> FStar.All.ML bool
[]
Spec.K256.Test.test_verify
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
pk: Lib.ByteSequence.lbytes 64 -> msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg <= Lib.IntTypes.max_size_t} -> sgnt: Lib.ByteSequence.lbytes 64 -> FStar.All.ML Prims.bool
{ "end_col": 84, "end_line": 141, "start_col": 29, "start_line": 137 }
FStar.All.ML
val test_public_key_uncompressed (pk_raw: lbytes 64) : FStar.All.ML bool
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test_public_key_uncompressed (pk_raw:lbytes 64) : FStar.All.ML bool = let pk_u = pk_uncompressed_from_raw pk_raw in let pk_raw_u = pk_uncompressed_to_raw pk_u in match pk_raw_u with | Some pk_raw_u -> let is_pk_u_valid = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) pk_raw_u pk_raw ...
val test_public_key_uncompressed (pk_raw: lbytes 64) : FStar.All.ML bool let test_public_key_uncompressed (pk_raw: lbytes 64) : FStar.All.ML bool =
true
null
false
let pk_u = pk_uncompressed_from_raw pk_raw in let pk_raw_u = pk_uncompressed_to_raw pk_u in match pk_raw_u with | Some pk_raw_u -> let is_pk_u_valid = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) pk_raw_u pk_raw in if not is_pk_u_valid then IO.print_string "Test K256 pk_uncompressed (Some): Failure...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "ml" ]
[ "Lib.ByteSequence.lbytes", "Prims.bool", "Prims.unit", "Prims.op_Negation", "FStar.IO.print_string", "Lib.Sequence.for_all2", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.op_Equality", "Prims.nat", "Prims.l_or", "Prims.b2t", "Prims.int", "Prims.op_GreaterThanOrEqu...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test_public_key_uncompressed (pk_raw: lbytes 64) : FStar.All.ML bool
[]
Spec.K256.Test.test_public_key_uncompressed
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
pk_raw: Lib.ByteSequence.lbytes 64 -> FStar.All.ML Prims.bool
{ "end_col": 85, "end_line": 194, "start_col": 73, "start_line": 182 }
FStar.All.ML
val test_public_key_compressed (pk_raw: lbytes 64) : FStar.All.ML bool
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test_public_key_compressed (pk_raw:lbytes 64) : FStar.All.ML bool = let pk_c = pk_compressed_from_raw pk_raw in let pk_raw_c = pk_compressed_to_raw pk_c in match pk_raw_c with | Some pk_raw_c -> let is_pk_c_valid = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) pk_raw_c pk_raw in ...
val test_public_key_compressed (pk_raw: lbytes 64) : FStar.All.ML bool let test_public_key_compressed (pk_raw: lbytes 64) : FStar.All.ML bool =
true
null
false
let pk_c = pk_compressed_from_raw pk_raw in let pk_raw_c = pk_compressed_to_raw pk_c in match pk_raw_c with | Some pk_raw_c -> let is_pk_c_valid = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) pk_raw_c pk_raw in if not is_pk_c_valid then IO.print_string "Test K256 pk_compressed (Some): Failure :(\n"...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "ml" ]
[ "Lib.ByteSequence.lbytes", "Prims.bool", "Prims.unit", "Prims.op_Negation", "FStar.IO.print_string", "Lib.Sequence.for_all2", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.op_Equality", "Prims.nat", "Prims.l_or", "Prims.b2t", "Prims.int", "Prims.op_GreaterThanOrEqu...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test_public_key_compressed (pk_raw: lbytes 64) : FStar.All.ML bool
[]
Spec.K256.Test.test_public_key_compressed
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
pk_raw: Lib.ByteSequence.lbytes 64 -> FStar.All.ML Prims.bool
{ "end_col": 83, "end_line": 179, "start_col": 71, "start_line": 167 }
FStar.All.ML
val test_secret_to_public (sk: lbytes 32) (pk_expected: lbytes 64) : FStar.All.ML bool
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test_secret_to_public (sk:lbytes 32) (pk_expected:lbytes 64) : FStar.All.ML bool = let pk = secret_to_public sk in let is_pk_valid = match pk with | Some pk -> for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) pk_expected pk | None -> false in if is_pk_valid then IO.print_string "Test ...
val test_secret_to_public (sk: lbytes 32) (pk_expected: lbytes 64) : FStar.All.ML bool let test_secret_to_public (sk: lbytes 32) (pk_expected: lbytes 64) : FStar.All.ML bool =
true
null
false
let pk = secret_to_public sk in let is_pk_valid = match pk with | Some pk -> for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) pk_expected pk | None -> false in if is_pk_valid then IO.print_string "Test K256 secret_to_public: Success!\n" else IO.print_string "Test K256 secret_to_public: Failure :(\n"; i...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "ml" ]
[ "Lib.ByteSequence.lbytes", "Prims.bool", "Prims.unit", "FStar.IO.print_string", "Lib.Sequence.for_all2", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.op_Equality", "Prims.nat", "Prims.l_or", "Prims.b2t", "Prims.int", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.ra...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test_secret_to_public (sk: lbytes 32) (pk_expected: lbytes 64) : FStar.All.ML bool
[]
Spec.K256.Test.test_secret_to_public
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
sk: Lib.ByteSequence.lbytes 32 -> pk_expected: Lib.ByteSequence.lbytes 64 -> FStar.All.ML Prims.bool
{ "end_col": 13, "end_line": 128, "start_col": 86, "start_line": 118 }
FStar.All.ML
val test_sign_and_verify: sk:lbytes 32 -> pk:lbytes 64 -> nonce:lbytes 32 -> msgHash:lbytes 32 -> sgnt:lbytes 64 -> FStar.All.ML bool
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test_sign_and_verify sk pk nonce msgHash sgnt = let signature = ecdsa_sign_hashed_msg msgHash sk nonce in let is_sgnt_valid = match signature with | Some x -> for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) sgnt x | None -> false in let verify_sgnt = ecdsa_verify_hashed_msg msgHash p...
val test_sign_and_verify: sk:lbytes 32 -> pk:lbytes 64 -> nonce:lbytes 32 -> msgHash:lbytes 32 -> sgnt:lbytes 64 -> FStar.All.ML bool let test_sign_and_verify sk pk nonce msgHash sgnt =
true
null
false
let signature = ecdsa_sign_hashed_msg msgHash sk nonce in let is_sgnt_valid = match signature with | Some x -> for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) sgnt x | None -> false in let verify_sgnt = ecdsa_verify_hashed_msg msgHash pk sgnt in if verify_sgnt && is_sgnt_valid then (IO.print_string ...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "ml" ]
[ "Lib.ByteSequence.lbytes", "Prims.op_AmpAmp", "Prims.bool", "Prims.unit", "FStar.IO.print_string", "Spec.K256.ecdsa_verify_hashed_msg", "Lib.Sequence.for_all2", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.op_Equality", "Prims.nat", "Prims.l_or", "Prims.b2t", "Pri...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test_sign_and_verify: sk:lbytes 32 -> pk:lbytes 64 -> nonce:lbytes 32 -> msgHash:lbytes 32 -> sgnt:lbytes 64 -> FStar.All.ML bool
[]
Spec.K256.Test.test_sign_and_verify
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
sk: Lib.ByteSequence.lbytes 32 -> pk: Lib.ByteSequence.lbytes 64 -> nonce: Lib.ByteSequence.lbytes 32 -> msgHash: Lib.ByteSequence.lbytes 32 -> sgnt: Lib.ByteSequence.lbytes 64 -> FStar.All.ML Prims.bool
{ "end_col": 98, "end_line": 164, "start_col": 51, "start_line": 152 }
Prims.Tot
val test2_nonce:lbytes 32
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test2_nonce : lbytes 32 = let l = List.Tot.map u8_from_UInt8 [ 0x49uy; 0xa0uy; 0xd7uy; 0xb7uy; 0x86uy; 0xecuy; 0x9cuy; 0xdeuy; 0x0duy; 0x07uy; 0x21uy; 0xd7uy; 0x28uy; 0x04uy; 0xbeuy; 0xfduy; 0x06uy; 0x57uy; 0x1cuy; 0x97uy; 0x4buy; 0x19uy; 0x1euy; 0xfbuy; 0x42uy; 0xecuy; 0xf3uy; 0x22uy; 0xbauy; 0x9...
val test2_nonce:lbytes 32 let test2_nonce:lbytes 32 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [ 0x49uy; 0xa0uy; 0xd7uy; 0xb7uy; 0x86uy; 0xecuy; 0x9cuy; 0xdeuy; 0x0duy; 0x07uy; 0x21uy; 0xd7uy; 0x28uy; 0x04uy; 0xbeuy; 0xfduy; 0x06uy; 0x57uy; 0x1cuy; 0x97uy; 0x4buy; 0x19uy; 0x1euy; 0xfbuy; 0x42uy; 0xecuy; 0xf3uy; 0x22uy; 0xbauy; 0x9duy; 0xdduy; 0x9auy ...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test2_nonce:lbytes 32
[]
Spec.K256.Test.test2_nonce
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32
{ "end_col": 11, "end_line": 89, "start_col": 29, "start_line": 81 }
Prims.Tot
val test2_sk:lbytes 32
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test2_sk : lbytes 32 = let l = List.Tot.map u8_from_UInt8 [ 0xebuy; 0xb2uy; 0xc0uy; 0x82uy; 0xfduy; 0x77uy; 0x27uy; 0x89uy; 0x0auy; 0x28uy; 0xacuy; 0x82uy; 0xf6uy; 0xbduy; 0xf9uy; 0x7buy; 0xaduy; 0x8duy; 0xe9uy; 0xf5uy; 0xd7uy; 0xc9uy; 0x02uy; 0x86uy; 0x92uy; 0xdeuy; 0x1auy; 0x25uy; 0x5cuy; 0xaduy...
val test2_sk:lbytes 32 let test2_sk:lbytes 32 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [ 0xebuy; 0xb2uy; 0xc0uy; 0x82uy; 0xfduy; 0x77uy; 0x27uy; 0x89uy; 0x0auy; 0x28uy; 0xacuy; 0x82uy; 0xf6uy; 0xbduy; 0xf9uy; 0x7buy; 0xaduy; 0x8duy; 0xe9uy; 0xf5uy; 0xd7uy; 0xc9uy; 0x02uy; 0x86uy; 0x92uy; 0xdeuy; 0x1auy; 0x25uy; 0x5cuy; 0xaduy; 0x3euy; 0x0fuy ...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test2_sk:lbytes 32
[]
Spec.K256.Test.test2_sk
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32
{ "end_col": 11, "end_line": 63, "start_col": 26, "start_line": 55 }
Prims.Tot
val test2_msgHash:lbytes 32
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test2_msgHash : lbytes 32 = let l = List.Tot.map u8_from_UInt8 [ 0x4buy; 0x68uy; 0x8duy; 0xf4uy; 0x0buy; 0xceuy; 0xdbuy; 0xe6uy; 0x41uy; 0xdduy; 0xb1uy; 0x6fuy; 0xf0uy; 0xa1uy; 0x84uy; 0x2duy; 0x9cuy; 0x67uy; 0xeauy; 0x1cuy; 0x3buy; 0xf6uy; 0x3fuy; 0x3euy; 0x04uy; 0x71uy; 0xbauy; 0xa6uy; 0x64uy; 0...
val test2_msgHash:lbytes 32 let test2_msgHash:lbytes 32 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [ 0x4buy; 0x68uy; 0x8duy; 0xf4uy; 0x0buy; 0xceuy; 0xdbuy; 0xe6uy; 0x41uy; 0xdduy; 0xb1uy; 0x6fuy; 0xf0uy; 0xa1uy; 0x84uy; 0x2duy; 0x9cuy; 0x67uy; 0xeauy; 0x1cuy; 0x3buy; 0xf6uy; 0x3fuy; 0x3euy; 0x04uy; 0x71uy; 0xbauy; 0xa6uy; 0x64uy; 0x53uy; 0x1duy; 0x1auy ...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test2_msgHash:lbytes 32
[]
Spec.K256.Test.test2_msgHash
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32
{ "end_col": 11, "end_line": 100, "start_col": 31, "start_line": 92 }
Prims.Tot
val test1_sgnt:lbytes 64
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test1_sgnt : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0x81uy; 0x3euy; 0xf7uy; 0x9cuy; 0xceuy; 0xfauy; 0x9auy; 0x56uy; 0xf7uy; 0xbauy; 0x80uy; 0x5fuy; 0x0euy; 0x47uy; 0x85uy; 0x84uy; 0xfeuy; 0x5fuy; 0x0duy; 0xd5uy; 0xf5uy; 0x67uy; 0xbcuy; 0x09uy; 0xb5uy; 0x12uy; 0x3cuy; 0xcbuy; 0xc9uy; 0x83...
val test1_sgnt:lbytes 64 let test1_sgnt:lbytes 64 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [ 0x81uy; 0x3euy; 0xf7uy; 0x9cuy; 0xceuy; 0xfauy; 0x9auy; 0x56uy; 0xf7uy; 0xbauy; 0x80uy; 0x5fuy; 0x0euy; 0x47uy; 0x85uy; 0x84uy; 0xfeuy; 0x5fuy; 0x0duy; 0xd5uy; 0xf5uy; 0x67uy; 0xbcuy; 0x09uy; 0xb5uy; 0x12uy; 0x3cuy; 0xcbuy; 0xc9uy; 0x83uy; 0x23uy; 0x65uy; 0x6...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test1_sgnt:lbytes 64
[]
Spec.K256.Test.test1_sgnt
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64
{ "end_col": 11, "end_line": 50, "start_col": 28, "start_line": 38 }
Prims.Tot
val test2_sgnt:lbytes 64
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test2_sgnt : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0x24uy; 0x10uy; 0x97uy; 0xefuy; 0xbfuy; 0x8buy; 0x63uy; 0xbfuy; 0x14uy; 0x5cuy; 0x89uy; 0x61uy; 0xdbuy; 0xdfuy; 0x10uy; 0xc3uy; 0x10uy; 0xefuy; 0xbbuy; 0x3buy; 0x26uy; 0x76uy; 0xbbuy; 0xc0uy; 0xf8uy; 0xb0uy; 0x85uy; 0x05uy; 0xc9uy; 0xe2...
val test2_sgnt:lbytes 64 let test2_sgnt:lbytes 64 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [ 0x24uy; 0x10uy; 0x97uy; 0xefuy; 0xbfuy; 0x8buy; 0x63uy; 0xbfuy; 0x14uy; 0x5cuy; 0x89uy; 0x61uy; 0xdbuy; 0xdfuy; 0x10uy; 0xc3uy; 0x10uy; 0xefuy; 0xbbuy; 0x3buy; 0x26uy; 0x76uy; 0xbbuy; 0xc0uy; 0xf8uy; 0xb0uy; 0x85uy; 0x05uy; 0xc9uy; 0xe2uy; 0xf7uy; 0x95uy; 0x0...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test2_sgnt:lbytes 64
[]
Spec.K256.Test.test2_sgnt
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64
{ "end_col": 11, "end_line": 115, "start_col": 28, "start_line": 103 }
Prims.Tot
val test2_pk:lbytes 64
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test2_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0x77uy; 0x9duy; 0xd1uy; 0x97uy; 0xa5uy; 0xdfuy; 0x97uy; 0x7euy; 0xd2uy; 0xcfuy; 0x6cuy; 0xb3uy; 0x1duy; 0x82uy; 0xd4uy; 0x33uy; 0x28uy; 0xb7uy; 0x90uy; 0xdcuy; 0x6buy; 0x3buy; 0x7duy; 0x44uy; 0x37uy; 0xa4uy; 0x27uy; 0xbduy; 0x58uy; 0x47uy...
val test2_pk:lbytes 64 let test2_pk:lbytes 64 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [ 0x77uy; 0x9duy; 0xd1uy; 0x97uy; 0xa5uy; 0xdfuy; 0x97uy; 0x7euy; 0xd2uy; 0xcfuy; 0x6cuy; 0xb3uy; 0x1duy; 0x82uy; 0xd4uy; 0x33uy; 0x28uy; 0xb7uy; 0x90uy; 0xdcuy; 0x6buy; 0x3buy; 0x7duy; 0x44uy; 0x37uy; 0xa4uy; 0x27uy; 0xbduy; 0x58uy; 0x47uy; 0xdfuy; 0xcduy; 0xe...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1 let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy...
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test2_pk:lbytes 64
[]
Spec.K256.Test.test2_pk
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64
{ "end_col": 11, "end_line": 78, "start_col": 26, "start_line": 66 }
Prims.Tot
val test1_pk:lbytes 64
[ { "abbrev": false, "full_module": "Spec.K256", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let test1_pk : lbytes 64 = let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy; 0x7buy; 0xf2uy; 0x11uy; 0x89uy; 0xd0uy; 0x76uy; 0x60uy; 0x82uy; 0xfcuy; 0x9duy; 0x84uy; 0x32uy; 0x26uy; 0x88uy; 0x7fuy; 0xc9uy; 0x76uy; 0x03uy; 0x71uy; 0x10uy; 0x0buy; 0x7euy; 0xe2uy...
val test1_pk:lbytes 64 let test1_pk:lbytes 64 =
false
null
false
let l = List.Tot.map u8_from_UInt8 [ 0xb8uy; 0x38uy; 0xffuy; 0x44uy; 0xe5uy; 0xbcuy; 0x17uy; 0x7buy; 0xf2uy; 0x11uy; 0x89uy; 0xd0uy; 0x76uy; 0x60uy; 0x82uy; 0xfcuy; 0x9duy; 0x84uy; 0x32uy; 0x26uy; 0x88uy; 0x7fuy; 0xc9uy; 0x76uy; 0x03uy; 0x71uy; 0x10uy; 0x0buy; 0x7euy; 0xe2uy; 0x0auy; 0x6fuy; 0xf...
{ "checked_file": "Spec.K256.Test.fst.checked", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fst...
[ "total" ]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
module Spec.K256.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.K256 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Test 1
false
false
Spec.K256.Test.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val test1_pk:lbytes 64
[]
Spec.K256.Test.test1_pk
{ "file_name": "specs/tests/Spec.K256.Test.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64
{ "end_col": 11, "end_line": 27, "start_col": 26, "start_line": 15 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasiv...
false
let natN = Vale.Def.Words_s.natN
let natN =
false
null
false
Vale.Def.Words_s.natN
{ "checked_file": "Vale.Def.TypesNative_s.fst.checked", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file":...
[ "total" ]
[ "Vale.Def.Words_s.natN" ]
[]
module Vale.Def.TypesNative_s open FStar.Mul
false
true
Vale.Def.TypesNative_s.fst
{ "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...
null
val natN : n: Prims.nat -> Type0
[]
Vale.Def.TypesNative_s.natN
{ "file_name": "vale/specs/defs/Vale.Def.TypesNative_s.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
n: Prims.nat -> Type0
{ "end_col": 39, "end_line": 4, "start_col": 18, "start_line": 4 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasiv...
false
let pow2_norm = Vale.Def.Words_s.pow2_norm
let pow2_norm =
false
null
false
Vale.Def.Words_s.pow2_norm
{ "checked_file": "Vale.Def.TypesNative_s.fst.checked", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "prims.fst.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file":...
[ "total" ]
[ "Vale.Def.Words_s.pow2_norm" ]
[]
module Vale.Def.TypesNative_s open FStar.Mul
false
true
Vale.Def.TypesNative_s.fst
{ "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...
null
val pow2_norm : n: Prims.nat -> Prims.pos
[]
Vale.Def.TypesNative_s.pow2_norm
{ "file_name": "vale/specs/defs/Vale.Def.TypesNative_s.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
n: Prims.nat -> Prims.pos
{ "end_col": 49, "end_line": 5, "start_col": 23, "start_line": 5 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let op_Plus_At #f e1 e2 = fadd #f e1 e2
let op_Plus_At #f e1 e2 =
false
null
false
fadd #f e1 e2
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Spec.GaloisField.fadd" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val op_Plus_At : e1: Spec.GaloisField.felem f -> e2: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
[]
Spec.GaloisField.op_Plus_At
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
e1: Spec.GaloisField.felem f -> e2: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
{ "end_col": 39, "end_line": 34, "start_col": 26, "start_line": 34 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let op_Star_At #f e1 e2 = fmul #f e1 e2
let op_Star_At #f e1 e2 =
false
null
false
fmul #f e1 e2
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Spec.GaloisField.fmul" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val op_Star_At : e1: Spec.GaloisField.felem f -> e2: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
[]
Spec.GaloisField.op_Star_At
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
e1: Spec.GaloisField.felem f -> e2: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
{ "end_col": 39, "end_line": 51, "start_col": 26, "start_line": 51 }
Prims.Tot
val fadd (#f: field) (a b: felem f) : felem f
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let fadd (#f:field) (a:felem f) (b:felem f) : felem f = a ^. b
val fadd (#f: field) (a b: felem f) : felem f let fadd (#f: field) (a b: felem f) : felem f =
false
null
false
a ^. b
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Lib.IntTypes.op_Hat_Dot", "Spec.GaloisField.__proj__GF__item__t", "Lib.IntTypes.SEC" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val fadd (#f: field) (a b: felem f) : felem f
[]
Spec.GaloisField.fadd
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.GaloisField.felem f -> b: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
{ "end_col": 62, "end_line": 33, "start_col": 56, "start_line": 33 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let op_Star_Star_At #f e1 e2 = fexp #f e1 e2
let op_Star_Star_At #f e1 e2 =
false
null
false
fexp #f e1 e2
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Prims.nat", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Spec.GaloisField.fexp" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val op_Star_Star_At : e1: Spec.GaloisField.felem f -> e2: n: Prims.nat{n >= 1} -> Spec.GaloisField.felem f
[]
Spec.GaloisField.op_Star_Star_At
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
e1: Spec.GaloisField.felem f -> e2: n: Prims.nat{n >= 1} -> Spec.GaloisField.felem f
{ "end_col": 44, "end_line": 91, "start_col": 31, "start_line": 91 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let gf t irred = GF t irred
let gf t irred =
false
null
false
GF t irred
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Lib.IntTypes.inttype", "Prims.l_and", "Prims.b2t", "Lib.IntTypes.unsigned", "Prims.op_disEquality", "Lib.IntTypes.U1", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "Spec.GaloisField.GF", "Spec.GaloisField.field" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val gf : t: Lib.IntTypes.inttype{Lib.IntTypes.unsigned t /\ t <> Lib.IntTypes.U1} -> irred: Lib.IntTypes.uint_t t Lib.IntTypes.SEC -> Spec.GaloisField.field
[]
Spec.GaloisField.gf
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Lib.IntTypes.inttype{Lib.IntTypes.unsigned t /\ t <> Lib.IntTypes.U1} -> irred: Lib.IntTypes.uint_t t Lib.IntTypes.SEC -> Spec.GaloisField.field
{ "end_col": 27, "end_line": 15, "start_col": 17, "start_line": 15 }
Prims.Tot
val to_felem (#f: field) (n: nat{n <= maxint f.t}) : felem f
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let to_felem (#f:field) (n:nat{n <= maxint f.t}) : felem f = uint #f.t #SEC n
val to_felem (#f: field) (n: nat{n <= maxint f.t}) : felem f let to_felem (#f: field) (n: nat{n <= maxint f.t}) : felem f =
false
null
false
uint #f.t #SEC n
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.maxint", "Spec.GaloisField.__proj__GF__item__t", "Lib.IntTypes.uint", "Lib.IntTypes.SEC", "Spec.GaloisField.felem" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val to_felem (#f: field) (n: nat{n <= maxint f.t}) : felem f
[]
Spec.GaloisField.to_felem
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
n: Prims.nat{n <= Lib.IntTypes.maxint (GF?.t f)} -> Spec.GaloisField.felem f
{ "end_col": 77, "end_line": 17, "start_col": 61, "start_line": 17 }
Prims.Tot
val from_felem (#f: field) (e: felem f) : n: nat{n <= maxint f.t}
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let from_felem (#f:field) (e:felem f) : n:nat{n <= maxint f.t} = uint_v #f.t #SEC e
val from_felem (#f: field) (e: felem f) : n: nat{n <= maxint f.t} let from_felem (#f: field) (e: felem f) : n: nat{n <= maxint f.t} =
false
null
false
uint_v #f.t #SEC e
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Lib.IntTypes.uint_v", "Spec.GaloisField.__proj__GF__item__t", "Lib.IntTypes.SEC", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.maxint" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val from_felem (#f: field) (e: felem f) : n: nat{n <= maxint f.t}
[]
Spec.GaloisField.from_felem
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
e: Spec.GaloisField.felem f -> n: Prims.nat{n <= Lib.IntTypes.maxint (GF?.t f)}
{ "end_col": 83, "end_line": 18, "start_col": 65, "start_line": 18 }
Prims.Tot
val zero (#f: field) : felem f
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let zero (#f:field) : felem f = to_felem 0
val zero (#f: field) : felem f let zero (#f: field) : felem f =
false
null
false
to_felem 0
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.to_felem", "Spec.GaloisField.felem" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val zero (#f: field) : felem f
[]
Spec.GaloisField.zero
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.GaloisField.felem f
{ "end_col": 42, "end_line": 20, "start_col": 32, "start_line": 20 }
Prims.Tot
val one (#f: field) : felem f
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let one (#f:field) : felem f = to_felem 1
val one (#f: field) : felem f let one (#f: field) : felem f =
false
null
false
to_felem 1
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.to_felem", "Spec.GaloisField.felem" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val one (#f: field) : felem f
[]
Spec.GaloisField.one
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.GaloisField.felem f
{ "end_col": 41, "end_line": 21, "start_col": 31, "start_line": 21 }
Prims.Tot
val fexp: #f:field -> a:felem f -> n:nat{n >= 1} -> Tot (felem f) (decreases n)
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let rec fexp #f a x = if x = 1 then a else if x = 2 then fmul #f a a else let r = fexp #f a (x / 2) in let r' = fmul #f r r in if (x % 2) = 0 then r' else fmul #f a r'
val fexp: #f:field -> a:felem f -> n:nat{n >= 1} -> Tot (felem f) (decreases n) let rec fexp #f a x =
false
null
false
if x = 1 then a else if x = 2 then fmul #f a a else let r = fexp #f a (x / 2) in let r' = fmul #f r r in if (x % 2) = 0 then r' else fmul #f a r'
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total", "" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Prims.nat", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Prims.op_Equality", "Prims.int", "Prims.bool", "Spec.GaloisField.fmul", "Prims.op_Modulus", "Spec.GaloisField.fexp", "Prims.op_Division" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val fexp: #f:field -> a:felem f -> n:nat{n >= 1} -> Tot (felem f) (decreases n)
[ "recursion" ]
Spec.GaloisField.fexp
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.GaloisField.felem f -> n: Prims.nat{n >= 1} -> Prims.Tot (Spec.GaloisField.felem f)
{ "end_col": 19, "end_line": 90, "start_col": 2, "start_line": 85 }
Prims.Tot
val fmul_be (#f: field) (x y: felem f) : felem f
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let fmul_be (#f:field) (x:felem f) (y:felem f) : felem f = let (res, y) = repeati (bits f.t) (fmul_be_f x) (zero, y) in res
val fmul_be (#f: field) (x y: felem f) : felem f let fmul_be (#f: field) (x y: felem f) : felem f =
false
null
false
let res, y = repeati (bits f.t) (fmul_be_f x) (zero, y) in res
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "FStar.Pervasives.Native.tuple2", "Lib.LoopCombinators.repeati", "Lib.IntTypes.bits", "Spec.GaloisField.__proj__GF__item__t", "Spec.GaloisField.fmul_be_f", "FStar.Pervasives.Native.Mktuple2", "Spec.GaloisField.zero" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val fmul_be (#f: field) (x y: felem f) : felem f
[]
Spec.GaloisField.fmul_be
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.GaloisField.felem f -> y: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
{ "end_col": 5, "end_line": 81, "start_col": 58, "start_line": 79 }
Prims.Tot
val mask_add: #f:field -> x:felem f -> y:felem f -> res:felem f -> i:nat{i < bits f.t} -> Tot (r:felem f{r == (if v (get_ith_bit x i) = 1 then res `fadd` y else res)})
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let mask_add #f x y res i = logxor_lemma res zero; res `fadd` (y &. eq_mask #f.t (get_ith_bit x i) one)
val mask_add: #f:field -> x:felem f -> y:felem f -> res:felem f -> i:nat{i < bits f.t} -> Tot (r:felem f{r == (if v (get_ith_bit x i) = 1 then res `fadd` y else res)}) let mask_add #f x y res i =
false
null
false
logxor_lemma res zero; res `fadd` (y &. eq_mask #f.t (get_ith_bit x i) one)
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.bits", "Spec.GaloisField.__proj__GF__item__t", "Spec.GaloisField.fadd", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.SEC", "Lib.IntTypes.eq_mask", "Spec.GaloisField.get_ith_bit", "Spe...
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val mask_add: #f:field -> x:felem f -> y:felem f -> res:felem f -> i:nat{i < bits f.t} -> Tot (r:felem f{r == (if v (get_ith_bit x i) = 1 then res `fadd` y else res)})
[]
Spec.GaloisField.mask_add
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.GaloisField.felem f -> y: Spec.GaloisField.felem f -> res: Spec.GaloisField.felem f -> i: Prims.nat{i < Lib.IntTypes.bits (GF?.t f)} -> r: Spec.GaloisField.felem f { r == (match Lib.IntTypes.v (Spec.GaloisField.get_ith_bit x i) = 1 with | true -> Spec.GaloisField.f...
{ "end_col": 54, "end_line": 63, "start_col": 2, "start_line": 62 }
Prims.Tot
val reverse (#t: inttype{unsigned t}) (a: uint_t t SEC) : uint_t t SEC
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let reverse (#t:inttype{unsigned t}) (a:uint_t t SEC) : uint_t t SEC = repeati (bits t) (fun i u -> u |. (((a >>. size i) &. uint #t #SEC 1) <<. (size (bits t - 1 - i)))) (uint #t #SEC 0)
val reverse (#t: inttype{unsigned t}) (a: uint_t t SEC) : uint_t t SEC let reverse (#t: inttype{unsigned t}) (a: uint_t t SEC) : uint_t t SEC =
false
null
false
repeati (bits t) (fun i u -> u |. (((a >>. size i) &. uint #t #SEC 1) <<. (size (bits t - 1 - i)))) (uint #t #SEC 0)
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Lib.IntTypes.inttype", "Prims.b2t", "Lib.IntTypes.unsigned", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "Lib.LoopCombinators.repeati", "Lib.IntTypes.int_t", "Lib.IntTypes.bits", "Prims.nat", "Prims.op_LessThan", "Lib.IntTypes.op_Bar_Dot", "Lib.IntTypes.op_Less_Less_Dot", "Lib.IntTypes.op_Am...
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val reverse (#t: inttype{unsigned t}) (a: uint_t t SEC) : uint_t t SEC
[]
Spec.GaloisField.reverse
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Lib.IntTypes.uint_t t Lib.IntTypes.SEC -> Lib.IntTypes.uint_t t Lib.IntTypes.SEC
{ "end_col": 91, "end_line": 28, "start_col": 2, "start_line": 27 }
Prims.Tot
val finv (#f: field) (a: felem f) : felem f
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let finv (#f:field) (a:felem f) : felem f = fexp #f a (maxint f.t - 1)
val finv (#f: field) (a: felem f) : felem f let finv (#f: field) (a: felem f) : felem f =
false
null
false
fexp #f a (maxint f.t - 1)
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Spec.GaloisField.fexp", "Prims.op_Subtraction", "Lib.IntTypes.maxint", "Spec.GaloisField.__proj__GF__item__t" ]
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val finv (#f: field) (a: felem f) : felem f
[]
Spec.GaloisField.finv
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
{ "end_col": 28, "end_line": 94, "start_col": 2, "start_line": 94 }
Prims.Tot
val fmul (#f: field) (a b: felem f) : felem f
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mo...
false
let fmul (#f:field) (a:felem f) (b:felem f) : felem f = let one = one #f in let zero = zero #f in let (p,a,b) = repeati (bits f.t - 1) (fun i (p,a,b) -> let b0 = eq_mask #f.t (b &. one) one in let p = p ^. (b0 &. a) in let carry_mask = eq_mask #f.t (a >>. size (bits f.t - 1)) one in let a =...
val fmul (#f: field) (a b: felem f) : felem f let fmul (#f: field) (a b: felem f) : felem f =
false
null
false
let one = one #f in let zero = zero #f in let p, a, b = repeati (bits f.t - 1) (fun i (p, a, b) -> let b0 = eq_mask #f.t (b &. one) one in let p = p ^. (b0 &. a) in let carry_mask = eq_mask #f.t (a >>. size (bits f.t - 1)) one in let a = a <<. size 1 in let a = a ^. (carry_...
{ "checked_file": "Spec.GaloisField.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", ...
[ "total" ]
[ "Spec.GaloisField.field", "Spec.GaloisField.felem", "Lib.IntTypes.int_t", "Spec.GaloisField.__proj__GF__item__t", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Hat_Dot", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.eq_mask", "FStar.Pervasives.Native.tuple3", "Lib.LoopCombinators.repeati", "Prims.op_Subtracti...
[]
module Spec.GaloisField open Lib.IntTypes open Lib.Sequence open Lib.LoopCombinators open Lib.ByteSequence (* We represent GF(2^n) by uint_t along with some irreducible polynomial also of type uint_t *) (* Consequently this module is specialized for GF(8/16/32/64/128) but can be generalized to other sizes if needed ...
false
false
Spec.GaloisField.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...
null
val fmul (#f: field) (a b: felem f) : felem f
[]
Spec.GaloisField.fmul
{ "file_name": "specs/Spec.GaloisField.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.GaloisField.felem f -> b: Spec.GaloisField.felem f -> Spec.GaloisField.felem f
{ "end_col": 3, "end_line": 50, "start_col": 55, "start_line": 36 }