file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
FStar.BufferNG.fst
FStar.BufferNG.fill
val fill: #t:typ -> b:buffer t -> z: P.type_of_typ t -> len:UInt32.t{UInt32.v len <= length b} -> HST.Stack unit (requires (fun h -> live h b)) (ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ P.modifies (P.loc_buffer (gsub b 0ul len)) h0 h1 /\ Seq.slice (as_seq h1 b) 0 (UInt32.v len) == ...
val fill: #t:typ -> b:buffer t -> z: P.type_of_typ t -> len:UInt32.t{UInt32.v len <= length b} -> HST.Stack unit (requires (fun h -> live h b)) (ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ P.modifies (P.loc_buffer (gsub b 0ul len)) h0 h1 /\ Seq.slice (as_seq h1 b) 0 (UInt32.v len) == ...
let fill #t b z len = let h0 = HST.get () in P.fill_buffer b 0ul len z; let h1 = HST.get () in assert (as_seq h1 (gsub b 0ul len) == Seq.slice (as_seq h1 b) 0 (UInt32.v len)); assert (let g = gsub b len (UInt32.sub (P.buffer_length b) len) in as_seq h1 g == as_seq h0 g)
{ "file_name": "ulib/legacy/FStar.BufferNG.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 96, "end_line": 492, "start_col": 0, "start_line": 487 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pointer.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.S...
[ { "abbrev": true, "full_module": "FStar.Pointer", "short_module": "P" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: FStar.BufferNG.buffer t -> z: FStar.Pointer.Base.type_of_typ t -> len: FStar.UInt32.t{FStar.UInt32.v len <= FStar.BufferNG.length b} -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.BufferNG.typ", "FStar.BufferNG.buffer", "FStar.Pointer.Base.type_of_typ", "FStar.UInt32.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt32.v", "FStar.BufferNG.length", "Prims._assert", "Prims.eq2", "FStar.Seq.Base.seq", "Prims.l_or", "Prims.nat", "FStar.Seq.Base.length", "...
[]
false
true
false
false
false
let fill #t b z len =
let h0 = HST.get () in P.fill_buffer b 0ul len z; let h1 = HST.get () in assert (as_seq h1 (gsub b 0ul len) == Seq.slice (as_seq h1 b) 0 (UInt32.v len)); assert (let g = gsub b len (UInt32.sub (P.buffer_length b) len) in as_seq h1 g == as_seq h0 g)
false
Vale.AES.GCTR_BE_s.fst
Vale.AES.GCTR_BE_s.gctr_encrypt_reveal
val gctr_encrypt_reveal : _: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.AES.GCTR_BE_s.gctr_encrypt == Vale.AES.GCTR_BE_s.gctr_encrypt_def)
let gctr_encrypt_reveal = opaque_revealer (`%gctr_encrypt) gctr_encrypt gctr_encrypt_def
{ "file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 100, "end_line": 70, "start_col": 12, "start_line": 70 }
module Vale.AES.GCTR_BE_s // IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open FStar.Mul open Vale.AES.AES_BE_s ...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.AES_BE_s.fst.checked", "prims.fst....
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_BE_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.AES.GCTR_BE_s.gctr_encrypt == Vale.AES.GCTR_BE_s.gctr_encrypt_def)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Opaque_s.opaque_revealer", "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat8", "Vale.AES.AES_common_s.algorithm", "Vale.Def.Types_s.nat32", "Prims.l_and", "Vale.AES.GCTR_BE_s.is_gctr_plain", "Vale.AES.AES_BE_s.is_aes_key_word", "Prims.l_True", "Vale.AES.GCTR_BE_s....
[]
true
false
true
false
false
let gctr_encrypt_reveal =
opaque_revealer (`%gctr_encrypt) gctr_encrypt gctr_encrypt_def
false
Steel.Channel.Duplex.fsti
Steel.Channel.Duplex.prot
val prot:Type u#1
val prot:Type u#1
let prot : Type u#1 = protocol unit
{ "file_name": "lib/steel/Steel.Channel.Duplex.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 31, "start_col": 0, "start_line": 31 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "Steel.Effect.fsti.checked", "Steel.Channel.Protocol.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.Channel.Duplex.fsti" }
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Memory", "short_module": null }, { "abbrev": false, "full_module": "Steel.Channel.Protocol", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type
Prims.Tot
[ "total" ]
[]
[ "Steel.Channel.Protocol.protocol", "Prims.unit" ]
[]
false
false
false
true
true
let prot:Type u#1 =
protocol unit
false
Vale.AES.GCTR_BE_s.fst
Vale.AES.GCTR_BE_s.gctr_encrypt_block
val gctr_encrypt_block (icb plain: quad32) (alg: algorithm) (key: seq nat32) (i: int) : Pure quad32 (requires is_aes_key_word alg key) (ensures fun _ -> True)
val gctr_encrypt_block (icb plain: quad32) (alg: algorithm) (key: seq nat32) (i: int) : Pure quad32 (requires is_aes_key_word alg key) (ensures fun _ -> True)
let gctr_encrypt_block (icb:quad32) (plain:quad32) (alg:algorithm) (key:seq nat32) (i:int) : Pure quad32 (requires is_aes_key_word alg key) (ensures fun _ -> True) = quad32_xor plain (aes_encrypt_word alg key (inc32 icb i))
{ "file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 28, "start_col": 0, "start_line": 24 }
module Vale.AES.GCTR_BE_s // IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open FStar.Mul open Vale.AES.AES_BE_s ...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.AES_BE_s.fst.checked", "prims.fst....
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_BE_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
icb: Vale.Def.Types_s.quad32 -> plain: Vale.Def.Types_s.quad32 -> alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 -> i: Prims.int -> Prims.Pure Vale.Def.Types_s.quad32
Prims.Pure
[]
[]
[ "Vale.Def.Types_s.quad32", "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat32", "Prims.int", "Vale.Def.Types_s.quad32_xor", "Vale.AES.AES_BE_s.aes_encrypt_word", "Vale.AES.GCTR_BE_s.inc32", "Vale.AES.AES_BE_s.is_aes_key_word", "Prims.l_True" ]
[]
false
false
false
false
false
let gctr_encrypt_block (icb plain: quad32) (alg: algorithm) (key: seq nat32) (i: int) : Pure quad32 (requires is_aes_key_word alg key) (ensures fun _ -> True) =
quad32_xor plain (aes_encrypt_word alg key (inc32 icb i))
false
Vale.AES.GCTR_BE_s.fst
Vale.AES.GCTR_BE_s.gctr_encrypt_recursive
val gctr_encrypt_recursive (icb: quad32) (plain: gctr_plain_internal) (alg: algorithm) (key: aes_key_word alg) (i: int) : Tot (seq quad32) (decreases %[length plain])
val gctr_encrypt_recursive (icb: quad32) (plain: gctr_plain_internal) (alg: algorithm) (key: aes_key_word alg) (i: int) : Tot (seq quad32) (decreases %[length plain])
let rec gctr_encrypt_recursive (icb:quad32) (plain:gctr_plain_internal) (alg:algorithm) (key:aes_key_word alg) (i:int) : Tot (seq quad32) (decreases %[length plain]) = if length plain = 0 then empty else cons (gctr_encrypt_block icb (head plain) alg key i) (gctr_encrypt_recursive ...
{ "file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 114, "end_line": 35, "start_col": 0, "start_line": 31 }
module Vale.AES.GCTR_BE_s // IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open FStar.Mul open Vale.AES.AES_BE_s ...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.AES_BE_s.fst.checked", "prims.fst....
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_BE_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
icb: Vale.Def.Types_s.quad32 -> plain: Vale.AES.GCTR_BE_s.gctr_plain_internal -> alg: Vale.AES.AES_common_s.algorithm -> key: Vale.AES.AES_BE_s.aes_key_word alg -> i: Prims.int -> Prims.Tot (FStar.Seq.Base.seq Vale.Def.Types_s.quad32)
Prims.Tot
[ "total", "" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.AES.GCTR_BE_s.gctr_plain_internal", "Vale.AES.AES_common_s.algorithm", "Vale.AES.AES_BE_s.aes_key_word", "Prims.int", "Prims.op_Equality", "FStar.Seq.Base.length", "FStar.Seq.Base.empty", "Prims.bool", "FStar.Seq.Base.cons", "Vale.AES.GCTR_BE_s.gctr_encrypt_block...
[ "recursion" ]
false
false
false
false
false
let rec gctr_encrypt_recursive (icb: quad32) (plain: gctr_plain_internal) (alg: algorithm) (key: aes_key_word alg) (i: int) : Tot (seq quad32) (decreases %[length plain]) =
if length plain = 0 then empty else cons (gctr_encrypt_block icb (head plain) alg key i) (gctr_encrypt_recursive icb (tail plain) alg key (i + 1))
false
FStar.BufferNG.fst
FStar.BufferNG.blit
val blit: #t:typ -> a:buffer t -> idx_a:UInt32.t -> b:buffer t{disjoint a b} -> idx_b:UInt32.t -> len:UInt32.t{UInt32.v idx_a + UInt32.v len <= length a /\ UInt32.v idx_b + UInt32.v len <= length b} -> HST.Stack unit (requires (fun h -> live h a /\ live h b)) (ensures (fun h0 _ h1 -> live h0 b /\ l...
val blit: #t:typ -> a:buffer t -> idx_a:UInt32.t -> b:buffer t{disjoint a b} -> idx_b:UInt32.t -> len:UInt32.t{UInt32.v idx_a + UInt32.v len <= length a /\ UInt32.v idx_b + UInt32.v len <= length b} -> HST.Stack unit (requires (fun h -> live h a /\ live h b)) (ensures (fun h0 _ h1 -> live h0 b /\ l...
let blit #t a idx_a b idx_b len = if len = 0ul then () else begin let h0 = HST.get () in P.copy_buffer_contents a idx_a b idx_b len; let h1 = HST.get () in P.buffer_readable_modifies_gsub b idx_b len h0 h1 (P.loc_buffer (P.gsub_buffer b idx_b len)); assert (let g = (gsub b (UInt32.add idx_b le...
{ "file_name": "ulib/legacy/FStar.BufferNG.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 472, "start_col": 0, "start_line": 461 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pointer.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.S...
[ { "abbrev": true, "full_module": "FStar.Pointer", "short_module": "P" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BufferNG.buffer t -> idx_a: FStar.UInt32.t -> b: FStar.BufferNG.buffer t {FStar.BufferNG.disjoint a b} -> idx_b: FStar.UInt32.t -> len: FStar.UInt32.t { FStar.UInt32.v idx_a + FStar.UInt32.v len <= FStar.BufferNG.length a /\ FStar.UInt32.v idx_b + FStar.UInt32.v len...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.BufferNG.typ", "FStar.BufferNG.buffer", "FStar.UInt32.t", "FStar.BufferNG.disjoint", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v", "FStar.BufferNG.length", "Prims.op_Equality", "FStar.UInt32.__uint_to_t", "Prims.unit", "Prims.bool", ...
[]
false
true
false
false
false
let blit #t a idx_a b idx_b len =
if len = 0ul then () else let h0 = HST.get () in P.copy_buffer_contents a idx_a b idx_b len; let h1 = HST.get () in P.buffer_readable_modifies_gsub b idx_b len h0 h1 (P.loc_buffer (P.gsub_buffer b idx_b len)); assert (let g = (gsub b (UInt32.add idx_b len) (UInt32.sub (P.buffer_length b) (UInt32.add i...
false
Vale.AES.GCTR_BE_s.fst
Vale.AES.GCTR_BE_s.inc32
val inc32 (cb: quad32) (i: int) : quad32
val inc32 (cb: quad32) (i: int) : quad32
let inc32 (cb:quad32) (i:int) : quad32 = Mkfour ((cb.lo0 + i) % pow2_32) cb.lo1 cb.hi2 cb.hi3
{ "file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 22, "start_col": 0, "start_line": 21 }
module Vale.AES.GCTR_BE_s // IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open FStar.Mul open Vale.AES.AES_BE_s ...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.AES_BE_s.fst.checked", "prims.fst....
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_BE_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cb: Vale.Def.Types_s.quad32 -> i: Prims.int -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Prims.int", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Prims.op_Modulus", "Prims.op_Addition", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.pow2_32", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2"...
[]
false
false
false
true
false
let inc32 (cb: quad32) (i: int) : quad32 =
Mkfour ((cb.lo0 + i) % pow2_32) cb.lo1 cb.hi2 cb.hi3
false
Vale.AES.GCTR_BE_s.fst
Vale.AES.GCTR_BE_s.gctr_encrypt_def
val gctr_encrypt_def (icb: quad32) (plain: seq nat8) (alg: algorithm) (key: seq nat32) : Pure (seq nat8) (requires is_gctr_plain plain /\ is_aes_key_word alg key) (ensures fun _ -> True)
val gctr_encrypt_def (icb: quad32) (plain: seq nat8) (alg: algorithm) (key: seq nat32) : Pure (seq nat8) (requires is_gctr_plain plain /\ is_aes_key_word alg key) (ensures fun _ -> True)
let gctr_encrypt_def (icb:quad32) (plain:seq nat8) (alg:algorithm) (key:seq nat32) : Pure (seq nat8) (requires is_gctr_plain plain /\ is_aes_key_word alg key) (ensures fun _ -> True) = let num_extra = (length plain) % 16 in if num_extra = 0 then let plain_quads = be_bytes_to_seq_quad32 plain in let c...
{ "file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 68, "start_col": 0, "start_line": 45 }
module Vale.AES.GCTR_BE_s // IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open FStar.Mul open Vale.AES.AES_BE_s ...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.AES_BE_s.fst.checked", "prims.fst....
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_BE_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
icb: Vale.Def.Types_s.quad32 -> plain: FStar.Seq.Base.seq Vale.Def.Types_s.nat8 -> alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 -> Prims.Pure (FStar.Seq.Base.seq Vale.Def.Types_s.nat8)
Prims.Pure
[]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat8", "Vale.AES.AES_common_s.algorithm", "Vale.Def.Types_s.nat32", "Prims.op_Equality", "Prims.int", "Vale.Def.Words.Seq_s.seq_nat32_to_seq_nat8_BE", "Vale.Def.Words.Seq_s.seq_four_to_seq_BE", "Vale.AES.GCTR_BE_s.gctr_encrypt_recu...
[]
false
false
false
false
false
let gctr_encrypt_def (icb: quad32) (plain: seq nat8) (alg: algorithm) (key: seq nat32) : Pure (seq nat8) (requires is_gctr_plain plain /\ is_aes_key_word alg key) (ensures fun _ -> True) =
let num_extra = (length plain) % 16 in if num_extra = 0 then let plain_quads = be_bytes_to_seq_quad32 plain in let cipher_quads = gctr_encrypt_recursive icb plain_quads alg key 0 in seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE cipher_quads) else let full_bytes_len = (length plain) - num_extra in let full_bloc...
false
FStar.Math.Euclid.fsti
FStar.Math.Euclid.divides
val divides (a b: int) : prop
val divides (a b: int) : prop
let divides (a b:int) : prop = exists q. b = q * a
{ "file_name": "ulib/FStar.Math.Euclid.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 12, "start_col": 0, "start_line": 12 }
module FStar.Math.Euclid open FStar.Mul /// /// Divides relation /// /// It is reflexive, transitive, and antisymmetric up to sign. /// When a <> 0, a `divides` b iff a % b = 0 (this is proved below) ///
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.Math.Euclid.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "abbrev": false, "full_module": "FStar.Perv...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> b: Prims.int -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Prims.l_Exists", "Prims.b2t", "Prims.op_Equality", "FStar.Mul.op_Star", "Prims.prop" ]
[]
false
false
false
true
true
let divides (a b: int) : prop =
exists q. b = q * a
false
FStar.Math.Euclid.fsti
FStar.Math.Euclid.is_gcd
val is_gcd (a b d: int) : prop
val is_gcd (a b d: int) : prop
let is_gcd (a b d:int) : prop = d `divides` a /\ d `divides` b /\ (forall x. (x `divides` a /\ x `divides` b) ==> x `divides` d)
{ "file_name": "ulib/FStar.Math.Euclid.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 64, "end_line": 58, "start_col": 0, "start_line": 55 }
module FStar.Math.Euclid open FStar.Mul /// /// Divides relation /// /// It is reflexive, transitive, and antisymmetric up to sign. /// When a <> 0, a `divides` b iff a % b = 0 (this is proved below) /// let divides (a b:int) : prop = exists q. b = q * a val divides_reflexive (a:int) : Lemma (a `divides` a) [SMTPat...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.Math.Euclid.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "abbrev": false, "full_module": "FStar.Perv...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> b: Prims.int -> d: Prims.int -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Prims.l_and", "FStar.Math.Euclid.divides", "Prims.l_Forall", "Prims.l_imp", "Prims.prop" ]
[]
false
false
false
true
true
let is_gcd (a b d: int) : prop =
d `divides` a /\ d `divides` b /\ (forall x. (x `divides` a /\ x `divides` b) ==> x `divides` d)
false
Vale.AES.GCTR_BE_s.fst
Vale.AES.GCTR_BE_s.pad_to_128_bits
val pad_to_128_bits (p: seq nat8) : Pure (seq nat8) (requires True) (ensures fun q -> length q % 16 == 0 /\ length q <= length p + 15)
val pad_to_128_bits (p: seq nat8) : Pure (seq nat8) (requires True) (ensures fun q -> length q % 16 == 0 /\ length q <= length p + 15)
let pad_to_128_bits (p:seq nat8) : Pure (seq nat8) (requires True) (ensures fun q -> length q % 16 == 0 /\ length q <= length p + 15) = let num_extra_bytes = length p % 16 in if num_extra_bytes = 0 then p else p @| (create (16 - num_extra_bytes) 0)
{ "file_name": "vale/specs/crypto/Vale.AES.GCTR_BE_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 43, "start_col": 0, "start_line": 37 }
module Vale.AES.GCTR_BE_s // IMPORTANT: Following NIST's specification, this spec is written assuming a big-endian mapping from bytes to quad32s open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open FStar.Mul open Vale.AES.AES_BE_s ...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.AES_BE_s.fst.checked", "prims.fst....
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_BE_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: FStar.Seq.Base.seq Vale.Def.Types_s.nat8 -> Prims.Pure (FStar.Seq.Base.seq Vale.Def.Types_s.nat8)
Prims.Pure
[]
[]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat8", "Prims.op_Equality", "Prims.int", "Prims.bool", "FStar.Seq.Base.op_At_Bar", "FStar.Seq.Base.create", "Prims.op_Subtraction", "Prims.op_Modulus", "FStar.Seq.Base.length", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.b2t", "Prims.op_Less...
[]
false
false
false
false
false
let pad_to_128_bits (p: seq nat8) : Pure (seq nat8) (requires True) (ensures fun q -> length q % 16 == 0 /\ length q <= length p + 15) =
let num_extra_bytes = length p % 16 in if num_extra_bytes = 0 then p else p @| (create (16 - num_extra_bytes) 0)
false
FStar.Math.Euclid.fsti
FStar.Math.Euclid.is_prime
val is_prime : p: Prims.int -> Prims.logical
let is_prime (p:int) = 1 < p /\ (forall (d:int).{:pattern (d `divides` p)} (d `divides` p ==> (d = 1 \/ d = -1 \/ d = p \/ d = -p)))
{ "file_name": "ulib/FStar.Math.Euclid.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 62, "end_line": 108, "start_col": 0, "start_line": 105 }
module FStar.Math.Euclid open FStar.Mul /// /// Divides relation /// /// It is reflexive, transitive, and antisymmetric up to sign. /// When a <> 0, a `divides` b iff a % b = 0 (this is proved below) /// let divides (a b:int) : prop = exists q. b = q * a val divides_reflexive (a:int) : Lemma (a `divides` a) [SMTPat...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "FStar.Math.Euclid.fsti" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math", "short_module": null }, { "abbrev": false, "full_module": "FStar.Perv...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Prims.int -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.l_Forall", "Prims.l_imp", "FStar.Math.Euclid.divides", "Prims.l_or", "Prims.op_Equality", "Prims.op_Minus", "Prims.logical" ]
[]
false
false
false
true
true
let is_prime (p: int) =
1 < p /\ (forall (d: int). {:pattern (d `divides` p)} (d `divides` p ==> (d = 1 \/ d = - 1 \/ d = p \/ d = - p)))
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul
val aff_point_mul : a: Prims.nat -> p: Spec.K256.PointOps.aff_point -> Spec.K256.PointOps.aff_point
let aff_point_mul = S.aff_point_mul
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 15, "start_col": 0, "start_line": 15 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.nat -> p: Spec.K256.PointOps.aff_point -> Spec.K256.PointOps.aff_point
Prims.Tot
[ "total" ]
[]
[ "Spec.K256.aff_point_mul" ]
[]
false
false
false
true
false
let aff_point_mul =
S.aff_point_mul
false
LowParse.Spec.Endianness.Instances.fst
LowParse.Spec.Endianness.Instances.uint64
val uint64:uinttype U64.t 8
val uint64:uinttype U64.t 8
let uint64 : uinttype U64.t 8 = UIntType (fun x -> U64.v x) (fun x -> FStar.Int.Cast.uint64_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint64 x) 0uL (fun _ _ -> ()) (fun x y -> x `U64.add` y) (fun x -> x `U64.mul` 256uL) (fun x -> x `U64.div` 256uL)
{ "file_name": "src/lowparse/LowParse.Spec.Endianness.Instances.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 62, "start_col": 0, "start_line": 53 }
module LowParse.Spec.Endianness.Instances include LowParse.Spec.Endianness module U8 = FStar.UInt8 inline_for_extraction noextract let uint8 : uinttype U8.t 1 = UIntType (fun x -> U8.v x) (fun x -> x) (fun x -> x) 0uy (fun _ _ -> ()) (fun x y -> x `U8.add` y) (fun x -> 0uy) (fun x ->...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Endianness.fst.checked", "LowParse.Spec.BoundedInt.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt16", "short_module": "U16" }, { "abbrev": true, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.Spec.Endianness.uinttype FStar.UInt64.t 8
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Endianness.UIntType", "FStar.UInt64.t", "FStar.UInt64.v", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Mul.op_Star", "FStar.Int.Cast.uint64_to_uint8", "FStar.UInt8.t", "Prims.eq2", "Prims.int", "FStar.UInt8.v", "Prims.op_Modulus", "FStar.Int.Cast.uin...
[]
false
false
false
false
false
let uint64:uinttype U64.t 8 =
UIntType (fun x -> U64.v x) (fun x -> FStar.Int.Cast.uint64_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint64 x) 0uL (fun _ _ -> ()) (fun x y -> x `U64.add` y) (fun x -> x `U64.mul` 256uL) (fun x -> x `U64.div` 256uL)
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg
val aff_point_mul_neg (a: int) (p: S.aff_point) : S.aff_point
val aff_point_mul_neg (a: int) (p: S.aff_point) : S.aff_point
let aff_point_mul_neg (a:int) (p:S.aff_point) : S.aff_point = LE.pow_neg S.mk_k256_abelian_group p a
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 19, "start_col": 0, "start_line": 18 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> p: Spec.K256.PointOps.aff_point -> Spec.K256.PointOps.aff_point
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Spec.K256.PointOps.aff_point", "Lib.Exponentiation.Definition.pow_neg", "Spec.K256.mk_k256_abelian_group" ]
[]
false
false
false
true
false
let aff_point_mul_neg (a: int) (p: S.aff_point) : S.aff_point =
LE.pow_neg S.mk_k256_abelian_group p a
false
LowParse.Spec.Endianness.Instances.fst
LowParse.Spec.Endianness.Instances.uint32
val uint32:uinttype U32.t 4
val uint32:uinttype U32.t 4
let uint32 : uinttype U32.t 4 = UIntType (fun x -> U32.v x) (fun x -> FStar.Int.Cast.uint32_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint32 x) 0ul (fun _ _ -> ()) (fun x y -> x `U32.add` y) (fun x -> x `U32.mul` 256ul) (fun x -> x `U32.div` 256ul)
{ "file_name": "src/lowparse/LowParse.Spec.Endianness.Instances.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 47, "start_col": 0, "start_line": 38 }
module LowParse.Spec.Endianness.Instances include LowParse.Spec.Endianness module U8 = FStar.UInt8 inline_for_extraction noextract let uint8 : uinttype U8.t 1 = UIntType (fun x -> U8.v x) (fun x -> x) (fun x -> x) 0uy (fun _ _ -> ()) (fun x y -> x `U8.add` y) (fun x -> 0uy) (fun x ->...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Endianness.fst.checked", "LowParse.Spec.BoundedInt.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt16", "short_module": "U16" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": false, "full_module": "LowPa...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.Spec.Endianness.uinttype FStar.UInt32.t 4
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Endianness.UIntType", "FStar.UInt32.t", "FStar.UInt32.v", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Mul.op_Star", "FStar.Int.Cast.uint32_to_uint8", "FStar.UInt8.t", "Prims.eq2", "Prims.int", "FStar.UInt8.v", "Prims.op_Modulus", "FStar.Int.Cast.uin...
[]
false
false
false
false
false
let uint32:uinttype U32.t 4 =
UIntType (fun x -> U32.v x) (fun x -> FStar.Int.Cast.uint32_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint32 x) 0ul (fun _ _ -> ()) (fun x y -> x `U32.add` y) (fun x -> x `U32.mul` 256ul) (fun x -> x `U32.div` 256ul)
false
LowParse.Spec.Endianness.Instances.fst
LowParse.Spec.Endianness.Instances.uint16
val uint16:uinttype U16.t 2
val uint16:uinttype U16.t 2
let uint16 : uinttype U16.t 2 = UIntType (fun x -> U16.v x) (fun x -> FStar.Int.Cast.uint16_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint16 x) 0us (fun _ _ -> ()) (fun x y -> x `U16.add` y) (fun x -> x `U16.mul` 256us) (fun x -> x `U16.div` 256us)
{ "file_name": "src/lowparse/LowParse.Spec.Endianness.Instances.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 32, "start_col": 0, "start_line": 23 }
module LowParse.Spec.Endianness.Instances include LowParse.Spec.Endianness module U8 = FStar.UInt8 inline_for_extraction noextract let uint8 : uinttype U8.t 1 = UIntType (fun x -> U8.v x) (fun x -> x) (fun x -> x) 0uy (fun _ _ -> ()) (fun x y -> x `U8.add` y) (fun x -> 0uy) (fun x ->...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Endianness.fst.checked", "LowParse.Spec.BoundedInt.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.UInt16", "short_module": "U16" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": false, "full_module": "LowParse.Spec.Endianness", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.Spec.Endianness.uinttype FStar.UInt16.t 2
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Endianness.UIntType", "FStar.UInt16.t", "FStar.UInt16.v", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Mul.op_Star", "FStar.Int.Cast.uint16_to_uint8", "FStar.UInt8.t", "Prims.eq2", "Prims.int", "FStar.UInt8.v", "Prims.op_Modulus", "FStar.Int.Cast.uin...
[]
false
false
false
false
false
let uint16:uinttype U16.t 2 =
UIntType (fun x -> U16.v x) (fun x -> FStar.Int.Cast.uint16_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint16 x) 0us (fun _ _ -> ()) (fun x y -> x `U16.add` y) (fun x -> x `U16.mul` 256us) (fun x -> x `U16.div` 256us)
false
LowParse.Spec.Endianness.Instances.fst
LowParse.Spec.Endianness.Instances.uint8
val uint8:uinttype U8.t 1
val uint8:uinttype U8.t 1
let uint8 : uinttype U8.t 1 = UIntType (fun x -> U8.v x) (fun x -> x) (fun x -> x) 0uy (fun _ _ -> ()) (fun x y -> x `U8.add` y) (fun x -> 0uy) (fun x -> 0uy)
{ "file_name": "src/lowparse/LowParse.Spec.Endianness.Instances.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 18, "end_line": 17, "start_col": 0, "start_line": 8 }
module LowParse.Spec.Endianness.Instances include LowParse.Spec.Endianness module U8 = FStar.UInt8 inline_for_extraction
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Endianness.fst.checked", "LowParse.Spec.BoundedInt.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": false, "full_module": "LowParse.Spec.Endianness", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Endianness", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.Spec.Endianness.uinttype FStar.UInt8.t 1
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Endianness.UIntType", "FStar.UInt8.t", "FStar.UInt8.v", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Mul.op_Star", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Prims.l_or", "Prims.l_and", "Prims.op_GreaterThanOrEqual", "FStar.UInt.size", "FStar.U...
[]
false
false
false
false
false
let uint8:uinttype U8.t 1 =
UIntType (fun x -> U8.v x) (fun x -> x) (fun x -> x) 0uy (fun _ _ -> ()) (fun x y -> x `U8.add` y) (fun x -> 0uy) (fun x -> 0uy)
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.lemma_aff_point_mul_neg_add
val lemma_aff_point_mul_neg_add (a b:int) (p:S.aff_point) : Lemma (aff_point_mul_neg (a + b) p == S.aff_point_add (aff_point_mul_neg a p) (aff_point_mul_neg b p))
val lemma_aff_point_mul_neg_add (a b:int) (p:S.aff_point) : Lemma (aff_point_mul_neg (a + b) p == S.aff_point_add (aff_point_mul_neg a p) (aff_point_mul_neg b p))
let lemma_aff_point_mul_neg_add a b p = LE.lemma_pow_neg_add S.mk_k256_abelian_group p a b
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 36, "start_col": 0, "start_line": 35 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul // [a...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> b: Prims.int -> p: Spec.K256.PointOps.aff_point -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg (a + b) p == Spec.K256.PointOps.aff_point_add (Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg a p) (Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg b p))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Spec.K256.PointOps.aff_point", "Lib.Exponentiation.Definition.lemma_pow_neg_add", "Spec.K256.mk_k256_abelian_group", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_aff_point_mul_neg_add a b p =
LE.lemma_pow_neg_add S.mk_k256_abelian_group p a b
false
LowParse.Spec.Endianness.Instances.fst
LowParse.Spec.Endianness.Instances.bounded_integer
val bounded_integer (i: integer_size) : Tot (uinttype (bounded_integer i) i)
val bounded_integer (i: integer_size) : Tot (uinttype (bounded_integer i) i)
let bounded_integer (i: integer_size) : Tot (uinttype (bounded_integer i) i) = UIntType (fun (x: bounded_integer i) -> bounded_integer_prop_equiv i x; U32.v x) (fun x -> FStar.Int.Cast.uint32_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint32 x) 0ul (fun _ _ -> ()) (fun x y -> x `U32.add` y)...
{ "file_name": "src/lowparse/LowParse.Spec.Endianness.Instances.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 79, "start_col": 0, "start_line": 68 }
module LowParse.Spec.Endianness.Instances include LowParse.Spec.Endianness module U8 = FStar.UInt8 inline_for_extraction noextract let uint8 : uinttype U8.t 1 = UIntType (fun x -> U8.v x) (fun x -> x) (fun x -> x) 0uy (fun _ _ -> ()) (fun x y -> x `U8.add` y) (fun x -> 0uy) (fun x ->...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Endianness.fst.checked", "LowParse.Spec.BoundedInt.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": false, "full_module": "LowParse.Spec.BoundedInt", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowParse.Spec.BoundedInt.integer_size -> LowParse.Spec.Endianness.uinttype (LowParse.Spec.BoundedInt.bounded_integer i) i
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.Endianness.UIntType", "LowParse.Spec.BoundedInt.bounded_integer", "FStar.UInt32.v", "Prims.unit", "LowParse.Spec.BoundedInt.bounded_integer_prop_equiv", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Mul.op_Star", "FS...
[]
false
false
false
false
false
let bounded_integer (i: integer_size) : Tot (uinttype (bounded_integer i) i) =
UIntType (fun (x: bounded_integer i) -> bounded_integer_prop_equiv i x; U32.v x) (fun x -> FStar.Int.Cast.uint32_to_uint8 x) (fun x -> FStar.Int.Cast.uint8_to_uint32 x) 0ul (fun _ _ -> ()) (fun x y -> x `U32.add` y) (fun x -> x `U32.mul` 256ul) (fun x -> x `U32.div` 256ul)
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.make_minus_b1
val make_minus_b1: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.minus_b1)
val make_minus_b1: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.minus_b1)
let make_minus_b1 f = [@inline_let] let x = (u64 0x6f547fa90abfe4c3, u64 0xe4437ed6010e8828, u64 0x0, u64 0x0) in assert_norm (SG.minus_b1 == qas_nat4 x); make_u64_4 f x
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 76, "start_col": 0, "start_line": 67 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.K256.Scalar.make_u64_4", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.GLV.minus_b1", "Hacl.K256.Scalar.qas_nat4", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar....
[]
false
true
false
false
false
let make_minus_b1 f =
[@@ inline_let ]let x = (u64 0x6f547fa90abfe4c3, u64 0xe4437ed6010e8828, u64 0x0, u64 0x0) in assert_norm (SG.minus_b1 == qas_nat4 x); make_u64_4 f x
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.lemma_aff_point_mul_neg_mul_add
val lemma_aff_point_mul_neg_mul_add (a b c:int) (p:S.aff_point) : Lemma (aff_point_mul_neg (a * b + c) p == S.aff_point_add (aff_point_mul_neg b (aff_point_mul_neg a p)) (aff_point_mul_neg c p))
val lemma_aff_point_mul_neg_mul_add (a b c:int) (p:S.aff_point) : Lemma (aff_point_mul_neg (a * b + c) p == S.aff_point_add (aff_point_mul_neg b (aff_point_mul_neg a p)) (aff_point_mul_neg c p))
let lemma_aff_point_mul_neg_mul_add a b c p = lemma_aff_point_mul_neg_add (a * b) c p; lemma_aff_point_mul_neg_mul a b p
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 54, "start_col": 0, "start_line": 52 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul // [a...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> b: Prims.int -> c: Prims.int -> p: Spec.K256.PointOps.aff_point -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg (a * b + c) p == Spec.K256.PointOps.aff_point_add (Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg b (Hacl.Spec.K256.ECSM.Lemmas.aff_...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Spec.K256.PointOps.aff_point", "Hacl.Spec.K256.ECSM.Lemmas.lemma_aff_point_mul_neg_mul", "Prims.unit", "Hacl.Spec.K256.ECSM.Lemmas.lemma_aff_point_mul_neg_add", "FStar.Mul.op_Star" ]
[]
true
false
true
false
false
let lemma_aff_point_mul_neg_mul_add a b c p =
lemma_aff_point_mul_neg_add (a * b) c p; lemma_aff_point_mul_neg_mul a b p
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.make_g2
val make_g2: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.g2)
val make_g2: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.g2)
let make_g2 f = [@inline_let] let x = (u64 0x1571b4ae8ac47f71, u64 0x221208ac9df506c6, u64 0x6f547fa90abfe4c4, u64 0xe4437ed6010e8828) in assert_norm (SG.g2 == qas_nat4 x); make_u64_4 f x
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 130, "start_col": 0, "start_line": 121 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.K256.Scalar.make_u64_4", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.GLV.g2", "Hacl.K256.Scalar.qas_nat4", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Pervas...
[]
false
true
false
false
false
let make_g2 f =
[@@ inline_let ]let x = (u64 0x1571b4ae8ac47f71, u64 0x221208ac9df506c6, u64 0x6f547fa90abfe4c4, u64 0xe4437ed6010e8828) in assert_norm (SG.g2 == qas_nat4 x); make_u64_4 f x
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.lemma_aff_point_mul_neg_mul
val lemma_aff_point_mul_neg_mul (a b:int) (p:S.aff_point) : Lemma (aff_point_mul_neg (a * b) p == aff_point_mul_neg b (aff_point_mul_neg a p))
val lemma_aff_point_mul_neg_mul (a b:int) (p:S.aff_point) : Lemma (aff_point_mul_neg (a * b) p == aff_point_mul_neg b (aff_point_mul_neg a p))
let lemma_aff_point_mul_neg_mul a b p = LE.lemma_pow_neg_mul S.mk_k256_abelian_group p a b
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 44, "start_col": 0, "start_line": 43 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul // [a...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> b: Prims.int -> p: Spec.K256.PointOps.aff_point -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg (a * b) p == Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg b (Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg a p))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Spec.K256.PointOps.aff_point", "Lib.Exponentiation.Definition.lemma_pow_neg_mul", "Spec.K256.mk_k256_abelian_group", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_aff_point_mul_neg_mul a b p =
LE.lemma_pow_neg_mul S.mk_k256_abelian_group p a b
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.make_minus_b2
val make_minus_b2: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.minus_b2)
val make_minus_b2: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.minus_b2)
let make_minus_b2 f = [@inline_let] let x = (u64 0xd765cda83db1562c, u64 0x8a280ac50774346d, u64 0xfffffffffffffffe, u64 0xffffffffffffffff) in assert_norm (SG.minus_b2 == qas_nat4 x); make_u64_4 f x
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 94, "start_col": 0, "start_line": 85 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.K256.Scalar.make_u64_4", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.GLV.minus_b2", "Hacl.K256.Scalar.qas_nat4", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar....
[]
false
true
false
false
false
let make_minus_b2 f =
[@@ inline_let ]let x = (u64 0xd765cda83db1562c, u64 0x8a280ac50774346d, u64 0xfffffffffffffffe, u64 0xffffffffffffffff) in assert_norm (SG.minus_b2 == qas_nat4 x); make_u64_4 f x
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_mul_neg_lemma
val aff_point_mul_mul_neg_lemma: a:nat -> b:nat -> p:S.aff_point -> Lemma (aff_point_mul a (S.aff_point_negate (aff_point_mul b p)) == aff_point_mul b (S.aff_point_negate (aff_point_mul a p)))
val aff_point_mul_mul_neg_lemma: a:nat -> b:nat -> p:S.aff_point -> Lemma (aff_point_mul a (S.aff_point_negate (aff_point_mul b p)) == aff_point_mul b (S.aff_point_negate (aff_point_mul a p)))
let aff_point_mul_mul_neg_lemma a b p = let p_neg = S.aff_point_negate p in calc (==) { aff_point_mul a (S.aff_point_negate (aff_point_mul b p)); (==) { aff_point_mul_neg_lemma b p } aff_point_mul a (aff_point_mul b p_neg); (==) { aff_point_mul_mul_lemma a b p_neg } aff_point_mul b (aff_point_m...
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 145, "start_col": 0, "start_line": 134 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul // [a...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.nat -> b: Prims.nat -> p: Spec.K256.PointOps.aff_point -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul a (Spec.K256.PointOps.aff_point_negate (Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul b p)) == Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul b (Spec.K256.Po...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Spec.K256.PointOps.aff_point", "FStar.Calc.calc_finish", "Prims.eq2", "Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul", "Spec.K256.PointOps.aff_point_negate", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.Calc.calc_init", "FStar.Ca...
[]
false
false
true
false
false
let aff_point_mul_mul_neg_lemma a b p =
let p_neg = S.aff_point_negate p in calc ( == ) { aff_point_mul a (S.aff_point_negate (aff_point_mul b p)); ( == ) { aff_point_mul_neg_lemma b p } aff_point_mul a (aff_point_mul b p_neg); ( == ) { aff_point_mul_mul_lemma a b p_neg } aff_point_mul b (aff_point_mul a p_neg); ( == ) { aff_point_mul_neg_lemma a...
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg_lemma
val aff_point_mul_neg_lemma: a:nat -> p:S.aff_point -> Lemma (S.aff_point_negate (aff_point_mul a p) == aff_point_mul a (S.aff_point_negate p))
val aff_point_mul_neg_lemma: a:nat -> p:S.aff_point -> Lemma (S.aff_point_negate (aff_point_mul a p) == aff_point_mul a (S.aff_point_negate p))
let aff_point_mul_neg_lemma a p = LE.lemma_inverse_pow S.mk_k256_abelian_group p a
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 126, "start_col": 0, "start_line": 125 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul // [a...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.nat -> p: Spec.K256.PointOps.aff_point -> FStar.Pervasives.Lemma (ensures Spec.K256.PointOps.aff_point_negate (Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul a p) == Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul a (Spec.K256.PointOps.aff_point_negate p))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Spec.K256.PointOps.aff_point", "Lib.Exponentiation.Definition.lemma_inverse_pow", "Spec.K256.mk_k256_abelian_group", "Prims.unit" ]
[]
true
false
true
false
false
let aff_point_mul_neg_lemma a p =
LE.lemma_inverse_pow S.mk_k256_abelian_group p a
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.scalar_split_lambda_g1g2
val scalar_split_lambda_g1g2 (tmp1 tmp2 r1 r2 k: qelem) : Stack unit (requires fun h -> live h k /\ live h r1 /\ live h r2 /\ live h tmp1 /\ live h tmp2 /\ disjoint k r1 /\ disjoint k r2 /\ disjoint r1 r2 /\ disjoint tmp1 r1 /\ disjoint tmp1 r2 /\ disjoint tmp1 k /\ disjoint tmp2 r1 /\ disjoint tm...
val scalar_split_lambda_g1g2 (tmp1 tmp2 r1 r2 k: qelem) : Stack unit (requires fun h -> live h k /\ live h r1 /\ live h r2 /\ live h tmp1 /\ live h tmp2 /\ disjoint k r1 /\ disjoint k r2 /\ disjoint r1 r2 /\ disjoint tmp1 r1 /\ disjoint tmp1 r2 /\ disjoint tmp1 k /\ disjoint tmp2 r1 /\ disjoint tm...
let scalar_split_lambda_g1g2 tmp1 tmp2 r1 r2 k = make_g1 tmp1; // tmp1 = g1 make_g2 tmp2; // tmp2 = g2 qmul_shift_384 r1 k tmp1; // r1 = c1 = qmul_shift_384 k g1 qmul_shift_384 r2 k tmp2; // r2 = c2 = qmul_shift_384 k g2 let h0 = ST.get () in SG.qmul_shift_384_lemma (qas_nat h0 k) (qas_nat h0 tmp1); SG.qm...
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 161, "start_col": 0, "start_line": 153 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tmp1: Hacl.K256.Scalar.qelem -> tmp2: Hacl.K256.Scalar.qelem -> r1: Hacl.K256.Scalar.qelem -> r2: Hacl.K256.Scalar.qelem -> k: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Prims._assert", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Hacl.K256.Scalar.qas_nat", "Spec.K256.PointOps.q", "Prims.unit", "Hacl.Spec.K256.GLV.qmul_shift_384_lemma", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "Hacl.K256.Scalar.qmul_shift_384...
[]
false
true
false
false
false
let scalar_split_lambda_g1g2 tmp1 tmp2 r1 r2 k =
make_g1 tmp1; make_g2 tmp2; qmul_shift_384 r1 k tmp1; qmul_shift_384 r2 k tmp2; let h0 = ST.get () in SG.qmul_shift_384_lemma (qas_nat h0 k) (qas_nat h0 tmp1); SG.qmul_shift_384_lemma (qas_nat h0 k) (qas_nat h0 tmp2); assert (qas_nat h0 r1 < S.q /\ qas_nat h0 r2 < S.q)
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.make_beta
val make_beta: f:felem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ as_nat h1 f == SG.beta /\ inv_fully_reduced h1 f)
val make_beta: f:felem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ as_nat h1 f == SG.beta /\ inv_fully_reduced h1 f)
let make_beta f = [@inline_let] let x = (u64 0x96c28719501ee, u64 0x7512f58995c13, u64 0xc3434e99cf049, u64 0x7106e64479ea, u64 0x7ae96a2b657c) in assert_norm (0x96c28719501ee <= max52); assert_norm (0x7ae96a2b657c <= max48); assert_norm (SG.beta == as_nat5 x); make_u52_5 f x
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 58, "start_col": 0, "start_line": 46 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.K256.Field.felem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Field.felem", "Hacl.K256.Field.make_u52_5", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.nat", "Hacl.Spec.K256.GLV.beta", "Hacl.Spec.K256.Field52.Definitions.as_nat5", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.K256.Field52.Definitions.max48", "Hacl.Spe...
[]
false
true
false
false
false
let make_beta f =
[@@ inline_let ]let x = (u64 0x96c28719501ee, u64 0x7512f58995c13, u64 0xc3434e99cf049, u64 0x7106e64479ea, u64 0x7ae96a2b657c) in assert_norm (0x96c28719501ee <= max52); assert_norm (0x7ae96a2b657c <= max48); assert_norm (SG.beta == as_nat5 x); make_u52_5 f x
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.make_g1
val make_g1: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.g1)
val make_g1: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.g1)
let make_g1 f = [@inline_let] let x = (u64 0xe893209a45dbb031, u64 0x3daa8a1471e8ca7f, u64 0xe86c90e49284eb15, u64 0x3086d221a7d46bcd) in assert_norm (SG.g1 == qas_nat4 x); make_u64_4 f x
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 112, "start_col": 0, "start_line": 103 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.K256.Scalar.make_u64_4", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.GLV.g1", "Hacl.K256.Scalar.qas_nat4", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Pervas...
[]
false
true
false
false
false
let make_g1 f =
[@@ inline_let ]let x = (u64 0xe893209a45dbb031, u64 0x3daa8a1471e8ca7f, u64 0xe86c90e49284eb15, u64 0x3086d221a7d46bcd) in assert_norm (SG.g1 == qas_nat4 x); make_u64_4 f x
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.make_minus_lambda
val make_minus_lambda: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.minus_lambda)
val make_minus_lambda: f:qelem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == SG.minus_lambda)
let make_minus_lambda f = [@inline_let] let x = (u64 0xe0cfc810b51283cf, u64 0xa880b9fc8ec739c2, u64 0x5ad9e3fd77ed9ba4, u64 0xac9c52b33fa3cf1f) in assert_norm (SG.minus_lambda == qas_nat4 x); make_u64_4 f x
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 37, "start_col": 0, "start_line": 28 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.K256.Scalar.make_u64_4", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.GLV.minus_lambda", "Hacl.K256.Scalar.qas_nat4", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FS...
[]
false
true
false
false
false
let make_minus_lambda f =
[@@ inline_let ]let x = (u64 0xe0cfc810b51283cf, u64 0xa880b9fc8ec739c2, u64 0x5ad9e3fd77ed9ba4, u64 0xac9c52b33fa3cf1f) in assert_norm (SG.minus_lambda == qas_nat4 x); make_u64_4 f x
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.lemma_aff_point_mul_neg
val lemma_aff_point_mul_neg: a:S.qelem -> p:S.aff_point -> Lemma (aff_point_mul ((- a) % S.q) (S.aff_point_negate p) == aff_point_mul a p)
val lemma_aff_point_mul_neg: a:S.qelem -> p:S.aff_point -> Lemma (aff_point_mul ((- a) % S.q) (S.aff_point_negate p) == aff_point_mul a p)
let lemma_aff_point_mul_neg a p = let cm = S.mk_k256_comm_monoid in let ag = S.mk_k256_abelian_group in let p_neg = S.aff_point_negate p in if a > 0 then begin calc (==) { aff_point_mul ((- a) % S.q) p_neg; (==) { lemma_aff_point_mul_neg_modq (- a) p_neg } aff_point_mul_neg (- a) p_neg; ...
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 103, "start_col": 0, "start_line": 85 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul // [a...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.K256.PointOps.qelem -> p: Spec.K256.PointOps.aff_point -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul ((- a) % Spec.K256.PointOps.q) (Spec.K256.PointOps.aff_point_negate p) == Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul a p)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.qelem", "Spec.K256.PointOps.aff_point", "Prims.op_GreaterThan", "FStar.Calc.calc_finish", "Prims.eq2", "Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul", "Prims.op_Modulus", "Prims.op_Minus", "Spec.K256.PointOps.q", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.un...
[]
false
false
true
false
false
let lemma_aff_point_mul_neg a p =
let cm = S.mk_k256_comm_monoid in let ag = S.mk_k256_abelian_group in let p_neg = S.aff_point_negate p in if a > 0 then calc ( == ) { aff_point_mul ((- a) % S.q) p_neg; ( == ) { lemma_aff_point_mul_neg_modq (- a) p_neg } aff_point_mul_neg (- a) p_neg; ( == ) { () } S.aff_point_negate (aff_point_mu...
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.negate_point_and_scalar_cond_vartime
val negate_point_and_scalar_cond_vartime: k:qelem -> p:point -> Stack bool (requires fun h -> live h k /\ live h p /\ disjoint k p /\ qas_nat h k < S.q /\ point_inv h p) (ensures fun h0 b h1 -> modifies (loc k |+| loc p) h0 h1 /\ b == S.scalar_is_high (qas_nat h0 k) /\ point_inv h1 p /\ (let k_s, p...
val negate_point_and_scalar_cond_vartime: k:qelem -> p:point -> Stack bool (requires fun h -> live h k /\ live h p /\ disjoint k p /\ qas_nat h k < S.q /\ point_inv h p) (ensures fun h0 b h1 -> modifies (loc k |+| loc p) h0 h1 /\ b == S.scalar_is_high (qas_nat h0 k) /\ point_inv h1 p /\ (let k_s, p...
let negate_point_and_scalar_cond_vartime k p = let b = is_qelem_le_q_halved_vartime k in [@inline_let] let if_high = not b in qnegate_conditional_vartime k if_high; point_negate_conditional_vartime p if_high; if_high
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 9, "end_line": 256, "start_col": 0, "start_line": 251 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Hacl.K256.Scalar.qelem -> p: Hacl.Impl.K256.Point.point -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.Impl.K256.Point.point", "Prims.bool", "Prims.unit", "Hacl.Impl.K256.Point.point_negate_conditional_vartime", "Hacl.K256.Scalar.qnegate_conditional_vartime", "Prims.op_Negation", "Hacl.K256.Scalar.is_qelem_le_q_halved_vartime" ]
[]
false
true
false
false
false
let negate_point_and_scalar_cond_vartime k p =
let b = is_qelem_le_q_halved_vartime k in [@@ inline_let ]let if_high = not b in qnegate_conditional_vartime k if_high; point_negate_conditional_vartime p if_high; if_high
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.point_mul_lambda_and_split_lambda
val point_mul_lambda_and_split_lambda: r1:qelem -> r2:qelem -> lambda_q:point -> scalar:qelem -> q:point -> Stack unit (requires fun h -> live h r1 /\ live h r2 /\ live h lambda_q /\ live h scalar /\ live h q /\ disjoint r1 r2 /\ disjoint r1 lambda_q /\ disjoint r1 scalar /\ disjoint r1 q /\ disjoint r2...
val point_mul_lambda_and_split_lambda: r1:qelem -> r2:qelem -> lambda_q:point -> scalar:qelem -> q:point -> Stack unit (requires fun h -> live h r1 /\ live h r2 /\ live h lambda_q /\ live h scalar /\ live h q /\ disjoint r1 r2 /\ disjoint r1 lambda_q /\ disjoint r1 scalar /\ disjoint r1 q /\ disjoint r2...
let point_mul_lambda_and_split_lambda r1 r2 lambda_q scalar q = scalar_split_lambda r1 r2 scalar; // (r1 + r2 * lambda) % S.q = scalar point_mul_lambda lambda_q q
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 238, "start_col": 0, "start_line": 236 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r1: Hacl.K256.Scalar.qelem -> r2: Hacl.K256.Scalar.qelem -> lambda_q: Hacl.Impl.K256.Point.point -> scalar: Hacl.K256.Scalar.qelem -> q: Hacl.Impl.K256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.Impl.K256.Point.point", "Hacl.Impl.K256.GLV.Constants.point_mul_lambda", "Prims.unit", "Hacl.Impl.K256.GLV.Constants.scalar_split_lambda" ]
[]
false
true
false
false
false
let point_mul_lambda_and_split_lambda r1 r2 lambda_q scalar q =
scalar_split_lambda r1 r2 scalar; point_mul_lambda lambda_q q
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.point_mul_lambda_inplace
val point_mul_lambda_inplace: res:point -> Stack unit (requires fun h -> live h res /\ point_inv h res) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 res /\ point_eval h1 res == SG.point_mul_lambda (point_eval h0 res))
val point_mul_lambda_inplace: res:point -> Stack unit (requires fun h -> live h res /\ point_inv h res) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 res /\ point_eval h1 res == SG.point_mul_lambda (point_eval h0 res))
let point_mul_lambda_inplace res = push_frame (); let rx, ry, rz = getx res, gety res, getz res in let beta = create_felem () in make_beta beta; fmul rx beta rx; pop_frame ()
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 218, "start_col": 0, "start_line": 212 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.GLV.Lemmas", "short_module": "SGL" }, { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
res: Hacl.Impl.K256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.K256.Point.point", "Hacl.K256.Field.felem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.K256.Field.fmul", "Hacl.Impl.K256.GLV.Constants.make_beta", "Hacl.K256.Field.create_felem", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.Mktuple3", "Hacl.Impl.K256.Point.getz",...
[]
false
true
false
false
false
let point_mul_lambda_inplace res =
push_frame (); let rx, ry, rz = getx res, gety res, getz res in let beta = create_felem () in make_beta beta; fmul rx beta rx; pop_frame ()
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.ecmult_endo_split
val ecmult_endo_split: r1:qelem -> r2:qelem -> q1:point -> q2:point -> scalar:qelem -> q:point -> Stack (bool & bool) (requires fun h -> live h r1 /\ live h r2 /\ live h q1 /\ live h q2 /\ live h scalar /\ live h q /\ disjoint r1 r2 /\ disjoint r1 q1 /\ disjoint r1 q2 /\ disjoint r1 scalar /\ ...
val ecmult_endo_split: r1:qelem -> r2:qelem -> q1:point -> q2:point -> scalar:qelem -> q:point -> Stack (bool & bool) (requires fun h -> live h r1 /\ live h r2 /\ live h q1 /\ live h q2 /\ live h scalar /\ live h q /\ disjoint r1 r2 /\ disjoint r1 q1 /\ disjoint r1 q2 /\ disjoint r1 scalar /\ ...
let ecmult_endo_split r1 r2 q1 q2 scalar q = let h0 = ST.get () in // modifies r1, r2, q2 s.t. r1 + r2 * lambda = scalar /\ q2 = [lambda]q point_mul_lambda_and_split_lambda r1 r2 q2 scalar q; copy q1 q; // q1 = q // modifies r1, q1 let is_high1 = negate_point_and_scalar_cond_vartime r1 q1 in // modifies r...
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 269, "start_col": 0, "start_line": 260 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.GLV.Lemmas", "short_module": "SGL" }, { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r1: Hacl.K256.Scalar.qelem -> r2: Hacl.K256.Scalar.qelem -> q1: Hacl.Impl.K256.Point.point -> q2: Hacl.Impl.K256.Point.point -> scalar: Hacl.K256.Scalar.qelem -> q: Hacl.Impl.K256.Point.point -> FStar.HyperStack.ST.Stack (Prims.bool * Prims.bool)
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.Impl.K256.Point.point", "FStar.Pervasives.Native.Mktuple2", "Prims.bool", "FStar.Pervasives.Native.tuple2", "Hacl.Impl.K256.GLV.Constants.negate_point_and_scalar_cond_vartime", "Prims.unit", "Lib.Buffer.copy", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "FStar.UInt32...
[]
false
true
false
false
false
let ecmult_endo_split r1 r2 q1 q2 scalar q =
let h0 = ST.get () in point_mul_lambda_and_split_lambda r1 r2 q2 scalar q; copy q1 q; let is_high1 = negate_point_and_scalar_cond_vartime r1 q1 in let is_high2 = negate_point_and_scalar_cond_vartime r2 q2 in is_high1, is_high2
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.point_mul_lambda
val point_mul_lambda: res:point -> p:point -> Stack unit (requires fun h -> live h res /\ live h p /\ eq_or_disjoint res p /\ point_inv h p) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 res /\ point_eval h1 res == SG.point_mul_lambda (point_eval h0 p))
val point_mul_lambda: res:point -> p:point -> Stack unit (requires fun h -> live h res /\ live h p /\ eq_or_disjoint res p /\ point_inv h p) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 res /\ point_eval h1 res == SG.point_mul_lambda (point_eval h0 p))
let point_mul_lambda res p = push_frame (); let rx, ry, rz = getx res, gety res, getz res in let px, py, pz = getx p, gety p, getz p in let beta = create_felem () in make_beta beta; fmul rx beta px; copy_felem ry py; copy_felem rz pz; pop_frame ()
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 208, "start_col": 0, "start_line": 198 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.GLV.Lemmas", "short_module": "SGL" }, { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
res: Hacl.Impl.K256.Point.point -> p: Hacl.Impl.K256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.K256.Point.point", "Hacl.K256.Field.felem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.K256.Field.copy_felem", "Hacl.K256.Field.fmul", "Hacl.Impl.K256.GLV.Constants.make_beta", "Hacl.K256.Field.create_felem", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.Mktuple3"...
[]
false
true
false
false
false
let point_mul_lambda res p =
push_frame (); let rx, ry, rz = getx res, gety res, getz res in let px, py, pz = getx p, gety p, getz p in let beta = create_felem () in make_beta beta; fmul rx beta px; copy_felem ry py; copy_felem rz pz; pop_frame ()
false
Vale.Wrapper.X64.Poly.fsti
Vale.Wrapper.X64.Poly.uint64
val uint64 : Prims.eqtype
let uint64 = UInt64.t
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Poly.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 19, "start_col": 0, "start_line": 19 }
module Vale.Wrapper.X64.Poly open FStar.HyperStack.ST module B = LowStar.Buffer module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up module HS = FStar.HyperStack open FStar.Mul open Vale.Poly1305.Util open Vale.Poly1305.Math open Vale.Poly1305.Spec_s open Vale.Def.Types_s open Vale.Interop.Base module...
{ "checked_file": "/", "dependencies": [ "Vale.Poly1305.Util.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checke...
[ { "abbrev": true, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": "MH" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.t" ]
[]
false
false
false
true
false
let uint64 =
UInt64.t
false
Vale.Wrapper.X64.Poly.fsti
Vale.Wrapper.X64.Poly.uint8_p
val uint8_p : Type0
let uint8_p = B.buffer UInt8.t
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Poly.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 17, "start_col": 0, "start_line": 17 }
module Vale.Wrapper.X64.Poly open FStar.HyperStack.ST module B = LowStar.Buffer module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up module HS = FStar.HyperStack open FStar.Mul open Vale.Poly1305.Util open Vale.Poly1305.Math open Vale.Poly1305.Spec_s open Vale.Def.Types_s open Vale.Interop.Base module...
{ "checked_file": "/", "dependencies": [ "Vale.Poly1305.Util.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checke...
[ { "abbrev": true, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": "MH" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.buffer", "FStar.UInt8.t" ]
[]
false
false
false
true
true
let uint8_p =
B.buffer UInt8.t
false
Hacl.Impl.K256.GLV.Constants.fst
Hacl.Impl.K256.GLV.Constants.scalar_split_lambda
val scalar_split_lambda (r1 r2 k: qelem) : Stack unit (requires fun h -> live h k /\ live h r1 /\ live h r2 /\ disjoint k r1 /\ disjoint k r2 /\ disjoint r1 r2 /\ qas_nat h k < S.q) (ensures fun h0 _ h1 -> modifies (loc r1 |+| loc r2) h0 h1 /\ (let r1_s, r2_s = SG.scalar_split_lambda (qas_nat h0 k) ...
val scalar_split_lambda (r1 r2 k: qelem) : Stack unit (requires fun h -> live h k /\ live h r1 /\ live h r2 /\ disjoint k r1 /\ disjoint k r2 /\ disjoint r1 r2 /\ qas_nat h k < S.q) (ensures fun h0 _ h1 -> modifies (loc r1 |+| loc r2) h0 h1 /\ (let r1_s, r2_s = SG.scalar_split_lambda (qas_nat h0 k) ...
let scalar_split_lambda r1 r2 k = push_frame (); let tmp1 = create_qelem () in let tmp2 = create_qelem () in scalar_split_lambda_g1g2 tmp1 tmp2 r1 r2 k; make_minus_b1 tmp1; // tmp1 = minus_b1 make_minus_b2 tmp2; // tmp2 = minus_b2 qmul r1 r1 tmp1; // r1 = c1 = c1 * minus_b1 qmul r2 r2 tmp2; // r2 = c2 ...
{ "file_name": "code/k256/Hacl.Impl.K256.GLV.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 190, "start_col": 0, "start_line": 175 }
module Hacl.Impl.K256.GLV.Constants open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K256.GLV.Lemmas open Hacl.K256.Field open Hacl.K256.Scalar open Hacl.Impl.K2...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.GLV.Lemmas.fst.checked", "Hacl.Spec.K256.GLV.fst.checked", "Hacl.K256.Scalar.fsti.checked", "Hacl.K256.Field.fsti.checked", ...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Scalar", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r1: Hacl.K256.Scalar.qelem -> r2: Hacl.K256.Scalar.qelem -> k: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.K256.Scalar.qadd", "Hacl.K256.Scalar.qmul", "Hacl.Impl.K256.GLV.Constants.make_minus_lambda", "Hacl.Impl.K256.GLV.Constants.make_minus_b2", "Hacl.Impl.K256.GLV.Constants.make_minus_b1", "Hacl.Impl.K256.GLV.Constants.scala...
[]
false
true
false
false
false
let scalar_split_lambda r1 r2 k =
push_frame (); let tmp1 = create_qelem () in let tmp2 = create_qelem () in scalar_split_lambda_g1g2 tmp1 tmp2 r1 r2 k; make_minus_b1 tmp1; make_minus_b2 tmp2; qmul r1 r1 tmp1; qmul r2 r2 tmp2; make_minus_lambda tmp1; qadd r2 r1 r2; qmul tmp2 r2 tmp1; qadd r1 k tmp2; pop_frame ()
false
LowParse.Low.ListUpTo.fst
LowParse.Low.ListUpTo.jump_list_up_to_inv
val jump_list_up_to_inv (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U32.t) (h: HS.mem)...
val jump_list_up_to_inv (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U32.t) (h: HS.mem)...
let jump_list_up_to_inv (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p { k.parser_kind_subkind <> Some ParserConsumesAll } ) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U32.t) (h: HS.mem) (stop: bool) : GTot Type0 =...
{ "file_name": "src/lowparse/LowParse.Low.ListUpTo.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 168, "start_col": 0, "start_line": 140 }
module LowParse.Low.ListUpTo include LowParse.Spec.ListUpTo include LowParse.Low.Base module U32 = FStar.UInt32 module U64 = FStar.UInt64 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer unfold let validate_list_up_to_inv (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.ListUpTo.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.che...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cond: (_: t -> Prims.bool) -> prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p { Mkparser_kind'?.parser_kind_subkind k <> FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } -> sl: LowParse.Slice.slice rrel rel -> pos0: FStar.UInt32.t -> h0: FStar.Mono...
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.bool", "LowParse.Spec.ListUpTo.consumes_if_not_cond", "Prims.b2t", "Prims.op_disEquality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkin...
[]
false
false
false
false
true
let jump_list_up_to_inv (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U32.t) (h: HS.mem)...
let pos = B.deref h bpos in let q = parse_list_up_to cond p prf in B.live h0 bpos /\ live_slice h0 sl /\ B.loc_disjoint (B.loc_buffer sl.base) (B.loc_buffer bpos) /\ B.modifies (B.loc_buffer bpos) h0 h /\ U32.v pos0 <= U32.v pos /\ valid q h0 sl pos0 /\ (if stop then get_valid_pos q h0 sl pos0 == pos else valid q h...
false
LowParse.Low.ListUpTo.fst
LowParse.Low.ListUpTo.validate_list_up_to_inv
val validate_list_up_to_inv (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U64.t) (h: HS....
val validate_list_up_to_inv (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U64.t) (h: HS....
let validate_list_up_to_inv (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p { k.parser_kind_subkind <> Some ParserConsumesAll } ) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U64.t) (h: HS.mem) (stop: bool) : GTot Typ...
{ "file_name": "src/lowparse/LowParse.Low.ListUpTo.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 49, "start_col": 0, "start_line": 12 }
module LowParse.Low.ListUpTo include LowParse.Spec.ListUpTo include LowParse.Low.Base module U32 = FStar.UInt32 module U64 = FStar.UInt64 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.ListUpTo.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.che...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cond: (_: t -> Prims.bool) -> prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p { Mkparser_kind'?.parser_kind_subkind k <> FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } -> sl: LowParse.Slice.slice rrel rel -> pos0: FStar.UInt32.t -> h0: FStar.Mono...
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.bool", "LowParse.Spec.ListUpTo.consumes_if_not_cond", "Prims.b2t", "Prims.op_disEquality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkin...
[]
false
false
false
false
true
let validate_list_up_to_inv (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (#rrel #rel: _) (sl: slice rrel rel) (pos0: U32.t) (h0: HS.mem) (bpos: B.pointer U64.t) (h: HS....
let pos = B.deref h bpos in let q = parse_list_up_to cond p prf in B.live h0 bpos /\ live_slice h0 sl /\ B.loc_disjoint (B.loc_buffer sl.base) (B.loc_buffer bpos) /\ B.modifies (B.loc_buffer bpos) h0 h /\ U32.v pos0 <= U64.v pos /\ (if is_success pos then let pos = uint64_to_uint32 pos in U32.v pos <= U32.v s...
false
MerkleTree.New.High.Correct.Insertion.fst
MerkleTree.New.High.Correct.Insertion.insert_inv_preserved_even
val insert_inv_preserved_even: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> lv:nat{lv < 32} -> i:nat -> j:nat{i <= j /\ j < pow2 (32 - lv) - 1} -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz lv i olds} -> hs:hashess #hsz {S.length hs = 32 /\ hs_wf_elts lv hs i j} -> acc:hash -> Lemma (requires (j...
val insert_inv_preserved_even: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> lv:nat{lv < 32} -> i:nat -> j:nat{i <= j /\ j < pow2 (32 - lv) - 1} -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz lv i olds} -> hs:hashess #hsz {S.length hs = 32 /\ hs_wf_elts lv hs i j} -> acc:hash -> Lemma (requires (j...
let insert_inv_preserved_even #_ #f lv i j olds hs acc = let ihs = hashess_insert lv i j hs acc in mt_olds_hs_lth_inv_ok #_ #f lv i j olds hs; assert (mt_hashes_inv #_ #f lv j (merge_hs #_ #f olds hs)); merge_hs_slice_equal #_ #f olds hs olds ihs (lv + 1) 32; remainder_2_not_1_div j; insert_base #_ #f lv i ...
{ "file_name": "src/MerkleTree.New.High.Correct.Insertion.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 5, "end_line": 95, "start_col": 0, "start_line": 67 }
module MerkleTree.New.High.Correct.Insertion open EverCrypt open EverCrypt.Helpers open FStar.Classical open FStar.Ghost open FStar.Seq module List = FStar.List.Tot module S = FStar.Seq module U32 = FStar.UInt32 module U8 = FStar.UInt8 type uint32_t = U32.t type uint8_t = U8.t module EHS = EverCrypt.Hash module MT...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 2, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lv: Prims.nat{lv < 32} -> i: Prims.nat -> j: Prims.nat{i <= j /\ j < Prims.pow2 (32 - lv) - 1} -> olds: MerkleTree.New.High.hashess {FStar.Seq.Base.length olds = 32 /\ MerkleTree.New.High.Correct.Base.mt_olds_inv lv i olds} -> hs: MerkleTree.New.High.hashess {FStar.Seq.B...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "MerkleTree.Spec.hash_fun_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.pow2", "MerkleTree.New.High.hashess", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "MerkleTree.New.High.hashes",...
[]
false
false
true
false
false
let insert_inv_preserved_even #_ #f lv i j olds hs acc =
let ihs = hashess_insert lv i j hs acc in mt_olds_hs_lth_inv_ok #_ #f lv i j olds hs; assert (mt_hashes_inv #_ #f lv j (merge_hs #_ #f olds hs)); merge_hs_slice_equal #_ #f olds hs olds ihs (lv + 1) 32; remainder_2_not_1_div j; insert_base #_ #f lv i j hs acc; if lv = 31 then () else (assert (S.index (merge_hs #_ #f ...
false
LowParse.Low.ListUpTo.fst
LowParse.Low.ListUpTo.jump_list_up_to
val jump_list_up_to (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (j: jumper p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack bool ...
val jump_list_up_to (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (j: jumper p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack bool ...
let jump_list_up_to (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p { k.parser_kind_subkind <> Some ParserConsumesAll } ) (j: jumper p) (cond_impl: ( (#rrel: _) -> (#rel: _) -> (sl: slice rrel rel) -> (pos: U32.t) -> HST.Stack bool (requir...
{ "file_name": "src/lowparse/LowParse.Low.ListUpTo.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 251, "start_col": 0, "start_line": 220 }
module LowParse.Low.ListUpTo include LowParse.Spec.ListUpTo include LowParse.Low.Base module U32 = FStar.UInt32 module U64 = FStar.UInt64 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer unfold let validate_list_up_to_inv (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.ListUpTo.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.che...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cond: (_: t -> Prims.bool) -> prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p { Mkparser_kind'?.parser_kind_subkind k <> FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } -> j: LowParse.Low.Base.jumper p -> cond_impl: (sl: LowParse.Slice.slice rre...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.bool", "LowParse.Spec.ListUpTo.consumes_if_not_cond", "Prims.b2t", "Prims.op_disEquality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkin...
[]
false
false
false
false
false
let jump_list_up_to (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (j: jumper p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack bool ...
fun #rrel #rel sl pos -> HST.push_frame (); let bpos = B.alloca pos 1ul in let h2 = HST.get () in C.Loops.do_while (jump_list_up_to_inv cond prf sl pos h2 bpos) (fun _ -> jump_list_up_to_body cond prf j cond_impl sl pos h2 bpos); let res = B.index bpos 0ul in HST.pop_frame (); res
false
Vale.Wrapper.X64.Poly.fsti
Vale.Wrapper.X64.Poly.math_aux
val math_aux (b: uint8_p) (n: nat) : Lemma (requires B.length b = 8 * n) (ensures DV.length (get_downview b) % 8 = 0)
val math_aux (b: uint8_p) (n: nat) : Lemma (requires B.length b = 8 * n) (ensures DV.length (get_downview b) % 8 = 0)
let math_aux (b:uint8_p) (n:nat) : Lemma (requires B.length b = 8 * n) (ensures DV.length (get_downview b) % 8 = 0) = DV.length_eq (get_downview b)
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Poly.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 30, "start_col": 0, "start_line": 27 }
module Vale.Wrapper.X64.Poly open FStar.HyperStack.ST module B = LowStar.Buffer module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up module HS = FStar.HyperStack open FStar.Mul open Vale.Poly1305.Util open Vale.Poly1305.Math open Vale.Poly1305.Spec_s open Vale.Def.Types_s open Vale.Interop.Base module...
{ "checked_file": "/", "dependencies": [ "Vale.Poly1305.Util.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checke...
[ { "abbrev": true, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": "MH" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.Wrapper.X64.Poly.uint8_p -> n: Prims.nat -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 8 * n) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 8 = 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Wrapper.X64.Poly.uint8_p", "Prims.nat", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.lengt...
[]
true
false
true
false
false
let math_aux (b: uint8_p) (n: nat) : Lemma (requires B.length b = 8 * n) (ensures DV.length (get_downview b) % 8 = 0) =
DV.length_eq (get_downview b)
false
Vale.Wrapper.X64.Poly.fsti
Vale.Wrapper.X64.Poly.uint64_to_nat_seq
val uint64_to_nat_seq (b: Seq.seq UInt64.t) : Seq.lseq nat64 (Seq.length b)
val uint64_to_nat_seq (b: Seq.seq UInt64.t) : Seq.lseq nat64 (Seq.length b)
let uint64_to_nat_seq (b:Seq.seq UInt64.t) : Seq.lseq nat64 (Seq.length b) = Seq.init (Seq.length b) (fun (i:nat{i < Seq.length b}) -> (UInt64.v (Seq.index b i) <: nat64))
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.Poly.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 100, "end_line": 25, "start_col": 0, "start_line": 22 }
module Vale.Wrapper.X64.Poly open FStar.HyperStack.ST module B = LowStar.Buffer module DV = LowStar.BufferView.Down module UV = LowStar.BufferView.Up module HS = FStar.HyperStack open FStar.Mul open Vale.Poly1305.Util open Vale.Poly1305.Math open Vale.Poly1305.Spec_s open Vale.Def.Types_s open Vale.Interop.Base module...
{ "checked_file": "/", "dependencies": [ "Vale.Poly1305.Util.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Base.fst.checked", "Vale.Def.Types_s.fst.checked", "Vale.AsLowStar.MemoryHelpers.fsti.checke...
[ { "abbrev": true, "full_module": "Vale.AsLowStar.MemoryHelpers", "short_module": "MH" }, { "abbrev": false, "full_module": "Vale.Interop.Base", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: FStar.Seq.Base.seq FStar.UInt64.t -> FStar.Seq.Properties.lseq Vale.Def.Types_s.nat64 (FStar.Seq.Base.length b)
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "FStar.UInt64.t", "FStar.Seq.Base.init", "Vale.Def.Types_s.nat64", "FStar.Seq.Base.length", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.UInt64.v", "FStar.Seq.Base.index", "FStar.Seq.Properties.lseq" ]
[]
false
false
false
false
false
let uint64_to_nat_seq (b: Seq.seq UInt64.t) : Seq.lseq nat64 (Seq.length b) =
Seq.init (Seq.length b) (fun (i: nat{i < Seq.length b}) -> (UInt64.v (Seq.index b i) <: nat64))
false
LowParse.Low.ListUpTo.fst
LowParse.Low.ListUpTo.validate_list_up_to
val validate_list_up_to (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (v: validator p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack ...
val validate_list_up_to (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (v: validator p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack ...
let validate_list_up_to (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p { k.parser_kind_subkind <> Some ParserConsumesAll } ) (v: validator p) (cond_impl: ( (#rrel: _) -> (#rel: _) -> (sl: slice rrel rel) -> (pos: U32.t) -> HST.Stack bool ...
{ "file_name": "src/lowparse/LowParse.Low.ListUpTo.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 137, "start_col": 0, "start_line": 106 }
module LowParse.Low.ListUpTo include LowParse.Spec.ListUpTo include LowParse.Low.Base module U32 = FStar.UInt32 module U64 = FStar.UInt64 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer unfold let validate_list_up_to_inv (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.ListUpTo.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.che...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cond: (_: t -> Prims.bool) -> prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p { Mkparser_kind'?.parser_kind_subkind k <> FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } -> v: LowParse.Low.Base.validator p -> cond_impl: (sl: LowParse.Slice.slice ...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.bool", "LowParse.Spec.ListUpTo.consumes_if_not_cond", "Prims.b2t", "Prims.op_disEquality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkin...
[]
false
false
false
false
false
let validate_list_up_to (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (v: validator p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack ...
fun #rrel #rel sl pos -> HST.push_frame (); let bpos = B.alloca pos 1ul in let h2 = HST.get () in C.Loops.do_while (validate_list_up_to_inv cond prf sl (uint64_to_uint32 pos) h2 bpos) (fun _ -> validate_list_up_to_body cond prf v cond_impl sl (uint64_to_uint32 pos) h2 bpos); let res = B.index bpos 0ul in ...
false
Vale.AES.GCM_helpers_BE.fsti
Vale.AES.GCM_helpers_BE.bytes_to_quad_size
val bytes_to_quad_size : num_bytes: Prims.nat -> Prims.int
let bytes_to_quad_size (num_bytes:nat) = ((num_bytes + 15) / 16)
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers_BE.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 17, "start_col": 0, "start_line": 16 }
module Vale.AES.GCM_helpers_BE open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Words.Two_s open Vale.Def.Words.Four_s open Vale.Def.Types_s open Vale.Arch.Types open FStar.Mul open FStar.Seq open Vale.AES.AES_BE_s open Vale.AES.GCTR_BE_s open FStar.Math.Lemmas open Vale.Lib.Seqs
{ "checked_file": "/", "dependencies": [ "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Two_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Arch.Types.fsti.checked", "Val...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GCTR_BE_s", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
num_bytes: Prims.nat -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.op_Division", "Prims.op_Addition", "Prims.int" ]
[]
false
false
false
true
false
let bytes_to_quad_size (num_bytes: nat) =
((num_bytes + 15) / 16)
false
Spec.P256.Lemmas.fst
Spec.P256.Lemmas.lemma_aff_is_point_at_inf
val lemma_aff_is_point_at_inf: p:proj_point -> Lemma (let px, py, pz = p in is_aff_point_at_inf (to_aff_point p) == (pz = 0 || (px = 0 && py = 0)))
val lemma_aff_is_point_at_inf: p:proj_point -> Lemma (let px, py, pz = p in is_aff_point_at_inf (to_aff_point p) == (pz = 0 || (px = 0 && py = 0)))
let lemma_aff_is_point_at_inf p = prime_lemma (); let (px, py, pz) = p in M.lemma_div_mod_prime_is_zero #prime px pz; M.lemma_div_mod_prime_is_zero #prime py pz
{ "file_name": "specs/lemmas/Spec.P256.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 16, "start_col": 0, "start_line": 12 }
module Spec.P256.Lemmas open FStar.Mul open Spec.P256.PointOps module M = Lib.NatMod #set-options "--z3rlimit 50 --ifuel 0 --fuel 0" let prime_lemma () = admit()
{ "checked_file": "/", "dependencies": [ "Spec.P256.PointOps.fst.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": true, "source_file": "Spec.P256.Lemmas.fst" }
[ { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Spec.P256.PointOps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Spec.P256.PointOps.proj_point -> FStar.Pervasives.Lemma (ensures (let _ = p in (let FStar.Pervasives.Native.Mktuple3 #_ #_ #_ px py pz = _ in Spec.P256.PointOps.is_aff_point_at_inf (Spec.P256.PointOps.to_aff_point p) == (pz = 0 || px = 0 && py = 0)) <: Type0))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.P256.PointOps.proj_point", "Prims.nat", "Lib.NatMod.lemma_div_mod_prime_is_zero", "Spec.P256.PointOps.prime", "Prims.unit", "Spec.P256.Lemmas.prime_lemma" ]
[]
false
false
true
false
false
let lemma_aff_is_point_at_inf p =
prime_lemma (); let px, py, pz = p in M.lemma_div_mod_prime_is_zero #prime px pz; M.lemma_div_mod_prime_is_zero #prime py pz
false
Pulse.C.Types.Fields.fsti
Pulse.C.Types.Fields.field_t
val field_t (#t: Type0) (fd: field_description_t t) : Tot eqtype
val field_t (#t: Type0) (fd: field_description_t t) : Tot eqtype
let field_t (#t: Type0) (fd: field_description_t t) : Tot eqtype = (s: string { fd.fd_def s })
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Fields.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 94, "end_line": 30, "start_col": 0, "start_line": 30 }
module Pulse.C.Types.Fields include Pulse.C.Types.Base open Pulse.C.Typestring open Pulse.Lib.Pervasives [@@noextract_to "krml"] // tactic let norm_fields () : FStar.Tactics.Tac unit = FStar.Tactics.norm [delta_attr [`%norm_field_attr]; iota; zeta; primops]; FStar.Tactics.trefl () [@@noextract_to "krml"] // primi...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Typestring.fsti.checked", "Pulse.C.Types.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Pulse.C.Types...
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
fd: Pulse.C.Types.Fields.field_description_t t -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "Pulse.C.Types.Fields.field_description_t", "Prims.string", "Prims.b2t", "Pulse.C.Types.Fields.__proj__Mkfield_description_t__item__fd_def", "Prims.eqtype" ]
[]
false
false
false
true
false
let field_t (#t: Type0) (fd: field_description_t t) : Tot eqtype =
(s: string{fd.fd_def s})
false
Pulse.C.Types.Fields.fsti
Pulse.C.Types.Fields.nonempty_field_description_t
val nonempty_field_description_t : t: Type0 -> Type
let nonempty_field_description_t (t: Type0) = (fd: field_description_t t { fd.fd_empty == false })
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Fields.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 54, "end_line": 27, "start_col": 0, "start_line": 26 }
module Pulse.C.Types.Fields include Pulse.C.Types.Base open Pulse.C.Typestring open Pulse.Lib.Pervasives [@@noextract_to "krml"] // tactic let norm_fields () : FStar.Tactics.Tac unit = FStar.Tactics.norm [delta_attr [`%norm_field_attr]; iota; zeta; primops]; FStar.Tactics.trefl () [@@noextract_to "krml"] // primi...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Typestring.fsti.checked", "Pulse.C.Types.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Pulse.C.Types...
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type0 -> Type
Prims.Tot
[ "total" ]
[]
[ "Pulse.C.Types.Fields.field_description_t", "Prims.eq2", "Prims.bool", "Pulse.C.Types.Fields.__proj__Mkfield_description_t__item__fd_empty" ]
[]
false
false
false
true
true
let nonempty_field_description_t (t: Type0) =
(fd: field_description_t t {fd.fd_empty == false})
false
MerkleTree.New.High.Correct.Insertion.fst
MerkleTree.New.High.Correct.Insertion.insert_inv_preserved
val insert_inv_preserved: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> lv:nat{lv < 32} -> i:nat -> j:nat{i <= j /\ j < pow2 (32 - lv) - 1} -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz lv i olds} -> hs:hashess #hsz {S.length hs = 32 /\ hs_wf_elts lv hs i j} -> acc:hash -> Lemma (requires (mt_old...
val insert_inv_preserved: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> lv:nat{lv < 32} -> i:nat -> j:nat{i <= j /\ j < pow2 (32 - lv) - 1} -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz lv i olds} -> hs:hashess #hsz {S.length hs = 32 /\ hs_wf_elts lv hs i j} -> acc:hash -> Lemma (requires (mt_old...
let rec insert_inv_preserved #_ #f lv i j olds hs acc = if j % 2 = 1 then begin let ihs = hashess_insert lv i j hs acc in mt_olds_hs_lth_inv_ok #_ #f lv i j olds hs; merge_hs_slice_equal #_ #f olds hs olds ihs (lv + 1) 32; assert (mt_hashes_inv #_ #f lv j (merge_hs #_ #f olds hs)); remaind...
{ "file_name": "src/MerkleTree.New.High.Correct.Insertion.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 5, "end_line": 151, "start_col": 0, "start_line": 109 }
module MerkleTree.New.High.Correct.Insertion open EverCrypt open EverCrypt.Helpers open FStar.Classical open FStar.Ghost open FStar.Seq module List = FStar.List.Tot module S = FStar.Seq module U32 = FStar.UInt32 module U8 = FStar.UInt8 type uint32_t = U32.t type uint8_t = U8.t module EHS = EverCrypt.Hash module MT...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lv: Prims.nat{lv < 32} -> i: Prims.nat -> j: Prims.nat{i <= j /\ j < Prims.pow2 (32 - lv) - 1} -> olds: MerkleTree.New.High.hashess {FStar.Seq.Base.length olds = 32 /\ MerkleTree.New.High.Correct.Base.mt_olds_inv lv i olds} -> hs: MerkleTree.New.High.hashess {FStar.Seq.B...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "MerkleTree.Spec.hash_fun_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.pow2", "MerkleTree.New.High.hashess", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "MerkleTree.New.High.hashes",...
[ "recursion" ]
false
false
true
false
false
let rec insert_inv_preserved #_ #f lv i j olds hs acc =
if j % 2 = 1 then let ihs = hashess_insert lv i j hs acc in mt_olds_hs_lth_inv_ok #_ #f lv i j olds hs; merge_hs_slice_equal #_ #f olds hs olds ihs (lv + 1) 32; assert (mt_hashes_inv #_ #f lv j (merge_hs #_ #f olds hs)); remainder_2_1_div j; insert_rec #_ #f lv i j hs acc; mt_hashes_lth_inv_equiv #_ #f (l...
false
Pulse.C.Types.Fields.fsti
Pulse.C.Types.Fields.field_description_nil
val field_description_nil:field_description_t field_t_nil
val field_description_nil:field_description_t field_t_nil
let field_description_nil : field_description_t field_t_nil = { fd_def = (fun _ -> false); fd_empty = true; fd_type = (fun _ -> unit); fd_typedef = (fun _ -> false_elim ()); }
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Fields.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 38, "start_col": 0, "start_line": 33 }
module Pulse.C.Types.Fields include Pulse.C.Types.Base open Pulse.C.Typestring open Pulse.Lib.Pervasives [@@noextract_to "krml"] // tactic let norm_fields () : FStar.Tactics.Tac unit = FStar.Tactics.norm [delta_attr [`%norm_field_attr]; iota; zeta; primops]; FStar.Tactics.trefl () [@@noextract_to "krml"] // primi...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Typestring.fsti.checked", "Pulse.C.Types.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Pulse.C.Types...
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Pulse.C.Types.Fields.field_description_t Pulse.C.Types.Fields.field_t_nil
Prims.Tot
[ "total" ]
[]
[ "Pulse.C.Types.Fields.Mkfield_description_t", "Pulse.C.Types.Fields.field_t_nil", "Prims.string", "Prims.bool", "Prims.unit", "FStar.Pervasives.false_elim", "Pulse.C.Types.Base.typedef" ]
[]
false
false
false
true
false
let field_description_nil:field_description_t field_t_nil =
{ fd_def = (fun _ -> false); fd_empty = true; fd_type = (fun _ -> unit); fd_typedef = (fun _ -> false_elim ()) }
false
LowParse.Low.ListUpTo.fst
LowParse.Low.ListUpTo.jump_list_up_to_body
val jump_list_up_to_body (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (j: jumper p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack bo...
val jump_list_up_to_body (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (j: jumper p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack bo...
let jump_list_up_to_body (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p { k.parser_kind_subkind <> Some ParserConsumesAll } ) (j: jumper p) (cond_impl: ( (#rrel: _) -> (#rel: _) -> (sl: slice rrel rel) -> (pos: U32.t) -> HST.Stack bool (r...
{ "file_name": "src/lowparse/LowParse.Low.ListUpTo.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 18, "end_line": 215, "start_col": 0, "start_line": 173 }
module LowParse.Low.ListUpTo include LowParse.Spec.ListUpTo include LowParse.Low.Base module U32 = FStar.UInt32 module U64 = FStar.UInt64 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer unfold let validate_list_up_to_inv (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.ListUpTo.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.che...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cond: (_: t -> Prims.bool) -> prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p { Mkparser_kind'?.parser_kind_subkind k <> FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } -> j: LowParse.Low.Base.jumper p -> cond_impl: (sl: LowParse.Slice.slice rre...
FStar.HyperStack.ST.Stack
[]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.bool", "LowParse.Spec.ListUpTo.consumes_if_not_cond", "Prims.b2t", "Prims.op_disEquality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkin...
[]
false
true
false
false
false
let jump_list_up_to_body (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (j: jumper p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.Stack bo...
let h = HST.get () in let pos = B.index bpos 0ul in valid_facts (parse_list_up_to cond p prf) h sl pos; parse_list_up_to_eq cond p prf (bytes_of_slice_from h sl pos); valid_facts p h sl pos; let pos1 = j sl pos in B.upd bpos 0ul pos1; valid_facts (parse_list_up_to cond p prf) h sl pos1; cond_impl sl pos
false
Pulse.C.Types.Fields.fsti
Pulse.C.Types.Fields.norm_fields
val norm_fields: Prims.unit -> FStar.Tactics.Tac unit
val norm_fields: Prims.unit -> FStar.Tactics.Tac unit
let norm_fields () : FStar.Tactics.Tac unit = FStar.Tactics.norm [delta_attr [`%norm_field_attr]; iota; zeta; primops]; FStar.Tactics.trefl ()
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Fields.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 9, "start_col": 0, "start_line": 7 }
module Pulse.C.Types.Fields include Pulse.C.Types.Base open Pulse.C.Typestring open Pulse.Lib.Pervasives
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Typestring.fsti.checked", "Pulse.C.Types.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Pulse.C.Types...
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Tactics.V1.Derived.trefl", "FStar.Stubs.Tactics.V1.Builtins.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.delta_attr", "Prims.string", "Prims.Nil", "FStar.Pervasives.iota", "FStar.Pervasives.zeta", "FStar.Pervasives.primops" ]
[]
false
true
false
false
false
let norm_fields () : FStar.Tactics.Tac unit =
FStar.Tactics.norm [delta_attr [`%norm_field_attr]; iota; zeta; primops]; FStar.Tactics.trefl ()
false
LowParse.Low.ListUpTo.fst
LowParse.Low.ListUpTo.validate_list_up_to_body
val validate_list_up_to_body (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (v: validator p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.S...
val validate_list_up_to_body (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (v: validator p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.S...
let validate_list_up_to_body (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p { k.parser_kind_subkind <> Some ParserConsumesAll } ) (v: validator p) (cond_impl: ( (#rrel: _) -> (#rel: _) -> (sl: slice rrel rel) -> (pos: U32.t) -> HST.Stack bool...
{ "file_name": "src/lowparse/LowParse.Low.ListUpTo.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 101, "start_col": 0, "start_line": 54 }
module LowParse.Low.ListUpTo include LowParse.Spec.ListUpTo include LowParse.Low.Base module U32 = FStar.UInt32 module U64 = FStar.UInt64 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer unfold let validate_list_up_to_inv (#k: _) (#t: _) (#p: parser k t) (cond: (t -> Tot...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.ListUpTo.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.che...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cond: (_: t -> Prims.bool) -> prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p { Mkparser_kind'?.parser_kind_subkind k <> FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } -> v: LowParse.Low.Base.validator p -> cond_impl: (sl: LowParse.Slice.slice ...
FStar.HyperStack.ST.Stack
[]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.bool", "LowParse.Spec.ListUpTo.consumes_if_not_cond", "Prims.b2t", "Prims.op_disEquality", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkin...
[]
false
true
false
false
false
let validate_list_up_to_body (#k #t: _) (#p: parser k t) (cond: (t -> Tot bool)) (prf: consumes_if_not_cond cond p {k.parser_kind_subkind <> Some ParserConsumesAll}) (v: validator p) (cond_impl: (#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> HST.S...
let h = HST.get () in let pos = B.index bpos 0ul in valid_facts (parse_list_up_to cond p prf) h sl (uint64_to_uint32 pos); parse_list_up_to_eq cond p prf (bytes_of_slice_from h sl (uint64_to_uint32 pos)); valid_facts p h sl (uint64_to_uint32 pos); let pos1 = v sl pos in B.upd bpos 0ul pos1; if is_error pos1 then true e...
false
Hacl.Spec.K256.ECSM.Lemmas.fst
Hacl.Spec.K256.ECSM.Lemmas.lemma_aff_point_mul_neg_modq
val lemma_aff_point_mul_neg_modq (a:int) (p:S.aff_point) : Lemma (aff_point_mul_neg a p == aff_point_mul (a % S.q) p)
val lemma_aff_point_mul_neg_modq (a:int) (p:S.aff_point) : Lemma (aff_point_mul_neg a p == aff_point_mul (a % S.q) p)
let lemma_aff_point_mul_neg_modq a p = calc (==) { aff_point_mul_neg a p; (==) { Math.Lemmas.euclidean_division_definition a S.q } aff_point_mul_neg (a / S.q * S.q + a % S.q) p; (==) { lemma_aff_point_mul_neg_add (a / S.q * S.q) (a % S.q) p } S.aff_point_add (aff_point_mul_neg (a / S.q * S.q) p) (...
{ "file_name": "code/k256/Hacl.Spec.K256.ECSM.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 78, "start_col": 0, "start_line": 61 }
module Hacl.Spec.K256.ECSM.Lemmas open FStar.Mul module M = Lib.NatMod module LE = Lib.Exponentiation module SE = Spec.Exponentiation module S = Spec.K256 module LS = Spec.K256.Lemmas #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" // [a]P in affine coordinates for a >= 0 let aff_point_mul = S.aff_point_mul // [a...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "Lib.Exponentiation.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "Spec.K256.Lemmas", "short_module": "LS" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Exponentiation", "short_module": "SE" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> p: Spec.K256.PointOps.aff_point -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg a p == Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul (a % Spec.K256.PointOps.q) p)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Spec.K256.PointOps.aff_point", "FStar.Calc.calc_finish", "Prims.eq2", "Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul_neg", "Hacl.Spec.K256.ECSM.Lemmas.aff_point_mul", "Prims.op_Modulus", "Spec.K256.PointOps.q", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FSt...
[]
false
false
true
false
false
let lemma_aff_point_mul_neg_modq a p =
calc ( == ) { aff_point_mul_neg a p; ( == ) { Math.Lemmas.euclidean_division_definition a S.q } aff_point_mul_neg ((a / S.q) * S.q + a % S.q) p; ( == ) { lemma_aff_point_mul_neg_add ((a / S.q) * S.q) (a % S.q) p } S.aff_point_add (aff_point_mul_neg ((a / S.q) * S.q) p) (aff_point_mul_neg (a % S.q) p); ( == ...
false
Pulse.C.Types.Fields.fsti
Pulse.C.Types.Fields.field_description_cons
val field_description_cons (#ft #fc: Type0) (n: string) (#fn: Type0) (#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == fn))) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc))
val field_description_cons (#ft #fc: Type0) (n: string) (#fn: Type0) (#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == fn))) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc))
let field_description_cons (#ft: Type0) (#fc: Type0) (n: string) (#fn: Type0) (# [ solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == fn))) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc)) = field_description_cons0 fn #ft #fc n t fd
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Fields.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 53, "start_col": 0, "start_line": 52 }
module Pulse.C.Types.Fields include Pulse.C.Types.Base open Pulse.C.Typestring open Pulse.Lib.Pervasives [@@noextract_to "krml"] // tactic let norm_fields () : FStar.Tactics.Tac unit = FStar.Tactics.norm [delta_attr [`%norm_field_attr]; iota; zeta; primops]; FStar.Tactics.trefl () [@@noextract_to "krml"] // primi...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Typestring.fsti.checked", "Pulse.C.Types.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Pulse.C.Types...
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.string -> t: Pulse.C.Types.Base.typedef ft -> fd: Pulse.C.Types.Fields.field_description_t fc -> Pulse.C.Types.Fields.nonempty_field_description_t (Pulse.C.Types.Fields.field_t_cons fn ft fc)
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.squash", "FStar.Pervasives.norm", "Pulse.C.Typestring.norm_typestring", "Prims.eq2", "Pulse.C.Typestring.mk_string_t", "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Fields.field_description_t", "Pulse.C.Types.Fields.field_description_cons0", "Pulse.C.Types.Fields.nonempty_fie...
[]
false
false
false
false
false
let field_description_cons (#ft #fc: Type0) (n: string) (#fn: Type0) (#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == fn))) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc)) =
field_description_cons0 fn #ft #fc n t fd
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.return
val return (a: Type) (x: a) : rand a
val return (a: Type) (x: a) : rand a
let return (a:Type) (x:a) : rand a = fun (next,_) -> Some x, next
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 26, "start_col": 0, "start_line": 26 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> x: a -> FStar.DM4F.Random.rand a
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.Random.id", "FStar.DM4F.Heap.Random.tape", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.Some", "FStar.DM4F.Random.rand" ]
[]
false
false
false
true
false
let return (a: Type) (x: a) : rand a =
fun (next, _) -> Some x, next
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.get
val get: Prims.unit -> rand store
val get: Prims.unit -> rand store
let get () : rand store = fun s -> Some s, fst s
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 46, "start_col": 0, "start_line": 46 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.DM4F.Random.rand FStar.DM4F.Random.store
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.Random.id", "FStar.DM4F.Heap.Random.tape", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.option", "FStar.DM4F.Random.store", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.fst", "FStar.DM4F.Random.rand" ]
[]
false
false
false
true
false
let get () : rand store =
fun s -> Some s, fst s
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.raise
val raise: a: Type -> Prims.unit -> rand a
val raise: a: Type -> Prims.unit -> rand a
let raise (a:Type) () : rand a = fun s -> None, fst s
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 52, "start_col": 0, "start_line": 52 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> _: Prims.unit -> FStar.DM4F.Random.rand a
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.Random.id", "FStar.DM4F.Heap.Random.tape", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.fst", "FStar.DM4F.Random.rand" ]
[]
false
false
false
true
false
let raise (a: Type) () : rand a =
fun s -> None, fst s
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.bind
val bind (a b: Type) (c: rand a) (f: (a -> rand b)) : rand b
val bind (a b: Type) (c: rand a) (f: (a -> rand b)) : rand b
let bind (a b:Type) (c:rand a) (f:a -> rand b) : rand b = fun s -> let r, next' = c s in match r with | None -> None, next' | Some x -> f x (next', snd s)
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 33, "start_col": 0, "start_line": 28 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> c: FStar.DM4F.Random.rand a -> f: (_: a -> FStar.DM4F.Random.rand b) -> FStar.DM4F.Random.rand b
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Random.rand", "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.Random.id", "FStar.DM4F.Heap.Random.tape", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.snd" ]
[]
false
false
false
true
false
let bind (a b: Type) (c: rand a) (f: (a -> rand b)) : rand b =
fun s -> let r, next' = c s in match r with | None -> None, next' | Some x -> f x (next', snd s)
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.mass
val mass: #a:Type -> f:(store -> M (a * id)) -> p:(a -> nat) -> nat
val mass: #a:Type -> f:(store -> M (a * id)) -> p:(a -> nat) -> nat
let mass #a f p = sum (fun h -> let r,_ = f (to_id 0,h) in p r)
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 134, "start_col": 0, "start_line": 134 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: FStar.DM4F.Random.store -> Prims.M (a * FStar.DM4F.Heap.Random.id)) -> p: (_: a -> Prims.nat) -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Random.store", "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.Random.id", "Prims.nat", "FStar.DM4F.Random.sum", "FStar.DM4F.Heap.Random.tape", "FStar.Pervasives.Native.Mktuple2", "FStar.DM4F.Heap.Random.to_id" ]
[]
false
false
false
true
false
let mass #a f p =
sum (fun h -> let r, _ = f (to_id 0, h) in p r)
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.inverse
val inverse (bij: bijection) : bijection
val inverse (bij: bijection) : bijection
let inverse (bij:bijection) : bijection = Bijection bij.finv bij.f
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 104, "start_col": 0, "start_line": 103 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bij: FStar.DM4F.Random.bijection -> FStar.DM4F.Random.bijection
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Random.bijection", "FStar.DM4F.Random.Bijection", "FStar.DM4F.Random.__proj__Bijection__item__finv", "FStar.DM4F.Random.__proj__Bijection__item__f" ]
[]
false
false
false
true
false
let inverse (bij: bijection) : bijection =
Bijection bij.finv bij.f
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.point
val point: #a:eqtype -> x:a -> y:option a -> nat
val point: #a:eqtype -> x:a -> y:option a -> nat
let point #a x = fun y -> if y = Some x then 1 else 0
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 137, "start_col": 0, "start_line": 137 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> y: FStar.Pervasives.Native.option a -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.Pervasives.Native.option", "Prims.op_Equality", "FStar.Pervasives.Native.Some", "Prims.bool", "Prims.nat" ]
[]
false
false
false
false
false
let point #a x =
fun y -> if y = Some x then 1 else 0
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.sum_extensional
val sum_extensional: f:(tape -> nat) -> g:(tape -> nat) -> Lemma (requires (forall h. f h == g h)) (ensures (sum f == sum g))
val sum_extensional: f:(tape -> nat) -> g:(tape -> nat) -> Lemma (requires (forall h. f h == g h)) (ensures (sum f == sum g))
let sum_extensional f g = sum_monotonic f g; sum_monotonic g f
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 125, "start_col": 0, "start_line": 123 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: FStar.DM4F.Heap.Random.tape -> Prims.nat) -> g: (_: FStar.DM4F.Heap.Random.tape -> Prims.nat) -> FStar.Pervasives.Lemma (requires forall (h: FStar.DM4F.Heap.Random.tape). f h == g h) (ensures FStar.DM4F.Random.sum f == FStar.DM4F.Random.sum g)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.DM4F.Heap.Random.tape", "Prims.nat", "FStar.DM4F.Random.sum_monotonic", "Prims.unit" ]
[]
true
false
true
false
false
let sum_extensional f g =
sum_monotonic f g; sum_monotonic g f
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.pr_leq
val pr_leq: #a:Type -> #b:Type -> c1:(store -> M (a * id)) -> c2:(store -> M (b * id)) -> p1:(a -> nat) -> p2:(b -> nat) -> bij:bijection -> Lemma (requires (forall t. let r1,_ = c1 (to_id 0,t) in let r2,_ = c2 (to_id 0,bij.f t) in p1 r1 <= p2 r2)) (ensures (mass c1 p1 <= mass c2 p2)...
val pr_leq: #a:Type -> #b:Type -> c1:(store -> M (a * id)) -> c2:(store -> M (b * id)) -> p1:(a -> nat) -> p2:(b -> nat) -> bij:bijection -> Lemma (requires (forall t. let r1,_ = c1 (to_id 0,t) in let r2,_ = c2 (to_id 0,bij.f t) in p1 r1 <= p2 r2)) (ensures (mass c1 p1 <= mass c2 p2)...
let pr_leq #a #b c1 c2 p1 p2 bij = let bij' = inverse bij in let f1 = (fun h -> let r1,_ = c1 (to_id 0,h) in p1 r1) in let f2 = (fun h -> let r2,_ = c2 (to_id 0,h) in p2 r2) in sum_monotonic f1 (fun h -> let r2,_ = c2 (to_id 0,bij.f h) in p2 r2); sum_bijection (fun h -> let r2,_ = c2 (to_id 0,bij.f h) in p2 r...
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 81, "end_line": 162, "start_col": 0, "start_line": 156 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c1: (_: FStar.DM4F.Random.store -> Prims.M (a * FStar.DM4F.Heap.Random.id)) -> c2: (_: FStar.DM4F.Random.store -> Prims.M (b * FStar.DM4F.Heap.Random.id)) -> p1: (_: a -> Prims.nat) -> p2: (_: b -> Prims.nat) -> bij: FStar.DM4F.Random.bijection -> FStar.Pervasives.Lemma (requires fo...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.DM4F.Random.store", "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.Random.id", "Prims.nat", "FStar.DM4F.Random.bijection", "FStar.DM4F.Random.sum_extensional", "FStar.DM4F.Heap.Random.tape", "FStar.Pervasives.Native.Mktuple2", "FStar.DM4F.Heap.Random.to_id", "FStar.DM4F.Random.__proj__B...
[]
false
false
true
false
false
let pr_leq #a #b c1 c2 p1 p2 bij =
let bij' = inverse bij in let f1 = (fun h -> let r1, _ = c1 (to_id 0, h) in p1 r1) in let f2 = (fun h -> let r2, _ = c2 (to_id 0, h) in p2 r2) in sum_monotonic f1 (fun h -> let r2, _ = c2 (to_id 0, bij.f h) in p2 r2); sum_bijection (fun h -> let r2, _ = c2 (to_id 0, bij.f...
false
FStar.DM4F.Random.fst
FStar.DM4F.Random.pr_eq
val pr_eq: #a:Type -> #b:Type -> c1:(store -> M (a * id)) -> c2:(store -> M (b * id)) -> p1:(a -> nat) -> p2:(b -> nat) -> bij:bijection -> Lemma (requires (forall h. let r1,_ = c1 (to_id 0, h) in let r2,_ = c2 (to_id 0, bij.f h) in p1 r1 == p2 r2)) (ensures (mass c1 p1 == mass c2 ...
val pr_eq: #a:Type -> #b:Type -> c1:(store -> M (a * id)) -> c2:(store -> M (b * id)) -> p1:(a -> nat) -> p2:(b -> nat) -> bij:bijection -> Lemma (requires (forall h. let r1,_ = c1 (to_id 0, h) in let r2,_ = c2 (to_id 0, bij.f h) in p1 r1 == p2 r2)) (ensures (mass c1 p1 == mass c2 ...
let pr_eq #a #b c1 c2 p1 p2 bij = pr_leq c1 c2 p1 p2 bij; pr_leq c2 c1 p2 p1 (inverse bij)
{ "file_name": "examples/dm4free/FStar.DM4F.Random.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 178, "start_col": 0, "start_line": 176 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.Heap.Random.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Random.fst" }
[ { "abbrev": false, "full_module": "FStar.DM4F.Heap.Random", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c1: (_: FStar.DM4F.Random.store -> Prims.M (a * FStar.DM4F.Heap.Random.id)) -> c2: (_: FStar.DM4F.Random.store -> Prims.M (b * FStar.DM4F.Heap.Random.id)) -> p1: (_: a -> Prims.nat) -> p2: (_: b -> Prims.nat) -> bij: FStar.DM4F.Random.bijection -> FStar.Pervasives.Lemma (requires fo...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.DM4F.Random.store", "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.Random.id", "Prims.nat", "FStar.DM4F.Random.bijection", "FStar.DM4F.Random.pr_leq", "FStar.DM4F.Random.inverse", "Prims.unit" ]
[]
true
false
true
false
false
let pr_eq #a #b c1 c2 p1 p2 bij =
pr_leq c1 c2 p1 p2 bij; pr_leq c2 c1 p2 p1 (inverse bij)
false
Pulse.C.Types.Fields.fsti
Pulse.C.Types.Fields.field_description_cons0
val field_description_cons0 (fn #ft #fc: Type0) (n: string) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc))
val field_description_cons0 (fn #ft #fc: Type0) (n: string) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc))
let field_description_cons0 (fn: Type0) (#ft: Type0) (#fc: Type0) (n: string) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc)) = { fd_def = (fun n' -> n = n' || fd.fd_def n'); fd_empty = false; fd_type = (fun n' -> if n = n' then ft else fd.fd_type ...
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Fields.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 3, "end_line": 49, "start_col": 0, "start_line": 41 }
module Pulse.C.Types.Fields include Pulse.C.Types.Base open Pulse.C.Typestring open Pulse.Lib.Pervasives [@@noextract_to "krml"] // tactic let norm_fields () : FStar.Tactics.Tac unit = FStar.Tactics.norm [delta_attr [`%norm_field_attr]; iota; zeta; primops]; FStar.Tactics.trefl () [@@noextract_to "krml"] // primi...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Typestring.fsti.checked", "Pulse.C.Types.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Pulse.C.Types...
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
fn: Type0 -> n: Prims.string -> t: Pulse.C.Types.Base.typedef ft -> fd: Pulse.C.Types.Fields.field_description_t fc -> Pulse.C.Types.Fields.nonempty_field_description_t (Pulse.C.Types.Fields.field_t_cons fn ft fc)
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Fields.field_description_t", "Pulse.C.Types.Fields.Mkfield_description_t", "Pulse.C.Types.Fields.field_t_cons", "Prims.op_BarBar", "Prims.op_Equality", "Pulse.C.Types.Fields.__proj__Mkfield_description_t__item__fd_def", "Prims.bool", "Pu...
[]
false
false
false
true
false
let field_description_cons0 (fn #ft #fc: Type0) (n: string) (t: typedef ft) (fd: field_description_t fc) : Tot (nonempty_field_description_t (field_t_cons fn ft fc)) =
{ fd_def = (fun n' -> n = n' || fd.fd_def n'); fd_empty = false; fd_type = (fun n' -> if n = n' then ft else fd.fd_type n'); fd_typedef = (fun n' -> if n = n' then t else fd.fd_typedef n') }
false
Pulse.Checker.Admit.fst
Pulse.Checker.Admit.check
val check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term { Tm_Admit? t.term }) : T.Tac (checker_result_t g pre post_hint)
val check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term { Tm_Admit? t.term }) : T.Tac (checker_result_t g pre post_hint)
let check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term { Tm_Admit? t.term }) : T.Tac (checker_result_t g pre post_hint) = let Tm_Admit r = t.term in match post_hint with | Some p -> let ct = ctag_of_effec...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Admit.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 111, "start_col": 0, "start_line": 96 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Pure.fsti.checked", "Pulse.Checker.Prover.fsti.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Checker.Prover", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> pre: Pulse.Syntax.Base.term -> pre_typing: Pulse.Typing.tot_typing g pre Pulse.Syntax.Base.tm_vprop -> post_hint: Pulse.Typing.post_hint_opt g -> res_ppname: Pulse.Syntax.Base.ppname -> t: Pulse.Syntax.Base.st_term{Tm_Admit? (Mkst_term?.term t)} -> FStar.Tactics.Eff...
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "Pulse.Typing.post_hint_opt", "Pulse.Syntax.Base.ppname", "Pulse.Syntax.Base.st_term", "Prims.b2t", "Pulse.Syntax.Base.uu___is_Tm_Admit", "Pulse.Syntax.Base.__proj__Mkst_term__item__term", ...
[]
false
true
false
false
false
let check (g: env) (pre: term) (pre_typing: tot_typing g pre tm_vprop) (post_hint: post_hint_opt g) (res_ppname: ppname) (t: st_term{Tm_Admit? t.term}) : T.Tac (checker_result_t g pre post_hint) =
let Tm_Admit r = t.term in match post_hint with | Some p -> let ct = ctag_of_effect_annot p.effect_annot in check_core g pre pre_typing post_hint res_ppname ({ t with term = Tm_Admit ({ r with ctag = ct }) }) | _ -> check_core g pre pre_typing post_hint res_ppname t
false
C.Compat.Loops.fst
C.Compat.Loops.for
val for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish >= UInt32.v start} -> inv:(HS.mem -> nat -> Type0) -> f:(i:UInt32.t{UInt32.(v start <= v i /\ v i < v finish)} -> Stack unit (requires (fun h -> inv h (UInt32.v i))) (ensures (fun h_1 _ h_2 -> UInt32.(inv ...
val for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish >= UInt32.v start} -> inv:(HS.mem -> nat -> Type0) -> f:(i:UInt32.t{UInt32.(v start <= v i /\ v i < v finish)} -> Stack unit (requires (fun h -> inv h (UInt32.v i))) (ensures (fun h_1 _ h_2 -> UInt32.(inv ...
let rec for start finish inv f = if start = finish then () else begin f start; for (UInt32.(start +^ 1ul)) finish inv f end
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 5, "end_line": 57, "start_col": 0, "start_line": 51 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
start: FStar.UInt32.t -> finish: FStar.UInt32.t{FStar.UInt32.v finish >= FStar.UInt32.v start} -> inv: (_: FStar.Monotonic.HyperStack.mem -> _: Prims.nat -> Type0) -> f: ( i: FStar.UInt32.t { FStar.UInt32.v start <= FStar.UInt32.v i /\ F...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.UInt32.t", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "FStar.Monotonic.HyperStack.mem", "Prims.nat", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.unit", "Prims.op_Addition", "Prims.op_Equality", "Prims.bool", "C.Compat.Loops.for", "FSta...
[ "recursion" ]
false
true
false
false
false
let rec for start finish inv f =
if start = finish then () else (f start; for (let open UInt32 in start +^ 1ul) finish inv f)
false
Pulse.Checker.Admit.fst
Pulse.Checker.Admit.post_hint_compatible
val post_hint_compatible : p: FStar.Pervasives.Native.option Pulse.Typing.post_hint_t -> x: Pulse.Syntax.Base.var -> t: Pulse.Syntax.Base.term -> u13: Pulse.Syntax.Base.universe -> post: Pulse.Syntax.Base.vprop -> Prims.logical
let post_hint_compatible (p:option post_hint_t) (x:var) (t:term) (u:universe) (post:vprop) = match p with | None -> True | Some p -> p.post== close_term post x /\ p.u == u /\ p.ret_ty == t
{ "file_name": "lib/steel/pulse/Pulse.Checker.Admit.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 35, "start_col": 0, "start_line": 29 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Pure.fsti.checked", "Pulse.Checker.Prover.fsti.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": false, "full_module": "Pulse.Checker.Prover", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: FStar.Pervasives.Native.option Pulse.Typing.post_hint_t -> x: Pulse.Syntax.Base.var -> t: Pulse.Syntax.Base.term -> u13: Pulse.Syntax.Base.universe -> post: Pulse.Syntax.Base.vprop -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.option", "Pulse.Typing.post_hint_t", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.universe", "Pulse.Syntax.Base.vprop", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Pulse.Typing.__proj__Mkpost_hint_t__item__post", "Pulse.Syntax.Naming.close_term"...
[]
false
false
false
true
true
let post_hint_compatible (p: option post_hint_t) (x: var) (t: term) (u: universe) (post: vprop) =
match p with | None -> True | Some p -> p.post == close_term post x /\ p.u == u /\ p.ret_ty == t
false
C.Compat.Loops.fst
C.Compat.Loops.reverse_for
val reverse_for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish <= UInt32.v start} -> inv:(HS.mem -> nat -> Type0) -> f:(i:UInt32.t{UInt32.(v start >= v i /\ v i > v finish)} -> Stack unit (requires (fun h -> inv h (UInt32.v i))) (ensures (fun h_1 _ h_2 -> UInt...
val reverse_for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish <= UInt32.v start} -> inv:(HS.mem -> nat -> Type0) -> f:(i:UInt32.t{UInt32.(v start >= v i /\ v i > v finish)} -> Stack unit (requires (fun h -> inv h (UInt32.v i))) (ensures (fun h_1 _ h_2 -> UInt...
let rec reverse_for start finish inv f = if start = finish then () else begin f start; reverse_for (UInt32.(start -^ 1ul)) finish inv f end
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 5, "end_line": 98, "start_col": 0, "start_line": 92 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
start: FStar.UInt32.t -> finish: FStar.UInt32.t{FStar.UInt32.v finish <= FStar.UInt32.v start} -> inv: (_: FStar.Monotonic.HyperStack.mem -> _: Prims.nat -> Type0) -> f: ( i: FStar.UInt32.t { FStar.UInt32.v start >= FStar.UInt32.v i /\ F...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.UInt32.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt32.v", "FStar.Monotonic.HyperStack.mem", "Prims.nat", "Prims.l_and", "Prims.op_GreaterThanOrEqual", "Prims.op_GreaterThan", "Prims.unit", "Prims.op_Subtraction", "Prims.op_Equality", "Prims.bool", "C.Compat.Loops.reverse...
[ "recursion" ]
false
true
false
false
false
let rec reverse_for start finish inv f =
if start = finish then () else (f start; reverse_for (let open UInt32 in start -^ 1ul) finish inv f)
false
C.Compat.Loops.fst
C.Compat.Loops.for64
val for64: start:UInt64.t -> finish:UInt64.t{UInt64.v finish >= UInt64.v start} -> inv:(HS.mem -> nat -> Type0) -> f:(i:UInt64.t{UInt64.(v start <= v i /\ v i < v finish)} -> Stack unit (requires (fun h -> inv h (UInt64.v i))) (ensures (fun h_1 _ h_2 -> UInt64.(in...
val for64: start:UInt64.t -> finish:UInt64.t{UInt64.v finish >= UInt64.v start} -> inv:(HS.mem -> nat -> Type0) -> f:(i:UInt64.t{UInt64.(v start <= v i /\ v i < v finish)} -> Stack unit (requires (fun h -> inv h (UInt64.v i))) (ensures (fun h_1 _ h_2 -> UInt64.(in...
let rec for64 start finish inv f = if start = finish then () else begin f start; for64 (UInt64.(start +^ 1UL)) finish inv f end
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 5, "end_line": 75, "start_col": 0, "start_line": 69 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
start: FStar.UInt64.t -> finish: FStar.UInt64.t{FStar.UInt64.v finish >= FStar.UInt64.v start} -> inv: (_: FStar.Monotonic.HyperStack.mem -> _: Prims.nat -> Type0) -> f: ( i: FStar.UInt64.t { FStar.UInt64.v start <= FStar.UInt64.v i /\ F...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.UInt64.t", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt64.v", "FStar.Monotonic.HyperStack.mem", "Prims.nat", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.unit", "Prims.op_Addition", "Prims.op_Equality", "Prims.bool", "C.Compat.Loops.for64", "FS...
[ "recursion" ]
false
true
false
false
false
let rec for64 start finish inv f =
if start = finish then () else (f start; for64 (let open UInt64 in start +^ 1uL) finish inv f)
false
C.Compat.Loops.fst
C.Compat.Loops.while
val while: #test_pre: (HS.mem -> GTot Type0) -> #test_post: (bool -> HS.mem -> GTot Type0) -> $test: (unit -> Stack bool (requires (fun h -> test_pre h)) (ensures (fun h0 x h1 -> test_post x h1))) -> body: (unit -> Stack unit (requires (fun h -> test_post true h)) (ensures (fun h0 _ h1 -> test_p...
val while: #test_pre: (HS.mem -> GTot Type0) -> #test_post: (bool -> HS.mem -> GTot Type0) -> $test: (unit -> Stack bool (requires (fun h -> test_pre h)) (ensures (fun h0 x h1 -> test_post x h1))) -> body: (unit -> Stack unit (requires (fun h -> test_post true h)) (ensures (fun h0 _ h1 -> test_p...
let rec while #test_pre #test_post test body = if test () then begin body (); while #test_pre #test_post test body end
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 5, "end_line": 169, "start_col": 0, "start_line": 165 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$test: (_: Prims.unit -> FStar.HyperStack.ST.Stack Prims.bool) -> body: (_: Prims.unit -> FStar.HyperStack.ST.Stack Prims.unit) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "Prims.bool", "Prims.unit", "C.Compat.Loops.while" ]
[ "recursion" ]
false
true
false
false
false
let rec while #test_pre #test_post test body =
if test () then (body (); while #test_pre #test_post test body)
false
C.Compat.Loops.fst
C.Compat.Loops.interruptible_for
val interruptible_for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish >= UInt32.v start} -> inv:(HS.mem -> nat -> bool -> GTot Type0) -> f:(i:UInt32.t{UInt32.(v start <= v i /\ v i < v finish)} -> Stack bool (requires (fun h -> inv h (UInt32.v i) false)) (ensur...
val interruptible_for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish >= UInt32.v start} -> inv:(HS.mem -> nat -> bool -> GTot Type0) -> f:(i:UInt32.t{UInt32.(v start <= v i /\ v i < v finish)} -> Stack bool (requires (fun h -> inv h (UInt32.v i) false)) (ensur...
let rec interruptible_for start finish inv f = if start = finish then (finish, false) else let start' = UInt32.(start +^ 1ul) in if f start then (start', true) else interruptible_for start' finish inv f
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 46, "end_line": 125, "start_col": 0, "start_line": 118 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
start: FStar.UInt32.t -> finish: FStar.UInt32.t{FStar.UInt32.v finish >= FStar.UInt32.v start} -> inv: (_: FStar.Monotonic.HyperStack.mem -> _: Prims.nat -> _: Prims.bool -> Prims.GTot Type0) -> f: ( i: FStar.UInt32.t { FStar.UInt32.v start <= FStar.UInt3...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.UInt32.t", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "FStar.Monotonic.HyperStack.mem", "Prims.nat", "Prims.bool", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.op_Addition", "Prims.op_Equality", "FStar.Pervasives.Native.Mktuple2", "FStar....
[ "recursion" ]
false
true
false
false
false
let rec interruptible_for start finish inv f =
if start = finish then (finish, false) else let start' = let open UInt32 in start +^ 1ul in if f start then (start', true) else interruptible_for start' finish inv f
false
C.Compat.Loops.fst
C.Compat.Loops.do_while
val do_while: inv:(HS.mem -> bool -> GTot Type0) -> f:(unit -> Stack bool (requires (fun h -> inv h false)) (ensures (fun h_1 b h_2 -> inv h_1 false /\ inv h_2 b)) ) -> Stack unit (requires (fun h -> inv h false)) (ensures (fun _ _ h_2 -> inv h_2 true))
val do_while: inv:(HS.mem -> bool -> GTot Type0) -> f:(unit -> Stack bool (requires (fun h -> inv h false)) (ensures (fun h_1 b h_2 -> inv h_1 false /\ inv h_2 b)) ) -> Stack unit (requires (fun h -> inv h false)) (ensures (fun _ _ h_2 -> inv h_2 true))
let rec do_while inv f = if not (f ()) then do_while inv f
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 18, "end_line": 145, "start_col": 0, "start_line": 143 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
inv: (_: FStar.Monotonic.HyperStack.mem -> _: Prims.bool -> Prims.GTot Type0) -> f: (_: Prims.unit -> FStar.HyperStack.ST.Stack Prims.bool) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Monotonic.HyperStack.mem", "Prims.bool", "Prims.unit", "Prims.l_and", "C.Compat.Loops.do_while", "Prims.op_Negation" ]
[ "recursion" ]
false
true
false
false
false
let rec do_while inv f =
if not (f ()) then do_while inv f
false
Hacl.Impl.Curve25519.AddAndDouble.fst
Hacl.Impl.Curve25519.AddAndDouble.point_add_and_double
val point_add_and_double: #s:field_spec -> q:point s -> p01_tmp1:lbuffer (limb s) (8ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in live h0 q /\ live h0 ...
val point_add_and_double: #s:field_spec -> q:point s -> p01_tmp1:lbuffer (limb s) (8ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> let nq = gsub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 = gsub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in live h0 q /\ live h0 ...
let point_add_and_double #s q p01_tmp1 tmp2 = let h0 = ST.get () in let nq : point s = sub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1 : point s = sub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in let tmp1 = sub p01_tmp1 (4ul *! nlimb s) (4ul *! nlimb s) in let x1 = sub q 0ul (nlimb s) in let x2 = sub nq 0u...
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 74, "end_line": 192, "start_col": 0, "start_line": 170 }
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module ...
{ "checked_file": "/", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fie...
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abb...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
q: Hacl.Impl.Curve25519.AddAndDouble.point s -> p01_tmp1: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (8ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> tmp2: Hacl.Impl.Curve25519.Fields.Core.felem_wide2 s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Hacl....
[]
false
true
false
false
false
let point_add_and_double #s q p01_tmp1 tmp2 =
let h0 = ST.get () in let nq:point s = sub p01_tmp1 0ul (2ul *! nlimb s) in let nq_p1:point s = sub p01_tmp1 (2ul *! nlimb s) (2ul *! nlimb s) in let tmp1 = sub p01_tmp1 (4ul *! nlimb s) (4ul *! nlimb s) in let x1 = sub q 0ul (nlimb s) in let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let z3 = ...
false
C.Compat.Loops.fst
C.Compat.Loops.interruptible_reverse_for
val interruptible_reverse_for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish <= UInt32.v start} -> inv:(HS.mem -> nat -> bool -> GTot Type0) -> f:(i:UInt32.t{UInt32.(v start >= v i /\ v i > v finish)} -> Stack bool (requires (fun h -> inv h (UInt32.v i) false)) ...
val interruptible_reverse_for: start:UInt32.t -> finish:UInt32.t{UInt32.v finish <= UInt32.v start} -> inv:(HS.mem -> nat -> bool -> GTot Type0) -> f:(i:UInt32.t{UInt32.(v start >= v i /\ v i > v finish)} -> Stack bool (requires (fun h -> inv h (UInt32.v i) false)) ...
let rec interruptible_reverse_for start finish inv f = if start = finish then (finish, false) else let start' = UInt32.(start -^ 1ul) in if f start then (start', true) else interruptible_reverse_for start' finish inv f
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 54, "end_line": 197, "start_col": 0, "start_line": 190 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
start: FStar.UInt32.t -> finish: FStar.UInt32.t{FStar.UInt32.v finish <= FStar.UInt32.v start} -> inv: (_: FStar.Monotonic.HyperStack.mem -> _: Prims.nat -> _: Prims.bool -> Prims.GTot Type0) -> f: ( i: FStar.UInt32.t { FStar.UInt32.v start >= FStar.UInt3...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.UInt32.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt32.v", "FStar.Monotonic.HyperStack.mem", "Prims.nat", "Prims.bool", "Prims.l_and", "Prims.op_GreaterThanOrEqual", "Prims.op_GreaterThan", "Prims.op_Subtraction", "Prims.op_Equality", "FStar.Pervasives.Native.Mktuple2", "...
[ "recursion" ]
false
true
false
false
false
let rec interruptible_reverse_for start finish inv f =
if start = finish then (finish, false) else let start' = let open UInt32 in start -^ 1ul in if f start then (start', true) else interruptible_reverse_for start' finish inv f
false
C.Compat.Loops.fst
C.Compat.Loops.total_while_gen
val total_while_gen (#t: Type) (#a: (t -> Type)) (tmes: (x: t -> GTot (a x))) (tinv: (bool -> t -> GTot Type0)) (tcontinue: (t -> Tot bool)) (body: (x: t -> Pure t (requires (tinv true x)) (ensures (fun y...
val total_while_gen (#t: Type) (#a: (t -> Type)) (tmes: (x: t -> GTot (a x))) (tinv: (bool -> t -> GTot Type0)) (tcontinue: (t -> Tot bool)) (body: (x: t -> Pure t (requires (tinv true x)) (ensures (fun y...
let rec total_while_gen (#t: Type) (#a:t -> Type) (tmes: (x:t -> GTot (a x))) (tinv: (bool -> t -> GTot Type0)) (tcontinue: (t -> Tot bool)) (body: (x: t) -> Pure t (requires (tinv true x)) (ensures (fun y -> tinv (tcontinue y) y /\ ( if tcontinue y then tmes y << tmes x else Tru...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 8, "end_line": 469, "start_col": 0, "start_line": 446 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tmes: (x: t -> Prims.GTot (a x)) -> tinv: (_: Prims.bool -> _: t -> Prims.GTot Type0) -> tcontinue: (_: t -> Prims.bool) -> body: (x: t -> Prims.Pure t) -> x: t -> Prims.Pure t
Prims.Pure
[ "" ]
[]
[ "Prims.bool", "Prims.l_and", "Prims.precedes", "Prims.l_True", "Prims.logical", "C.Compat.Loops.total_while_gen" ]
[ "recursion" ]
false
false
false
false
false
let rec total_while_gen (#t: Type) (#a: (t -> Type)) (tmes: (x: t -> GTot (a x))) (tinv: (bool -> t -> GTot Type0)) (tcontinue: (t -> Tot bool)) (body: (x: t -> Pure t (requires (tinv true x)) (ensures (f...
let y = body x in let continue = tcontinue y in if continue then total_while_gen tmes tinv tcontinue body y else y
false
C.Compat.Loops.fst
C.Compat.Loops.total_while
val total_while (#t: Type) (tmes: (t -> GTot nat)) (tinv: (bool -> t -> GTot Type0)) (body: (x: t -> Pure (bool * t) (requires (tinv true x)) (ensures (fun (continue, y) -> tinv continue y /\ ...
val total_while (#t: Type) (tmes: (t -> GTot nat)) (tinv: (bool -> t -> GTot Type0)) (body: (x: t -> Pure (bool * t) (requires (tinv true x)) (ensures (fun (continue, y) -> tinv continue y /\ ...
let total_while (#t: Type) (tmes: (t -> GTot nat)) (tinv: (bool -> t -> GTot Type0)) (body: (x: t) -> Pure (bool * t) (requires (tinv true x)) (ensures (fun (continue, y) -> tinv continue y /\ ( if continue then tmes y < tmes x else True) ))) (x: t) : Pure t (requires (tinv t...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 5, "end_line": 497, "start_col": 0, "start_line": 472 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tmes: (_: t -> Prims.GTot Prims.nat) -> tinv: (_: Prims.bool -> _: t -> Prims.GTot Type0) -> body: (x: t -> Prims.Pure (Prims.bool * t)) -> x: t -> Prims.Pure t
Prims.Pure
[ "" ]
[]
[ "Prims.nat", "Prims.bool", "FStar.Pervasives.Native.tuple2", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.l_True", "Prims.logical", "C.Compat.Loops.total_while_gen", "Prims.eq2", "FStar.Pervasives.Native.Mktuple2" ]
[]
false
false
false
false
false
let total_while (#t: Type) (tmes: (t -> GTot nat)) (tinv: (bool -> t -> GTot Type0)) (body: (x: t -> Pure (bool * t) (requires (tinv true x)) (ensures (fun (continue, y) -> tinv continue y /\ ...
let _, res = total_while_gen (fun (_, x) -> tmes x) (fun b (b_, x) -> b == b_ /\ tinv b x) (fun (x, _) -> x) (fun (_, x) -> body x) (true, x) in res
false
C.Compat.Loops.fst
C.Compat.Loops.in_place_map
val in_place_map: #a:Type0 -> b: buffer a -> l: UInt32.t{ UInt32.v l = Buffer.length b } -> f:(a -> Tot a) -> Stack unit (requires (fun h -> live h b)) (ensures (fun h_1 r h_2 -> modifies_1 b h_1 h_2 /\ live h_2 b /\ live h_1 b /\ (let s1 = as_seq h_1 b in let s2 = as_seq h_2 b in ...
val in_place_map: #a:Type0 -> b: buffer a -> l: UInt32.t{ UInt32.v l = Buffer.length b } -> f:(a -> Tot a) -> Stack unit (requires (fun h -> live h b)) (ensures (fun h_1 r h_2 -> modifies_1 b h_1 h_2 /\ live h_2 b /\ live h_1 b /\ (let s1 = as_seq h_1 b in let s2 = as_seq h_2 b in ...
let in_place_map #a b l f = let h0 = HST.get() in let inv (h1: HS.mem) (i: nat): Type0 = live h1 b /\ modifies_1 b h0 h1 /\ i <= UInt32.v l /\ (forall (j:nat). (j >= i /\ j < UInt32.v l) ==> get h1 b j == get h0 b j) /\ (forall (j:nat). j < i ==> get h1 b j == f (get h0 b j)) in let f' (i:UInt32.t{ ...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 60, "end_line": 314, "start_col": 0, "start_line": 298 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: FStar.Buffer.buffer a -> l: FStar.UInt32.t{FStar.UInt32.v l = FStar.Buffer.length b} -> f: (_: a -> a) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Buffer.buffer", "FStar.UInt32.t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "FStar.Buffer.length", "FStar.Seq.Base.lemma_eq_intro", "FStar.Buffer.as_seq", "Spec.Loops.seq_map", ...
[]
false
true
false
false
false
let in_place_map #a b l f =
let h0 = HST.get () in let inv (h1: HS.mem) (i: nat) : Type0 = live h1 b /\ modifies_1 b h0 h1 /\ i <= UInt32.v l /\ (forall (j: nat). (j >= i /\ j < UInt32.v l) ==> get h1 b j == get h0 b j) /\ (forall (j: nat). j < i ==> get h1 b j == f (get h0 b j)) in let f' (i: UInt32.t{let open UInt32 in 0 <= v i /\ v i < v...
false
C.Compat.Loops.fst
C.Compat.Loops.repeat
val repeat: #a:Type0 -> l: UInt32.t -> f:(s:Seq.seq a{Seq.length s = UInt32.v l} -> Tot (s':Seq.seq a{Seq.length s' = Seq.length s})) -> b: buffer a{Buffer.length b = UInt32.v l} -> max:UInt32.t -> fc:(b:buffer a{length b = UInt32.v l} -> Stack unit (requires (fun h -> live h b)) ...
val repeat: #a:Type0 -> l: UInt32.t -> f:(s:Seq.seq a{Seq.length s = UInt32.v l} -> Tot (s':Seq.seq a{Seq.length s' = Seq.length s})) -> b: buffer a{Buffer.length b = UInt32.v l} -> max:UInt32.t -> fc:(b:buffer a{length b = UInt32.v l} -> Stack unit (requires (fun h -> live h b)) ...
let repeat #a l f b max fc = let h0 = HST.get() in let inv (h1: HS.mem) (i: nat): Type0 = live h1 b /\ modifies_1 b h0 h1 /\ i <= UInt32.v max /\ as_seq h1 b == repeat_spec i f (as_seq h0 b) in let f' (i:UInt32.t{ UInt32.( 0 <= v i /\ v i < v max ) }): Stack unit (requires (fun h -> inv h (UInt32.v ...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 20, "end_line": 402, "start_col": 0, "start_line": 388 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: FStar.UInt32.t -> f: (s: FStar.Seq.Base.seq a {FStar.Seq.Base.length s = FStar.UInt32.v l} -> s': FStar.Seq.Base.seq a {FStar.Seq.Base.length s' = FStar.Seq.Base.length s}) -> b: FStar.Buffer.buffer a {FStar.Buffer.length b = FStar.UInt32.v l} -> max: FStar.UInt32.t -> fc: ...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.UInt32.t", "FStar.Seq.Base.seq", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "FStar.UInt.size", "FStar.UInt32.n", "FStar.Seq.Base.length", "FStar.UInt32.v", "Prims.nat", "FStar.Buffer.buffer", "FStar.Buffer.length", "Prims.unit", "...
[]
false
true
false
false
false
let repeat #a l f b max fc =
let h0 = HST.get () in let inv (h1: HS.mem) (i: nat) : Type0 = live h1 b /\ modifies_1 b h0 h1 /\ i <= UInt32.v max /\ as_seq h1 b == repeat_spec i f (as_seq h0 b) in let f' (i: UInt32.t{let open UInt32 in 0 <= v i /\ v i < v max}) : Stack unit (requires (fun h -> inv h (UInt32.v i))) (ensures (fun ...
false
C.Compat.Loops.fst
C.Compat.Loops.repeat_range
val repeat_range: #a:Type0 -> l: UInt32.t -> min:UInt32.t -> max:UInt32.t{UInt32.v min <= UInt32.v max} -> f:(s:Seq.seq a{Seq.length s = UInt32.v l} -> i:nat{i < UInt32.v max} -> Tot (s':Seq.seq a{Seq.length s' = Seq.length s})) -> b: buffer a{Buffer.length b = UInt32.v l} -> fc:(b:buffer a{length b = UIn...
val repeat_range: #a:Type0 -> l: UInt32.t -> min:UInt32.t -> max:UInt32.t{UInt32.v min <= UInt32.v max} -> f:(s:Seq.seq a{Seq.length s = UInt32.v l} -> i:nat{i < UInt32.v max} -> Tot (s':Seq.seq a{Seq.length s' = Seq.length s})) -> b: buffer a{Buffer.length b = UInt32.v l} -> fc:(b:buffer a{length b = UIn...
let repeat_range #a l min max f b fc = let h0 = HST.get() in let inv (h1: HS.mem) (i: nat): Type0 = live h1 b /\ modifies_1 b h0 h1 /\ i <= UInt32.v max /\ UInt32.v min <= i /\ as_seq h1 b == repeat_range_spec (UInt32.v min) i f (as_seq h0 b) in let f' (i:UInt32.t{ UInt32.( 0 <= v i /\ v i < v max ) }):...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 20, "end_line": 444, "start_col": 0, "start_line": 430 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: FStar.UInt32.t -> min: FStar.UInt32.t -> max: FStar.UInt32.t{FStar.UInt32.v min <= FStar.UInt32.v max} -> f: ( s: FStar.Seq.Base.seq a {FStar.Seq.Base.length s = FStar.UInt32.v l} -> i: Prims.nat{i < FStar.UInt32.v max} -> s': FStar.Seq.Base.seq a {FStar.Seq.B...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.UInt32.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt32.v", "FStar.Seq.Base.seq", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "FStar.UInt.size", "FStar.UInt32.n", "FStar.Seq.Base.length", "Prims.nat", "Prims.op_LessThan", "FStar.Buffer....
[]
false
true
false
false
false
let repeat_range #a l min max f b fc =
let h0 = HST.get () in let inv (h1: HS.mem) (i: nat) : Type0 = live h1 b /\ modifies_1 b h0 h1 /\ i <= UInt32.v max /\ UInt32.v min <= i /\ as_seq h1 b == repeat_range_spec (UInt32.v min) i f (as_seq h0 b) in let f' (i: UInt32.t{let open UInt32 in 0 <= v i /\ v i < v max}) : Stack unit (requires (fun h ->...
false
Spec.AES.Test.fst
Spec.AES.Test.test_counter
val test_counter : Prims.int
let test_counter = 0xfcfdfeff
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 29, "start_col": 0, "start_line": 29 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let test_counter =
0xfcfdfeff
false
C.Compat.Loops.fst
C.Compat.Loops.in_place_map2
val in_place_map2: #a:Type0 -> #b:Type0 -> in1: buffer a -> in2: buffer b{disjoint in1 in2} -> l: UInt32.t{ UInt32.v l = Buffer.length in1 /\ UInt32.v l = Buffer.length in2} -> f:(a -> b -> Tot a) -> Stack unit (requires (fun h -> live h in1 /\ live h in2)) (ensures (fun h_1 r h_2 -> modifies_1 in1 ...
val in_place_map2: #a:Type0 -> #b:Type0 -> in1: buffer a -> in2: buffer b{disjoint in1 in2} -> l: UInt32.t{ UInt32.v l = Buffer.length in1 /\ UInt32.v l = Buffer.length in2} -> f:(a -> b -> Tot a) -> Stack unit (requires (fun h -> live h in1 /\ live h in2)) (ensures (fun h_1 r h_2 -> modifies_1 in1 ...
let in_place_map2 #a #b in1 in2 l f = let h0 = HST.get() in let inv (h1: HS.mem) (i: nat): Type0 = live h1 in1 /\ live h1 in2 /\ modifies_1 in1 h0 h1 /\ i <= UInt32.v l /\ (forall (j:nat). (j >= i /\ j < UInt32.v l) ==> get h1 in1 j == get h0 in1 j) /\ (forall (j:nat). j < i ==> get h1 in1 j == f (get h...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 81, "end_line": 354, "start_col": 0, "start_line": 337 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
in1: FStar.Buffer.buffer a -> in2: FStar.Buffer.buffer b {FStar.Buffer.disjoint in1 in2} -> l: FStar.UInt32.t {FStar.UInt32.v l = FStar.Buffer.length in1 /\ FStar.UInt32.v l = FStar.Buffer.length in2} -> f: (_: a -> _: b -> a) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Buffer.buffer", "FStar.Buffer.disjoint", "FStar.UInt32.t", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "FStar.Buffer.length", "FStar.Seq.Base.lemma_eq_intro", "FSt...
[]
false
true
false
false
false
let in_place_map2 #a #b in1 in2 l f =
let h0 = HST.get () in let inv (h1: HS.mem) (i: nat) : Type0 = live h1 in1 /\ live h1 in2 /\ modifies_1 in1 h0 h1 /\ i <= UInt32.v l /\ (forall (j: nat). (j >= i /\ j < UInt32.v l) ==> get h1 in1 j == get h0 in1 j) /\ (forall (j: nat). j < i ==> get h1 in1 j == f (get h0 in1 j) (get h0 in2 j)) in let f' (i: UInt3...
false
C.Compat.Loops.fst
C.Compat.Loops.map
val map: #a:Type0 -> #b:Type0 -> output: buffer b -> input: buffer a{disjoint input output} -> l: UInt32.t{ UInt32.v l = Buffer.length output /\ UInt32.v l = Buffer.length input } -> f:(a -> Tot b) -> Stack unit (requires (fun h -> live h input /\ live h output )) (ensures (fun h_1 r h_2 -> modifies...
val map: #a:Type0 -> #b:Type0 -> output: buffer b -> input: buffer a{disjoint input output} -> l: UInt32.t{ UInt32.v l = Buffer.length output /\ UInt32.v l = Buffer.length input } -> f:(a -> Tot b) -> Stack unit (requires (fun h -> live h input /\ live h output )) (ensures (fun h_1 r h_2 -> modifies...
let map #a #b output input l f = let h0 = HST.get() in let inv (h1: HS.mem) (i: nat): Type0 = live h1 output /\ live h1 input /\ modifies_1 output h0 h1 /\ i <= UInt32.v l /\ (forall (j:nat). (j >= i /\ j < UInt32.v l) ==> get h1 output j == get h0 output j) /\ (forall (j:nat). j < i ==> get h1 output j...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 69, "end_line": 237, "start_col": 0, "start_line": 221 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
output: FStar.Buffer.buffer b -> input: FStar.Buffer.buffer a {FStar.Buffer.disjoint input output} -> l: FStar.UInt32.t { FStar.UInt32.v l = FStar.Buffer.length output /\ FStar.UInt32.v l = FStar.Buffer.length input } -> f: (_: a -> b) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Buffer.buffer", "FStar.Buffer.disjoint", "FStar.UInt32.t", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "FStar.Buffer.length", "FStar.Seq.Base.lemma_eq_intro", "FSt...
[]
false
true
false
false
false
let map #a #b output input l f =
let h0 = HST.get () in let inv (h1: HS.mem) (i: nat) : Type0 = live h1 output /\ live h1 input /\ modifies_1 output h0 h1 /\ i <= UInt32.v l /\ (forall (j: nat). (j >= i /\ j < UInt32.v l) ==> get h1 output j == get h0 output j) /\ (forall (j: nat). j < i ==> get h1 output j == f (get h0 input j)) in let f' (i: U...
false
C.Compat.Loops.fst
C.Compat.Loops.map2
val map2: #a:Type0 -> #b:Type0 -> #c:Type0 -> output: buffer c -> in1: buffer a{disjoint output in1} -> in2: buffer b{disjoint output in2} -> l: UInt32.t{ UInt32.v l = Buffer.length output /\ UInt32.v l = Buffer.length in1 /\ UInt32.v l = Buffer.length in2 } -> f:(a -> b -> Tot c) -> Stack unit (re...
val map2: #a:Type0 -> #b:Type0 -> #c:Type0 -> output: buffer c -> in1: buffer a{disjoint output in1} -> in2: buffer b{disjoint output in2} -> l: UInt32.t{ UInt32.v l = Buffer.length output /\ UInt32.v l = Buffer.length in1 /\ UInt32.v l = Buffer.length in2 } -> f:(a -> b -> Tot c) -> Stack unit (re...
let map2 #a #b #c output in1 in2 l f = let h0 = HST.get() in let inv (h1: HS.mem) (i: nat): Type0 = live h1 output /\ live h1 in1 /\ live h1 in2 /\ modifies_1 output h0 h1 /\ i <= UInt32.v l /\ (forall (j:nat). (j >= i /\ j < UInt32.v l) ==> get h1 output j == get h0 output j) /\ (forall (j:nat). j < i ...
{ "file_name": "krmllib/compat/C.Compat.Loops.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 84, "end_line": 278, "start_col": 0, "start_line": 261 }
(* This module exposes a series of combinators; they are modeled using * higher-order functions and specifications, and extracted, using a * meta-theoretic argument, to actual C loops. *) module C.Compat.Loops open FStar.HyperStack.ST open FStar.Buffer module HS = FStar.HyperStack module HST = FStar.HyperStack.ST m...
{ "checked_file": "/", "dependencies": [ "Spec.Loops.fst.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "UInt64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "UInt32" }, { "abbrev": true, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
output: FStar.Buffer.buffer c -> in1: FStar.Buffer.buffer a {FStar.Buffer.disjoint output in1} -> in2: FStar.Buffer.buffer b {FStar.Buffer.disjoint output in2} -> l: FStar.UInt32.t { FStar.UInt32.v l = FStar.Buffer.length output /\ FStar.UInt32.v l = FStar.Buffer.length in1 /\ F...
FStar.HyperStack.ST.Stack
[]
[]
[ "FStar.Buffer.buffer", "FStar.Buffer.disjoint", "FStar.UInt32.t", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "FStar.Buffer.length", "FStar.Seq.Base.lemma_eq_intro", "FSt...
[]
false
true
false
false
false
let map2 #a #b #c output in1 in2 l f =
let h0 = HST.get () in let inv (h1: HS.mem) (i: nat) : Type0 = live h1 output /\ live h1 in1 /\ live h1 in2 /\ modifies_1 output h0 h1 /\ i <= UInt32.v l /\ (forall (j: nat). (j >= i /\ j < UInt32.v l) ==> get h1 output j == get h0 output j) /\ (forall (j: nat). j < i ==> get h1 output j == f (get h0 in1 j) (get ...
false
Spec.AES.Test.fst
Spec.AES.Test.test_counter1
val test_counter1 : Prims.int
let test_counter1 = 1
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 62, "start_col": 0, "start_line": 62 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let test_counter1 =
1
false
Spec.AES.Test.fst
Spec.AES.Test.test_counter2
val test_counter2 : Prims.int
let test_counter2 = 1
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 95, "start_col": 0, "start_line": 95 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let test_counter2 =
1
false
Spec.AES.Test.fst
Spec.AES.Test.test_plaintext
val test_plaintext:lbytes 16
val test_plaintext:lbytes 16
let test_plaintext : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x6buy; 0xc1uy; 0xbeuy; 0xe2uy; 0x2euy; 0x40uy; 0x9fuy; 0x96uy; 0xe9uy; 0x3duy; 0x7euy; 0x11uy; 0x73uy; 0x93uy; 0x17uy; 0x2auy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 36, "start_col": 0, "start_line": 31 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_plaintext:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0x6buy; 0xc1uy; 0xbeuy; 0xe2uy; 0x2euy; 0x40uy; 0x9fuy; 0x96uy; 0xe9uy; 0x3duy; 0x7euy; 0x11uy; 0x73uy; 0x93uy; 0x17uy; 0x2auy ] in assert_norm (List.Tot.length l == 16); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_nonce
val test_nonce:lbytes 12
val test_nonce:lbytes 12
let test_nonce : lbytes 12 = let l = List.Tot.map u8_from_UInt8 [ 0xf0uy; 0xf1uy; 0xf2uy; 0xf3uy; 0xf4uy; 0xf5uy; 0xf6uy; 0xf7uy; 0xf8uy; 0xf9uy; 0xfauy; 0xfbuy ] in assert_norm (List.Tot.length l == 12); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 27, "start_col": 0, "start_line": 22 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 12
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_nonce:lbytes 12 =
let l = List.Tot.map u8_from_UInt8 [0xf0uy; 0xf1uy; 0xf2uy; 0xf3uy; 0xf4uy; 0xf5uy; 0xf6uy; 0xf7uy; 0xf8uy; 0xf9uy; 0xfauy; 0xfbuy] in assert_norm (List.Tot.length l == 12); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_key
val test_key:lbytes 16
val test_key:lbytes 16
let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy; 0xaeuy; 0xd2uy; 0xa6uy; 0xabuy; 0xf7uy; 0x15uy; 0x88uy; 0x09uy; 0xcfuy; 0x4fuy; 0x3cuy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 19, "start_col": 0, "start_line": 14 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_key:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy; 0xaeuy; 0xd2uy; 0xa6uy; 0xabuy; 0xf7uy; 0x15uy; 0x88uy; 0x09uy; 0xcfuy; 0x4fuy; 0x3cuy ] in assert_norm (List.Tot.length l == 16); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_ciphertext
val test_ciphertext:lbytes 16
val test_ciphertext:lbytes 16
let test_ciphertext : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x87uy; 0x4duy; 0x61uy; 0x91uy; 0xb6uy; 0x20uy; 0xe3uy; 0x26uy; 0x1buy; 0xefuy; 0x68uy; 0x64uy; 0x99uy; 0x0duy; 0xb6uy; 0xceuy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 44, "start_col": 0, "start_line": 39 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_ciphertext:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0x87uy; 0x4duy; 0x61uy; 0x91uy; 0xb6uy; 0x20uy; 0xe3uy; 0x26uy; 0x1buy; 0xefuy; 0x68uy; 0x64uy; 0x99uy; 0x0duy; 0xb6uy; 0xceuy ] in assert_norm (List.Tot.length l == 16); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_key1
val test_key1:lbytes 16
val test_key1:lbytes 16
let test_key1 : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0xAEuy; 0x68uy; 0x52uy; 0xF8uy; 0x12uy; 0x10uy; 0x67uy; 0xCCuy; 0x4Buy; 0xF7uy; 0xA5uy; 0x76uy; 0x55uy; 0x77uy; 0xF3uy; 0x9Euy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 52, "start_col": 0, "start_line": 47 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_key1:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0xAEuy; 0x68uy; 0x52uy; 0xF8uy; 0x12uy; 0x10uy; 0x67uy; 0xCCuy; 0x4Buy; 0xF7uy; 0xA5uy; 0x76uy; 0x55uy; 0x77uy; 0xF3uy; 0x9Euy ] in assert_norm (List.Tot.length l == 16); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_key2
val test_key2:lbytes 16
val test_key2:lbytes 16
let test_key2 : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x7Euy; 0x24uy; 0x06uy; 0x78uy; 0x17uy; 0xFAuy; 0xE0uy; 0xD7uy; 0x43uy; 0xD6uy; 0xCEuy; 0x1Fuy; 0x32uy; 0x53uy; 0x91uy; 0x63uy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 85, "start_col": 0, "start_line": 80 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_key2:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0x7Euy; 0x24uy; 0x06uy; 0x78uy; 0x17uy; 0xFAuy; 0xE0uy; 0xD7uy; 0x43uy; 0xD6uy; 0xCEuy; 0x1Fuy; 0x32uy; 0x53uy; 0x91uy; 0x63uy ] in assert_norm (List.Tot.length l == 16); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_nonce1
val test_nonce1:lbytes 16
val test_nonce1:lbytes 16
let test_nonce1 : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x00uy; 0x00uy; 0x00uy; 0x30uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 60, "start_col": 0, "start_line": 55 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_nonce1:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0x00uy; 0x00uy; 0x00uy; 0x30uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy ] in assert_norm (List.Tot.length l == 16); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_nonce2
val test_nonce2:lbytes 12
val test_nonce2:lbytes 12
let test_nonce2 : lbytes 12 = let l = List.Tot.map u8_from_UInt8 [ 0x00uy; 0x6Cuy; 0xB6uy; 0xDBuy; 0xC0uy; 0x54uy; 0x3Buy; 0x59uy; 0xDAuy; 0x48uy; 0xD9uy; 0x0Buy ] in assert_norm (List.Tot.length l == 12); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 93, "start_col": 0, "start_line": 88 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 12
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_nonce2:lbytes 12 =
let l = List.Tot.map u8_from_UInt8 [0x00uy; 0x6Cuy; 0xB6uy; 0xDBuy; 0xC0uy; 0x54uy; 0x3Buy; 0x59uy; 0xDAuy; 0x48uy; 0xD9uy; 0x0Buy] in assert_norm (List.Tot.length l == 12); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test2_key_block
val test2_key_block:lbytes 16
val test2_key_block:lbytes 16
let test2_key_block : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0xffuy; 0xffuy; 0xffuy; 0xffuy; 0xffuy; 0xf0uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 146, "start_col": 0, "start_line": 141 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test2_key_block:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0xffuy; 0xffuy; 0xffuy; 0xffuy; 0xffuy; 0xf0uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy ] in assert_norm (List.Tot.length l == 16); of_list l
false
Spec.AES.Test.fst
Spec.AES.Test.test_ciphertext1
val test_ciphertext1:lbytes 16
val test_ciphertext1:lbytes 16
let test_ciphertext1 : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0xE4uy; 0x09uy; 0x5Duy; 0x4Fuy; 0xB7uy; 0xA7uy; 0xB3uy; 0x79uy; 0x2Duy; 0x61uy; 0x75uy; 0xA3uy; 0x26uy; 0x13uy; 0x11uy; 0xB8uy ] in assert_norm (List.Tot.length l == 16); of_list l
{ "file_name": "specs/tests/Spec.AES.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 77, "start_col": 0, "start_line": 72 }
module Spec.AES.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence module PS = Lib.PrintSequence open Spec.AES #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let test_key : lbytes 16 = let l = List.Tot.map u8_from_UInt8 [ 0x2buy; 0x7euy; 0x15uy; 0x16uy; 0x28uy;...
{ "checked_file": "/", "dependencies": [ "Spec.AES.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintSequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "...
[ { "abbrev": false, "full_module": "Spec.AES", "short_module": null }, { "abbrev": true, "full_module": "Lib.PrintSequence", "short_module": "PS" }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16
Prims.Tot
[ "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"...
[]
false
false
false
false
false
let test_ciphertext1:lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [ 0xE4uy; 0x09uy; 0x5Duy; 0x4Fuy; 0xB7uy; 0xA7uy; 0xB3uy; 0x79uy; 0x2Duy; 0x61uy; 0x75uy; 0xA3uy; 0x26uy; 0x13uy; 0x11uy; 0xB8uy ] in assert_norm (List.Tot.length l == 16); of_list l
false