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
Hacl.Impl.Chacha20.Core32xN.fst
Hacl.Impl.Chacha20.Core32xN.transpose8
val transpose8: st:state 8 -> Stack unit (requires (fun h -> live h st)) (ensures (fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.transpose8 (as_seq h0 st)))
val transpose8: st:state 8 -> Stack unit (requires (fun h -> live h st)) (ensures (fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.transpose8 (as_seq h0 st)))
let transpose8 st = let (st0,st1,st2,st3,st4,st5,st6,st7) = (st.(0ul),st.(1ul),st.(2ul),st.(3ul),st.(4ul),st.(5ul),st.(6ul),st.(7ul)) in let (st8,st9,st10,st11,st12,st13,st14,st15) = (st.(8ul),st.(9ul),st.(10ul),st.(11ul),st.(12ul),st.(13ul),st.(14ul),st.(15ul)) in let (v0,v1,v2,v3,v4,v5,v6,v7) = VecTranspose.tra...
{ "file_name": "code/chacha20/Hacl.Impl.Chacha20.Core32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 81, "end_line": 110, "start_col": 0, "start_line": 105 }
module Hacl.Impl.Chacha20.Core32xN module ST = FStar.HyperStack.ST open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector module Spec = Hacl.Spec.Chacha20.Vec module VecTranspose = Lib.IntVector.Transpose module LSeq = Lib.Sequence #re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Hacl.Spec.Chacha20.Vec", "short_module": "Spec" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Impl.Chacha20.Core32xN.state 8 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Chacha20.Core32xN.state", "Lib.IntVector.vec_t", "Lib.IntTypes.U32", "Lib.Buffer.create16", "Hacl.Impl.Chacha20.Core32xN.uint32xN", "Prims.unit", "Lib.IntVector.Transpose.vec_t8", "Lib.IntVector.Transpose.transpose8x8", "FStar.Pervasives.Native.Mktuple8", "FStar.Pervasives.Native.tuple8...
[]
false
true
false
false
false
let transpose8 st =
let st0, st1, st2, st3, st4, st5, st6, st7 = (st.(0ul), st.(1ul), st.(2ul), st.(3ul), st.(4ul), st.(5ul), st.(6ul), st.(7ul)) in let st8, st9, st10, st11, st12, st13, st14, st15 = (st.(8ul), st.(9ul), st.(10ul), st.(11ul), st.(12ul), st.(13ul), st.(14ul), st.(15ul)) in let v0, v1, v2, v3, v4, v5, v6, v7 = VecTran...
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.transpose
val transpose (#w: lanes) (st: state w) : state w
val transpose (#w: lanes) (st: state w) : state w
let transpose (#w:lanes) (st:state w) : state w = match w with | 1 -> transpose1 st | 4 -> transpose4 st | 8 -> transpose8 st
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 144, "start_col": 0, "start_line": 140 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Spec.Chacha20.Vec.state w -> Hacl.Spec.Chacha20.Vec.state w
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.state", "Hacl.Spec.Chacha20.Vec.transpose1", "Hacl.Spec.Chacha20.Vec.transpose4", "Hacl.Spec.Chacha20.Vec.transpose8" ]
[]
false
false
false
false
false
let transpose (#w: lanes) (st: state w) : state w =
match w with | 1 -> transpose1 st | 4 -> transpose4 st | 8 -> transpose8 st
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.chacha20_constants
val chacha20_constants:lseq size_t 4
val chacha20_constants:lseq size_t 4
let chacha20_constants : lseq size_t 4 = [@ inline_let] let l = [c0;c1;c2;c3] in assert_norm(List.Tot.length l == 4); createL l
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 112, "start_col": 0, "start_line": 108 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB) 4
Prims.Tot
[ "total" ]
[]
[ "Lib.Sequence.createL", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "Prims.Cons", "Hacl.Spec.Chacha20.Vec.c0", "Hacl.Spec.Chacha20.Vec.c1", "Hacl.Spec.Chach...
[]
false
false
false
false
false
let chacha20_constants:lseq size_t 4 =
[@@ inline_let ]let l = [c0; c1; c2; c3] in assert_norm (List.Tot.length l == 4); createL l
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.chacha20_init
val chacha20_init (#w: lanes) (k: key) (n: nonce) (ctr0: counter) : state w
val chacha20_init (#w: lanes) (k: key) (n: nonce) (ctr0: counter) : state w
let chacha20_init (#w:lanes) (k:key) (n:nonce) (ctr0:counter) : state w = let st1 = setup1 k n ctr0 in let st = map (vec_load_i w) st1 in let c = vec_counter U32 w in st.[12] <- st.[12] +| c
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 124, "start_col": 0, "start_line": 120 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Hacl.Spec.Chacha20.Vec.key -> n: Hacl.Spec.Chacha20.Vec.nonce -> ctr0: Hacl.Spec.Chacha20.Vec.counter -> Hacl.Spec.Chacha20.Vec.state w
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.key", "Hacl.Spec.Chacha20.Vec.nonce", "Hacl.Spec.Chacha20.Vec.counter", "Lib.Sequence.op_String_Assignment", "Hacl.Spec.Chacha20.Vec.uint32xN", "Lib.IntVector.op_Plus_Bar", "Lib.IntTypes.U32", "Lib.Sequence.op_String_Access", "Lib.IntVector.v...
[]
false
false
false
false
false
let chacha20_init (#w: lanes) (k: key) (n: nonce) (ctr0: counter) : state w =
let st1 = setup1 k n ctr0 in let st = map (vec_load_i w) st1 in let c = vec_counter U32 w in st.[ 12 ] <- st.[ 12 ] +| c
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.chacha20_encrypt_last
val chacha20_encrypt_last: #w: lanes -> st0: state w -> incr: counter{incr * w <= max_size_t} -> len: size_nat{len < w * size_block} -> b: lbytes len -> Tot (lbytes len)
val chacha20_encrypt_last: #w: lanes -> st0: state w -> incr: counter{incr * w <= max_size_t} -> len: size_nat{len < w * size_block} -> b: lbytes len -> Tot (lbytes len)
let chacha20_encrypt_last #w st0 incr len b = let plain = create (w * size_block) (u8 0) in let plain = update_sub plain 0 len b in let cipher = chacha20_encrypt_block st0 incr plain in sub cipher 0 len
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 186, "start_col": 0, "start_line": 182 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st0: Hacl.Spec.Chacha20.Vec.state w -> incr: Hacl.Spec.Chacha20.Vec.counter{incr * w <= Lib.IntTypes.max_size_t} -> len: Lib.IntTypes.size_nat{len < w * Hacl.Spec.Chacha20.Vec.size_block} -> b: Lib.ByteSequence.lbytes len -> Lib.ByteSequence.lbytes len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.state", "Hacl.Spec.Chacha20.Vec.counter", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.IntTypes.size_nat", "Prims.op_LessThan", "Hacl.Spec.Chacha20.Vec.size_block", "Lib.ByteSequence.lbytes",...
[]
false
false
false
false
false
let chacha20_encrypt_last #w st0 incr len b =
let plain = create (w * size_block) (u8 0) in let plain = update_sub plain 0 len b in let cipher = chacha20_encrypt_block st0 incr plain in sub cipher 0 len
false
Hacl.Impl.Chacha20.Core32xN.fst
Hacl.Impl.Chacha20.Core32xN.xor_block
val xor_block: #w:lanes -> o:lbuffer uint8 ((4ul *! size w) *! 16ul) -> st:state w -> b:lbuffer uint8 ((4ul *! size w) *! 16ul) -> Stack unit (requires (fun h -> live h o /\ live h st /\ live h b /\ disjoint st b /\ disjoint st o /\ eq_or_disjoint b o)) (ensures (fun h0 _ h1 -> modifies (loc s...
val xor_block: #w:lanes -> o:lbuffer uint8 ((4ul *! size w) *! 16ul) -> st:state w -> b:lbuffer uint8 ((4ul *! size w) *! 16ul) -> Stack unit (requires (fun h -> live h o /\ live h st /\ live h b /\ disjoint st b /\ disjoint st o /\ eq_or_disjoint b o)) (ensures (fun h0 _ h1 -> modifies (loc s...
let xor_block #w o st b = let h0 = ST.get () in map_blocks_multi h0 (size w *! 4ul) 16ul b o (fun h -> Spec.xor_block_f #w (as_seq h0 st)) (fun i -> [@inline_let] let bs = normalize_term (size w *! 4ul) in let x = vec_load_le U32 w (sub b (i *! bs) bs) in let y = x ^| st.(i) in vec_store_le ...
{ "file_name": "code/chacha20/Hacl.Impl.Chacha20.Core32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 147, "start_col": 0, "start_line": 137 }
module Hacl.Impl.Chacha20.Core32xN module ST = FStar.HyperStack.ST open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector module Spec = Hacl.Spec.Chacha20.Vec module VecTranspose = Lib.IntVector.Transpose module LSeq = Lib.Sequence #re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Hacl.Spec.Chacha20.Vec", "short_module": "Spec" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
o: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (4ul *! Lib.IntTypes.size w *! 16ul) -> st: Hacl.Impl.Chacha20.Core32xN.state w -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (4ul *! Lib.IntTypes.size w *! 16ul) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Chacha20.Core32xN.lanes", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size", "Hacl.Impl.Chacha20.Core32xN.state", "Lib.Buffer.map_blocks_multi", "Lib.Buffer.MUT", "FStar.Mo...
[]
false
true
false
false
false
let xor_block #w o st b =
let h0 = ST.get () in map_blocks_multi h0 (size w *! 4ul) 16ul b o (fun h -> Spec.xor_block_f #w (as_seq h0 st)) (fun i -> [@@ inline_let ]let bs = normalize_term (size w *! 4ul) in let x = vec_load_le U32 w (sub b (i *! bs) bs) in let y = x ^| st.(i) in vec_store_le #U32 #w (sub o (...
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.chacha20_decrypt_bytes
val chacha20_decrypt_bytes: #w:lanes -> k: key -> n: nonce -> c: counter -> cipher: bytes{length cipher <= max_size_t} -> msg: bytes{length cipher == length msg}
val chacha20_decrypt_bytes: #w:lanes -> k: key -> n: nonce -> c: counter -> cipher: bytes{length cipher <= max_size_t} -> msg: bytes{length cipher == length msg}
let chacha20_decrypt_bytes #w key nonce ctr0 cipher = let st0 = chacha20_init #w key nonce ctr0 in chacha20_update #w st0 cipher
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 221, "start_col": 0, "start_line": 219 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Hacl.Spec.Chacha20.Vec.key -> n: Hacl.Spec.Chacha20.Vec.nonce -> c: Hacl.Spec.Chacha20.Vec.counter -> cipher: Lib.ByteSequence.bytes{Lib.Sequence.length cipher <= Lib.IntTypes.max_size_t} -> msg: Lib.ByteSequence.bytes{Lib.Sequence.length cipher == Lib.Sequence.length msg}
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.key", "Hacl.Spec.Chacha20.Vec.nonce", "Hacl.Spec.Chacha20.Vec.counter", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.IntTypes....
[]
false
false
false
false
false
let chacha20_decrypt_bytes #w key nonce ctr0 cipher =
let st0 = chacha20_init #w key nonce ctr0 in chacha20_update #w st0 cipher
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.chacha20_encrypt_block
val chacha20_encrypt_block: #w: lanes -> st0: state w -> incr: counter{incr * w <= max_size_t} -> b: blocks w -> Tot (blocks w)
val chacha20_encrypt_block: #w: lanes -> st0: state w -> incr: counter{incr * w <= max_size_t} -> b: blocks w -> Tot (blocks w)
let chacha20_encrypt_block #w st0 incr b = let k = chacha20_core incr st0 in let k = transpose k in xor_block k b
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 173, "start_col": 0, "start_line": 170 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st0: Hacl.Spec.Chacha20.Vec.state w -> incr: Hacl.Spec.Chacha20.Vec.counter{incr * w <= Lib.IntTypes.max_size_t} -> b: Hacl.Spec.Chacha20.Vec.blocks w -> Hacl.Spec.Chacha20.Vec.blocks w
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.state", "Hacl.Spec.Chacha20.Vec.counter", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Hacl.Spec.Chacha20.Vec.blocks", "Hacl.Spec.Chacha20.Vec.xor_block", "Hacl.Spec.Chacha20.Vec.transpose", "Hac...
[]
false
false
false
false
false
let chacha20_encrypt_block #w st0 incr b =
let k = chacha20_core incr st0 in let k = transpose k in xor_block k b
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.xor_block
val xor_block (#w: lanes) (k: state w) (b: blocks w) : blocks w
val xor_block (#w: lanes) (k: state w) (b: blocks w) : blocks w
let xor_block (#w:lanes) (k:state w) (b:blocks w) : blocks w = map_blocks_multi (w * 4) 16 16 b (xor_block_f #w k)
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 162, "start_col": 0, "start_line": 161 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Hacl.Spec.Chacha20.Vec.state w -> b: Hacl.Spec.Chacha20.Vec.blocks w -> Hacl.Spec.Chacha20.Vec.blocks w
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.state", "Hacl.Spec.Chacha20.Vec.blocks", "Lib.Sequence.map_blocks_multi", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Hacl.Spec.Chacha20.Vec.xor_block_f" ]
[]
false
false
false
false
false
let xor_block (#w: lanes) (k: state w) (b: blocks w) : blocks w =
map_blocks_multi (w * 4) 16 16 b (xor_block_f #w k)
false
Vale.Lib.Tactics.fst
Vale.Lib.Tactics.iterate_env
val iterate_env (bs: binders) : Tac unit
val iterate_env (bs: binders) : Tac unit
let rec iterate_env (bs : binders) : Tac unit = match bs with | [] -> () | b :: bs -> let ty = type_of_binder b in let elim = tf ty in begin match term_as_formula_total ty with | And _ _ -> elim (pack (Tv_Var (bv_of_binder b))); clear b; ...
{ "file_name": "vale/code/lib/util/Vale.Lib.Tactics.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 40, "start_col": 0, "start_line": 25 }
module Vale.Lib.Tactics open FStar.Mul open FStar.Tactics open FStar.Tactics.Derived open FStar.Reflection.Formula (***** Tactic to destruct conjuctions in context *) private val __squash_and_elim : (#p:Type) -> (#q:Type) -> (#phi:Type) -> squash (p /\ q) -> ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Derived.fst.checked", "FStar.Tactics.fst.checked", "FStar.Reflection.Formula.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "Vale.Lib.Tactics....
[ { "abbrev": false, "full_module": "FStar.Reflection.Formula", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "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
bs: FStar.Stubs.Reflection.Types.binders -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.binders", "Prims.unit", "FStar.Stubs.Reflection.Types.binder", "Prims.list", "FStar.Stubs.Reflection.Types.term", "Vale.Lib.Tactics.iterate_env", "Prims.Cons", "FStar.Tactics.V1.Logic.implies_intro", "FStar.Stubs.Tactics.V1.Builtins.clear", "FStar.Stubs.Tactics.V1.Bui...
[ "recursion" ]
false
true
false
false
false
let rec iterate_env (bs: binders) : Tac unit =
match bs with | [] -> () | b :: bs -> let ty = type_of_binder b in let elim = tf ty in match term_as_formula_total ty with | And _ _ -> elim (pack (Tv_Var (bv_of_binder b))); clear b; let t1 = implies_intro () in let t2 = implies_intro () in iterate_env (t1 :: t2 :: bs) | _ -> iterate_env ...
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.chacha20_update
val chacha20_update: #w:lanes -> st0: state w -> msg: bytes{length msg <= max_size_t} -> cipher: bytes{length cipher == length msg}
val chacha20_update: #w:lanes -> st0: state w -> msg: bytes{length msg <= max_size_t} -> cipher: bytes{length cipher == length msg}
let chacha20_update #w st0 msg = let cipher = msg in map_blocks (w * size_block) cipher (chacha20_encrypt_block st0) (chacha20_encrypt_last st0)
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 197, "start_col": 0, "start_line": 193 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st0: Hacl.Spec.Chacha20.Vec.state w -> msg: Lib.ByteSequence.bytes{Lib.Sequence.length msg <= Lib.IntTypes.max_size_t} -> cipher: Lib.ByteSequence.bytes{Lib.Sequence.length cipher == Lib.Sequence.length msg}
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.state", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.IntTypes.max_size_t", "Lib.Sequence.map_blocks", "FStar.Mul.op_Star", "...
[]
false
false
false
false
false
let chacha20_update #w st0 msg =
let cipher = msg in map_blocks (w * size_block) cipher (chacha20_encrypt_block st0) (chacha20_encrypt_last st0)
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.transpose1
val transpose1 (st: state 1) : state 1
val transpose1 (st: state 1) : state 1
let transpose1 (st:state 1) : state 1 = st
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 126, "start_col": 0, "start_line": 126 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Spec.Chacha20.Vec.state 1 -> Hacl.Spec.Chacha20.Vec.state 1
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.state" ]
[]
false
false
false
false
false
let transpose1 (st: state 1) : state 1 =
st
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.xor_block_f
val xor_block_f (#w: lanes) (k: state w) (i: nat{i < 16}) (b: lbytes (w * 4)) : lbytes (w * 4)
val xor_block_f (#w: lanes) (k: state w) (i: nat{i < 16}) (b: lbytes (w * 4)) : lbytes (w * 4)
let xor_block_f (#w:lanes) (k:state w) (i:nat{i < 16}) (b:lbytes (w * 4)) : lbytes (w * 4) = let x = vec_from_bytes_le U32 w b in let y = x ^| k.[i] in vec_to_bytes_le y
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 159, "start_col": 0, "start_line": 156 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Hacl.Spec.Chacha20.Vec.state w -> i: Prims.nat{i < 16} -> b: Lib.ByteSequence.lbytes (w * 4) -> Lib.ByteSequence.lbytes (w * 4)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.lanes", "Hacl.Spec.Chacha20.Vec.state", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Lib.ByteSequence.lbytes", "FStar.Mul.op_Star", "Lib.IntVector.vec_to_bytes_le", "Lib.IntTypes.U32", "Lib.IntVector.vec_t", "Lib.IntVector.op_Hat_Bar", "Lib.Sequence.op_String_Access"...
[]
false
false
false
false
false
let xor_block_f (#w: lanes) (k: state w) (i: nat{i < 16}) (b: lbytes (w * 4)) : lbytes (w * 4) =
let x = vec_from_bytes_le U32 w b in let y = x ^| k.[ i ] in vec_to_bytes_le y
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.transpose4
val transpose4 (st: state 4) : state 4
val transpose4 (st: state 4) : state 4
let transpose4 (st:state 4) : state 4 = let (v0,v1,v2,v3) = VecTranspose.transpose4x4 (st.[0],st.[1],st.[2],st.[3]) in let (v4,v5,v6,v7) = VecTranspose.transpose4x4 (st.[4],st.[5],st.[6],st.[7]) in let (v8,v9,v10,v11) = VecTranspose.transpose4x4 (st.[8],st.[9],st.[10],st.[11]) in let (v12,v13,v14,v15) = VecTran...
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 133, "start_col": 0, "start_line": 128 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Spec.Chacha20.Vec.state 4 -> Hacl.Spec.Chacha20.Vec.state 4
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.state", "Lib.IntVector.vec_t", "Lib.IntTypes.U32", "Lib.Sequence.create16", "Hacl.Spec.Chacha20.Vec.uint32xN", "Lib.IntVector.Transpose.vec_t4", "Lib.IntVector.Transpose.transpose4x4", "FStar.Pervasives.Native.Mktuple4", "Lib.Sequence.op_String_Access" ]
[]
false
false
false
false
false
let transpose4 (st: state 4) : state 4 =
let v0, v1, v2, v3 = VecTranspose.transpose4x4 (st.[ 0 ], st.[ 1 ], st.[ 2 ], st.[ 3 ]) in let v4, v5, v6, v7 = VecTranspose.transpose4x4 (st.[ 4 ], st.[ 5 ], st.[ 6 ], st.[ 7 ]) in let v8, v9, v10, v11 = VecTranspose.transpose4x4 (st.[ 8 ], st.[ 9 ], st.[ 10 ], st.[ 11 ]) in let v12, v13, v14, v15 = VecTranspose.trans...
false
Hacl.Spec.Chacha20.Vec.fst
Hacl.Spec.Chacha20.Vec.transpose8
val transpose8 (st: state 8) : state 8
val transpose8 (st: state 8) : state 8
let transpose8 (st:state 8) : state 8 = let (v0,v1,v2,v3,v4,v5,v6,v7) = VecTranspose.transpose8x8 (st.[0],st.[1],st.[2],st.[3],st.[4],st.[5],st.[6],st.[7]) in let (v8,v9,v10,v11,v12,v13,v14,v15) = VecTranspose.transpose8x8 (st.[8],st.[9],st.[10],st.[11],st.[12],st.[13],st.[14],st.[15]) in create16 v0 v8 v1 v9 v2 ...
{ "file_name": "code/chacha20/Hacl.Spec.Chacha20.Vec.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 138, "start_col": 0, "start_line": 135 }
module Hacl.Spec.Chacha20.Vec open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Lib.LoopCombinators open Lib.IntVector module Scalar = Spec.Chacha20 module VecTranspose = Lib.IntVector.Transpose #set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" /// Constants and Types let size_ke...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Spec.Chacha20", "short_module": "Scalar" }, { "abbrev": false, "full_module": "Lib.IntVector", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Spec.Chacha20.Vec.state 8 -> Hacl.Spec.Chacha20.Vec.state 8
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Chacha20.Vec.state", "Lib.IntVector.vec_t", "Lib.IntTypes.U32", "Lib.Sequence.create16", "Hacl.Spec.Chacha20.Vec.uint32xN", "Lib.IntVector.Transpose.vec_t8", "Lib.IntVector.Transpose.transpose8x8", "FStar.Pervasives.Native.Mktuple8", "Lib.Sequence.op_String_Access" ]
[]
false
false
false
false
false
let transpose8 (st: state 8) : state 8 =
let v0, v1, v2, v3, v4, v5, v6, v7 = VecTranspose.transpose8x8 (st.[ 0 ], st.[ 1 ], st.[ 2 ], st.[ 3 ], st.[ 4 ], st.[ 5 ], st.[ 6 ], st.[ 7 ]) in let v8, v9, v10, v11, v12, v13, v14, v15 = VecTranspose.transpose8x8 (st.[ 8 ], st.[ 9 ], st.[ 10 ], st.[ 11 ...
false
Hacl.Impl.Chacha20.Core32xN.fst
Hacl.Impl.Chacha20.Core32xN.double_round
val double_round: #w:lanes -> st:state w -> Stack unit (requires (fun h -> live h st)) (ensures (fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.double_round (as_seq h0 st)))
val double_round: #w:lanes -> st:state w -> Stack unit (requires (fun h -> live h st)) (ensures (fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.double_round (as_seq h0 st)))
let double_round #w st = quarter_round st (size 0) (size 4) (size 8) (size 12); quarter_round st (size 1) (size 5) (size 9) (size 13); quarter_round st (size 2) (size 6) (size 10) (size 14); quarter_round st (size 3) (size 7) (size 11) (size 15); quarter_round st (size 0) (size 5) (size 10) (size 15); quar...
{ "file_name": "code/chacha20/Hacl.Impl.Chacha20.Core32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 198, "start_col": 0, "start_line": 189 }
module Hacl.Impl.Chacha20.Core32xN module ST = FStar.HyperStack.ST open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector module Spec = Hacl.Spec.Chacha20.Vec module VecTranspose = Lib.IntVector.Transpose module LSeq = Lib.Sequence #re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.Transpose.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Lib.IntVector.Transpose", "short_module": "VecTranspose" }, { "abbrev": true, "full_module": "Hacl.Spec.Chacha20.Vec", "short_module": "Spec" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Impl.Chacha20.Core32xN.state w -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Chacha20.Core32xN.lanes", "Hacl.Impl.Chacha20.Core32xN.state", "Hacl.Impl.Chacha20.Core32xN.quarter_round", "Lib.IntTypes.size", "Prims.unit" ]
[]
false
true
false
false
false
let double_round #w st =
quarter_round st (size 0) (size 4) (size 8) (size 12); quarter_round st (size 1) (size 5) (size 9) (size 13); quarter_round st (size 2) (size 6) (size 10) (size 14); quarter_round st (size 3) (size 7) (size 11) (size 15); quarter_round st (size 0) (size 5) (size 10) (size 15); quarter_round st (size 1) (size 6) (size 1...
false
HACL.fst
HACL.signable_len
val signable_len : Type0
let signable_len = v:US.t{ is_signable_len v }
{ "file_name": "share/steel/examples/pulse/dice/common/HACL.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 51, "start_col": 0, "start_line": 51 }
(* 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.Lib.Reference.fsti.checked", "Pulse.Lib.Pervasives.fst.checked", "Pulse.Lib.Array.fsti.checked", "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Pulse.Li...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.SizeT.t", "HACL.is_signable_len" ]
[]
false
false
false
true
true
let signable_len =
v: US.t{is_signable_len v}
false
HACL.fst
HACL.hkdf_ikm_len
val hkdf_ikm_len : Type0
let hkdf_ikm_len = v:US.t{ valid_hkdf_ikm_len v }
{ "file_name": "share/steel/examples/pulse/dice/common/HACL.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 49, "end_line": 61, "start_col": 0, "start_line": 61 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Reference.fsti.checked", "Pulse.Lib.Pervasives.fst.checked", "Pulse.Lib.Array.fsti.checked", "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Pulse.Li...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.SizeT.t", "HACL.valid_hkdf_ikm_len" ]
[]
false
false
false
true
true
let hkdf_ikm_len =
v: US.t{valid_hkdf_ikm_len v}
false
HACL.fst
HACL.hkdf_lbl_len
val hkdf_lbl_len : Type0
let hkdf_lbl_len = v:US.t{ valid_hkdf_lbl_len v }
{ "file_name": "share/steel/examples/pulse/dice/common/HACL.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 49, "end_line": 56, "start_col": 0, "start_line": 56 }
(* 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.Lib.Reference.fsti.checked", "Pulse.Lib.Pervasives.fst.checked", "Pulse.Lib.Array.fsti.checked", "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Pulse.Li...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.SizeT.t", "HACL.valid_hkdf_lbl_len" ]
[]
false
false
false
true
true
let hkdf_lbl_len =
v: US.t{valid_hkdf_lbl_len v}
false
HACL.fst
HACL.v32us
val v32us:US.t
val v32us:US.t
let v32us : US.t = 32sz
{ "file_name": "share/steel/examples/pulse/dice/common/HACL.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 25, "start_col": 0, "start_line": 25 }
(* 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.Lib.Reference.fsti.checked", "Pulse.Lib.Pervasives.fst.checked", "Pulse.Lib.Array.fsti.checked", "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Pulse.Li...
{ "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
FStar.SizeT.t
Prims.Tot
[ "total" ]
[]
[ "FStar.SizeT.__uint_to_t" ]
[]
false
false
false
true
false
let v32us:US.t =
32sz
false
HACL.fst
HACL.hashable_len
val hashable_len : Type0
let hashable_len = v:US.t{ is_hashable_len v }
{ "file_name": "share/steel/examples/pulse/dice/common/HACL.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 46, "start_col": 0, "start_line": 46 }
(* 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.Lib.Reference.fsti.checked", "Pulse.Lib.Pervasives.fst.checked", "Pulse.Lib.Array.fsti.checked", "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": true, "full_module": "Pulse.Li...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.SizeT.t", "HACL.is_hashable_len" ]
[]
false
false
false
true
true
let hashable_len =
v: US.t{is_hashable_len v}
false
Vale.AES.GCM_BE.fsti
Vale.AES.GCM_BE.set_to_one
val set_to_one (q: quad32) : quad32
val set_to_one (q: quad32) : quad32
let set_to_one (q:quad32) : quad32 = Mkfour 1 q.lo1 q.hi2 q.hi3
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM_BE.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 21, "start_col": 0, "start_line": 21 }
module Vale.AES.GCM_BE open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_BE_s open Vale.AES.AES_BE_s open Vale.AES.GCM_helpers_BE open Vale.AES.GCTR_BE_s open Vale.AES.GCTR_BE open Vale.AES.GHash_BE_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open V...
{ "checked_file": "/", "dependencies": [ "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.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", ...
[ { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_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
q: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.Def.Words_s.__proj__Mkfour__item__hi3" ]
[]
false
false
false
true
false
let set_to_one (q: quad32) : quad32 =
Mkfour 1 q.lo1 q.hi2 q.hi3
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_pattern'
val close_pattern' : p: Pulse.Syntax.Base.pattern -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> Pulse.Syntax.Base.pattern
let close_pattern' (p:pattern) (x:var) (i:index) = subst_pat p [ND x i]
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 22, "end_line": 168, "start_col": 0, "start_line": 167 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Pulse.Syntax.Base.pattern -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> Pulse.Syntax.Base.pattern
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.pattern", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Syntax.Naming.subst_pat", "Prims.Cons", "Pulse.Syntax.Naming.subst_elt", "Pulse.Syntax.Naming.ND", "Prims.Nil" ]
[]
false
false
false
true
false
let close_pattern' (p: pattern) (x: var) (i: index) =
subst_pat p [ND x i]
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_pattern_args'
val close_pattern_args' : ps: Prims.list (Pulse.Syntax.Base.pattern * Prims.bool) -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> Prims.list (Pulse.Syntax.Base.pattern * Prims.bool)
let close_pattern_args' (ps:list (pattern & bool)) (x:var) (i:index) = subst_pat_args ps [ND x i]
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 172, "start_col": 0, "start_line": 171 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ps: Prims.list (Pulse.Syntax.Base.pattern * Prims.bool) -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> Prims.list (Pulse.Syntax.Base.pattern * Prims.bool)
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.pattern", "Prims.bool", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Syntax.Naming.subst_pat_args", "Prims.Cons", "Pulse.Syntax.Naming.subst_elt", "Pulse.Syntax.Naming.ND", "Prims.Nil" ]
[]
false
false
false
true
false
let close_pattern_args' (ps: list (pattern & bool)) (x: var) (i: index) =
subst_pat_args ps [ND x i]
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_pairs'
val open_term_pairs' (t: list (term & term)) (v: term) (i: index) : Tot (list (term & term))
val open_term_pairs' (t: list (term & term)) (v: term) (i: index) : Tot (list (term & term))
let open_term_pairs' (t:list (term & term)) (v:term) (i:index) : Tot (list (term & term)) = subst_term_pairs t [ DT i v ]
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 33, "end_line": 133, "start_col": 0, "start_line": 131 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) -> v: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term)
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Syntax.Naming.subst_term_pairs", "Prims.Cons", "Pulse.Syntax.Naming.subst_elt", "Pulse.Syntax.Naming.DT", "Prims.Nil" ]
[]
false
false
false
true
false
let open_term_pairs' (t: list (term & term)) (v: term) (i: index) : Tot (list (term & term)) =
subst_term_pairs t [DT i v]
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_pattern_args'
val open_pattern_args' : ps: Prims.list (Pulse.Syntax.Base.pattern * Prims.bool) -> v: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> Prims.list (Pulse.Syntax.Base.pattern * Prims.bool)
let open_pattern_args' (ps:list (pattern & bool)) (v:term) (i:index) = subst_pat_args ps [DT i v]
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 170, "start_col": 0, "start_line": 169 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ps: Prims.list (Pulse.Syntax.Base.pattern * Prims.bool) -> v: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> Prims.list (Pulse.Syntax.Base.pattern * Prims.bool)
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.pattern", "Prims.bool", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Syntax.Naming.subst_pat_args", "Prims.Cons", "Pulse.Syntax.Naming.subst_elt", "Pulse.Syntax.Naming.DT", "Prims.Nil" ]
[]
false
false
false
true
false
let open_pattern_args' (ps: list (pattern & bool)) (v: term) (i: index) =
subst_pat_args ps [DT i v]
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_pattern'
val open_pattern' : p: Pulse.Syntax.Base.pattern -> v: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> Pulse.Syntax.Base.pattern
let open_pattern' (p:pattern) (v:term) (i:index) = subst_pat p [DT i v]
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 22, "end_line": 166, "start_col": 0, "start_line": 165 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Pulse.Syntax.Base.pattern -> v: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> Pulse.Syntax.Base.pattern
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.pattern", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Syntax.Naming.subst_pat", "Prims.Cons", "Pulse.Syntax.Naming.subst_elt", "Pulse.Syntax.Naming.DT", "Prims.Nil" ]
[]
false
false
false
true
false
let open_pattern' (p: pattern) (v: term) (i: index) =
subst_pat p [DT i v]
false
Vale.AES.GCM_BE.fsti
Vale.AES.GCM_BE.gcm_decrypt_BE_tag
val gcm_decrypt_BE_tag (alg: algorithm) (key: seq nat8) (iv: supported_iv_BE) (cipher auth: seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32) (ensures fun t -> True)
val gcm_decrypt_BE_tag (alg: algorithm) (key: seq nat8) (iv: supported_iv_BE) (cipher auth: seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32) (ensures fun t -> True)
let gcm_decrypt_BE_tag (alg:algorithm) (key:seq nat8) (iv:supported_iv_BE) (cipher:seq nat8) (auth:seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32 ) (ensures fun t -> True) = let key_BE = seq_nat8_to_seq_nat32_BE key in l...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM_BE.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 200, "start_col": 0, "start_line": 179 }
module Vale.AES.GCM_BE open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_BE_s open Vale.AES.AES_BE_s open Vale.AES.GCM_helpers_BE open Vale.AES.GCTR_BE_s open Vale.AES.GCTR_BE open Vale.AES.GHash_BE_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open V...
{ "checked_file": "/", "dependencies": [ "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.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", ...
[ { "abbrev": false, "full_module": "Vale.AES.GHash_BE", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_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
alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> iv: Vale.AES.GCM_BE_s.supported_iv_BE -> cipher: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> auth: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> Prims.Pure (FStar.Seq.Base.seq Vale.Def.Words_s.nat8)
Prims.Pure
[]
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat8", "Vale.AES.GCM_BE_s.supported_iv_BE", "Vale.AES.GCTR_BE_s.gctr_encrypt", "Vale.Arch.Types.be_quad32_to_bytes", "Vale.Def.Types_s.quad32", "Vale.AES.GHash_BE_s.ghash_BE", "FStar.Seq.Base.append", "FStar.Seq.Base.create...
[]
false
false
false
false
false
let gcm_decrypt_BE_tag (alg: algorithm) (key: seq nat8) (iv: supported_iv_BE) (cipher auth: seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32) (ensures fun t -> True) =
let key_BE = seq_nat8_to_seq_nat32_BE key in let h_BE = aes_encrypt_word alg key_BE (Mkfour 0 0 0 0) in let j0_BE = compute_iv_BE h_BE iv in let lengths_BE = two_two_to_four (Mktwo (nat_to_two 32 (8 * length auth)) (nat_to_two 32 (8 * length cipher))) in let zero_padded_c_BE = be_bytes_to_seq_quad32 (pad_to_128_bits ...
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_term_pairs'
val close_term_pairs' (t: list (term & term)) (v: var) (i: index) : Tot (list (term & term))
val close_term_pairs' (t: list (term & term)) (v: var) (i: index) : Tot (list (term & term))
let close_term_pairs' (t:list (term & term)) (v:var) (i:index) : Tot (list (term & term)) = subst_term_pairs t [ ND v i ]
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 33, "end_line": 871, "start_col": 0, "start_line": 869 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) -> v: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term)
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Syntax.Naming.subst_term_pairs", "Prims.Cons", "Pulse.Syntax.Naming.subst_elt", "Pulse.Syntax.Naming.ND", "Prims.Nil" ]
[]
false
false
false
true
false
let close_term_pairs' (t: list (term & term)) (v: var) (i: index) : Tot (list (term & term)) =
subst_term_pairs t [ND v i]
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.tot_typing_ln
val tot_typing_ln (#g:_) (#e:_) (#t:_) (d:tot_typing g e t) : Lemma (ln e /\ ln t)
val tot_typing_ln (#g:_) (#e:_) (#t:_) (d:tot_typing g e t) : Lemma (ln e /\ ln t)
let tot_typing_ln (#g:_) (#e:_) (#t:_) (d:tot_typing g e t) : Lemma (ensures ln e /\ ln t) = tot_or_ghost_typing_ln d
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 1028, "start_col": 0, "start_line": 1023 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Pulse.Typing.tot_typing g e t -> FStar.Pervasives.Lemma (ensures Pulse.Syntax.Naming.ln e /\ Pulse.Syntax.Naming.ln t)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.tot_typing", "Pulse.Typing.LN.tot_or_ghost_typing_ln", "FStar.Stubs.TypeChecker.Core.E_Total", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_and", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Prims.Nil", "FStar.Pervasives.pa...
[]
true
false
true
false
false
let tot_typing_ln (#g #e #t: _) (d: tot_typing g e t) : Lemma (ensures ln e /\ ln t) =
tot_or_ghost_typing_ln d
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln_opt'
val open_term_ln_opt' (t: option term) (x: term) (i: index) : Lemma (requires ln_opt' ln' (open_term_opt' t x i) (i - 1)) (ensures ln_opt' ln' t i) (decreases t)
val open_term_ln_opt' (t: option term) (x: term) (i: index) : Lemma (requires ln_opt' ln' (open_term_opt' t x i) (i - 1)) (ensures ln_opt' ln' t i) (decreases t)
let open_term_ln_opt' (t:option term) (x:term) (i:index) : Lemma (requires ln_opt' ln' (open_term_opt' t x i) (i - 1)) (ensures ln_opt' ln' t i) (decreases t) = match t with | None -> () | Some t -> open_term_ln' t x i
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 113, "start_col": 0, "start_line": 106 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Pervasives.Native.option Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_opt' Pulse.Syntax.Naming.ln' (Pulse.Syntax.Naming.open_term_opt' t x i) (i - 1)) (ensures Pulse....
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Pervasives.Native.option", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln'", "Prims.unit", "Prims.b2t", "Pulse.Syntax.Naming.ln_opt'", "Pulse.Syntax.Naming.ln'", "Pulse.Syntax.Naming.open_term_opt'", "Prims.op_Subtraction", "Prims.squash", "Prims.Nil"...
[]
false
false
true
false
false
let open_term_ln_opt' (t: option term) (x: term) (i: index) : Lemma (requires ln_opt' ln' (open_term_opt' t x i) (i - 1)) (ensures ln_opt' ln' t i) (decreases t) =
match t with | None -> () | Some t -> open_term_ln' t x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_proof_hint_ln
val open_proof_hint_ln (t: proof_hint_type) (x: term) (i: index) : Lemma (requires ln_proof_hint' (open_proof_hint' t x i) (i - 1)) (ensures ln_proof_hint' t i)
val open_proof_hint_ln (t: proof_hint_type) (x: term) (i: index) : Lemma (requires ln_proof_hint' (open_proof_hint' t x i) (i - 1)) (ensures ln_proof_hint' t i)
let open_proof_hint_ln (t:proof_hint_type) (x:term) (i:index) : Lemma (requires ln_proof_hint' (open_proof_hint' t x i) (i - 1)) (ensures ln_proof_hint' t i) = match t with | ASSERT { p } | FOLD { p } | UNFOLD { p } -> open_term_ln' p x i | RENAME { pairs; goal } -> open_term_ln_...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 163, "start_col": 0, "start_line": 147 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Pulse.Syntax.Base.proof_hint_type -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_proof_hint' (Pulse.Syntax.Naming.open_proof_hint' t x i) (i - 1)) (ensures Pulse.Syntax.Naming.ln_proof_hint' t i)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.proof_hint_type", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.vprop", "Pulse.Typing.LN.open_term_ln'", "FStar.Pervasives.Native.option", "Prims.list", "Prims.string", "FStar.Pervasives.Native.tuple2", "Pulse.Typing.LN.open_term_ln_opt'", "Prims.unit...
[]
false
false
true
false
false
let open_proof_hint_ln (t: proof_hint_type) (x: term) (i: index) : Lemma (requires ln_proof_hint' (open_proof_hint' t x i) (i - 1)) (ensures ln_proof_hint' t i) =
match t with | ASSERT { p = p } | FOLD { p = p } | UNFOLD { p = p } -> open_term_ln' p x i | RENAME { pairs = pairs ; goal = goal } -> open_term_ln_pairs pairs x i; open_term_ln_opt' goal x i | REWRITE { t1 = t1 ; t2 = t2 } -> open_term_ln' t1 x i; open_term_ln' t2 x i | WILD | SHOW_PROOF_STATE _ -> ()
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_st_term_ln
val open_st_term_ln (e: st_term) (v: var) : Lemma (requires ln_st (open_st_term e v)) (ensures ln_st' e 0)
val open_st_term_ln (e: st_term) (v: var) : Lemma (requires ln_st (open_st_term e v)) (ensures ln_st' e 0)
let open_st_term_ln (e:st_term) (v:var) : Lemma (requires ln_st (open_st_term e v)) (ensures ln_st' e 0) = open_st_term_ln' e (term_of_no_name_var v) 0
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 365, "start_col": 0, "start_line": 361 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: Pulse.Syntax.Base.st_term -> v: Pulse.Syntax.Base.var -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_st (Pulse.Syntax.Naming.open_st_term e v)) (ensures Pulse.Syntax.Naming.ln_st' e 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.st_term", "Pulse.Syntax.Base.var", "Pulse.Typing.LN.open_st_term_ln'", "Pulse.Syntax.Pure.term_of_no_name_var", "Prims.unit", "Prims.b2t", "Pulse.Syntax.Naming.ln_st", "Pulse.Syntax.Naming.open_st_term", "Prims.squash", "Pulse.Syntax.Naming.ln_st'", "Prims.Nil", "FStar.Perva...
[]
true
false
true
false
false
let open_st_term_ln (e: st_term) (v: var) : Lemma (requires ln_st (open_st_term e v)) (ensures ln_st' e 0) =
open_st_term_ln' e (term_of_no_name_var v) 0
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln
val open_term_ln (e: term) (v: var) : Lemma (requires ln (open_term e v)) (ensures ln' e 0)
val open_term_ln (e: term) (v: var) : Lemma (requires ln (open_term e v)) (ensures ln' e 0)
let open_term_ln (e:term) (v:var) : Lemma (requires ln (open_term e v)) (ensures ln' e 0) = open_term_ln' e (term_of_no_name_var v) 0
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 45, "end_line": 358, "start_col": 0, "start_line": 354 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: Pulse.Syntax.Base.term -> v: Pulse.Syntax.Base.var -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln (Pulse.Syntax.Naming.open_term e v)) (ensures Pulse.Syntax.Naming.ln' e 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.var", "Pulse.Typing.LN.open_term_ln'", "Pulse.Syntax.Pure.term_of_no_name_var", "Prims.unit", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Pulse.Syntax.Naming.open_term", "Prims.squash", "Pulse.Syntax.Naming.ln'", "Prims.Nil", "FStar.Pervasives.pattern" ...
[]
true
false
true
false
false
let open_term_ln (e: term) (v: var) : Lemma (requires ln (open_term e v)) (ensures ln' e 0) =
open_term_ln' e (term_of_no_name_var v) 0
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln_pairs
val open_term_ln_pairs (t: list (term & term)) (x: term) (i: index) : Lemma (requires ln_terms' (open_term_pairs' t x i) (i - 1)) (ensures ln_terms' t i) (decreases t)
val open_term_ln_pairs (t: list (term & term)) (x: term) (i: index) : Lemma (requires ln_terms' (open_term_pairs' t x i) (i - 1)) (ensures ln_terms' t i) (decreases t)
let rec open_term_ln_pairs (t:list (term & term)) (x:term) (i:index) : Lemma (requires ln_terms' (open_term_pairs' t x i) (i - 1)) (ensures ln_terms' t i) (decreases t) = match t with | [] -> () | (l, r)::tl -> open_term_ln' l x i; open_term_ln' r x i; open_term_ln_pairs tl x i
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 145, "start_col": 0, "start_line": 135 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_terms' (Pulse.Typing.LN.open_term_pairs' t x i) (i - 1)) (ensures Pulse.Syntax.Naming.ln_terms' t i) (dec...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln_pairs", "Prims.unit", "Pulse.Typing.LN.open_term_ln'", "Prims.b2t", "Pulse.Syntax.Naming.ln_terms'", "Pulse.Typing.LN.open_term_pairs'", "Prims.op_Subtraction", "P...
[ "recursion" ]
false
false
true
false
false
let rec open_term_ln_pairs (t: list (term & term)) (x: term) (i: index) : Lemma (requires ln_terms' (open_term_pairs' t x i) (i - 1)) (ensures ln_terms' t i) (decreases t) =
match t with | [] -> () | (l, r) :: tl -> open_term_ln' l x i; open_term_ln' r x i; open_term_ln_pairs tl x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln_list'
val open_term_ln_list' (t: list term) (x: term) (i: index) : Lemma (requires ln_list' (open_term_list' t x i) (i - 1)) (ensures ln_list' t i) (decreases t)
val open_term_ln_list' (t: list term) (x: term) (i: index) : Lemma (requires ln_list' (open_term_list' t x i) (i - 1)) (ensures ln_list' t i) (decreases t)
let rec open_term_ln_list' (t:list term) (x:term) (i:index) : Lemma (requires ln_list' (open_term_list' t x i) (i - 1)) (ensures ln_list' t i) (decreases t) = match t with | [] -> () | hd::tl -> open_term_ln' hd x i; open_term_ln_list' tl x i
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 129, "start_col": 0, "start_line": 120 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_list' (Pulse.Syntax.Naming.open_term_list' t x i) (i - 1)) (ensures Pulse.Syntax.Naming.ln_list' t i) (decreases t)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln_list'", "Prims.unit", "Pulse.Typing.LN.open_term_ln'", "Prims.b2t", "Pulse.Syntax.Naming.ln_list'", "Pulse.Syntax.Naming.open_term_list'", "Prims.op_Subtraction", "Prims.squash", "Prims.Nil", "FS...
[ "recursion" ]
false
false
true
false
false
let rec open_term_ln_list' (t: list term) (x: term) (i: index) : Lemma (requires ln_list' (open_term_list' t x i) (i - 1)) (ensures ln_list' t i) (decreases t) =
match t with | [] -> () | hd :: tl -> open_term_ln' hd x i; open_term_ln_list' tl x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.well_typed_terms_are_ln
val well_typed_terms_are_ln (g: R.env) (e t: R.term) (#eff: _) (d: RT.typing g e (eff, t)) : Lemma (ensures RT.ln e /\ RT.ln t)
val well_typed_terms_are_ln (g: R.env) (e t: R.term) (#eff: _) (d: RT.typing g e (eff, t)) : Lemma (ensures RT.ln e /\ RT.ln t)
let well_typed_terms_are_ln (g:R.env) (e:R.term) (t:R.term) (#eff:_) (d:RT.typing g e (eff, t)) : Lemma (ensures RT.ln e /\ RT.ln t) = RT.well_typed_terms_are_ln g e (eff, t) d
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 34, "start_col": 0, "start_line": 31 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: FStar.Stubs.Reflection.Types.env -> e: FStar.Stubs.Reflection.Types.term -> t: FStar.Stubs.Reflection.Types.term -> d: FStar.Reflection.Typing.typing g e (eff, t) -> FStar.Pervasives.Lemma (ensures FStar.Reflection.Typing.ln e /\ FStar.Reflection.Typing.ln t)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Reflection.Typing.typing", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.typ", "FStar.Reflection.Typing.well_typed_terms_are_ln", "Prims.unit", "Prims.l_Tr...
[]
true
false
true
false
false
let well_typed_terms_are_ln (g: R.env) (e t: R.term) (#eff: _) (d: RT.typing g e (eff, t)) : Lemma (ensures RT.ln e /\ RT.ln t) =
RT.well_typed_terms_are_ln g e (eff, t) d
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.ln_weakening_comp
val ln_weakening_comp (c: comp) (i j: int) : Lemma (requires ln_c' c i /\ i <= j) (ensures ln_c' c j)
val ln_weakening_comp (c: comp) (i j: int) : Lemma (requires ln_c' c i /\ i <= j) (ensures ln_c' c j)
let ln_weakening_comp (c:comp) (i j:int) : Lemma (requires ln_c' c i /\ i <= j) (ensures ln_c' c j) = match c with | C_Tot t -> ln_weakening t i j | C_ST s | C_STGhost s -> ln_weakening s.res i j; ln_weakening s.pre i j; ln_weakening s.post (i + 1) (j + 1) | ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 41, "end_line": 424, "start_col": 0, "start_line": 406 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.comp -> i: Prims.int -> j: Prims.int -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_c' c i /\ i <= j) (ensures Pulse.Syntax.Naming.ln_c' c j)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.comp", "Prims.int", "Pulse.Syntax.Base.term", "Pulse.Typing.LN.ln_weakening", "Pulse.Syntax.Base.st_comp", "Pulse.Syntax.Base.__proj__Mkst_comp__item__post", "Prims.op_Addition", "Prims.unit", "Pulse.Syntax.Base.__proj__Mkst_comp__item__pre", "Pulse.Syntax.Base.__proj__Mkst_comp...
[]
false
false
true
false
false
let ln_weakening_comp (c: comp) (i j: int) : Lemma (requires ln_c' c i /\ i <= j) (ensures ln_c' c j) =
match c with | C_Tot t -> ln_weakening t i j | C_ST s | C_STGhost s -> ln_weakening s.res i j; ln_weakening s.pre i j; ln_weakening s.post (i + 1) (j + 1) | C_STAtomic n _ s -> ln_weakening n i j; ln_weakening s.res i j; ln_weakening s.pre i j; ln_weakening s.post (i + 1) (j + 1)
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.ln_weakening_pairs
val ln_weakening_pairs (t: list (term & term)) (i j: int) : Lemma (requires ln_terms' t i /\ i <= j) (ensures ln_terms' t j) (decreases t)
val ln_weakening_pairs (t: list (term & term)) (i j: int) : Lemma (requires ln_terms' t i /\ i <= j) (ensures ln_terms' t j) (decreases t)
let rec ln_weakening_pairs (t:list (term & term)) (i j:int) : Lemma (requires ln_terms' t i /\ i <= j) (ensures ln_terms' t j) (decreases t) = match t with | [] -> () | (l, r)::tl -> ln_weakening l i j; ln_weakening r i j; ln_weakening_pairs tl i j
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 457, "start_col": 0, "start_line": 447 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) -> i: Prims.int -> j: Prims.int -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_terms' t i /\ i <= j) (ensures Pulse.Syntax.Naming.ln_terms' t j) (decreases t)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Prims.int", "Pulse.Typing.LN.ln_weakening_pairs", "Prims.unit", "Pulse.Typing.LN.ln_weakening", "Prims.l_and", "Prims.b2t", "Pulse.Syntax.Naming.ln_terms'", "Prims.op_LessThanOrEqual", "Prims.squash", "Prims.Nil", "...
[ "recursion" ]
false
false
true
false
false
let rec ln_weakening_pairs (t: list (term & term)) (i j: int) : Lemma (requires ln_terms' t i /\ i <= j) (ensures ln_terms' t j) (decreases t) =
match t with | [] -> () | (l, r) :: tl -> ln_weakening l i j; ln_weakening r i j; ln_weakening_pairs tl i j
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.ln_weakening_list
val ln_weakening_list (t: list term) (i j: int) : Lemma (requires ln_list' t i /\ i <= j) (ensures ln_list' t j) (decreases t)
val ln_weakening_list (t: list term) (i j: int) : Lemma (requires ln_list' t i /\ i <= j) (ensures ln_list' t j) (decreases t)
let rec ln_weakening_list (t:list term) (i j:int) : Lemma (requires ln_list' t i /\ i <= j) (ensures ln_list' t j) (decreases t) = match t with | [] -> () | hd::tl -> ln_weakening hd i j; ln_weakening_list tl i j
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 445, "start_col": 0, "start_line": 436 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list Pulse.Syntax.Base.term -> i: Prims.int -> j: Prims.int -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_list' t i /\ i <= j) (ensures Pulse.Syntax.Naming.ln_list' t j) (decreases t)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "Pulse.Syntax.Base.term", "Prims.int", "Pulse.Typing.LN.ln_weakening_list", "Prims.unit", "Pulse.Typing.LN.ln_weakening", "Prims.l_and", "Prims.b2t", "Pulse.Syntax.Naming.ln_list'", "Prims.op_LessThanOrEqual", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec ln_weakening_list (t: list term) (i j: int) : Lemma (requires ln_list' t i /\ i <= j) (ensures ln_list' t j) (decreases t) =
match t with | [] -> () | hd :: tl -> ln_weakening hd i j; ln_weakening_list tl i j
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.__brs_of
val __brs_of (t: st_term{Tm_Match? t.term}) : list branch
val __brs_of (t: st_term{Tm_Match? t.term}) : list branch
let __brs_of (t:st_term{Tm_Match? t.term}) : list branch = let Tm_Match {brs} = t.term in brs
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 118, "start_col": 0, "start_line": 116 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Pulse.Syntax.Base.st_term{Tm_Match? (Mkst_term?.term t)} -> Prims.list Pulse.Syntax.Base.branch
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.st_term", "Prims.b2t", "Pulse.Syntax.Base.uu___is_Tm_Match", "Pulse.Syntax.Base.__proj__Mkst_term__item__term", "Pulse.Syntax.Base.term", "FStar.Pervasives.Native.option", "Pulse.Syntax.Base.vprop", "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.pattern", "...
[]
false
false
false
false
false
let __brs_of (t: st_term{Tm_Match? t.term}) : list branch =
let Tm_Match { brs = brs } = t.term in brs
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.ln_weakening_opt
val ln_weakening_opt (t: option term) (i j: int) : Lemma (requires ln_opt' ln' t i /\ i <= j) (ensures ln_opt' ln' t j) (decreases t)
val ln_weakening_opt (t: option term) (i j: int) : Lemma (requires ln_opt' ln' t i /\ i <= j) (ensures ln_opt' ln' t j) (decreases t)
let ln_weakening_opt (t:option term) (i j:int) : Lemma (requires ln_opt' ln' t i /\ i <= j) (ensures ln_opt' ln' t j) (decreases t) = match t with | None -> () | Some t -> ln_weakening t i j
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 34, "end_line": 433, "start_col": 0, "start_line": 426 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Pervasives.Native.option Pulse.Syntax.Base.term -> i: Prims.int -> j: Prims.int -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_opt' Pulse.Syntax.Naming.ln' t i /\ i <= j) (ensures Pulse.Syntax.Naming.ln_opt' Pulse.Syntax.Naming.ln' t j) (decreases t)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Pervasives.Native.option", "Pulse.Syntax.Base.term", "Prims.int", "Pulse.Typing.LN.ln_weakening", "Prims.unit", "Prims.l_and", "Prims.b2t", "Pulse.Syntax.Naming.ln_opt'", "Pulse.Syntax.Naming.ln'", "Prims.op_LessThanOrEqual", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let ln_weakening_opt (t: option term) (i j: int) : Lemma (requires ln_opt' ln' t i /\ i <= j) (ensures ln_opt' ln' t j) (decreases t) =
match t with | None -> () | Some t -> ln_weakening t i j
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln_inv_list'
val open_term_ln_inv_list' (t: list term) (x: term{ln x}) (i: index) : Lemma (requires ln_list' t i) (ensures ln_list' (open_term_list' t x i) (i - 1)) (decreases t)
val open_term_ln_inv_list' (t: list term) (x: term{ln x}) (i: index) : Lemma (requires ln_list' t i) (ensures ln_list' (open_term_list' t x i) (i - 1)) (decreases t)
let rec open_term_ln_inv_list' (t:list term) (x:term { ln x }) (i:index) : Lemma (requires ln_list' t i) (ensures ln_list' (open_term_list' t x i) (i - 1)) (decreases t) = match t with | [] -> () | hd::tl -> open_term_ln_inv' hd...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 655, "start_col": 0, "start_line": 644 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.term{Pulse.Syntax.Naming.ln x} -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_list' t i) (ensures Pulse.Syntax.Naming.ln_list' (Pulse.Syntax.Naming.open_term_list' t x i) (i - 1)) (decreases...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "Pulse.Syntax.Base.term", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln_inv_list'", "Prims.unit", "Pulse.Typing.LN.open_term_ln_inv'", "Pulse.Syntax.Naming.ln_list'", "Prims.squash", "Pulse.Syntax.Naming.open_term_list'", "Prims.o...
[ "recursion" ]
false
false
true
false
false
let rec open_term_ln_inv_list' (t: list term) (x: term{ln x}) (i: index) : Lemma (requires ln_list' t i) (ensures ln_list' (open_term_list' t x i) (i - 1)) (decreases t) =
match t with | [] -> () | hd :: tl -> open_term_ln_inv' hd x i; open_term_ln_inv_list' tl x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_comp_ln'
val open_comp_ln' (c: comp) (x: term) (i: index) : Lemma (requires ln_c' (open_comp' c x i) (i - 1)) (ensures ln_c' c i)
val open_comp_ln' (c: comp) (x: term) (i: index) : Lemma (requires ln_c' (open_comp' c x i) (i - 1)) (ensures ln_c' c i)
let open_comp_ln' (c:comp) (x:term) (i:index) : Lemma (requires ln_c' (open_comp' c x i) (i - 1)) (ensures ln_c' c i) = match c with | C_Tot t -> open_term_ln' t x i | C_ST s | C_STGhost s -> open_term_ln' s.res x i; open_term_ln' s.pre x i...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 36, "end_line": 104, "start_col": 0, "start_line": 84 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.comp -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_c' (Pulse.Syntax.Naming.open_comp' c x i) (i - 1)) (ensures Pulse.Syntax.Naming.ln_c' c i)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln'", "Pulse.Syntax.Base.st_comp", "Pulse.Syntax.Base.__proj__Mkst_comp__item__post", "Prims.op_Addition", "Prims.unit", "Pulse.Syntax.Base.__proj__Mkst_comp__item__pre", "Pulse.Syntax.Base.__...
[]
false
false
true
false
false
let open_comp_ln' (c: comp) (x: term) (i: index) : Lemma (requires ln_c' (open_comp' c x i) (i - 1)) (ensures ln_c' c i) =
match c with | C_Tot t -> open_term_ln' t x i | C_ST s | C_STGhost s -> open_term_ln' s.res x i; open_term_ln' s.pre x i; open_term_ln' s.post x (i + 1) | C_STAtomic n _ s -> open_term_ln' n x i; open_term_ln' s.res x i; open_term_ln' s.pre x i; open_term_ln' s.post x (i + 1)
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln'
val open_term_ln' (e x: term) (i: index) : Lemma (requires ln' (open_term' e x i) (i - 1)) (ensures ln' e i) (decreases e)
val open_term_ln' (e x: term) (i: index) : Lemma (requires ln' (open_term' e x i) (i - 1)) (ensures ln' e i) (decreases e)
let rec open_term_ln' (e:term) (x:term) (i:index) : Lemma (requires ln' (open_term' e x i) (i - 1)) (ensures ln' e i) (decreases e) = match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> () | Tm_Inv p -> ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 82, "start_col": 0, "start_line": 51 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln' (Pulse.Syntax.Naming.open_term' e x i) (i - 1)) (ensures Pulse.Syntax.Naming.ln' e i) (decreases e)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "Pulse.Typing.LN.open_term_ln'", "Prims.unit", "Pulse.Syntax.Base.universe", "Pulse.Syntax.Base.binder", "Prims.op_Addition", "Pulse.Syntax.Base.__proj__Mkbinder__item__binder_ty", "Pulse.Syntax.Base....
[ "recursion" ]
false
false
true
false
false
let rec open_term_ln' (e x: term) (i: index) : Lemma (requires ln' (open_term' e x i) (i - 1)) (ensures ln' e i) (decreases e) =
match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> () | Tm_Inv p -> open_term_ln' p x i | Tm_Pure p -> open_term_ln' p x i | Tm_AddInv l r | Tm_Star l r -> open_term_ln' l x i; open_term_ln' r x i | Tm_ExistsSL _ t b | Tm_ForallSL _ t b -> open_term_ln' t.binder_ty x i; open_term_ln' ...
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_term_ln_opt'
val close_term_ln_opt' (t: option term) (x: var) (i: index) : Lemma (requires ln_opt' ln' t (i - 1)) (ensures ln_opt' ln' (close_term_opt' t x i) i) (decreases t)
val close_term_ln_opt' (t: option term) (x: var) (i: index) : Lemma (requires ln_opt' ln' t (i - 1)) (ensures ln_opt' ln' (close_term_opt' t x i) i) (decreases t)
let close_term_ln_opt' (t:option term) (x:var) (i:index) : Lemma (requires ln_opt' ln' t (i - 1)) (ensures ln_opt' ln' (close_term_opt' t x i) i) (decreases t) = match t with | None -> () | Some t -> close_term_ln' t x i
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 36, "end_line": 856, "start_col": 0, "start_line": 849 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Pervasives.Native.option Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_opt' Pulse.Syntax.Naming.ln' t (i - 1)) (ensures Pulse.Syntax.Naming.ln_opt' Pulse.Syntax.Naming.ln' (Pulse...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Pervasives.Native.option", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.close_term_ln'", "Prims.unit", "Prims.b2t", "Pulse.Syntax.Naming.ln_opt'", "Pulse.Syntax.Naming.ln'", "Prims.op_Subtraction", "Prims.squash", "Pulse.Syntax.Naming.cl...
[]
false
false
true
false
false
let close_term_ln_opt' (t: option term) (x: var) (i: index) : Lemma (requires ln_opt' ln' t (i - 1)) (ensures ln_opt' ln' (close_term_opt' t x i) i) (decreases t) =
match t with | None -> () | Some t -> close_term_ln' t x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln_inv_opt'
val open_term_ln_inv_opt' (t: option term) (x: term{ln x}) (i: index) : Lemma (requires ln_opt' ln' t i) (ensures ln_opt' ln' (open_term_opt' t x i) (i - 1)) (decreases t)
val open_term_ln_inv_opt' (t: option term) (x: term{ln x}) (i: index) : Lemma (requires ln_opt' ln' t i) (ensures ln_opt' ln' (open_term_opt' t x i) (i - 1)) (decreases t)
let open_term_ln_inv_opt' (t:option term) (x:term { ln x }) (i:index) : Lemma (requires ln_opt' ln' t i) (ensures ln_opt' ln' (open_term_opt' t x i) (i - 1)) (decreases t) = match t with | None -> () | Some t -> open_term_ln_inv' t x i
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 39, "end_line": 642, "start_col": 0, "start_line": 633 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Pervasives.Native.option Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.term{Pulse.Syntax.Naming.ln x} -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_opt' Pulse.Syntax.Naming.ln' t i) (ensures Pulse.Syntax.Naming.ln_opt' Pulse.Syntax.Naming...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "FStar.Pervasives.Native.option", "Pulse.Syntax.Base.term", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln_inv'", "Prims.unit", "Pulse.Syntax.Naming.ln_opt'", "Pulse.Syntax.Naming.ln'", "Prims.squash", "Pulse.Syntax.Naming.open_term_opt'", "Prim...
[]
false
false
true
false
false
let open_term_ln_inv_opt' (t: option term) (x: term{ln x}) (i: index) : Lemma (requires ln_opt' ln' t i) (ensures ln_opt' ln' (open_term_opt' t x i) (i - 1)) (decreases t) =
match t with | None -> () | Some t -> open_term_ln_inv' t x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.ln_weakening_proof_hint
val ln_weakening_proof_hint (t: proof_hint_type) (i j: int) : Lemma (requires ln_proof_hint' t i /\ i <= j) (ensures ln_proof_hint' t j)
val ln_weakening_proof_hint (t: proof_hint_type) (i j: int) : Lemma (requires ln_proof_hint' t i /\ i <= j) (ensures ln_proof_hint' t j)
let ln_weakening_proof_hint (t:proof_hint_type) (i j:int) : Lemma (requires ln_proof_hint' t i /\ i <= j) (ensures ln_proof_hint' t j) = match t with | ASSERT { p } | FOLD { p } | UNFOLD { p } -> ln_weakening p i j | RENAME { pairs; goal } -> ln_weakening_pairs pairs i j; ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 475, "start_col": 0, "start_line": 459 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Pulse.Syntax.Base.proof_hint_type -> i: Prims.int -> j: Prims.int -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_proof_hint' t i /\ i <= j) (ensures Pulse.Syntax.Naming.ln_proof_hint' t j)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.proof_hint_type", "Prims.int", "Pulse.Syntax.Base.vprop", "Pulse.Typing.LN.ln_weakening", "FStar.Pervasives.Native.option", "Prims.list", "Prims.string", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Pulse.Typing.LN.ln_weakening_opt", "Prims.unit", "Pulse.Typi...
[]
false
false
true
false
false
let ln_weakening_proof_hint (t: proof_hint_type) (i j: int) : Lemma (requires ln_proof_hint' t i /\ i <= j) (ensures ln_proof_hint' t j) =
match t with | ASSERT { p = p } | FOLD { p = p } | UNFOLD { p = p } -> ln_weakening p i j | RENAME { pairs = pairs ; goal = goal } -> ln_weakening_pairs pairs i j; ln_weakening_opt goal i j | REWRITE { t1 = t1 ; t2 = t2 } -> ln_weakening t1 i j; ln_weakening t2 i j | WILD | SHOW_PROOF_STATE _ -> ()
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_comp_ln_inv'
val open_comp_ln_inv' (c: comp) (x: term{ln x}) (i: index) : Lemma (requires ln_c' c i) (ensures ln_c' (open_comp' c x i) (i - 1))
val open_comp_ln_inv' (c: comp) (x: term{ln x}) (i: index) : Lemma (requires ln_c' c i) (ensures ln_c' (open_comp' c x i) (i - 1))
let open_comp_ln_inv' (c:comp) (x:term { ln x }) (i:index) : Lemma (requires ln_c' c i) (ensures ln_c' (open_comp' c x i) (i - 1)) = match c with | C_Tot t -> open_term_ln_inv' t x i | C_ST s | C_STGhost s -> open_term_ln_inv' s.res x i; ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 40, "end_line": 631, "start_col": 0, "start_line": 611 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.comp -> x: Pulse.Syntax.Base.term{Pulse.Syntax.Naming.ln x} -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_c' c i) (ensures Pulse.Syntax.Naming.ln_c' (Pulse.Syntax.Naming.open_comp' c x i) (i - 1))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.term", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln_inv'", "Pulse.Syntax.Base.st_comp", "Pulse.Syntax.Base.__proj__Mkst_comp__item__post", "Prims.op_Addition", "Prims.unit", "Pulse.Syntax.Base.__proj_...
[]
false
false
true
false
false
let open_comp_ln_inv' (c: comp) (x: term{ln x}) (i: index) : Lemma (requires ln_c' c i) (ensures ln_c' (open_comp' c x i) (i - 1)) =
match c with | C_Tot t -> open_term_ln_inv' t x i | C_ST s | C_STGhost s -> open_term_ln_inv' s.res x i; open_term_ln_inv' s.pre x i; open_term_ln_inv' s.post x (i + 1) | C_STAtomic n _ s -> open_term_ln_inv' n x i; open_term_ln_inv' s.res x i; open_term_ln_inv' s.pre x i; open_term_ln_inv' s.post x (i + ...
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.ln_weakening
val ln_weakening (e: term) (i j: int) : Lemma (requires ln' e i /\ i <= j) (ensures ln' e j) (decreases e) [SMTPat (ln' e j); SMTPat (ln' e i)]
val ln_weakening (e: term) (i j: int) : Lemma (requires ln' e i /\ i <= j) (ensures ln' e j) (decreases e) [SMTPat (ln' e j); SMTPat (ln' e i)]
let rec ln_weakening (e:term) (i j:int) : Lemma (requires ln' e i /\ i <= j) (ensures ln' e j) (decreases e) [SMTPat (ln' e j); SMTPat (ln' e i)] = match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> () | Tm_Inv p -> ln_weakening p ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 26, "end_line": 403, "start_col": 0, "start_line": 373 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: Pulse.Syntax.Base.term -> i: Prims.int -> j: Prims.int -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln' e i /\ i <= j) (ensures Pulse.Syntax.Naming.ln' e j) (decreases e) [SMTPat (Pulse.Syntax.Naming.ln' e j); SMTPat (Pulse.Syntax.Naming.ln' e i)]
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Pulse.Syntax.Base.term", "Prims.int", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "Pulse.Typing.LN.ln_weakening", "Prims.unit", "Pulse.Syntax.Base.universe", "Pulse.Syntax.Base.binder", "Prims.op_Addition", "Pulse.Syntax.Base.__proj__Mkbinder__item__binder_ty", "Pulse.Syntax.Base.host_term", "...
[ "recursion" ]
false
false
true
false
false
let rec ln_weakening (e: term) (i j: int) : Lemma (requires ln' e i /\ i <= j) (ensures ln' e j) (decreases e) [SMTPat (ln' e j); SMTPat (ln' e i)] =
match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> () | Tm_Inv p -> ln_weakening p i j | Tm_Pure p -> ln_weakening p i j | Tm_AddInv l r | Tm_Star l r -> ln_weakening l i j; ln_weakening r i j | Tm_ExistsSL _ t b | Tm_ForallSL _ t b -> ln_weakening t.binder_ty i j; ln_weakening b (i +...
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_proof_hint_ln_inv
val open_proof_hint_ln_inv (ht: proof_hint_type) (x: term{ln x}) (i: index) : Lemma (requires ln_proof_hint' ht i) (ensures ln_proof_hint' (open_proof_hint' ht x i) (i - 1))
val open_proof_hint_ln_inv (ht: proof_hint_type) (x: term{ln x}) (i: index) : Lemma (requires ln_proof_hint' ht i) (ensures ln_proof_hint' (open_proof_hint' ht x i) (i - 1))
let open_proof_hint_ln_inv (ht:proof_hint_type) (x:term { ln x }) (i:index) : Lemma (requires ln_proof_hint' ht i) (ensures ln_proof_hint' (open_proof_hint' ht x i) (i - 1)) = match ht with | ASSERT { p } | FOLD { p } | UNFOLD { p } -> open_term_ln_inv' p x i | RENAME { pairs; goal } -...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 687, "start_col": 0, "start_line": 671 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ht: Pulse.Syntax.Base.proof_hint_type -> x: Pulse.Syntax.Base.term{Pulse.Syntax.Naming.ln x} -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_proof_hint' ht i) (ensures Pulse.Syntax.Naming.ln_proof_hint' (Pulse.Syntax.Naming.open_proof_hint' ht x i) (...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.proof_hint_type", "Pulse.Syntax.Base.term", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.vprop", "Pulse.Typing.LN.open_term_ln_inv'", "FStar.Pervasives.Native.option", "Prims.list", "Prims.string", "FStar.Pervasives.Native.tuple2", "Pu...
[]
false
false
true
false
false
let open_proof_hint_ln_inv (ht: proof_hint_type) (x: term{ln x}) (i: index) : Lemma (requires ln_proof_hint' ht i) (ensures ln_proof_hint' (open_proof_hint' ht x i) (i - 1)) =
match ht with | ASSERT { p = p } | FOLD { p = p } | UNFOLD { p = p } -> open_term_ln_inv' p x i | RENAME { pairs = pairs ; goal = goal } -> open_term_ln_inv_pairs pairs x i; open_term_ln_inv_opt' goal x i | REWRITE { t1 = t1 ; t2 = t2 } -> open_term_ln_inv' t1 x i; open_term_ln_inv' t2 x i | WILD | SHOW_PROOF_S...
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln_inv_pairs
val open_term_ln_inv_pairs (t: list (term & term)) (x: term{ln x}) (i: index) : Lemma (requires ln_terms' t i) (ensures ln_terms' (open_term_pairs' t x i) (i - 1)) (decreases t)
val open_term_ln_inv_pairs (t: list (term & term)) (x: term{ln x}) (i: index) : Lemma (requires ln_terms' t i) (ensures ln_terms' (open_term_pairs' t x i) (i - 1)) (decreases t)
let rec open_term_ln_inv_pairs (t:list (term & term)) (x:term { ln x }) (i:index) : Lemma (requires ln_terms' t i) (ensures ln_terms' (open_term_pairs' t x i) (i - 1)) (decreases t) = match t with | [] -> () | (l, r)::tl -> open...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 669, "start_col": 0, "start_line": 657 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) -> x: Pulse.Syntax.Base.term{Pulse.Syntax.Naming.ln x} -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_terms' t i) (ensures Pulse.Syntax.Naming.ln_terms' (Pulse.Typing.LN.open_term_pairs' t x i)...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_term_ln_inv_pairs", "Prims.unit", "Pulse.Typing.LN.open_term_ln_inv'", "Pulse.Syntax.Naming.ln_terms'", "Prims.squash", "Pulse.Typin...
[ "recursion" ]
false
false
true
false
false
let rec open_term_ln_inv_pairs (t: list (term & term)) (x: term{ln x}) (i: index) : Lemma (requires ln_terms' t i) (ensures ln_terms' (open_term_pairs' t x i) (i - 1)) (decreases t) =
match t with | [] -> () | (l, r) :: tl -> open_term_ln_inv' l x i; open_term_ln_inv' r x i; open_term_ln_inv_pairs tl x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_comp_ln'
val close_comp_ln' (c: comp) (x: var) (i: index) : Lemma (requires ln_c' c (i - 1)) (ensures ln_c' (close_comp' c x i) i)
val close_comp_ln' (c: comp) (x: var) (i: index) : Lemma (requires ln_c' c (i - 1)) (ensures ln_c' (close_comp' c x i) i)
let close_comp_ln' (c:comp) (x:var) (i:index) : Lemma (requires ln_c' c (i - 1)) (ensures ln_c' (close_comp' c x i) i) = match c with | C_Tot t -> close_term_ln' t x i | C_ST s | C_STGhost s -> close_term_ln' s.res x i; close_term_ln' s.p...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 37, "end_line": 847, "start_col": 0, "start_line": 827 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.comp -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_c' c (i - 1)) (ensures Pulse.Syntax.Naming.ln_c' (Pulse.Syntax.Naming.close_comp' c x i) i)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.term", "Pulse.Typing.LN.close_term_ln'", "Pulse.Syntax.Base.st_comp", "Pulse.Syntax.Base.__proj__Mkst_comp__item__post", "Prims.op_Addition", "Prims.unit", "Pulse.Syntax.Base.__proj__Mkst_comp__item__p...
[]
false
false
true
false
false
let close_comp_ln' (c: comp) (x: var) (i: index) : Lemma (requires ln_c' c (i - 1)) (ensures ln_c' (close_comp' c x i) i) =
match c with | C_Tot t -> close_term_ln' t x i | C_ST s | C_STGhost s -> close_term_ln' s.res x i; close_term_ln' s.pre x i; close_term_ln' s.post x (i + 1) | C_STAtomic n _ s -> close_term_ln' n x i; close_term_ln' s.res x i; close_term_ln' s.pre x i; close_term_ln' s.post x (i + 1)
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.tot_or_ghost_typing_ln
val tot_or_ghost_typing_ln (#g #e #t #eff: _) (d: typing g e eff t) : Lemma (ensures ln e /\ ln t)
val tot_or_ghost_typing_ln (#g #e #t #eff: _) (d: typing g e eff t) : Lemma (ensures ln e /\ ln t)
let tot_or_ghost_typing_ln (#g:_) (#e:_) (#t:_) (#eff:_) (d:typing g e eff t) : Lemma (ensures ln e /\ ln t) = let E dt = d in well_typed_terms_are_ln _ _ _ dt; elab_ln_inverse e; elab_ln_inverse t
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 1021, "start_col": 0, "start_line": 1013 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Pulse.Typing.typing g e eff t -> FStar.Pervasives.Lemma (ensures Pulse.Syntax.Naming.ln e /\ Pulse.Syntax.Naming.ln t)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "Pulse.Typing.typing", "FStar.Reflection.Typing.typing", "Pulse.Typing.elab_env", "Pulse.Elaborate.Pure.elab_term", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.typ", "Pulse.Typing.L...
[]
false
false
true
false
false
let tot_or_ghost_typing_ln (#g #e #t #eff: _) (d: typing g e eff t) : Lemma (ensures ln e /\ ln t) =
let E dt = d in well_typed_terms_are_ln _ _ _ dt; elab_ln_inverse e; elab_ln_inverse t
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_term_ln'
val close_term_ln' (e: term) (x: var) (i: index) : Lemma (requires ln' e (i - 1)) (ensures ln' (close_term' e x i) i) (decreases e)
val close_term_ln' (e: term) (x: var) (i: index) : Lemma (requires ln' e (i - 1)) (ensures ln' (close_term' e x i) i) (decreases e)
let rec close_term_ln' (e:term) (x:var) (i:index) : Lemma (requires ln' e (i - 1)) (ensures ln' (close_term' e x i) i) (decreases e) = match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> () | Tm_Inv p -> ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 825, "start_col": 0, "start_line": 795 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln' e (i - 1)) (ensures Pulse.Syntax.Naming.ln' (Pulse.Syntax.Naming.close_term' e x i) i) (decreases e)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "Pulse.Typing.LN.close_term_ln'", "Prims.unit", "Pulse.Syntax.Base.universe", "Pulse.Syntax.Base.binder", "Prims.op_Addition", "Pulse.Syntax.Base.__proj__Mkbinder__item__binde...
[ "recursion" ]
false
false
true
false
false
let rec close_term_ln' (e: term) (x: var) (i: index) : Lemma (requires ln' e (i - 1)) (ensures ln' (close_term' e x i) i) (decreases e) =
match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> () | Tm_Inv p -> close_term_ln' p x i | Tm_Pure p -> close_term_ln' p x i | Tm_AddInv l r | Tm_Star l r -> close_term_ln' l x i; close_term_ln' r x i | Tm_ExistsSL _ t b | Tm_ForallSL _ t b -> close_term_ln' t.binder_ty x i; close_ter...
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_proof_hint_ln
val close_proof_hint_ln (ht: proof_hint_type) (v: var) (i: index) : Lemma (requires ln_proof_hint' ht (i - 1)) (ensures ln_proof_hint' (close_proof_hint' ht v i) i)
val close_proof_hint_ln (ht: proof_hint_type) (v: var) (i: index) : Lemma (requires ln_proof_hint' ht (i - 1)) (ensures ln_proof_hint' (close_proof_hint' ht v i) i)
let close_proof_hint_ln (ht:proof_hint_type) (v:var) (i:index) : Lemma (requires ln_proof_hint' ht (i - 1)) (ensures ln_proof_hint' (close_proof_hint' ht v i) i) = match ht with | ASSERT { p } | FOLD { p } | UNFOLD { p } -> close_term_ln' p v i | RENAME { pairs; goal } -> close_t...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 901, "start_col": 0, "start_line": 885 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ht: Pulse.Syntax.Base.proof_hint_type -> v: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_proof_hint' ht (i - 1)) (ensures Pulse.Syntax.Naming.ln_proof_hint' (Pulse.Syntax.Naming.close_proof_hint' ht v i) i)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.proof_hint_type", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.vprop", "Pulse.Typing.LN.close_term_ln'", "FStar.Pervasives.Native.option", "Prims.list", "Prims.string", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Pulse.Typing.LN.close...
[]
false
false
true
false
false
let close_proof_hint_ln (ht: proof_hint_type) (v: var) (i: index) : Lemma (requires ln_proof_hint' ht (i - 1)) (ensures ln_proof_hint' (close_proof_hint' ht v i) i) =
match ht with | ASSERT { p = p } | FOLD { p = p } | UNFOLD { p = p } -> close_term_ln' p v i | RENAME { pairs = pairs ; goal = goal } -> close_term_ln_pairs pairs v i; close_term_ln_opt' goal v i | REWRITE { t1 = t1 ; t2 = t2 } -> close_term_ln' t1 v i; close_term_ln' t2 v i | WILD | SHOW_PROOF_STATE _ -> ()
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_comp_ln
val close_comp_ln (c: comp) (v: var) : Lemma (requires ln_c c) (ensures ln_c' (close_comp c v) 0)
val close_comp_ln (c: comp) (v: var) : Lemma (requires ln_c c) (ensures ln_c' (close_comp c v) 0)
let close_comp_ln (c:comp) (v:var) : Lemma (requires ln_c c) (ensures ln_c' (close_comp c v) 0) = close_comp_ln' c v 0
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 1003, "start_col": 0, "start_line": 999 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.comp -> v: Pulse.Syntax.Base.var -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_c c) (ensures Pulse.Syntax.Naming.ln_c' (Pulse.Syntax.Naming.close_comp c v) 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.var", "Pulse.Typing.LN.close_comp_ln'", "Prims.unit", "Prims.b2t", "Pulse.Syntax.Naming.ln_c", "Prims.squash", "Pulse.Syntax.Naming.ln_c'", "Pulse.Syntax.Naming.close_comp", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let close_comp_ln (c: comp) (v: var) : Lemma (requires ln_c c) (ensures ln_c' (close_comp c v) 0) =
close_comp_ln' c v 0
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_term_ln_inv'
val open_term_ln_inv' (e: term) (x: term{ln x}) (i: index) : Lemma (requires ln' e i) (ensures ln' (open_term' e x i) (i - 1)) (decreases e)
val open_term_ln_inv' (e: term) (x: term{ln x}) (i: index) : Lemma (requires ln' e i) (ensures ln' (open_term' e x i) (i - 1)) (decreases e)
let rec open_term_ln_inv' (e:term) (x:term { ln x }) (i:index) : Lemma (requires ln' e i) (ensures ln' (open_term' e x i) (i - 1)) (decreases e) = match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 609, "start_col": 0, "start_line": 576 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.term{Pulse.Syntax.Naming.ln x} -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln' e i) (ensures Pulse.Syntax.Naming.ln' (Pulse.Syntax.Naming.open_term' e x i) (i - 1)) (decreases e)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Pulse.Syntax.Base.term", "Prims.b2t", "Pulse.Syntax.Naming.ln", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "Pulse.Typing.LN.ln_weakening", "Prims.op_Minus", "Prims.op_Subtraction", "Pulse.Typing.LN.open_term_ln_inv'", "Prims.unit", "Pulse.Syntax.Base.universe", "P...
[ "recursion" ]
false
false
true
false
false
let rec open_term_ln_inv' (e: term) (x: term{ln x}) (i: index) : Lemma (requires ln' e i) (ensures ln' (open_term' e x i) (i - 1)) (decreases e) =
match e.t with | Tm_Emp | Tm_VProp | Tm_Inames | Tm_EmpInames | Tm_Unknown -> ln_weakening x (- 1) (i - 1) | Tm_Inv p -> open_term_ln_inv' p x i | Tm_Pure p -> open_term_ln_inv' p x i | Tm_AddInv l r | Tm_Star l r -> open_term_ln_inv' l x i; open_term_ln_inv' r x i | Tm_ExistsSL _ t b | Tm_ForallSL _ t b -> open_...
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_term_ln_list'
val close_term_ln_list' (t: list term) (x: var) (i: index) : Lemma (requires ln_list' t (i - 1)) (ensures ln_list' (close_term_list' t x i) i) (decreases t)
val close_term_ln_list' (t: list term) (x: var) (i: index) : Lemma (requires ln_list' t (i - 1)) (ensures ln_list' (close_term_list' t x i) i) (decreases t)
let rec close_term_ln_list' (t:list term) (x:var) (i:index) : Lemma (requires ln_list' t (i - 1)) (ensures ln_list' (close_term_list' t x i) i) (decreases t) = match t with | [] -> () | hd::tl -> close_term_ln' hd x i; close_term_ln_list' tl x i
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 867, "start_col": 0, "start_line": 858 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list Pulse.Syntax.Base.term -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_list' t (i - 1)) (ensures Pulse.Syntax.Naming.ln_list' (Pulse.Syntax.Naming.close_term_list' t x i) i) (decreases t)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.close_term_ln_list'", "Prims.unit", "Pulse.Typing.LN.close_term_ln'", "Prims.b2t", "Pulse.Syntax.Naming.ln_list'", "Prims.op_Subtraction", "Prims.squash", "Pulse.Syntax.Naming.close_ter...
[ "recursion" ]
false
false
true
false
false
let rec close_term_ln_list' (t: list term) (x: var) (i: index) : Lemma (requires ln_list' t (i - 1)) (ensures ln_list' (close_term_list' t x i) i) (decreases t) =
match t with | [] -> () | hd :: tl -> close_term_ln' hd x i; close_term_ln_list' tl x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.close_term_ln_pairs
val close_term_ln_pairs (t: list (term & term)) (x: var) (i: index) : Lemma (requires ln_terms' t (i - 1)) (ensures ln_terms' (close_term_pairs' t x i) i) (decreases t)
val close_term_ln_pairs (t: list (term & term)) (x: var) (i: index) : Lemma (requires ln_terms' t (i - 1)) (ensures ln_terms' (close_term_pairs' t x i) i) (decreases t)
let rec close_term_ln_pairs (t:list (term & term)) (x:var) (i:index) : Lemma (requires ln_terms' t (i - 1)) (ensures ln_terms' (close_term_pairs' t x i) i) (decreases t) = match t with | [] -> () | (l, r)::tl -> close_term_ln' l x i; close_term_ln' r x i; close_term_ln_pairs tl...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 883, "start_col": 0, "start_line": 873 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) -> x: Pulse.Syntax.Base.var -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_terms' t (i - 1)) (ensures Pulse.Syntax.Naming.ln_terms' (Pulse.Typing.LN.close_term_pairs' t x i) i) (decreases...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.var", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.close_term_ln_pairs", "Prims.unit", "Pulse.Typing.LN.close_term_ln'", "Prims.b2t", "Pulse.Syntax.Naming.ln_terms'", "Prims.op_Subtraction", "Prims.squa...
[ "recursion" ]
false
false
true
false
false
let rec close_term_ln_pairs (t: list (term & term)) (x: var) (i: index) : Lemma (requires ln_terms' t (i - 1)) (ensures ln_terms' (close_term_pairs' t x i) i) (decreases t) =
match t with | [] -> () | (l, r) :: tl -> close_term_ln' l x i; close_term_ln' r x i; close_term_ln_pairs tl x i
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_pattern_args_ln
val open_pattern_args_ln (pats: list (pattern & bool)) (x: term) (i: index) : Lemma (requires ln_pattern_args' (open_pattern_args' pats x i) (i - 1)) (ensures ln_pattern_args' pats i) (decreases pats)
val open_pattern_args_ln (pats: list (pattern & bool)) (x: term) (i: index) : Lemma (requires ln_pattern_args' (open_pattern_args' pats x i) (i - 1)) (ensures ln_pattern_args' pats i) (decreases pats)
let rec open_pattern_ln (p:pattern) (x:term) (i:index) : Lemma (requires ln_pattern' (open_pattern' p x i) (i - 1)) (ensures ln_pattern' p i) (decreases p) = match p with | Pat_Constant _ | Pat_Var _ _ | Pat_Dot_Term None -> () | Pat_Dot_Term (Some e) -> open_term_ln' e x i | ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 213, "start_col": 0, "start_line": 190 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pats: Prims.list (Pulse.Syntax.Base.pattern * Prims.bool) -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_pattern_args' (Pulse.Typing.LN.open_pattern_args' pats x i) (i - 1)) (ensures Pulse.Syntax.Naming.ln_pattern_...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[ "open_pattern_ln", "open_pattern_args_ln" ]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.pattern", "Prims.bool", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Typing.LN.open_pattern_args_ln", "Prims.op_Addition", "Pulse.Syntax.Naming.pattern_shift_n", "Prims.unit", "Pulse.Typing.LN.open_pattern_ln", "...
[ "mutual recursion" ]
false
false
true
false
false
let rec open_pattern_args_ln (pats: list (pattern & bool)) (x: term) (i: index) : Lemma (requires ln_pattern_args' (open_pattern_args' pats x i) (i - 1)) (ensures ln_pattern_args' pats i) (decreases pats) =
match pats with | [] -> () | (hd, b) :: tl -> open_pattern_ln hd x i; open_pattern_args_ln tl x (i + pattern_shift_n hd)
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.st_comp_typing_ln
val st_comp_typing_ln (#g #st: _) (d: st_comp_typing g st) : Lemma (ensures ln_st_comp st (- 1))
val st_comp_typing_ln (#g #st: _) (d: st_comp_typing g st) : Lemma (ensures ln_st_comp st (- 1))
let st_comp_typing_ln (#g:_) (#st:_) (d:st_comp_typing g st) : Lemma (ensures ln_st_comp st (-1)) = let STC _ {post} x res_typing pre_typing post_typing = d in tot_or_ghost_typing_ln res_typing; tot_or_ghost_typing_ln pre_typing; tot_or_ghost_typing_ln post_typing; open_term_ln' post (null_var x) 0
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 1117, "start_col": 0, "start_line": 1110 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Pulse.Typing.st_comp_typing g st -> FStar.Pervasives.Lemma (ensures Pulse.Syntax.Naming.ln_st_comp st (- 1))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.st_comp", "Pulse.Typing.st_comp_typing", "Pulse.Syntax.Base.universe", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.vprop", "Pulse.Syntax.Base.var", "Prims.l_and", "Prims.b2t", "FStar.Pervasives.Native.uu___is_None", "Pulse.Syntax.Base.typ", "Pulse.Ty...
[]
false
false
true
false
false
let st_comp_typing_ln (#g #st: _) (d: st_comp_typing g st) : Lemma (ensures ln_st_comp st (- 1)) =
let STC _ { post = post } x res_typing pre_typing post_typing = d in tot_or_ghost_typing_ln res_typing; tot_or_ghost_typing_ln pre_typing; tot_or_ghost_typing_ln post_typing; open_term_ln' post (null_var x) 0
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.open_pattern_ln
val open_pattern_ln (p: pattern) (x: term) (i: index) : Lemma (requires ln_pattern' (open_pattern' p x i) (i - 1)) (ensures ln_pattern' p i) (decreases p)
val open_pattern_ln (p: pattern) (x: term) (i: index) : Lemma (requires ln_pattern' (open_pattern' p x i) (i - 1)) (ensures ln_pattern' p i) (decreases p)
let rec open_pattern_ln (p:pattern) (x:term) (i:index) : Lemma (requires ln_pattern' (open_pattern' p x i) (i - 1)) (ensures ln_pattern' p i) (decreases p) = match p with | Pat_Constant _ | Pat_Var _ _ | Pat_Dot_Term None -> () | Pat_Dot_Term (Some e) -> open_term_ln' e x i | ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 213, "start_col": 0, "start_line": 190 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Pulse.Syntax.Base.pattern -> x: Pulse.Syntax.Base.term -> i: Pulse.Syntax.Base.index -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_pattern' (Pulse.Typing.LN.open_pattern' p x i) (i - 1)) (ensures Pulse.Syntax.Naming.ln_pattern' p i) (decreases p)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[ "open_pattern_ln", "open_pattern_args_ln" ]
[ "Pulse.Syntax.Base.pattern", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.index", "Pulse.Syntax.Base.constant", "FStar.Reflection.Typing.pp_name_t", "FStar.Reflection.Typing.sort_t", "Pulse.Typing.LN.open_term_ln'", "Pulse.Syntax.Base.fv", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.b...
[ "mutual recursion" ]
false
false
true
false
false
let rec open_pattern_ln (p: pattern) (x: term) (i: index) : Lemma (requires ln_pattern' (open_pattern' p x i) (i - 1)) (ensures ln_pattern' p i) (decreases p) =
match p with | Pat_Constant _ | Pat_Var _ _ | Pat_Dot_Term None -> () | Pat_Dot_Term (Some e) -> open_term_ln' e x i | Pat_Cons _ subpats -> open_pattern_args_ln subpats x i
false
LowParse.Tot.Int.fst
LowParse.Tot.Int.parse_u8
val parse_u8 : LowParse.Spec.Base.tot_parser LowParse.Spec.Int.parse_u8_kind FStar.UInt8.t
let parse_u8 = tot_parse_u8
{ "file_name": "src/lowparse/LowParse.Tot.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 6, "start_col": 0, "start_line": 6 }
module LowParse.Tot.Int include LowParse.Spec.Int include LowParse.Tot.Base
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Tot.Base.fst.checked", "LowParse.Spec.Int.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "LowParse.Tot.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Int", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "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.Base.tot_parser LowParse.Spec.Int.parse_u8_kind FStar.UInt8.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Int.tot_parse_u8" ]
[]
false
false
false
true
false
let parse_u8 =
tot_parse_u8
false
LowParse.Tot.Int.fst
LowParse.Tot.Int.serialize_u8
val serialize_u8 : serializer parse_u8
val serialize_u8 : serializer parse_u8
let serialize_u8 = serialize_ext _ serialize_u8 _
{ "file_name": "src/lowparse/LowParse.Tot.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 10, "start_col": 0, "start_line": 9 }
module LowParse.Tot.Int include LowParse.Spec.Int include LowParse.Tot.Base inline_for_extraction let parse_u8 = tot_parse_u8
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Tot.Base.fst.checked", "LowParse.Spec.Int.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "LowParse.Tot.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Int", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "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.Tot.Base.serializer LowParse.Tot.Int.parse_u8
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.serialize_ext", "LowParse.Spec.Int.parse_u8_kind", "FStar.UInt8.t", "LowParse.Spec.Int.parse_u8", "LowParse.Spec.Int.serialize_u8", "LowParse.Tot.Int.parse_u8" ]
[]
false
false
false
true
false
let serialize_u8 =
serialize_ext _ serialize_u8 _
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.st_equiv_ln
val st_equiv_ln (#g #c1 #c2: _) (d: st_equiv g c1 c2) : Lemma (requires ln_c c1) (ensures ln_c c2)
val st_equiv_ln (#g #c1 #c2: _) (d: st_equiv g c1 c2) : Lemma (requires ln_c c1) (ensures ln_c c2)
let st_equiv_ln #g #c1 #c2 (d:st_equiv g c1 c2) : Lemma (requires ln_c c1) (ensures ln_c c2) = match d with | ST_VPropEquiv _ _ _ x (E dpre) _dres _dpost eq_res eq_pre eq_post -> vprop_equiv_ln eq_pre; open_term_ln_inv' (comp_post c1) (term_of_no_name_var x) 0; vprop_equiv_ln eq_post;...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 57, "end_line": 1082, "start_col": 0, "start_line": 1067 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Pulse.Typing.st_equiv g c1 c2 -> FStar.Pervasives.Lemma (requires Pulse.Syntax.Naming.ln_c c1) (ensures Pulse.Syntax.Naming.ln_c c2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.comp", "Pulse.Typing.st_equiv", "Pulse.Syntax.Base.comp_st", "Pulse.Typing.st_equiv_pre", "Pulse.Syntax.Base.var", "Prims.l_and", "Prims.b2t", "FStar.Pervasives.Native.uu___is_None", "Pulse.Syntax.Base.typ", "Pulse.Typing.Env.lookup", "Prims.l_not", ...
[]
false
false
true
false
false
let st_equiv_ln #g #c1 #c2 (d: st_equiv g c1 c2) : Lemma (requires ln_c c1) (ensures ln_c c2) =
match d with | ST_VPropEquiv _ _ _ x (E dpre) _dres _dpost eq_res eq_pre eq_post -> vprop_equiv_ln eq_pre; open_term_ln_inv' (comp_post c1) (term_of_no_name_var x) 0; vprop_equiv_ln eq_post; rt_equiv_ln _ _ _ eq_res; elab_ln_inverse (comp_res c2); open_term_ln' (comp_post c2) (term_of_no_name_var x) 0 | ST_...
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.a_spec
val a_spec : n: Hacl.Spec.Bignum.Definitions.lbignum t len {0 < Hacl.Spec.Bignum.Definitions.bn_v n} -> Type0
let a_spec (#t:limb_t) (#len:SN.bn_len t) (n:BD.lbignum t len{0 < BD.bn_v n}) = Lib.NatMod.nat_mod (BD.bn_v n)
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 38, "start_col": 0, "start_line": 37 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len {0 < Hacl.Spec.Bignum.Definitions.bn_v n} -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.bn_v", "Lib.NatMod.nat_mod" ]
[]
false
false
false
false
true
let a_spec (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len {0 < BD.bn_v n}) =
Lib.NatMod.nat_mod (BD.bn_v n)
false
FStar.PtrdiffT.fsti
FStar.PtrdiffT.op_Greater_Hat
val op_Greater_Hat : x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
let op_Greater_Hat = gt
{ "file_name": "ulib/FStar.PtrdiffT.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 111, "start_col": 7, "start_line": 111 }
module FStar.PtrdiffT module I16 = FStar.Int16 module US = FStar.SizeT val t : eqtype val fits (x: int) : Tot prop val fits_lt (x y: int) : Lemma (requires (abs x < abs y /\ fits y)) (ensures (fits x)) [SMTPat (fits x); SMTPat (fits y)] [@@noextract_to "krml"] val v (x: t) : Pure int (requires True) (ens...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Int16.fsti.checked" ], "interface_file": false, "source_file": "FStar.PtrdiffT.fsti" }
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int64", "short_module": "I64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "FStar.PtrdiffT.gt" ]
[]
false
false
false
false
false
let op_Greater_Hat =
gt
false
FStar.PtrdiffT.fsti
FStar.PtrdiffT.op_Plus_Hat
val op_Plus_Hat : x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure FStar.PtrdiffT.t
let op_Plus_Hat = add
{ "file_name": "ulib/FStar.PtrdiffT.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 110, "start_col": 7, "start_line": 110 }
module FStar.PtrdiffT module I16 = FStar.Int16 module US = FStar.SizeT val t : eqtype val fits (x: int) : Tot prop val fits_lt (x y: int) : Lemma (requires (abs x < abs y /\ fits y)) (ensures (fits x)) [SMTPat (fits x); SMTPat (fits y)] [@@noextract_to "krml"] val v (x: t) : Pure int (requires True) (ens...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Int16.fsti.checked" ], "interface_file": false, "source_file": "FStar.PtrdiffT.fsti" }
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int64", "short_module": "I64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure FStar.PtrdiffT.t
Prims.Pure
[]
[]
[ "FStar.PtrdiffT.add" ]
[]
false
false
false
false
false
let op_Plus_Hat =
add
false
FStar.PtrdiffT.fsti
FStar.PtrdiffT.op_Greater_Equals_Hat
val op_Greater_Equals_Hat : x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
let op_Greater_Equals_Hat = gte
{ "file_name": "ulib/FStar.PtrdiffT.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 112, "start_col": 7, "start_line": 112 }
module FStar.PtrdiffT module I16 = FStar.Int16 module US = FStar.SizeT val t : eqtype val fits (x: int) : Tot prop val fits_lt (x y: int) : Lemma (requires (abs x < abs y /\ fits y)) (ensures (fits x)) [SMTPat (fits x); SMTPat (fits y)] [@@noextract_to "krml"] val v (x: t) : Pure int (requires True) (ens...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Int16.fsti.checked" ], "interface_file": false, "source_file": "FStar.PtrdiffT.fsti" }
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int64", "short_module": "I64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "FStar.PtrdiffT.gte" ]
[]
false
false
false
false
false
let op_Greater_Equals_Hat =
gte
false
FStar.PtrdiffT.fsti
FStar.PtrdiffT.op_Less_Hat
val op_Less_Hat : x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
let op_Less_Hat = lt
{ "file_name": "ulib/FStar.PtrdiffT.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 113, "start_col": 7, "start_line": 113 }
module FStar.PtrdiffT module I16 = FStar.Int16 module US = FStar.SizeT val t : eqtype val fits (x: int) : Tot prop val fits_lt (x y: int) : Lemma (requires (abs x < abs y /\ fits y)) (ensures (fits x)) [SMTPat (fits x); SMTPat (fits y)] [@@noextract_to "krml"] val v (x: t) : Pure int (requires True) (ens...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Int16.fsti.checked" ], "interface_file": false, "source_file": "FStar.PtrdiffT.fsti" }
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int64", "short_module": "I64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "FStar.PtrdiffT.lt" ]
[]
false
false
false
false
false
let op_Less_Hat =
lt
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.refl
val refl (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len {0 < BD.bn_v n}) (a: BD.lbignum t len {linv n a}) : a_spec n
val refl (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len {0 < BD.bn_v n}) (a: BD.lbignum t len {linv n a}) : a_spec n
let refl (#t:limb_t) (#len:SN.bn_len t) (n:BD.lbignum t len{0 < BD.bn_v n}) (a:BD.lbignum t len{linv n a}) : a_spec n = BD.bn_v a % BD.bn_v n
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 46, "start_col": 0, "start_line": 45 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len {0 < Hacl.Spec.Bignum.Definitions.bn_v n} -> a: Hacl.Spec.Bignum.Definitions.lbignum t len {Hacl.Bignum.AlmostMontExponentiation.linv n a} -> Hacl.Bignum.AlmostMontExponentiation.a_spec n
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.bn_v", "Hacl.Bignum.AlmostMontExponentiation.linv", "Prims.op_Modulus", "Hacl.Bignum.AlmostMontExponentiation.a_spec" ]
[]
false
false
false
false
false
let refl (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len {0 < BD.bn_v n}) (a: BD.lbignum t len {linv n a}) : a_spec n =
BD.bn_v a % BD.bn_v n
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.vprop_equiv_ln
val vprop_equiv_ln (#g #t0 #t1: _) (v: vprop_equiv g t0 t1) : Lemma (ensures ln t0 <==> ln t1) (decreases v)
val vprop_equiv_ln (#g #t0 #t1: _) (v: vprop_equiv g t0 t1) : Lemma (ensures ln t0 <==> ln t1) (decreases v)
let rec vprop_equiv_ln (#g:_) (#t0 #t1:_) (v:vprop_equiv g t0 t1) : Lemma (ensures ln t0 <==> ln t1) (decreases v) = match v with | VE_Refl _ _ -> () | VE_Sym _ _ _ v' -> vprop_equiv_ln v' | VE_Trans g t0 t2 t1 v02 v21 -> vprop_equiv_ln v02; vprop_equiv_ln v21 | VE_Ctxt ...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 7, "end_line": 1064, "start_col": 0, "start_line": 1030 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "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
v: Pulse.Typing.vprop_equiv g t0 t1 -> FStar.Pervasives.Lemma (ensures Pulse.Syntax.Naming.ln t0 <==> Pulse.Syntax.Naming.ln t1) (decreases v)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.vprop_equiv", "Pulse.Typing.LN.vprop_equiv_ln", "Prims.unit", "FStar.Stubs.Tactics.Types.equiv_token", "Pulse.Typing.elab_env", "Pulse.Elaborate.Pure.elab_term", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "Pulse.Typing...
[ "recursion" ]
false
false
true
false
false
let rec vprop_equiv_ln (#g #t0 #t1: _) (v: vprop_equiv g t0 t1) : Lemma (ensures ln t0 <==> ln t1) (decreases v) =
match v with | VE_Refl _ _ -> () | VE_Sym _ _ _ v' -> vprop_equiv_ln v' | VE_Trans g t0 t2 t1 v02 v21 -> vprop_equiv_ln v02; vprop_equiv_ln v21 | VE_Ctxt g s0 s1 s0' s1' v0 v1 -> vprop_equiv_ln v0; vprop_equiv_ln v1 | VE_Unit g t -> () | VE_Comm g t0 t1 -> () | VE_Assoc g t0 t1 t2 -> () | VE_Ext g t0 t1 token -...
false
FStar.PtrdiffT.fsti
FStar.PtrdiffT.op_Less_Equals_Hat
val op_Less_Equals_Hat : x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
let op_Less_Equals_Hat = lte
{ "file_name": "ulib/FStar.PtrdiffT.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 114, "start_col": 7, "start_line": 114 }
module FStar.PtrdiffT module I16 = FStar.Int16 module US = FStar.SizeT val t : eqtype val fits (x: int) : Tot prop val fits_lt (x y: int) : Lemma (requires (abs x < abs y /\ fits y)) (ensures (fits x)) [SMTPat (fits x); SMTPat (fits y)] [@@noextract_to "krml"] val v (x: t) : Pure int (requires True) (ens...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Int16.fsti.checked" ], "interface_file": false, "source_file": "FStar.PtrdiffT.fsti" }
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int64", "short_module": "I64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.PtrdiffT.t -> y: FStar.PtrdiffT.t -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "FStar.PtrdiffT.lte" ]
[]
false
false
false
false
false
let op_Less_Equals_Hat =
lte
false
FStar.PtrdiffT.fsti
FStar.PtrdiffT.zero
val zero:(zero_ptrdiff: t{v zero_ptrdiff == 0})
val zero:(zero_ptrdiff: t{v zero_ptrdiff == 0})
let zero : (zero_ptrdiff: t { v zero_ptrdiff == 0 }) = mk 0s
{ "file_name": "ulib/FStar.PtrdiffT.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 48, "start_col": 0, "start_line": 47 }
module FStar.PtrdiffT module I16 = FStar.Int16 module US = FStar.SizeT val t : eqtype val fits (x: int) : Tot prop val fits_lt (x y: int) : Lemma (requires (abs x < abs y /\ fits y)) (ensures (fits x)) [SMTPat (fits x); SMTPat (fits y)] [@@noextract_to "krml"] val v (x: t) : Pure int (requires True) (ens...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Int16.fsti.checked" ], "interface_file": false, "source_file": "FStar.PtrdiffT.fsti" }
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int64", "short_module": "I64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
zero_ptrdiff: FStar.PtrdiffT.t{FStar.PtrdiffT.v zero_ptrdiff == 0}
Prims.Tot
[ "total" ]
[]
[ "FStar.PtrdiffT.mk", "FStar.Int16.__int_to_t" ]
[]
false
false
false
false
false
let zero:(zero_ptrdiff: t{v zero_ptrdiff == 0}) =
mk 0s
false
FStar.PtrdiffT.fsti
FStar.PtrdiffT.mod_spec
val mod_spec (a: int{fits a}) (b: int{fits b /\ b <> 0}) : GTot (n: int{fits n})
val mod_spec (a: int{fits a}) (b: int{fits b /\ b <> 0}) : GTot (n: int{fits n})
let mod_spec (a:int{fits a}) (b:int{fits b /\ b <> 0}) : GTot (n:int{fits n}) = let open FStar.Mul in let res = a - ((a/b) * b) in fits_lt res b; res
{ "file_name": "ulib/FStar.PtrdiffT.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 74, "start_col": 0, "start_line": 70 }
module FStar.PtrdiffT module I16 = FStar.Int16 module US = FStar.SizeT val t : eqtype val fits (x: int) : Tot prop val fits_lt (x y: int) : Lemma (requires (abs x < abs y /\ fits y)) (ensures (fits x)) [SMTPat (fits x); SMTPat (fits y)] [@@noextract_to "krml"] val v (x: t) : Pure int (requires True) (ens...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Int16.fsti.checked" ], "interface_file": false, "source_file": "FStar.PtrdiffT.fsti" }
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int64", "short_module": "I64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int{FStar.PtrdiffT.fits a} -> b: Prims.int{FStar.PtrdiffT.fits b /\ b <> 0} -> Prims.GTot (n: Prims.int{FStar.PtrdiffT.fits n})
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "FStar.PtrdiffT.fits", "Prims.l_and", "Prims.b2t", "Prims.op_disEquality", "Prims.unit", "FStar.PtrdiffT.fits_lt", "Prims.op_Subtraction", "FStar.Mul.op_Star", "Prims.op_Division" ]
[]
false
false
false
false
false
let mod_spec (a: int{fits a}) (b: int{fits b /\ b <> 0}) : GTot (n: int{fits n}) =
let open FStar.Mul in let res = a - ((a / b) * b) in fits_lt res b; res
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.linv
val linv (#t: limb_t) (#len: SN.bn_len t) (n a: BD.lbignum t len) : Type0
val linv (#t: limb_t) (#len: SN.bn_len t) (n a: BD.lbignum t len) : Type0
let linv (#t:limb_t) (#len:SN.bn_len t) (n:BD.lbignum t len) (a:BD.lbignum t len) : Type0 = BD.bn_v a < pow2 (bits t * len)
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 42, "start_col": 0, "start_line": 41 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims.pow2", "FStar.Mul.op_Star", "Lib.IntTypes.bits" ]
[]
false
false
false
false
true
let linv (#t: limb_t) (#len: SN.bn_len t) (n a: BD.lbignum t len) : Type0 =
BD.bn_v a < pow2 (bits t * len)
false
Pulse.Typing.LN.fst
Pulse.Typing.LN.comp_typing_ln
val comp_typing_ln (#g:_) (#c:_) (#u:_) (d:comp_typing g c u) : Lemma (ln_c c)
val comp_typing_ln (#g:_) (#c:_) (#u:_) (d:comp_typing g c u) : Lemma (ln_c c)
let comp_typing_ln (#g:_) (#c:_) (#u:_) (d:comp_typing g c u) : Lemma (ensures ln_c c) = match d with | CT_Tot _ _ _ t_typing -> tot_or_ghost_typing_ln t_typing | CT_ST _ _ st_typing | CT_STGhost _ _ st_typing -> st_comp_typing_ln st_typing | CT_STAtomic _ _ _ _ inames_typing st_typing -> tot_or_ghost_...
{ "file_name": "lib/steel/pulse/Pulse.Typing.LN.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 1128, "start_col": 0, "start_line": 1119 }
(* 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.Metatheory.Base.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typi...
[ { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: Pulse.Typing.comp_typing g c u488 -> FStar.Pervasives.Lemma (ensures Pulse.Syntax.Naming.ln_c c)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.universe", "Pulse.Typing.comp_typing", "Pulse.Syntax.Base.term", "Pulse.Typing.universe_of", "Pulse.Typing.LN.tot_or_ghost_typing_ln", "Pulse.Syntax.Pure.tm_type", "FStar.Stubs.TypeChecker.Core.E_Total", "Pulse.Syntax.Base.st_com...
[]
false
false
true
false
false
let comp_typing_ln (#g #c #u: _) (d: comp_typing g c u) : Lemma (ensures ln_c c) =
match d with | CT_Tot _ _ _ t_typing -> tot_or_ghost_typing_ln t_typing | CT_ST _ _ st_typing | CT_STGhost _ _ st_typing -> st_comp_typing_ln st_typing | CT_STAtomic _ _ _ _ inames_typing st_typing -> tot_or_ghost_typing_ln inames_typing; st_comp_typing_ln st_typing
false
Vale.Test.X64.Vale_memcpy.fst
Vale.Test.X64.Vale_memcpy.va_codegen_success_InnerMemcpy
val va_codegen_success_InnerMemcpy : va_dummy:unit -> Tot va_pbool
val va_codegen_success_InnerMemcpy : va_dummy:unit -> Tot va_pbool
let va_codegen_success_InnerMemcpy () = (va_pbool_and (va_codegen_success_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rRax) (va_op_reg_opr64_reg64 rRdx) 0 Secret) (va_pbool_and (va_codegen_success_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rR9) (va_op_reg_opr...
{ "file_name": "obj/Vale.Test.X64.Vale_memcpy.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 36, "start_col": 0, "start_line": 29 }
module Vale.Test.X64.Vale_memcpy open Vale.Arch.HeapImpl open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.QuickCode open Vale.X64.QuickCodes #set-options "--z3rlimit 20" //-- InnerMemcpy val va_code_I...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsVector", "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
va_dummy: Prims.unit -> Vale.X64.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Vale.X64.Decls.va_pbool_and", "Vale.X64.InsMem.va_codegen_success_Load64_buffer", "Vale.X64.Decls.va_op_heaplet_mem_heaplet", "Vale.X64.Decls.va_op_dst_opr64_reg64", "Vale.X64.Machine_s.rRax", "Vale.X64.Decls.va_op_reg_opr64_reg64", "Vale.X64.Machine_s.rRdx", "Vale.Arch.HeapTypes_s.Se...
[]
false
false
false
true
false
let va_codegen_success_InnerMemcpy () =
(va_pbool_and (va_codegen_success_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rRax) (va_op_reg_opr64_reg64 rRdx) 0 Secret) (va_pbool_and (va_codegen_success_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rR9) (va_op_r...
false
Vale.Test.X64.Vale_memcpy.fst
Vale.Test.X64.Vale_memcpy.va_code_InnerMemcpy
val va_code_InnerMemcpy : va_dummy:unit -> Tot va_code
val va_code_InnerMemcpy : va_dummy:unit -> Tot va_code
let va_code_InnerMemcpy () = (va_Block (va_CCons (va_code_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rRax) (va_op_reg_opr64_reg64 rRdx) 0 Secret) (va_CCons (va_code_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rR9) (va_op_reg_opr64_reg64 rRdx) 8 Secret) (va_CC...
{ "file_name": "obj/Vale.Test.X64.Vale_memcpy.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 25, "start_col": 0, "start_line": 18 }
module Vale.Test.X64.Vale_memcpy open Vale.Arch.HeapImpl open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.QuickCode open Vale.X64.QuickCodes #set-options "--z3rlimit 20" //-- InnerMemcpy val va_code_I...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsVector", "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
va_dummy: Prims.unit -> Vale.X64.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Vale.X64.Decls.va_Block", "Vale.X64.Decls.va_CCons", "Vale.X64.InsMem.va_code_Load64_buffer", "Vale.X64.Decls.va_op_heaplet_mem_heaplet", "Vale.X64.Decls.va_op_dst_opr64_reg64", "Vale.X64.Machine_s.rRax", "Vale.X64.Decls.va_op_reg_opr64_reg64", "Vale.X64.Machine_s.rRdx", "Vale.Arch....
[]
false
false
false
true
false
let va_code_InnerMemcpy () =
(va_Block (va_CCons (va_code_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rRax) (va_op_reg_opr64_reg64 rRdx) 0 Secret) (va_CCons (va_code_Load64_buffer (va_op_heaplet_mem_heaplet 0) (va_op_dst_opr64_reg64 rR9) ...
false
Vale.Test.X64.Vale_memcpy.fst
Vale.Test.X64.Vale_memcpy.va_wp_InnerMemcpy
val va_wp_InnerMemcpy (dst src: buffer64) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_InnerMemcpy (dst src: buffer64) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_InnerMemcpy (dst:buffer64) (src:buffer64) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ Vale.X64.Decls.validSrcAddrs64 (va_get_mem_heaplet 0 va_s0) (va_get_reg64 rRdx va_s0) src 2 (va_get_mem_layout va_s0) Secret /\ Vale.X64.Decls.validDstAddrs64 (va_get_mem_hea...
{ "file_name": "obj/Vale.Test.X64.Vale_memcpy.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 111, "start_col": 0, "start_line": 98 }
module Vale.Test.X64.Vale_memcpy open Vale.Arch.HeapImpl open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.QuickCode open Vale.X64.QuickCodes #set-options "--z3rlimit 20" //-- InnerMemcpy val va_code_I...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsVector", "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
dst: Vale.X64.Memory.buffer64 -> src: Vale.X64.Memory.buffer64 -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.Decls.validSrcAddrs64", "Vale.X64.Decls.va_get_mem_heaplet", "Vale.X64.Decls.va_get_reg64", "Vale.X64.Machine_s.rRdx", "Vale.X64.Decls.va_get_mem_layout", "Val...
[]
false
false
false
true
true
let va_wp_InnerMemcpy (dst src: buffer64) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ Vale.X64.Decls.validSrcAddrs64 (va_get_mem_heaplet 0 va_s0) (va_get_reg64 rRdx va_s0) src 2 (va_get_mem_layout va_s0) Secret /\ Vale.X64.Decls.validDstAddrs64 (va_get_mem_heaplet 1 va_s0) (va_get_reg64 rRcx va_s0) dst 2 (va_get_mem_layout va_s0) Secret /\ ...
false
Vale.Test.X64.Vale_memcpy.fst
Vale.Test.X64.Vale_memcpy.va_qcode_InnerMemcpy
val va_qcode_InnerMemcpy (va_mods: va_mods_t) (dst src: buffer64) : (va_quickCode unit (va_code_InnerMemcpy ()))
val va_qcode_InnerMemcpy (va_mods: va_mods_t) (dst src: buffer64) : (va_quickCode unit (va_code_InnerMemcpy ()))
let va_qcode_InnerMemcpy (va_mods:va_mods_t) (dst:buffer64) (src:buffer64) : (va_quickCode unit (va_code_InnerMemcpy ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 38 column 18 of file /home/gebner/fstar_dataset/projects/hac...
{ "file_name": "obj/Vale.Test.X64.Vale_memcpy.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 58, "start_col": 0, "start_line": 39 }
module Vale.Test.X64.Vale_memcpy open Vale.Arch.HeapImpl open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.QuickCode open Vale.X64.QuickCodes #set-options "--z3rlimit 20" //-- InnerMemcpy val va_code_I...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsVector", "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
va_mods: Vale.X64.QuickCode.va_mods_t -> dst: Vale.X64.Memory.buffer64 -> src: Vale.X64.Memory.buffer64 -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.Test.X64.Vale_memcpy.va_code_InnerMemcpy ())
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.QuickCode.va_mods_t", "Vale.X64.Memory.buffer64", "Vale.X64.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.X64.Decls.va_code", "Vale.X64.InsMem.va_code_Load64_buffer", "Vale.X64.Decls.va_op_heaplet_mem_heaplet", "Vale.X64.Decls.va_op_dst_opr64_reg64", "Vale.X64.Machine_s.rRax", ...
[]
false
false
false
false
false
let va_qcode_InnerMemcpy (va_mods: va_mods_t) (dst src: buffer64) : (va_quickCode unit (va_code_InnerMemcpy ())) =
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 38 column 18 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/test/Vale.Test.X64.Vale_memcpy.vaf *****" (va_quick_Load64_buffer (va_op_hea...
false
Vale.Test.X64.Vale_memcpy.fst
Vale.Test.X64.Vale_memcpy.va_codegen_success_Memcpy
val va_codegen_success_Memcpy : win:bool -> Tot va_pbool
val va_codegen_success_Memcpy : win:bool -> Tot va_pbool
let va_codegen_success_Memcpy win = (va_pbool_and (va_codegen_success_CreateHeaplets ()) (va_pbool_and (if win then va_pbool_and (va_codegen_success_InnerMemcpy ()) (va_ttrue ()) else va_pbool_and (va_codegen_success_Mem64_lemma ()) (va_pbool_and (va_codegen_success_Mov64 (va_op_dst_opr64_reg64 rRax) (va_...
{ "file_name": "obj/Vale.Test.X64.Vale_memcpy.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 167, "start_col": 0, "start_line": 155 }
module Vale.Test.X64.Vale_memcpy open Vale.Arch.HeapImpl open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.QuickCode open Vale.X64.QuickCodes #set-options "--z3rlimit 20" //-- InnerMemcpy val va_code_I...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsVector", "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
win: Prims.bool -> Vale.X64.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Vale.X64.Decls.va_pbool_and", "Vale.X64.InsMem.va_codegen_success_CreateHeaplets", "Vale.Test.X64.Vale_memcpy.va_codegen_success_InnerMemcpy", "Vale.X64.Decls.va_ttrue", "Vale.X64.InsMem.va_codegen_success_Mem64_lemma", "Vale.X64.InsBasic.va_codegen_success_Mov64", "Vale.X64.Decls.va_op...
[]
false
false
false
true
false
let va_codegen_success_Memcpy win =
(va_pbool_and (va_codegen_success_CreateHeaplets ()) (va_pbool_and (if win then va_pbool_and (va_codegen_success_InnerMemcpy ()) (va_ttrue ()) else va_pbool_and (va_codegen_success_Mem64_lemma ()) (va_pbool_and (va_codegen_success_Mov64 (va_op_dst_opr64_reg64 rRax) ...
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_st
val bn_exp_almost_mont_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
let bn_exp_almost_mont_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> mu:limb t -> r2:lbignum t len -> aM:lbignum t len -> bBits:size_t -> b:lbignum t (blocks0 bBits (size (bits t))) -> resM:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h aM /\ live h b /\ live h resM /...
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 68, "end_line": 214, "start_col": 0, "start_line": 197 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks0", "Lib.IntTypes.size", "Lib.IntTypes.bits", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.B...
[]
false
false
false
false
true
let bn_exp_almost_mont_st (t: limb_t) (len: BN.meta_len t) =
n: lbignum t len -> mu: limb t -> r2: lbignum t len -> aM: lbignum t len -> bBits: size_t -> b: lbignum t (blocks0 bBits (size (bits t))) -> resM: lbignum t len -> Stack unit (requires fun h -> live h n /\ live h aM /\ live h b /\ live h resM /\ live h r2 /\ disjoi...
false
Vale.Test.X64.Vale_memcpy.fst
Vale.Test.X64.Vale_memcpy.va_code_Memcpy
val va_code_Memcpy : win:bool -> Tot va_code
val va_code_Memcpy : win:bool -> Tot va_code
let va_code_Memcpy win = (va_Block (va_CCons (va_code_CreateHeaplets ()) (va_CCons (if win then va_Block (va_CCons (va_code_InnerMemcpy ()) (va_CNil ())) else va_Block (va_CCons (va_code_Mem64_lemma ()) (va_CCons (va_code_Mov64 (va_op_dst_opr64_reg64 rRax) (va_opr_code_Mem64 (va_op_heaplet_mem_heaplet 0) ...
{ "file_name": "obj/Vale.Test.X64.Vale_memcpy.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 87, "end_line": 152, "start_col": 0, "start_line": 142 }
module Vale.Test.X64.Vale_memcpy open Vale.Arch.HeapImpl open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.QuickCode open Vale.X64.QuickCodes #set-options "--z3rlimit 20" //-- InnerMemcpy val va_code_I...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsVector", "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
win: Prims.bool -> Vale.X64.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Vale.X64.Decls.va_Block", "Vale.X64.Decls.va_CCons", "Vale.X64.InsMem.va_code_CreateHeaplets", "Vale.Test.X64.Vale_memcpy.va_code_InnerMemcpy", "Vale.X64.Decls.va_CNil", "Vale.X64.InsMem.va_code_Mem64_lemma", "Vale.X64.InsBasic.va_code_Mov64", "Vale.X64.Decls.va_op_dst_opr64_reg64", ...
[]
false
false
false
true
false
let va_code_Memcpy win =
(va_Block (va_CCons (va_code_CreateHeaplets ()) (va_CCons (if win then va_Block (va_CCons (va_code_InnerMemcpy ()) (va_CNil ())) else va_Block (va_CCons (va_code_Mem64_lemma ()) (va_CCons (va_code_Mov64 (va_op_dst_opr64_reg64 rRax) ...
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.mk_to_nat_mont_ll_comm_monoid
val mk_to_nat_mont_ll_comm_monoid (t: limb_t) (len: BN.meta_len t) (n: BD.lbignum t (v len)) (mu: limb t {SM.bn_mont_pre n mu}) : BE.to_comm_monoid t len (len +! len)
val mk_to_nat_mont_ll_comm_monoid (t: limb_t) (len: BN.meta_len t) (n: BD.lbignum t (v len)) (mu: limb t {SM.bn_mont_pre n mu}) : BE.to_comm_monoid t len (len +! len)
let mk_to_nat_mont_ll_comm_monoid (t:limb_t) (len:BN.meta_len t) (n:BD.lbignum t (v len)) (mu:limb t{SM.bn_mont_pre n mu}) : BE.to_comm_monoid t len (len +! len) = { BE.a_spec = a_spec n; BE.comm_monoid = E.mk_nat_mont_ll_comm_monoid (bits t) (v len) (BD.bn_v n) (v mu); BE.linv_ctx = linv_ctx n; BE.li...
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 69, "start_col": 0, "start_line": 57 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> n: Hacl.Spec.Bignum.Definitions.lbignum t (Lib.IntTypes.v len) -> mu: Hacl.Bignum.Definitions.limb t {Hacl.Spec.Bignum.Montgomery.bn_mont_pre n mu} -> Hacl.Impl.Exponentiation.Definitions.to_comm_monoid t len (len +! len)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Montgomery.bn_mont_pre", "Hacl.Impl.Exponentiation.Definitions.Mkto_comm_monoid", "Lib.IntTy...
[]
false
false
false
false
false
let mk_to_nat_mont_ll_comm_monoid (t: limb_t) (len: BN.meta_len t) (n: BD.lbignum t (v len)) (mu: limb t {SM.bn_mont_pre n mu}) : BE.to_comm_monoid t len (len +! len) =
{ BE.a_spec = a_spec n; BE.comm_monoid = E.mk_nat_mont_ll_comm_monoid (bits t) (v len) (BD.bn_v n) (v mu); BE.linv_ctx = linv_ctx n; BE.linv = linv n; BE.refl = refl n }
false
Vale.Test.X64.Vale_memcpy.fst
Vale.Test.X64.Vale_memcpy.va_qcode_Memcpy
val va_qcode_Memcpy (va_mods: va_mods_t) (win: bool) (dst src: buffer64) : (va_quickCode unit (va_code_Memcpy win))
val va_qcode_Memcpy (va_mods: va_mods_t) (win: bool) (dst src: buffer64) : (va_quickCode unit (va_code_Memcpy win))
let va_qcode_Memcpy (va_mods:va_mods_t) (win:bool) (dst:buffer64) (src:buffer64) : (va_quickCode unit (va_code_Memcpy win)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 67 column 19 of file /home/gebner/fstar_dataset/projects/...
{ "file_name": "obj/Vale.Test.X64.Vale_memcpy.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 206, "start_col": 0, "start_line": 170 }
module Vale.Test.X64.Vale_memcpy open Vale.Arch.HeapImpl open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.QuickCode open Vale.X64.QuickCodes #set-options "--z3rlimit 20" //-- InnerMemcpy val va_code_I...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsVector", "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
va_mods: Vale.X64.QuickCode.va_mods_t -> win: Prims.bool -> dst: Vale.X64.Memory.buffer64 -> src: Vale.X64.Memory.buffer64 -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.Test.X64.Vale_memcpy.va_code_Memcpy win)
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.QuickCode.va_mods_t", "Prims.bool", "Vale.X64.Memory.buffer64", "Vale.X64.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.X64.Decls.va_code", "Vale.X64.InsMem.va_code_CreateHeaplets", "Vale.X64.QuickCodes.if_code", "Vale.X64.QuickCodes.block", "Vale.Test.X64.Vale_memcpy.va_code_I...
[]
false
false
false
false
false
let va_qcode_Memcpy (va_mods: va_mods_t) (win: bool) (dst src: buffer64) : (va_quickCode unit (va_code_Memcpy win)) =
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 67 column 19 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/test/Vale.Test.X64.Vale_memcpy.vaf *****" (va_quick_CreateHeaplets ([ ...
false
FStar.IntegerIntervals.fst
FStar.IntegerIntervals.interval_condition
val interval_condition : x: Prims.int -> y: Prims.int -> t: Prims.int -> Prims.bool
let interval_condition (x y t: int) = (x <= t) && (t < y)
{ "file_name": "ulib/FStar.IntegerIntervals.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 33, "start_col": 0, "start_line": 33 }
(* Copyright 2008-2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.IntegerIntervals.fst" }
[ { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "...
{ "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: Prims.int -> y: Prims.int -> t: Prims.int -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Prims.op_AmpAmp", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.bool" ]
[]
false
false
false
true
false
let interval_condition (x y t: int) =
(x <= t) && (t < y)
false
FStar.IntegerIntervals.fst
FStar.IntegerIntervals.coerce_to_less_than
val coerce_to_less_than (#n: _) (x: not_greater_than n) : less_than (n + 1)
val coerce_to_less_than (#n: _) (x: not_greater_than n) : less_than (n + 1)
let coerce_to_less_than #n (x: not_greater_than n) : less_than (n+1) = x
{ "file_name": "ulib/FStar.IntegerIntervals.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 72, "end_line": 30, "start_col": 0, "start_line": 30 }
(* Copyright 2008-2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.IntegerIntervals.fst" }
[ { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.IntegerIntervals.not_greater_than n -> FStar.IntegerIntervals.less_than (n + 1)
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "FStar.IntegerIntervals.not_greater_than", "FStar.IntegerIntervals.less_than", "Prims.op_Addition" ]
[]
false
false
false
false
false
let coerce_to_less_than #n (x: not_greater_than n) : less_than (n + 1) =
x
false
FStar.IntegerIntervals.fst
FStar.IntegerIntervals.closed_interval_size
val closed_interval_size (x y: int) : nat
val closed_interval_size (x y: int) : nat
let closed_interval_size (x y: int) : nat = interval_size (ifrom_ito x y)
{ "file_name": "ulib/FStar.IntegerIntervals.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 73, "end_line": 61, "start_col": 0, "start_line": 61 }
(* Copyright 2008-2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.IntegerIntervals.fst" }
[ { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "...
{ "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: Prims.int -> y: Prims.int -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "FStar.IntegerIntervals.interval_size", "Prims.op_Addition", "FStar.IntegerIntervals.ifrom_ito", "Prims.nat" ]
[]
false
false
false
true
false
let closed_interval_size (x y: int) : nat =
interval_size (ifrom_ito x y)
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.mk_bn_almost_mont_concrete_ops
val mk_bn_almost_mont_concrete_ops (t: limb_t) (k: AM.almost_mont t) (n: Ghost.erased (BD.lbignum t (v k.AM.bn.BN.len))) (mu: limb t {SM.bn_mont_pre n mu}) : BE.concrete_ops t k.AM.bn.BN.len (k.AM.bn.BN.len +! k.AM.bn.BN.len)
val mk_bn_almost_mont_concrete_ops (t: limb_t) (k: AM.almost_mont t) (n: Ghost.erased (BD.lbignum t (v k.AM.bn.BN.len))) (mu: limb t {SM.bn_mont_pre n mu}) : BE.concrete_ops t k.AM.bn.BN.len (k.AM.bn.BN.len +! k.AM.bn.BN.len)
let mk_bn_almost_mont_concrete_ops (t:limb_t) (k:AM.almost_mont t) (n:Ghost.erased (BD.lbignum t (v k.AM.bn.BN.len))) (mu:limb t{SM.bn_mont_pre n mu}) : BE.concrete_ops t k.AM.bn.BN.len (k.AM.bn.BN.len +! k.AM.bn.BN.len) = { BE.to = mk_to_nat_mont_ll_comm_monoid t k.AM.bn.BN.len n mu; BE.lone = bn_almost_...
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 146, "start_col": 0, "start_line": 135 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Bignum.Definitions.limb_t -> k: Hacl.Bignum.AlmostMontgomery.almost_mont t -> n: FStar.Ghost.erased (Hacl.Spec.Bignum.Definitions.lbignum t (Lib.IntTypes.v (Mkbn?.len (Mkalmost_mont?.bn k)))) -> mu: Hacl.Bignum.Definitions.limb t {Hacl.Spec.Bignum.Montgomery.bn_m...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.AlmostMontgomery.almost_mont", "FStar.Ghost.erased", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.AlmostMontgomery.__proj__Mkalmost_mont__item__bn",...
[]
false
false
false
false
false
let mk_bn_almost_mont_concrete_ops (t: limb_t) (k: AM.almost_mont t) (n: Ghost.erased (BD.lbignum t (v k.AM.bn.BN.len))) (mu: limb t {SM.bn_mont_pre n mu}) : BE.concrete_ops t k.AM.bn.BN.len (k.AM.bn.BN.len +! k.AM.bn.BN.len) =
{ BE.to = mk_to_nat_mont_ll_comm_monoid t k.AM.bn.BN.len n mu; BE.lone = bn_almost_mont_one k n mu; BE.lmul = bn_almost_mont_mul k n mu; BE.lsqr = bn_almost_mont_sqr k n mu }
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_vartime
val bn_exp_almost_mont_vartime: #t:limb_t -> k:AM.almost_mont t -> bn_exp_almost_mont_st t k.AM.bn.BN.len
val bn_exp_almost_mont_vartime: #t:limb_t -> k:AM.almost_mont t -> bn_exp_almost_mont_st t k.AM.bn.BN.len
let bn_exp_almost_mont_vartime #t k n mu r2 aM bBits b resM = if bBits <. size ME.bn_exp_mont_vartime_threshold then bn_exp_almost_mont_bm_vartime k n mu r2 aM bBits b resM else bn_exp_almost_mont_fw_vartime k 4ul n mu r2 aM bBits b resM
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 309, "start_col": 0, "start_line": 305 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "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.Bignum.AlmostMontgomery.almost_mont t -> Hacl.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_st t (Mkbn?.len (Mkalmost_mont?.bn k))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.AlmostMontgomery.almost_mont", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.AlmostMontgomery.__proj__Mkalmost_mont__item__bn", "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks...
[]
false
false
false
false
false
let bn_exp_almost_mont_vartime #t k n mu r2 aM bBits b resM =
if bBits <. size ME.bn_exp_mont_vartime_threshold then bn_exp_almost_mont_bm_vartime k n mu r2 aM bBits b resM else bn_exp_almost_mont_fw_vartime k 4ul n mu r2 aM bBits b resM
false
Spec.Agile.HKDF.fsti
Spec.Agile.HKDF.expand_output_length_pred
val expand_output_length_pred : a: Spec.Hash.Definitions.fixed_len_alg -> len: Prims.nat -> Prims.bool
let expand_output_length_pred (a:fixed_len_alg) (len:nat) = len <= 255 * hash_length a
{ "file_name": "specs/Spec.Agile.HKDF.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 25, "start_col": 0, "start_line": 24 }
module Spec.Agile.HKDF open FStar.Mul open Spec.Hash.Definitions let lbytes (l:nat) = b:bytes {Seq.length b = l} let extract_ikm_length_pred (a:hash_alg) (ikm_length:nat) = (ikm_length + block_length a) `less_than_max_input_length` a val extract: a: fixed_len_alg -> key: bytes -> data: bytes -> Pure (lbyt...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "Spec.Agile.HKDF.fsti" }
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile", "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: Spec.Hash.Definitions.fixed_len_alg -> len: Prims.nat -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.fixed_len_alg", "Prims.nat", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Spec.Hash.Definitions.hash_length", "Prims.bool" ]
[]
false
false
false
true
false
let expand_output_length_pred (a: fixed_len_alg) (len: nat) =
len <= 255 * hash_length a
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_pre
val bn_exp_almost_mont_pre : n: Hacl.Spec.Bignum.Definitions.lbignum t len -> mu: Hacl.Bignum.Definitions.limb t -> r2: Hacl.Spec.Bignum.Definitions.lbignum t len -> aM: Hacl.Spec.Bignum.Definitions.lbignum t len -> bBits: Lib.IntTypes.size_nat -> b: Hacl.Spec.Bignum.Definitions.lbignum t ...
let bn_exp_almost_mont_pre (#t:limb_t) (#len:SN.bn_len t) (n:BD.lbignum t len) (mu:limb t) (r2:BD.lbignum t len) (aM:BD.lbignum t len) (bBits:size_nat) (b:BD.lbignum t (BD.blocks0 bBits (bits t))) = SM.bn_mont_pre n mu /\ BD.bn_v r2 == pow2 (2 * bits t * len) % BD.bn_v n /\ BD.bn_v b < pow2 bB...
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 193, "start_col": 0, "start_line": 180 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> mu: Hacl.Bignum.Definitions.limb t -> r2: Hacl.Spec.Bignum.Definitions.lbignum t len -> aM: Hacl.Spec.Bignum.Definitions.lbignum t len -> bBits: Lib.IntTypes.size_nat -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.De...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.l_and", "Hacl.Spec.Bignum.Montgomery.bn_mont_pre", "Prims.eq2", "Prims...
[]
false
false
false
false
true
let bn_exp_almost_mont_pre (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len) (mu: limb t) (r2 aM: BD.lbignum t len) (bBits: size_nat) (b: BD.lbignum t (BD.blocks0 bBits (bits t))) =
SM.bn_mont_pre n mu /\ BD.bn_v r2 == pow2 ((2 * bits t) * len) % BD.bn_v n /\ BD.bn_v b < pow2 bBits /\ BD.bn_v aM < BD.bn_v n
false
Spec.Agile.HKDF.fsti
Spec.Agile.HKDF.expand_info_length_pred
val expand_info_length_pred : a: Spec.Hash.Definitions.fixed_len_alg -> info_length: Prims.nat -> Prims.bool
let expand_info_length_pred (a:fixed_len_alg) (info_length:nat) = (hash_length a + info_length + 1 + block_length a) `less_than_max_input_length` a
{ "file_name": "specs/Spec.Agile.HKDF.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 22, "start_col": 0, "start_line": 21 }
module Spec.Agile.HKDF open FStar.Mul open Spec.Hash.Definitions let lbytes (l:nat) = b:bytes {Seq.length b = l} let extract_ikm_length_pred (a:hash_alg) (ikm_length:nat) = (ikm_length + block_length a) `less_than_max_input_length` a val extract: a: fixed_len_alg -> key: bytes -> data: bytes -> Pure (lbyt...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "Spec.Agile.HKDF.fsti" }
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile", "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: Spec.Hash.Definitions.fixed_len_alg -> info_length: Prims.nat -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.fixed_len_alg", "Prims.nat", "Spec.Hash.Definitions.less_than_max_input_length", "Prims.op_Addition", "Spec.Hash.Definitions.hash_length", "Spec.Hash.Definitions.block_length", "Prims.bool" ]
[]
false
false
false
true
false
let expand_info_length_pred (a: fixed_len_alg) (info_length: nat) =
(hash_length a + info_length + 1 + block_length a) `less_than_max_input_length` a
false
FStar.IntegerIntervals.fst
FStar.IntegerIntervals.coerce_to_not_less_than
val coerce_to_not_less_than (#n: _) (x: greater_than n) : not_less_than (n + 1)
val coerce_to_not_less_than (#n: _) (x: greater_than n) : not_less_than (n + 1)
let coerce_to_not_less_than #n (x: greater_than n) : not_less_than (n+1) = x
{ "file_name": "ulib/FStar.IntegerIntervals.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 76, "end_line": 31, "start_col": 0, "start_line": 31 }
(* Copyright 2008-2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.IntegerIntervals.fst" }
[ { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.IntegerIntervals.greater_than n -> FStar.IntegerIntervals.not_less_than (n + 1)
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "FStar.IntegerIntervals.greater_than", "FStar.IntegerIntervals.not_less_than", "Prims.op_Addition" ]
[]
false
false
false
false
false
let coerce_to_not_less_than #n (x: greater_than n) : not_less_than (n + 1) =
x
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.linv_ctx
val linv_ctx (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len) (ctx: BD.lbignum t (len + len)) : Type0
val linv_ctx (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len) (ctx: BD.lbignum t (len + len)) : Type0
let linv_ctx (#t:limb_t) (#len:SN.bn_len t) (n:BD.lbignum t len) (ctx:BD.lbignum t (len + len)) : Type0 = let ctx_n = LSeq.sub ctx 0 len in let ctx_r2 = LSeq.sub ctx len len in ctx_n == n /\ 0 < BD.bn_v n /\ BD.bn_v ctx_r2 = pow2 (2 * bits t * len) % BD.bn_v n
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 53, "start_col": 0, "start_line": 49 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> ctx: Hacl.Spec.Bignum.Definitions.lbignum t (len + len) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "Prims.l_and", "Prims.eq2", "Lib.Sequence.lseq", "Hacl.Spec.Bignum.Definitions.limb", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims.op_Equal...
[]
false
false
false
false
true
let linv_ctx (#t: limb_t) (#len: SN.bn_len t) (n: BD.lbignum t len) (ctx: BD.lbignum t (len + len)) : Type0 =
let ctx_n = LSeq.sub ctx 0 len in let ctx_r2 = LSeq.sub ctx len len in ctx_n == n /\ 0 < BD.bn_v n /\ BD.bn_v ctx_r2 = pow2 ((2 * bits t) * len) % BD.bn_v n
false
FStar.IntegerIntervals.fst
FStar.IntegerIntervals.interval_size
val interval_size (#x #y: int) (interval: interval_type x y) : nat
val interval_size (#x #y: int) (interval: interval_type x y) : nat
let interval_size (#x #y: int) (interval: interval_type x y) : nat = if y >= x then y-x else 0
{ "file_name": "ulib/FStar.IntegerIntervals.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 55, "start_col": 0, "start_line": 54 }
(* Copyright 2008-2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.IntegerIntervals.fst" }
[ { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "...
{ "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
interval: FStar.IntegerIntervals.interval_type x y -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "FStar.IntegerIntervals.interval_type", "Prims.op_GreaterThanOrEqual", "Prims.op_Subtraction", "Prims.bool", "Prims.nat" ]
[]
false
false
false
false
false
let interval_size (#x #y: int) (interval: interval_type x y) : nat =
if y >= x then y - x else 0
false
Spec.Agile.HKDF.fsti
Spec.Agile.HKDF.extract_ikm_length_pred
val extract_ikm_length_pred : a: Spec.Hash.Definitions.hash_alg -> ikm_length: Prims.nat -> Prims.bool
let extract_ikm_length_pred (a:hash_alg) (ikm_length:nat) = (ikm_length + block_length a) `less_than_max_input_length` a
{ "file_name": "specs/Spec.Agile.HKDF.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 9, "start_col": 0, "start_line": 8 }
module Spec.Agile.HKDF open FStar.Mul open Spec.Hash.Definitions let lbytes (l:nat) = b:bytes {Seq.length b = l}
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "Spec.Agile.HKDF.fsti" }
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile", "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: Spec.Hash.Definitions.hash_alg -> ikm_length: Prims.nat -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.nat", "Spec.Hash.Definitions.less_than_max_input_length", "Prims.op_Addition", "Spec.Hash.Definitions.block_length", "Prims.bool" ]
[]
false
false
false
true
false
let extract_ikm_length_pred (a: hash_alg) (ikm_length: nat) =
(ikm_length + block_length a) `less_than_max_input_length` a
false
Hacl.Bignum.AlmostMontExponentiation.fst
Hacl.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_consttime
val bn_exp_almost_mont_consttime: #t:limb_t -> k:AM.almost_mont t -> bn_exp_almost_mont_st t k.AM.bn.BN.len
val bn_exp_almost_mont_consttime: #t:limb_t -> k:AM.almost_mont t -> bn_exp_almost_mont_st t k.AM.bn.BN.len
let bn_exp_almost_mont_consttime #t k n mu r2 aM bBits b resM = if bBits <. size ME.bn_exp_mont_consttime_threshold then bn_exp_almost_mont_bm_consttime k n mu r2 aM bBits b resM else bn_exp_almost_mont_fw_consttime k 4ul n mu r2 aM bBits b resM
{ "file_name": "code/bignum/Hacl.Bignum.AlmostMontExponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 319, "start_col": 0, "start_line": 315 }
module Hacl.Bignum.AlmostMontExponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module BD = Hacl.Spec.Bignum.Definitions module SN = Hacl.Spec.Bignum module SM = Hacl....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiation.Lemmas...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_modu...
{ "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.Bignum.AlmostMontgomery.almost_mont t -> Hacl.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_st t (Mkbn?.len (Mkalmost_mont?.bn k))
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.AlmostMontgomery.almost_mont", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.__proj__Mkbn__item__len", "Hacl.Bignum.AlmostMontgomery.__proj__Mkalmost_mont__item__bn", "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks...
[]
false
false
false
false
false
let bn_exp_almost_mont_consttime #t k n mu r2 aM bBits b resM =
if bBits <. size ME.bn_exp_mont_consttime_threshold then bn_exp_almost_mont_bm_consttime k n mu r2 aM bBits b resM else bn_exp_almost_mont_fw_consttime k 4ul n mu r2 aM bBits b resM
false