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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LList2.fst | LList2.intro_llist_cons | val intro_llist_cons
(#opened: _)
(p1: ref cell)
(#v1: Ghost.erased (typeof cell))
(p2: ptr cell)
(a: U32.t)
(q: Ghost.erased (list U32.t))
: STGhost unit
opened
(((pts_to p1 v1) `star` (llist p2 q)) `star` (freeable p1))
(fun _ -> llist p1 (a :: q))
(Ghos... | val intro_llist_cons
(#opened: _)
(p1: ref cell)
(#v1: Ghost.erased (typeof cell))
(p2: ptr cell)
(a: U32.t)
(q: Ghost.erased (list U32.t))
: STGhost unit
opened
(((pts_to p1 v1) `star` (llist p2 q)) `star` (freeable p1))
(fun _ -> llist p1 (a :: q))
(Ghos... | let intro_llist_cons
(#opened: _)
(p1: ref cell) (#v1: Ghost.erased (typeof cell)) (p2: ptr cell) (a: U32.t) (q: Ghost.erased (list U32.t))
: STGhost unit opened
(pts_to p1 v1 `star`
llist p2 q `star`
freeable p1
)
(fun _ -> llist p1 (a :: q))
(Ghost.reveal v1 == ({ hd = mk_scalar a; tl ... | {
"file_name": "share/steel/examples/steelc/LList2.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 67,
"end_line": 69,
"start_col": 0,
"start_line": 57
} | module LList2
open Steel.ST.GenElim
open Steel.ST.C.Types
open Steel.ST.C.Types.Struct.Aux
open Steel.ST.C.Types.UserStruct // hides Struct
module U32 = FStar.UInt32
noeq
type cell_t = {
hd: scalar_t U32.t;
tl: scalar_t (ptr_gen cell_t);
}
noextract
inline_for_extraction
[@@ norm_field_attr]
let cell_struct_def ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.GenElim.fsti.checked",
"Steel.ST.C.Types.UserStruct.fsti.checked",
"Steel.ST.C.Types.Struct.Aux.fsti.checked",
"Steel.ST.C.Types.fst.checked",
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasi... | [
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.UserStruct // hides Struct",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.UserStruct",
"short_module": null
},
... | {
"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 |
p1: Steel.ST.C.Types.Base.ref LList2.cell ->
p2: Steel.ST.C.Types.Base.ptr LList2.cell ->
a: FStar.UInt32.t ->
q: FStar.Ghost.erased (Prims.list FStar.UInt32.t)
-> Steel.ST.Effect.Ghost.STGhost Prims.unit | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.ST.C.Types.Base.ref",
"LList2.cell_t",
"LList2.cell",
"FStar.Ghost.erased",
"Steel.ST.C.Types.Base.typeof",
"Steel.ST.C.Types.Base.ptr",
"FStar.UInt32.t",
"Prims.list",
"Steel.ST.Util.rewrite_with_tactic",
"LList2.llist_cons",
"LList2.llist",
"FStar.Ghost.hide",... | [] | false | true | false | false | false | let intro_llist_cons
(#opened: _)
(p1: ref cell)
(#v1: Ghost.erased (typeof cell))
(p2: ptr cell)
(a: U32.t)
(q: Ghost.erased (list U32.t))
: STGhost unit
opened
(((pts_to p1 v1) `star` (llist p2 q)) `star` (freeable p1))
(fun _ -> llist p1 (a :: q))
(Ghos... | noop ();
rewrite_with_tactic (llist_cons p1 a q llist) (llist p1 (a :: q)) | false |
FStar.Vector.Properties.fst | FStar.Vector.Properties.coerce | val coerce (#a: Type) (#l: len_t) (v: raw a l) (m: len_t{l == m}) : Tot (raw a m) | val coerce (#a: Type) (#l: len_t) (v: raw a l) (m: len_t{l == m}) : Tot (raw a m) | let coerce
(#a:Type)
(#l:len_t)
(v:raw a l)
(m:len_t{l == m})
: Tot (raw a m)
= v | {
"file_name": "ulib/FStar.Vector.Properties.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 37,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2008-2017 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 appl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Vector.Base.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Vector.Properties.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Vector.Base",
"short_module": null
},
{
"abbrev": false,
"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 | v: FStar.Vector.Base.raw a l -> m: FStar.Vector.Base.len_t{l == m} -> FStar.Vector.Base.raw a m | Prims.Tot | [
"total"
] | [] | [
"FStar.Vector.Base.len_t",
"FStar.Vector.Base.raw",
"Prims.eq2"
] | [] | false | false | false | false | false | let coerce (#a: Type) (#l: len_t) (v: raw a l) (m: len_t{l == m}) : Tot (raw a m) =
| v | false |
FStar.Vector.Properties.fst | FStar.Vector.Properties.head | val head (#a: Type) (#l: len_t{l <> 0ul}) (v: raw a l) : Tot a | val head (#a: Type) (#l: len_t{l <> 0ul}) (v: raw a l) : Tot a | let head (#a:Type) (#l:len_t{l <> 0ul}) (v:raw a l)
: Tot a
= v.[0ul] | {
"file_name": "ulib/FStar.Vector.Properties.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 74,
"start_col": 0,
"start_line": 72
} | (*
Copyright 2008-2017 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 appl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Vector.Base.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Vector.Properties.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Vector.Base",
"short_module": null
},
{
"abbrev": false,
"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 | v: FStar.Vector.Base.raw a l -> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Vector.Base.len_t",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.UInt32.t",
"FStar.UInt32.__uint_to_t",
"FStar.Vector.Base.raw",
"FStar.Vector.Base.op_String_Access"
] | [] | false | false | false | false | false | let head (#a: Type) (#l: len_t{l <> 0ul}) (v: raw a l) : Tot a =
| v.[ 0ul ] | false |
FStar.Vector.Properties.fst | FStar.Vector.Properties.tail | val tail (#a: Type) (#l: len_t{l <> 0ul}) (v: raw a l) : Tot (raw a U32.(l -^ 1ul)) | val tail (#a: Type) (#l: len_t{l <> 0ul}) (v: raw a l) : Tot (raw a U32.(l -^ 1ul)) | let tail (#a:Type) (#l:len_t{l <> 0ul}) (v:raw a l)
: Tot (raw a U32.(l -^ 1ul))
= sub v 1ul l | {
"file_name": "ulib/FStar.Vector.Properties.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 78,
"start_col": 0,
"start_line": 76
} | (*
Copyright 2008-2017 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 appl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Vector.Base.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Vector.Properties.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Vector.Base",
"short_module": null
},
{
"abbrev": false,
"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 | v: FStar.Vector.Base.raw a l -> FStar.Vector.Base.raw a (l -^ 1ul) | Prims.Tot | [
"total"
] | [] | [
"FStar.Vector.Base.len_t",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.UInt32.t",
"FStar.UInt32.__uint_to_t",
"FStar.Vector.Base.raw",
"FStar.Vector.Base.sub",
"FStar.UInt32.op_Subtraction_Hat"
] | [] | false | false | false | false | false | let tail (#a: Type) (#l: len_t{l <> 0ul}) (v: raw a l) : Tot (raw a U32.(l -^ 1ul)) =
| sub v 1ul l | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.store_state_st | val store_state_st : a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let store_state_st (a: Spec.alg) (m: m_spec) =
st32:state_p a M32 -> st:state_p a m ->
Stack unit
(requires (fun h -> live h st /\ live h st32 /\ disjoint st st32))
(ensures (fun h0 _ h1 -> modifies (loc st32) h0 h1 /\
state_v h1 st32 == state_v h0 st)) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 423,
"start_col": 0,
"start_line": 418
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.M32",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Hacl.Impl.Blake2.Core.element_t",
"Lib.Buffer.disjoint",
"Lib.Buffer... | [] | false | false | false | true | true | let store_state_st (a: Spec.alg) (m: m_spec) =
| st32: state_p a M32 -> st: state_p a m
-> Stack unit
(requires (fun h -> live h st /\ live h st32 /\ disjoint st st32))
(ensures (fun h0 _ h1 -> modifies (loc st32) h0 h1 /\ state_v h1 st32 == state_v h0 st)) | false | |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.load_state_st | val load_state_st : a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let load_state_st (a: Spec.alg) (m: m_spec) =
st:state_p a m -> st32:state_p a M32 ->
Stack unit
(requires (fun h -> live h st /\ live h st32 /\ disjoint st st32))
(ensures (fun h0 _ h1 -> modifies (loc st) h0 h1 /\
state_v h1 st == state_v h0 st32)) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 412,
"start_col": 0,
"start_line": 407
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.M32",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Hacl.Impl.Blake2.Core.element_t",
"Lib.Buffer.disjoint",
"Lib.Buffer... | [] | false | false | false | true | true | let load_state_st (a: Spec.alg) (m: m_spec) =
| st: state_p a m -> st32: state_p a M32
-> Stack unit
(requires (fun h -> live h st /\ live h st32 /\ disjoint st st32))
(ensures (fun h0 _ h1 -> modifies (loc st) h0 h1 /\ state_v h1 st == state_v h0 st32)) | false | |
FStar.Vector.Properties.fst | FStar.Vector.Properties.append_inj | val append_inj
(#a: Type)
(#l1 #l2 #m1 #m2: len_t)
(u1: raw a l1)
(u2: raw a l2 {ok ( + ) l1 l2})
(v1: raw a m1)
(v2: raw a m2 {ok ( + ) m1 m2})
: Lemma
(requires
(let open U32 in
m1 +^ m2 = l1 +^ l2 /\ equal (u1 @| u2) (coerce (v1 @| v2) (l1 +^ l2)) /\
... | val append_inj
(#a: Type)
(#l1 #l2 #m1 #m2: len_t)
(u1: raw a l1)
(u2: raw a l2 {ok ( + ) l1 l2})
(v1: raw a m1)
(v2: raw a m2 {ok ( + ) m1 m2})
: Lemma
(requires
(let open U32 in
m1 +^ m2 = l1 +^ l2 /\ equal (u1 @| u2) (coerce (v1 @| v2) (l1 +^ l2)) /\
... | let append_inj
(#a:Type)
(#l1:len_t)
(#l2:len_t)
(#m1:len_t)
(#m2:len_t)
(u1:raw a l1)
(u2:raw a l2{ok (+) l1 l2})
(v1:raw a m1)
(v2:raw a m2{ok (+) m1 m2})
: Lemma
(requires (let open U32 in
m1 +^ m2 = l1 +^ l2 /\
equal (u1@|u2) (coerce (v1@|v2) (... | {
"file_name": "ulib/FStar.Vector.Properties.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 78,
"end_line": 70,
"start_col": 0,
"start_line": 51
} | (*
Copyright 2008-2017 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 appl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Vector.Base.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Vector.Properties.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Vector.Base",
"short_module": null
},
{
"abbrev": false,
"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 |
u1: FStar.Vector.Base.raw a l1 ->
u2: FStar.Vector.Base.raw a l2 {FStar.Vector.Properties.ok Prims.op_Addition l1 l2} ->
v1: FStar.Vector.Base.raw a m1 ->
v2: FStar.Vector.Base.raw a m2 {FStar.Vector.Properties.ok Prims.op_Addition m1 m2}
-> FStar.Pervasives.Lemma
(requires
m1 +^ m2 = l... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Vector.Base.len_t",
"FStar.Vector.Base.raw",
"FStar.Vector.Properties.ok",
"Prims.op_Addition",
"FStar.Seq.Properties.lemma_append_inj",
"FStar.Vector.Base.reveal",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"FStar.UInt32.t",
"FStar.UInt32.op_Plus_Hat",
"FStar.Vect... | [] | true | false | true | false | false | let append_inj
(#a: Type)
(#l1 #l2 #m1 #m2: len_t)
(u1: raw a l1)
(u2: raw a l2 {ok ( + ) l1 l2})
(v1: raw a m1)
(v2: raw a m2 {ok ( + ) m1 m2})
: Lemma
(requires
(let open U32 in
m1 +^ m2 = l1 +^ l2 /\ equal (u1 @| u2) (coerce (v1 @| v2) (l1 +^ l2)) /\
... | FStar.Seq.lemma_append_inj (reveal u1) (reveal u2) (reveal v1) (reveal v2) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.term_eq | val term_eq : _: FStar.Stubs.Reflection.Types.term -> _: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac Prims.bool | let term_eq = FStar.Tactics.term_eq_old | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: FStar.Stubs.Reflection.Types.term -> _: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac Prims.bool | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Tactics.V1.Builtins.term_eq_old"
] | [] | false | true | false | false | false | let term_eq =
| FStar.Tactics.term_eq_old | false | |
FStar.Vector.Properties.fst | FStar.Vector.Properties.tail_append | val tail_append
(#a: Type)
(#l1 #l2: len_t)
(v1: raw a l1 {l1 <> 0ul})
(v2: raw a l2 {ok ( + ) l1 l2})
: Lemma (ensures (tail (v1 @| v2) == tail v1 @| v2)) | val tail_append
(#a: Type)
(#l1 #l2: len_t)
(v1: raw a l1 {l1 <> 0ul})
(v2: raw a l2 {ok ( + ) l1 l2})
: Lemma (ensures (tail (v1 @| v2) == tail v1 @| v2)) | let tail_append
(#a:Type)
(#l1:len_t)
(#l2:len_t)
(v1:raw a l1{l1 <> 0ul})
(v2:raw a l2{ok (+) l1 l2})
: Lemma
(ensures (tail (v1@|v2) == tail v1@|v2))
= Seq.lemma_tail_append (reveal v1) (reveal v2) | {
"file_name": "ulib/FStar.Vector.Properties.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 98,
"start_col": 0,
"start_line": 90
} | (*
Copyright 2008-2017 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 appl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Vector.Base.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Vector.Properties.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "FStar.Vector.Base",
"short_module": null
},
{
"abbrev": false,
"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 |
v1: FStar.Vector.Base.raw a l1 {l1 <> 0ul} ->
v2: FStar.Vector.Base.raw a l2 {FStar.Vector.Properties.ok Prims.op_Addition l1 l2}
-> FStar.Pervasives.Lemma
(ensures FStar.Vector.Properties.tail (v1 @| v2) == FStar.Vector.Properties.tail v1 @| v2) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Vector.Base.len_t",
"FStar.Vector.Base.raw",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.UInt32.t",
"FStar.UInt32.__uint_to_t",
"FStar.Vector.Properties.ok",
"Prims.op_Addition",
"FStar.Seq.Properties.lemma_tail_append",
"FStar.Vector.Base.reveal",
"Prims.unit",
"Prims.l_True",
"Prims... | [] | true | false | true | false | false | let tail_append
(#a: Type)
(#l1 #l2: len_t)
(v1: raw a l1 {l1 <> 0ul})
(v2: raw a l2 {ok ( + ) l1 l2})
: Lemma (ensures (tail (v1 @| v2) == tail v1 @| v2)) =
| Seq.lemma_tail_append (reveal v1) (reveal v2) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.const | val const (#a: Type) (xa: a) : amap a | val const (#a: Type) (xa: a) : amap a | let const (#a:Type) (xa:a) : amap a = ([], xa) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 61,
"start_col": 0,
"start_line": 61
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | xa: a -> FStar.Tactics.CanonCommMonoidSimple.amap a | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.Mktuple2",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"Prims.Nil",
"FStar.Tactics.CanonCommMonoidSimple.amap"
] | [] | false | false | false | true | false | let const (#a: Type) (xa: a) : amap a =
| ([], xa) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.amap | val amap : a: Type -> Type | let amap (a:Type) = list (atom * a) * a | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 60,
"start_col": 0,
"start_line": 60
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple2",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom"
] | [] | false | false | false | true | true | let amap (a: Type) =
| list (atom * a) * a | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.dump | val dump : m: Prims.string -> FStar.Tactics.Effect.Tac Prims.unit | let dump m = if debugging () then dump m | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 36,
"start_col": 0,
"start_line": 36
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Prims.string -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.string",
"FStar.Stubs.Tactics.V2.Builtins.dump",
"Prims.unit",
"Prims.bool",
"FStar.Stubs.Tactics.V2.Builtins.debugging"
] | [] | false | true | false | false | false | let dump m =
| if debugging () then dump m | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.update | val update (#a: Type) (x: atom) (xa: a) (am: amap a) : amap a | val update (#a: Type) (x: atom) (xa: a) (am: amap a) : amap a | let update (#a:Type) (x:atom) (xa:a) (am:amap a) : amap a =
(x, xa)::fst am, snd am | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 67,
"start_col": 0,
"start_line": 66
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x: FStar.Tactics.CanonCommMonoidSimple.atom ->
xa: a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a
-> FStar.Tactics.CanonCommMonoidSimple.amap a | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Pervasives.Native.Mktuple2",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.Cons",
"FStar.Pervasives.Native.fst",
"FStar.Pervasives.Native.snd"
] | [] | false | false | false | true | false | let update (#a: Type) (x: atom) (xa: a) (am: amap a) : amap a =
| (x, xa) :: fst am, snd am | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.select | val select (#a: Type) (x: atom) (am: amap a) : Tot a | val select (#a: Type) (x: atom) (am: amap a) : Tot a | let select (#a:Type) (x:atom) (am:amap a) : Tot a =
match assoc #atom #a x (fst am) with
| Some a -> a
| _ -> snd am | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 65,
"start_col": 0,
"start_line": 62
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.Tactics.CanonCommMonoidSimple.atom -> am: FStar.Tactics.CanonCommMonoidSimple.amap a -> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.List.Tot.Base.assoc",
"FStar.Pervasives.Native.fst",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.snd"
] | [] | false | false | false | true | false | let select (#a: Type) (x: atom) (am: amap a) : Tot a =
| match assoc #atom #a x (fst am) with
| Some a -> a
| _ -> snd am | false |
CQueue.fst | CQueue.intro_vpure | val intro_vpure (#opened: _) (p: prop)
: SteelGhost unit opened emp (fun _ -> vpure p) (fun _ -> p) (fun _ _ h' -> p) | val intro_vpure (#opened: _) (p: prop)
: SteelGhost unit opened emp (fun _ -> vpure p) (fun _ -> p) (fun _ _ h' -> p) | let intro_vpure
(#opened: _)
(p: prop)
: SteelGhost unit opened
emp
(fun _ -> vpure p)
(fun _ -> p)
(fun _ _ h' -> p)
=
change_slprop_rel
emp
(vpure p)
(fun _ _ -> p)
(fun m -> pure_interp p m) | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 120,
"start_col": 0,
"start_line": 107
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"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 | p: Prims.prop -> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Prims.prop",
"Steel.Effect.Atomic.change_slprop_rel",
"Steel.Effect.Common.emp",
"CQueue.vpure",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Steel.Memory.mem",
"Steel.Memory.pure_interp",
"Prims.unit",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.rme... | [] | false | true | false | false | false | let intro_vpure (#opened: _) (p: prop)
: SteelGhost unit opened emp (fun _ -> vpure p) (fun _ -> p) (fun _ _ h' -> p) =
| change_slprop_rel emp (vpure p) (fun _ _ -> p) (fun m -> pure_interp p m) | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.personal_len | val personal_len (a: Spec.alg) : size_t | val personal_len (a: Spec.alg) : size_t | let personal_len (a:Spec.alg) : size_t =
match a with
| Spec.Blake2S -> 8ul
| Spec.Blake2B -> 16ul | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 66,
"start_col": 0,
"start_line": 63
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> Lib.IntTypes.size_t | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t"
] | [] | false | false | false | true | false | let personal_len (a: Spec.alg) : size_t =
| match a with
| Spec.Blake2S -> 8ul
| Spec.Blake2B -> 16ul | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.permute | val permute : Type0 | let permute = list atom -> list atom | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 109,
"start_col": 0,
"start_line": 109
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom"
] | [] | false | false | false | true | true | let permute =
| list atom -> list atom | false | |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.blake2_params_v | val blake2_params_v (#a: Spec.alg) (h: mem) (p: blake2_params a) : GTot (Spec.blake2_params a) | val blake2_params_v (#a: Spec.alg) (h: mem) (p: blake2_params a) : GTot (Spec.blake2_params a) | let blake2_params_v (#a:Spec.alg) (h: mem) (p: blake2_params a) : GTot (Spec.blake2_params a) =
match a with
| Spec.Blake2S -> blake2s_params_v h p
| Spec.Blake2B -> blake2b_params_v h p | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 212,
"start_col": 0,
"start_line": 209
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Blake2.Core.blake2_params a
-> Prims.GTot (Spec.Blake2.Definitions.blake2_params a) | Prims.GTot | [
"sometrivial"
] | [] | [
"Spec.Blake2.Definitions.alg",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.blake2_params",
"Hacl.Impl.Blake2.Core.blake2s_params_v",
"Hacl.Impl.Blake2.Core.blake2b_params_v",
"Spec.Blake2.Definitions.blake2_params"
] | [] | false | false | false | false | false | let blake2_params_v (#a: Spec.alg) (h: mem) (p: blake2_params a) : GTot (Spec.blake2_params a) =
| match a with
| Spec.Blake2S -> blake2s_params_v h p
| Spec.Blake2B -> blake2b_params_v h p | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.get_personal | val get_personal (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (personal_len a) | val get_personal (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (personal_len a) | let get_personal (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (personal_len a) =
match a with
| Spec.Blake2S -> get_blake2s_personal p
| Spec.Blake2B -> p.personal | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 194,
"start_col": 0,
"start_line": 191
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Hacl.Impl.Blake2.Core.blake2_params a
-> Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Blake2.Core.personal_len a) | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.blake2_params",
"Hacl.Impl.Blake2.Core.get_blake2s_personal",
"Hacl.Impl.Blake2.Core.__proj__Mkblake2b_params__item__personal",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Hacl.Impl.Blake2.Core.personal_len"
] | [] | false | false | false | false | false | let get_personal (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (personal_len a) =
| match a with
| Spec.Blake2S -> get_blake2s_personal p
| Spec.Blake2B -> p.personal | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.salt_len | val salt_len (a: Spec.alg) : size_t | val salt_len (a: Spec.alg) : size_t | let salt_len (a:Spec.alg) : size_t =
match a with
| Spec.Blake2S -> 8ul
| Spec.Blake2B -> 16ul | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 60,
"start_col": 0,
"start_line": 57
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> Lib.IntTypes.size_t | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t"
] | [] | false | false | false | true | false | let salt_len (a: Spec.alg) : size_t =
| match a with
| Spec.Blake2S -> 8ul
| Spec.Blake2B -> 16ul | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.blake2_params | val blake2_params : a: Spec.Blake2.Definitions.alg -> Type0 | let blake2_params (a:Spec.alg) =
match a with
| Spec.Blake2S -> blake2s_params
| Spec.Blake2B -> blake2b_params | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 164,
"start_col": 0,
"start_line": 161
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.blake2s_params",
"Hacl.Impl.Blake2.Core.blake2b_params"
] | [] | false | false | false | true | true | let blake2_params (a: Spec.alg) =
| match a with
| Spec.Blake2S -> blake2s_params
| Spec.Blake2B -> blake2b_params | false | |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.element_t | val element_t : a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let element_t (a:Spec.alg) (m:m_spec) =
match a,m with
| Spec.Blake2S,M128 -> (vec_t U32 4)
| Spec.Blake2S,M256 -> (vec_t U32 4)
| Spec.Blake2B,M256 -> (vec_t U64 4)
| _ -> (word_t a) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 30,
"start_col": 0,
"start_line": 25
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntVector.vec_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.U64",
"FStar.Pervasives.Native.tuple2",
"Hacl.Impl.Blake2.Core.word_t"
] | [] | false | false | false | true | true | let element_t (a: Spec.alg) (m: m_spec) =
| match a, m with
| Spec.Blake2S, M128 -> (vec_t U32 4)
| Spec.Blake2S, M256 -> (vec_t U32 4)
| Spec.Blake2B, M256 -> (vec_t U64 4)
| _ -> (word_t a) | false | |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.set_digest_length | val set_digest_length
(#a: Spec.alg)
(p: blake2_params a)
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output a})
: blake2_params a | val set_digest_length
(#a: Spec.alg)
(p: blake2_params a)
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output a})
: blake2_params a | let set_digest_length (#a: Spec.alg)
(p: blake2_params a)
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output a})
: blake2_params a =
match a with
| Spec.Blake2S -> set_blake2s_digest_length p nn
| Spec.Blake2B -> {p with digest_length = to_u8 nn} | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 173,
"start_col": 0,
"start_line": 167
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: Hacl.Impl.Blake2.Core.blake2_params a ->
nn:
Lib.IntTypes.size_t
{1 <= Lib.IntTypes.v nn /\ Lib.IntTypes.v nn <= Spec.Blake2.Definitions.max_output a}
-> Hacl.Impl.Blake2.Core.blake2_params a | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.blake2_params",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Spec.Blake2.Definitions.max_output",
"Hacl.Impl.Blake2.Core.set_blake2s_digest_length",
... | [] | false | false | false | false | false | let set_digest_length
(#a: Spec.alg)
(p: blake2_params a)
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output a})
: blake2_params a =
| match a with
| Spec.Blake2S -> set_blake2s_digest_length p nn
| Spec.Blake2B -> { p with digest_length = to_u8 nn } | false |
CQueue.fst | CQueue.elim_vrewrite_no_norm | val elim_vrewrite_no_norm (#opened: inames) (v: vprop) (#t: Type) (f: ((t_of v) -> GTot t))
: SteelGhost unit
opened
(vrewrite v f)
(fun _ -> v)
(fun _ -> True)
(fun h _ h' -> h (vrewrite v f) == f (h' v)) | val elim_vrewrite_no_norm (#opened: inames) (v: vprop) (#t: Type) (f: ((t_of v) -> GTot t))
: SteelGhost unit
opened
(vrewrite v f)
(fun _ -> v)
(fun _ -> True)
(fun h _ h' -> h (vrewrite v f) == f (h' v)) | let elim_vrewrite_no_norm (#opened:inames)
(v: vprop)
(#t: Type)
(f: ((t_of v) -> GTot t))
: SteelGhost unit opened (vrewrite v f) (fun _ -> v)
(fun _ -> True)
(fun h _ h' -> h (vrewrite v f) == f (h' v))
=
elim_vrewrite v f | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 30,
"start_col": 0,
"start_line": 22
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"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 | v: Steel.Effect.Common.vprop -> f: (_: Steel.Effect.Common.t_of v -> Prims.GTot t)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.t_of",
"Steel.Effect.Atomic.elim_vrewrite",
"Prims.unit",
"Steel.Effect.Common.vrewrite",
"Steel.Effect.Common.rmem",
"Prims.l_True",
"Prims.eq2"
] | [] | false | true | false | false | false | let elim_vrewrite_no_norm (#opened: inames) (v: vprop) (#t: Type) (f: ((t_of v) -> GTot t))
: SteelGhost unit
opened
(vrewrite v f)
(fun _ -> v)
(fun _ -> True)
(fun h _ h' -> h (vrewrite v f) == f (h' v)) =
| elim_vrewrite v f | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.blake2_params_loc | val blake2_params_loc : p: Hacl.Impl.Blake2.Core.blake2_params a -> Prims.GTot LowStar.Monotonic.Buffer.loc | let blake2_params_loc (#a:Spec.alg) (p: blake2_params a) =
match a with
| Spec.Blake2S -> blake2s_params_loc p
| Spec.Blake2B -> blake2b_params_loc p | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 206,
"start_col": 0,
"start_line": 203
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Hacl.Impl.Blake2.Core.blake2_params a -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.blake2_params",
"Hacl.Impl.Blake2.Core.blake2s_params_loc",
"Hacl.Impl.Blake2.Core.blake2b_params_loc",
"LowStar.Monotonic.Buffer.loc"
] | [] | false | false | false | false | false | let blake2_params_loc (#a: Spec.alg) (p: blake2_params a) =
| match a with
| Spec.Blake2S -> blake2s_params_loc p
| Spec.Blake2B -> blake2b_params_loc p | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.permute_via_swaps | val permute_via_swaps : p: FStar.Tactics.CanonCommMonoidSimple.permute -> Type | let permute_via_swaps (p:permute) =
(#a:Type) -> (am:amap a) -> xs:list atom ->
Lemma (exists ss. p xs == apply_swaps xs ss) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 157,
"start_col": 0,
"start_line": 155
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.Tactics.CanonCommMonoidSimple.permute -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.permute",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_Exists",
"FStar.Tactics.CanonCommSwaps.swap",
"FStar.List.Tot.Base.length",
"Prims.eq2",
"... | [] | false | false | false | true | true | let permute_via_swaps (p: permute) =
| #a: Type -> am: amap a -> xs: list atom -> Lemma (exists ss. p xs == apply_swaps xs ss) | false | |
CQueue.fst | CQueue.elim_vpure | val elim_vpure (#opened: _) (p: prop)
: SteelGhost unit opened (vpure p) (fun _ -> emp) (fun _ -> True) (fun _ _ _ -> p) | val elim_vpure (#opened: _) (p: prop)
: SteelGhost unit opened (vpure p) (fun _ -> emp) (fun _ -> True) (fun _ _ _ -> p) | let elim_vpure
(#opened: _)
(p: prop)
: SteelGhost unit opened
(vpure p)
(fun _ -> emp)
(fun _ -> True)
(fun _ _ _ -> p)
=
change_slprop_rel
(vpure p)
emp
(fun _ _ -> p)
(fun m -> pure_interp p m; reveal_emp (); intro_emp m) | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 58,
"end_line": 135,
"start_col": 0,
"start_line": 122
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"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 | p: Prims.prop -> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Prims.prop",
"Steel.Effect.Atomic.change_slprop_rel",
"CQueue.vpure",
"Steel.Effect.Common.emp",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Steel.Memory.mem",
"Steel.Memory.intro_emp",
"Prims.unit",
"Steel.Effect.Common.reveal_emp",
"Steel.Memory.pure_in... | [] | false | true | false | false | false | let elim_vpure (#opened: _) (p: prop)
: SteelGhost unit opened (vpure p) (fun _ -> emp) (fun _ -> True) (fun _ _ _ -> p) =
| change_slprop_rel (vpure p)
emp
(fun _ _ -> p)
(fun m ->
pure_interp p m;
reveal_emp ();
intro_emp m) | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.get_salt | val get_salt (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (salt_len a) | val get_salt (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (salt_len a) | let get_salt (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (salt_len a) =
match a with
| Spec.Blake2S -> get_blake2s_salt p
| Spec.Blake2B -> p.salt | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 188,
"start_col": 0,
"start_line": 185
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Hacl.Impl.Blake2.Core.blake2_params a
-> Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Blake2.Core.salt_len a) | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.blake2_params",
"Hacl.Impl.Blake2.Core.get_blake2s_salt",
"Hacl.Impl.Blake2.Core.__proj__Mkblake2b_params__item__salt",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Hacl.Impl.Blake2.Core.salt_len"
] | [] | false | false | false | false | false | let get_salt (#a: Spec.alg) (p: blake2_params a) : lbuffer uint8 (salt_len a) =
| match a with
| Spec.Blake2S -> get_blake2s_salt p
| Spec.Blake2B -> p.salt | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.permute_correct | val permute_correct : p: FStar.Tactics.CanonCommMonoidSimple.permute -> Type | let permute_correct (p:permute) =
#a:Type -> m:cm a -> am:amap a -> xs:list atom ->
Lemma (xsdenote m am xs == xsdenote m am (p xs)) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 114,
"start_col": 0,
"start_line": 112
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.Tactics.CanonCommMonoidSimple.permute -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.permute",
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Tactics.CanonCommMonoidSimple.xsdenote",
"Prims.Ni... | [] | false | false | false | true | true | let permute_correct (p: permute) =
| #a: Type -> m: cm a -> am: amap a -> xs: list atom
-> Lemma (xsdenote m am xs == xsdenote m am (p xs)) | false | |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.state_p | val state_p : a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let state_p (a:Spec.alg) (m:m_spec) =
lbuffer (element_t a m) (4ul *. row_len a m) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 231,
"start_col": 7,
"start_line": 230
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Lib.Buffer.lbuffer",
"Hacl.Impl.Blake2.Core.element_t",
"Lib.IntTypes.op_Star_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Blake2.Core.row_len"
] | [] | false | false | false | true | true | let state_p (a: Spec.alg) (m: m_spec) =
| lbuffer (element_t a m) (4ul *. row_len a m) | false | |
CQueue.fst | CQueue.intro_vrewrite_no_norm | val intro_vrewrite_no_norm (#opened: inames) (v: vprop) (#t: Type) (f: ((t_of v) -> GTot t))
: SteelGhost unit
opened
v
(fun _ -> vrewrite v f)
(fun _ -> True)
(fun h _ h' -> h' (vrewrite v f) == f (h v)) | val intro_vrewrite_no_norm (#opened: inames) (v: vprop) (#t: Type) (f: ((t_of v) -> GTot t))
: SteelGhost unit
opened
v
(fun _ -> vrewrite v f)
(fun _ -> True)
(fun h _ h' -> h' (vrewrite v f) == f (h v)) | let intro_vrewrite_no_norm (#opened:inames)
(v: vprop) (#t: Type) (f: (t_of v) -> GTot t)
: SteelGhost unit opened v (fun _ -> vrewrite v f)
(fun _ -> True) (fun h _ h' -> h' (vrewrite v f) == f (h v))
=
intro_vrewrite v f | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 20,
"end_line": 20,
"start_col": 0,
"start_line": 15
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"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 | v: Steel.Effect.Common.vprop -> f: (_: Steel.Effect.Common.t_of v -> Prims.GTot t)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.t_of",
"Steel.Effect.Atomic.intro_vrewrite",
"Prims.unit",
"Steel.Effect.Common.vrewrite",
"Steel.Effect.Common.rmem",
"Prims.l_True",
"Prims.eq2"
] | [] | false | true | false | false | false | let intro_vrewrite_no_norm (#opened: inames) (v: vprop) (#t: Type) (f: ((t_of v) -> GTot t))
: SteelGhost unit
opened
v
(fun _ -> vrewrite v f)
(fun _ -> True)
(fun h _ h' -> h' (vrewrite v f) == f (h v)) =
| intro_vrewrite v f | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.set_key_length | val set_key_length (#a: Spec.alg) (p: blake2_params a) (kk: size_t{v kk <= Spec.max_key a})
: blake2_params a | val set_key_length (#a: Spec.alg) (p: blake2_params a) (kk: size_t{v kk <= Spec.max_key a})
: blake2_params a | let set_key_length (#a: Spec.alg)
(p: blake2_params a)
(kk: size_t{v kk <= Spec.max_key a})
: blake2_params a =
match a with
| Spec.Blake2S -> set_blake2s_key_length p kk
| Spec.Blake2B -> {p with key_length = to_u8 kk} | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 182,
"start_col": 0,
"start_line": 176
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: Hacl.Impl.Blake2.Core.blake2_params a ->
kk: Lib.IntTypes.size_t{Lib.IntTypes.v kk <= Spec.Blake2.Definitions.max_key a}
-> Hacl.Impl.Blake2.Core.blake2_params a | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.blake2_params",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Spec.Blake2.Definitions.max_key",
"Hacl.Impl.Blake2.Core.set_blake2s_key_length",
"Hacl.Impl.Blake2.Cor... | [] | false | false | false | false | false | let set_key_length (#a: Spec.alg) (p: blake2_params a) (kk: size_t{v kk <= Spec.max_key a})
: blake2_params a =
| match a with
| Spec.Blake2S -> set_blake2s_key_length p kk
| Spec.Blake2B -> { p with key_length = to_u8 kk } | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.atom | val atom:eqtype | val atom:eqtype | let atom : eqtype = nat | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 40,
"start_col": 0,
"start_line": 40
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"Prims.nat"
] | [] | false | false | false | true | false | let atom:eqtype =
| nat | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.sort | val sort:permute | val sort:permute | let sort : permute = List.Tot.Base.sortWith #nat (compare_of_bool (<)) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 70,
"end_line": 177,
"start_col": 0,
"start_line": 177
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Tactics.CanonCommMonoidSimple.permute | Prims.Tot | [
"total"
] | [] | [
"FStar.List.Tot.Base.sortWith",
"Prims.nat",
"FStar.List.Tot.Base.compare_of_bool",
"Prims.int",
"Prims.op_LessThan"
] | [] | false | false | false | true | false | let sort:permute =
| List.Tot.Base.sortWith #nat (compare_of_bool ( < )) | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.size_row | val size_row : al: Spec.Blake2.Definitions.alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB | let size_row al = 4ul *. size (Spec.size_word al) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 49,
"end_line": 350,
"start_col": 0,
"start_line": 350
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 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 | al: Spec.Blake2.Definitions.alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.IntTypes.op_Star_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size",
"Spec.Blake2.Definitions.size_word",
"Lib.IntTypes.int_t"
] | [] | false | false | false | true | false | let size_row al =
| 4ul *. size (Spec.size_word al) | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.sort_correct | val sort_correct:permute_correct sort | val sort_correct:permute_correct sort | let sort_correct : permute_correct sort = (fun #a -> sort_correct_aux #a) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 73,
"end_line": 190,
"start_col": 0,
"start_line": 190
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Tactics.CanonCommMonoidSimple.permute_correct FStar.Tactics.CanonCommMonoidSimple.sort | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.sort_correct_aux",
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Tactics.CanonCommMonoidSimple.xsdenote",
... | [] | false | false | false | true | false | let sort_correct:permute_correct sort =
| (fun #a -> sort_correct_aux #a) | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.blake2_params_inv | val blake2_params_inv : h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Blake2.Core.blake2_params a -> Prims.prop | let blake2_params_inv (#a:Spec.alg) (h: mem) (p: blake2_params a) =
match a with
| Spec.Blake2S -> blake2s_params_inv h p
| Spec.Blake2B -> blake2b_params_inv h p | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 200,
"start_col": 0,
"start_line": 197
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Impl.Blake2.Core.blake2_params a -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.blake2_params",
"Hacl.Impl.Blake2.Core.blake2s_params_inv",
"Hacl.Impl.Blake2.Core.blake2b_params_inv",
"Prims.prop"
] | [] | false | false | false | false | true | let blake2_params_inv (#a: Spec.alg) (h: mem) (p: blake2_params a) =
| match a with
| Spec.Blake2S -> blake2s_params_inv h p
| Spec.Blake2B -> blake2b_params_inv h p | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.canon | val canon : e: FStar.Tactics.CanonCommMonoidSimple.exp -> Prims.list FStar.Tactics.CanonCommMonoidSimple.atom | let canon (e:exp) = sort (flatten e) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 195,
"start_col": 0,
"start_line": 195
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: FStar.Tactics.CanonCommMonoidSimple.exp -> Prims.list FStar.Tactics.CanonCommMonoidSimple.atom | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.exp",
"FStar.Tactics.CanonCommMonoidSimple.sort",
"FStar.Tactics.CanonCommMonoidSimple.flatten",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom"
] | [] | false | false | false | true | false | let canon (e: exp) =
| sort (flatten e) | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.sort_correct_aux | val sort_correct_aux (#a: Type) (m: cm a) (am: amap a) (xs: list atom)
: Lemma (xsdenote m am xs == xsdenote m am (sort xs)) | val sort_correct_aux (#a: Type) (m: cm a) (am: amap a) (xs: list atom)
: Lemma (xsdenote m am xs == xsdenote m am (sort xs)) | let sort_correct_aux (#a:Type) (m:cm a) (am:amap a) (xs:list atom) :
Lemma (xsdenote m am xs == xsdenote m am (sort xs)) =
permute_via_swaps_correct sort (fun #a am -> sort_via_swaps am) m am xs | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 73,
"end_line": 188,
"start_col": 0,
"start_line": 186
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonCommMonoidSimple.xsdenote m am xs ==
FStar.Tactics.CanonCommMonoidSimple.xsdenote m
a... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommMonoidSimple.permute_via_swaps_correct",
"FStar.Tactics.CanonCommMonoidSimple.sort",
"FStar.Tactics.CanonCommMonoidSimple.sort_via_swaps",
"Prims... | [] | false | false | true | false | false | let sort_correct_aux (#a: Type) (m: cm a) (am: amap a) (xs: list atom)
: Lemma (xsdenote m am xs == xsdenote m am (sort xs)) =
| permute_via_swaps_correct sort (fun #a am -> sort_via_swaps am) m am xs | false |
CQueue.fst | CQueue.elim_vconst | val elim_vconst (#opened: _) (#a: Type) (x: a)
: SteelGhost unit
opened
(vconst x)
(fun _ -> emp)
(fun _ -> True)
(fun h _ _ -> h (vconst x) == x) | val elim_vconst (#opened: _) (#a: Type) (x: a)
: SteelGhost unit
opened
(vconst x)
(fun _ -> emp)
(fun _ -> True)
(fun h _ _ -> h (vconst x) == x) | let elim_vconst
(#opened: _)
(#a: Type)
(x: a)
: SteelGhost unit opened
(vconst x)
(fun _ -> emp)
(fun _ -> True)
(fun h _ _ -> h (vconst x) == x)
=
change_slprop_rel
(vconst x)
emp
(fun y _ -> y == x)
(fun _ -> ()) | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 82,
"start_col": 0,
"start_line": 68
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Atomic.change_slprop_rel",
"CQueue.vconst",
"Steel.Effect.Common.emp",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Prims.eq2",
"Prims.prop",
"Steel.Memory.mem",
"Prims.unit",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.rmem",
"Prims.l... | [] | false | true | false | false | false | let elim_vconst (#opened: _) (#a: Type) (x: a)
: SteelGhost unit
opened
(vconst x)
(fun _ -> emp)
(fun _ -> True)
(fun h _ _ -> h (vconst x) == x) =
| change_slprop_rel (vconst x) emp (fun y _ -> y == x) (fun _ -> ()) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.exp_to_string | val exp_to_string (e: exp) : string | val exp_to_string (e: exp) : string | let rec exp_to_string (e:exp) : string =
match e with
| Unit -> "Unit"
| Atom x -> "Atom " ^ string_of_int (x <: atom)
| Mult e1 e2 -> "Mult (" ^ exp_to_string e1
^ ") (" ^ exp_to_string e2 ^ ")" | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 52,
"start_col": 0,
"start_line": 47
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: FStar.Tactics.CanonCommMonoidSimple.exp -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.exp",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"Prims.op_Hat",
"Prims.string_of_int",
"FStar.Tactics.CanonCommMonoidSimple.exp_to_string",
"Prims.string"
] | [
"recursion"
] | false | false | false | true | false | let rec exp_to_string (e: exp) : string =
| match e with
| Unit -> "Unit"
| Atom x -> "Atom " ^ string_of_int (x <: atom)
| Mult e1 e2 -> "Mult (" ^ exp_to_string e1 ^ ") (" ^ exp_to_string e2 ^ ")" | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.flatten_correct | val flatten_correct (#a: Type) (m: cm a) (am: amap a) (e: exp)
: Lemma (mdenote m am e == xsdenote m am (flatten e)) | val flatten_correct (#a: Type) (m: cm a) (am: amap a) (e: exp)
: Lemma (mdenote m am e == xsdenote m am (flatten e)) | let rec flatten_correct (#a:Type) (m:cm a) (am:amap a) (e:exp) :
Lemma (mdenote m am e == xsdenote m am (flatten e)) =
match e with
| Unit | Atom _ -> ()
| Mult e1 e2 -> flatten_correct_aux m am (flatten e1) (flatten e2);
flatten_correct m am e1; flatten_correct m am e2 | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 104,
"start_col": 0,
"start_line": 99
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
e: FStar.Tactics.CanonCommMonoidSimple.exp
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonCommMonoidSimple.mdenote m am e ==
FStar.Tactics.CanonCommMonoidSimple.xsdenote m
am
(FSta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Tactics.CanonCommMonoidSimple.exp",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommMonoidSimple.flatten_correct",
"Prims.unit",
"FStar.Tactics.CanonCommMonoidSimple.flatten_correct_aux",
"FStar.Tacti... | [
"recursion"
] | false | false | true | false | false | let rec flatten_correct (#a: Type) (m: cm a) (am: amap a) (e: exp)
: Lemma (mdenote m am e == xsdenote m am (flatten e)) =
| match e with
| Unit | Atom _ -> ()
| Mult e1 e2 ->
flatten_correct_aux m am (flatten e1) (flatten e2);
flatten_correct m am e1;
flatten_correct m am e2 | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.reification | val reification (#a: Type) (m: cm a) (ts: list term) (am: amap a) (t: term)
: Tac (exp * list term * amap a) | val reification (#a: Type) (m: cm a) (ts: list term) (am: amap a) (t: term)
: Tac (exp * list term * amap a) | let reification (#a:Type) (m:cm a) (ts:list term) (am:amap a) (t:term) :
Tac (exp * list term * amap a) =
let mult = norm_term [delta;zeta;iota] (quote (CM?.mult m)) in
let unit = norm_term [delta;zeta;iota] (quote (CM?.unit m)) in
let t = norm_term [delta;zeta;iota] t in
reification_aux ts am mult unit ... | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 247,
"start_col": 0,
"start_line": 242
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
ts: Prims.list FStar.Tactics.NamedView.term ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
t: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac
((FStar.Tactics.CanonCommMonoidSimple.exp * Prims.list FStar.Tactics.NamedView.term) *
FStar.Tacti... | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Algebra.CommMonoid.cm",
"Prims.list",
"FStar.Tactics.NamedView.term",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Tactics.CanonCommMonoidSimple.reification_aux",
"FStar.Pervasives.Native.tuple3",
"FStar.Tactics.CanonCommMonoidSimple.exp",
"FStar.Tactics.V2.Derived.norm_term",
"Prims.Co... | [] | false | true | false | false | false | let reification (#a: Type) (m: cm a) (ts: list term) (am: amap a) (t: term)
: Tac (exp * list term * amap a) =
| let mult = norm_term [delta; zeta; iota] (quote (CM?.mult m)) in
let unit = norm_term [delta; zeta; iota] (quote (CM?.unit m)) in
let t = norm_term [delta; zeta; iota] t in
reification_aux ts am mult unit t | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.flatten_correct_aux | val flatten_correct_aux (#a: Type) (m: cm a) (am: amap a) (xs1 xs2: list atom)
: Lemma (xsdenote m am (xs1 @ xs2) == CM?.mult m (xsdenote m am xs1) (xsdenote m am xs2)) | val flatten_correct_aux (#a: Type) (m: cm a) (am: amap a) (xs1 xs2: list atom)
: Lemma (xsdenote m am (xs1 @ xs2) == CM?.mult m (xsdenote m am xs1) (xsdenote m am xs2)) | let rec flatten_correct_aux (#a:Type) (m:cm a) (am:amap a) (xs1 xs2:list atom) :
Lemma (xsdenote m am (xs1 @ xs2) == CM?.mult m (xsdenote m am xs1)
(xsdenote m am xs2)) =
match xs1 with
| [] -> CM?.identity m (xsdenote m am xs2)
| [x] -> if (Nil? xs2) then ri... | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 97,
"start_col": 0,
"start_line": 89
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
xs1: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom ->
xs2: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonCommMonoidSimple.xsdenote m am (xs... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Algebra.CommMonoid.__proj__CM__item__identity",
"FStar.Tactics.CanonCommMonoidSimple.xsdenote",
"Prims.uu___is_Nil",
"FStar.Algebra.CommMonoid.right_identity",
... | [
"recursion"
] | false | false | true | false | false | let rec flatten_correct_aux (#a: Type) (m: cm a) (am: amap a) (xs1 xs2: list atom)
: Lemma (xsdenote m am (xs1 @ xs2) == CM?.mult m (xsdenote m am xs1) (xsdenote m am xs2)) =
| match xs1 with
| [] -> CM?.identity m (xsdenote m am xs2)
| [x] -> if (Nil? xs2) then right_identity m (select x am)
| x :: xs1' ->
(CM?.associativity m (select x am) (xsdenote m am xs1') (xsdenote m am xs2);
flatten_correct_aux m am xs1' xs2) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.where | val where : x: FStar.Tactics.NamedView.term -> xs: Prims.list FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option Prims.nat) | let where = where_aux 0 | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 218,
"start_col": 0,
"start_line": 218
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.Tactics.NamedView.term -> xs: Prims.list FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option Prims.nat) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.where_aux"
] | [] | false | true | false | false | false | let where =
| where_aux 0 | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.mdenote | val mdenote (#a: Type) (m: cm a) (am: amap a) (e: exp) : a | val mdenote (#a: Type) (m: cm a) (am: amap a) (e: exp) : a | let rec mdenote (#a:Type) (m:cm a) (am:amap a) (e:exp) : a =
match e with
| Unit -> CM?.unit m
| Atom x -> select x am
| Mult e1 e2 -> CM?.mult m (mdenote m am e1) (mdenote m am e2) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 64,
"end_line": 73,
"start_col": 0,
"start_line": 69
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
e: FStar.Tactics.CanonCommMonoidSimple.exp
-> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Tactics.CanonCommMonoidSimple.exp",
"FStar.Algebra.CommMonoid.__proj__CM__item__unit",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommMonoidSimple.select",
"FStar.Algebra.CommMonoid.__proj__CM__item__m... | [
"recursion"
] | false | false | false | true | false | let rec mdenote (#a: Type) (m: cm a) (am: amap a) (e: exp) : a =
| match e with
| Unit -> CM?.unit m
| Atom x -> select x am
| Mult e1 e2 -> CM?.mult m (mdenote m am e1) (mdenote m am e2) | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.size_block | val size_block (a: Spec.alg) : x: size_t{v x = 16 * Spec.size_word a} | val size_block (a: Spec.alg) : x: size_t{v x = 16 * Spec.size_word a} | let size_block (a:Spec.alg) : x:size_t{v x = 16 * Spec.size_word a} =
Spec.alg_inversion_lemma a;
match a with
| Spec.Blake2.Blake2S -> 64ul
| Spec.Blake2.Blake2B -> 128ul | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 371,
"start_col": 0,
"start_line": 367
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg
-> x: Lib.IntTypes.size_t{Lib.IntTypes.v x = 16 * Spec.Blake2.Definitions.size_word a} | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.Mul.op_Star",
"Spec.Blake2.Definitions.size_word",
"Prims.unit",
"Spec.Blake2.Definitions.alg_inve... | [] | false | false | false | false | false | let size_block (a: Spec.alg) : x: size_t{v x = 16 * Spec.size_word a} =
| Spec.alg_inversion_lemma a;
match a with
| Spec.Blake2.Blake2S -> 64ul
| Spec.Blake2.Blake2B -> 128ul | false |
Hacl.Impl.Blake2.Core.fsti | Hacl.Impl.Blake2.Core.g_rowi | val g_rowi (#a: Spec.alg) (#m: m_spec) (st: state_p a m) (idx: index_t) : GTot (row_p a m) | val g_rowi (#a: Spec.alg) (#m: m_spec) (st: state_p a m) (idx: index_t) : GTot (row_p a m) | let g_rowi (#a:Spec.alg) (#m:m_spec) (st:state_p a m) (idx:index_t) : GTot (row_p a m) =
gsub st (idx *. row_len a m) (row_len a m) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 44,
"end_line": 238,
"start_col": 0,
"start_line": 237
} | module Hacl.Impl.Blake2.Core
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 = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
type m_spec =
| M32
| M128
| M256
noextract ... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt3... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 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 | st: Hacl.Impl.Blake2.Core.state_p a m -> idx: Hacl.Impl.Blake2.Core.index_t
-> Prims.GTot (Hacl.Impl.Blake2.Core.row_p a m) | Prims.GTot | [
"sometrivial"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.index_t",
"Lib.Buffer.gsub",
"Lib.Buffer.MUT",
"Hacl.Impl.Blake2.Core.element_t",
"Lib.IntTypes.op_Star_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.UInt32.__uint_to_t",... | [] | false | false | false | false | false | let g_rowi (#a: Spec.alg) (#m: m_spec) (st: state_p a m) (idx: index_t) : GTot (row_p a m) =
| gsub st (idx *. row_len a m) (row_len a m) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.flatten | val flatten (e: exp) : list atom | val flatten (e: exp) : list atom | let rec flatten (e:exp) : list atom =
match e with
| Unit -> []
| Atom x -> [x]
| Mult e1 e2 -> flatten e1 @ flatten e2 | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 87,
"start_col": 0,
"start_line": 83
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: FStar.Tactics.CanonCommMonoidSimple.exp -> Prims.list FStar.Tactics.CanonCommMonoidSimple.atom | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.exp",
"Prims.Nil",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"Prims.Cons",
"FStar.List.Tot.Base.op_At",
"FStar.Tactics.CanonCommMonoidSimple.flatten",
"Prims.list"
] | [
"recursion"
] | false | false | false | true | false | let rec flatten (e: exp) : list atom =
| match e with
| Unit -> []
| Atom x -> [x]
| Mult e1 e2 -> flatten e1 @ flatten e2 | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.xsdenote | val xsdenote (#a: Type) (m: cm a) (am: amap a) (xs: list atom) : a | val xsdenote (#a: Type) (m: cm a) (am: amap a) (xs: list atom) : a | let rec xsdenote (#a:Type) (m:cm a) (am:amap a) (xs:list atom) : a =
match xs with
| [] -> CM?.unit m
| [x] -> select x am
| x::xs' -> CM?.mult m (select x am) (xsdenote m am xs') | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 79,
"start_col": 0,
"start_line": 75
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom
-> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Algebra.CommMonoid.__proj__CM__item__unit",
"FStar.Tactics.CanonCommMonoidSimple.select",
"FStar.Algebra.CommMonoid.__proj__CM__item__mult",
"FStar.Tactics.CanonC... | [
"recursion"
] | false | false | false | true | false | let rec xsdenote (#a: Type) (m: cm a) (am: amap a) (xs: list atom) : a =
| match xs with
| [] -> CM?.unit m
| [x] -> select x am
| x :: xs' -> CM?.mult m (select x am) (xsdenote m am xs') | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.canon_monoid | val canon_monoid (#a: Type) (m: cm a) : Tac unit | val canon_monoid (#a: Type) (m: cm a) : Tac unit | let canon_monoid (#a:Type) (m:cm a) : Tac unit =
norm [];
match term_as_formula (cur_goal ()) with
| Comp (Eq (Some t)) t1 t2 ->
// dump ("t1 =" ^ term_to_string t1 ^
// "; t2 =" ^ term_to_string t2);
if term_eq t (quote a) then
let (r1, ts, am) = reification m [] (const (CM?.unit m)... | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 274,
"start_col": 0,
"start_line": 249
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: FStar.Algebra.CommMonoid.cm a -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Tactics.NamedView.term",
"FStar.Tactics.CanonCommMonoidSimple.exp",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Stubs.Tactics.V2.Builtins.norm",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasi... | [] | false | true | false | false | false | let canon_monoid (#a: Type) (m: cm a) : Tac unit =
| norm [];
match term_as_formula (cur_goal ()) with
| Comp (Eq (Some t)) t1 t2 ->
if term_eq t (quote a)
then
let r1, ts, am = reification m [] (const (CM?.unit m)) t1 in
let r2, _, am = reification m ts am t2 in
dump ("am =" ^ term_to_string (quote am));
change_sq (quote (mdenote m am r1 == mdenote m... | false |
CQueue.fst | CQueue.intro_vconst | val intro_vconst (#opened: _) (#a: Type) (x: a)
: SteelGhost unit
opened
emp
(fun _ -> vconst x)
(fun _ -> True)
(fun _ _ h' -> h' (vconst x) == x) | val intro_vconst (#opened: _) (#a: Type) (x: a)
: SteelGhost unit
opened
emp
(fun _ -> vconst x)
(fun _ -> True)
(fun _ _ h' -> h' (vconst x) == x) | let intro_vconst
(#opened: _)
(#a: Type)
(x: a)
: SteelGhost unit opened
emp
(fun _ -> vconst x)
(fun _ -> True)
(fun _ _ h' -> h' (vconst x) == x)
=
change_slprop_rel
emp
(vconst x)
(fun _ y -> y == x)
(fun _ -> ()) | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 66,
"start_col": 0,
"start_line": 52
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Atomic.change_slprop_rel",
"Steel.Effect.Common.emp",
"CQueue.vconst",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Prims.eq2",
"Prims.prop",
"Steel.Memory.mem",
"Prims.unit",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.rmem",
"Prims.l... | [] | false | true | false | false | false | let intro_vconst (#opened: _) (#a: Type) (x: a)
: SteelGhost unit
opened
emp
(fun _ -> vconst x)
(fun _ -> True)
(fun _ _ h' -> h' (vconst x) == x) =
| change_slprop_rel emp (vconst x) (fun _ y -> y == x) (fun _ -> ()) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.lem0 | val lem0 : a: Prims.int -> b: Prims.int -> c: Prims.int -> d: Prims.int -> Prims.unit | let lem0 (a b c d : int) =
assert_by_tactic (0 + 1 + a + b + c + d + 2 == (b + 0) + 2 + d + (c + a + 0) + 1)
(fun _ -> canon_monoid int_plus_cm; trefl()) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 280,
"start_col": 0,
"start_line": 278
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Prims.int -> b: Prims.int -> c: Prims.int -> d: Prims.int -> Prims.unit | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"FStar.Tactics.Effect.assert_by_tactic",
"Prims.eq2",
"Prims.op_Addition",
"Prims.unit",
"FStar.Tactics.V2.Derived.trefl",
"FStar.Tactics.CanonCommMonoidSimple.canon_monoid",
"FStar.Algebra.CommMonoid.int_plus_cm"
] | [] | false | false | false | true | false | let lem0 (a b c d: int) =
| assert_by_tactic (0 + 1 + a + b + c + d + 2 == (b + 0) + 2 + d + (c + a + 0) + 1)
(fun _ ->
canon_monoid int_plus_cm;
trefl ()) | false | |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.apply_swap_correct | val apply_swap_correct (#a: Type) (m: cm a) (am: amap a) (xs: list atom) (s: swap (length xs))
: Lemma (ensures (xsdenote m am xs == xsdenote m am (apply_swap xs s))) (decreases xs) | val apply_swap_correct (#a: Type) (m: cm a) (am: amap a) (xs: list atom) (s: swap (length xs))
: Lemma (ensures (xsdenote m am xs == xsdenote m am (apply_swap xs s))) (decreases xs) | let apply_swap_correct (#a:Type) (m:cm a) (am:amap a)
(xs:list atom) (s:swap (length xs)):
Lemma (ensures (xsdenote m am xs == xsdenote m am (apply_swap xs s)))
(decreases xs) = apply_swap_aux_correct 0 m am xs s | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 61,
"end_line": 143,
"start_col": 0,
"start_line": 140
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom ->
s: FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs)
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonCommMonoidSimple.xs... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommSwaps.swap",
"FStar.List.Tot.Base.length",
"FStar.Tactics.CanonCommMonoidSimple.apply_swap_aux_correct",
"Prims.unit",
"Prims.l_True",
"Prims... | [] | true | false | true | false | false | let apply_swap_correct (#a: Type) (m: cm a) (am: amap a) (xs: list atom) (s: swap (length xs))
: Lemma (ensures (xsdenote m am xs == xsdenote m am (apply_swap xs s))) (decreases xs) =
| apply_swap_aux_correct 0 m am xs s | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.apply_swaps_correct | val apply_swaps_correct
(#a: Type)
(m: cm a)
(am: amap a)
(xs: list atom)
(ss: list (swap (length xs)))
: Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swaps xs ss)))
(decreases ss) | val apply_swaps_correct
(#a: Type)
(m: cm a)
(am: amap a)
(xs: list atom)
(ss: list (swap (length xs)))
: Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swaps xs ss)))
(decreases ss) | let rec apply_swaps_correct (#a:Type) (m:cm a) (am:amap a)
(xs:list atom) (ss:list (swap (length xs))):
Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swaps xs ss)))
(decreases ss) =
match ss with
| [] -> ()
| s::ss' -> apply_swap_correct m am ... | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 153,
"start_col": 0,
"start_line": 145
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom ->
ss: Prims.list (FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs))
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonCommM... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommSwaps.swap",
"FStar.List.Tot.Base.length",
"FStar.Tactics.CanonCommMonoidSimple.apply_swaps_correct",
"FStar.Tactics.CanonCommSwaps.apply_swap",
... | [
"recursion"
] | false | false | true | false | false | let rec apply_swaps_correct
(#a: Type)
(m: cm a)
(am: amap a)
(xs: list atom)
(ss: list (swap (length xs)))
: Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swaps xs ss)))
(decreases ss) =
| match ss with
| [] -> ()
| s :: ss' ->
apply_swap_correct m am xs s;
apply_swaps_correct m am (apply_swap xs s) ss' | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.sort_via_swaps | val sort_via_swaps (#a: Type) (am: amap a) (xs: list atom)
: Lemma (exists ss. sort xs == apply_swaps xs ss) | val sort_via_swaps (#a: Type) (am: amap a) (xs: list atom)
: Lemma (exists ss. sort xs == apply_swaps xs ss) | let sort_via_swaps (#a:Type) (am : amap a) (xs:list atom)
: Lemma (exists ss. sort xs == apply_swaps xs ss)
=
List.Tot.Properties.sortWith_permutation #nat (compare_of_bool (<)) xs;
let ss = equal_counts_implies_swaps #nat xs (sort xs) in
() | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 4,
"end_line": 184,
"start_col": 0,
"start_line": 179
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom
-> FStar.Pervasives.Lemma
(ensures
exists (ss: Prims.list (FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs))).
FStar.Tactics.CanonCommMonoidSimple.sort xs ==
FS... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommSwaps.swap",
"FStar.List.Tot.Base.length",
"Prims.nat",
"FStar.Tactics.CanonCommSwaps.equal_counts_implies_swaps",
"FStar.Tactics.CanonCommMonoidSimple.sort",
"Prims.unit",
... | [] | true | false | true | false | false | let sort_via_swaps (#a: Type) (am: amap a) (xs: list atom)
: Lemma (exists ss. sort xs == apply_swaps xs ss) =
| List.Tot.Properties.sortWith_permutation #nat (compare_of_bool ( < )) xs;
let ss = equal_counts_implies_swaps #nat xs (sort xs) in
() | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.apply_swap_aux_correct | val apply_swap_aux_correct
(#a: Type)
(n: nat)
(m: cm a)
(am: amap a)
(xs: list atom)
(s: swap (length xs + n))
: Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swap_aux n xs s)))
(decreases xs) | val apply_swap_aux_correct
(#a: Type)
(n: nat)
(m: cm a)
(am: amap a)
(xs: list atom)
(s: swap (length xs + n))
: Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swap_aux n xs s)))
(decreases xs) | let rec apply_swap_aux_correct (#a:Type) (n:nat) (m:cm a) (am:amap a)
(xs:list atom) (s:swap (length xs + n)) :
Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swap_aux n xs s)))
(decreases xs) =
match xs with
| [] | [_] -> ()
| x1 :: x2 :: xs' -... | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 138,
"start_col": 0,
"start_line": 123
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Prims.nat ->
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.atom ->
s: FStar.Tactics.CanonCommSwaps.swap (FStar.List.Tot.Base.length xs + n)
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.nat",
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"Prims.list",
"FStar.Tactics.CanonCommMonoidSimple.atom",
"FStar.Tactics.CanonCommSwaps.swap",
"Prims.op_Addition",
"FStar.List.Tot.Base.length",
"Prims.op_Equality",
"FStar.Algebra.CommMonoid.__proj__CM__item_... | [
"recursion"
] | false | false | true | false | false | let rec apply_swap_aux_correct
(#a: Type)
(n: nat)
(m: cm a)
(am: amap a)
(xs: list atom)
(s: swap (length xs + n))
: Lemma (requires True)
(ensures (xsdenote m am xs == xsdenote m am (apply_swap_aux n xs s)))
(decreases xs) =
| match xs with
| [] | [_] -> ()
| x1 :: x2 :: xs' ->
if n = (s <: nat)
then
(let a = CM?.associativity m in
a (select x1 am) (select x2 am) (xsdenote m am xs');
a (select x2 am) (select x1 am) (xsdenote m am xs');
CM?.commutativity m (select x1 am) (select x2 am))
else apply_swap_aux_correct ... | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.monoid_reflect | val monoid_reflect:
#a: Type ->
m: cm a ->
am: amap a ->
e1: exp ->
e2: exp ->
squash (xsdenote m am (canon e1) == xsdenote m am (canon e2))
-> squash (mdenote m am e1 == mdenote m am e2) | val monoid_reflect:
#a: Type ->
m: cm a ->
am: amap a ->
e1: exp ->
e2: exp ->
squash (xsdenote m am (canon e1) == xsdenote m am (canon e2))
-> squash (mdenote m am e1 == mdenote m am e2) | let monoid_reflect (#a:Type) (m:cm a) (am:amap a) (e1 e2:exp)
(_ : squash (xsdenote m am (canon e1) == xsdenote m am (canon e2)))
: squash (mdenote m am e1 == mdenote m am e2) =
canon_correct m am e1; canon_correct m am e2 | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 209,
"start_col": 0,
"start_line": 206
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
e1: FStar.Tactics.CanonCommMonoidSimple.exp ->
e2: FStar.Tactics.CanonCommMonoidSimple.exp ->
_:
Prims.squash (FStar.Tactics.CanonCommMonoidSimple.xsdenote m
am
(FStar.Tactics.CanonCo... | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Tactics.CanonCommMonoidSimple.exp",
"Prims.squash",
"Prims.eq2",
"FStar.Tactics.CanonCommMonoidSimple.xsdenote",
"FStar.Tactics.CanonCommMonoidSimple.canon",
"FStar.Tactics.CanonCommMonoidSimple.canon_correct",
"Prims.... | [] | false | false | true | false | false | let monoid_reflect
(#a: Type)
(m: cm a)
(am: amap a)
(e1: exp)
(e2: exp)
(_: squash (xsdenote m am (canon e1) == xsdenote m am (canon e2)))
: squash (mdenote m am e1 == mdenote m am e2) =
| canon_correct m am e1;
canon_correct m am e2 | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.canon_correct | val canon_correct (#a: Type) (m: cm a) (am: amap a) (e: exp)
: Lemma (mdenote m am e == xsdenote m am (canon e)) | val canon_correct (#a: Type) (m: cm a) (am: amap a) (e: exp)
: Lemma (mdenote m am e == xsdenote m am (canon e)) | let canon_correct (#a:Type) (m:cm a) (am:amap a) (e:exp) :
Lemma (mdenote m am e == xsdenote m am (canon e)) =
flatten_correct m am e; sort_correct m am (flatten e) | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 55,
"end_line": 199,
"start_col": 0,
"start_line": 197
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
e: FStar.Tactics.CanonCommMonoidSimple.exp
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonCommMonoidSimple.mdenote m am e ==
FStar.Tactics.CanonCommMonoidSimple.xsdenote m
am
(FSta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Tactics.CanonCommMonoidSimple.exp",
"FStar.Tactics.CanonCommMonoidSimple.sort_correct",
"FStar.Tactics.CanonCommMonoidSimple.flatten",
"Prims.unit",
"FStar.Tactics.CanonCommMonoidSimple.flatten_correct",
"Prims.l_True",
... | [] | true | false | true | false | false | let canon_correct (#a: Type) (m: cm a) (am: amap a) (e: exp)
: Lemma (mdenote m am e == xsdenote m am (canon e)) =
| flatten_correct m am e;
sort_correct m am (flatten e) | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.monoid_reflect_orig | val monoid_reflect_orig (#a: Type) (m: cm a) (am: amap a) (e1 e2: exp)
: Lemma (requires (xsdenote m am (canon e1) == xsdenote m am (canon e2)))
(ensures (mdenote m am e1 == mdenote m am e2)) | val monoid_reflect_orig (#a: Type) (m: cm a) (am: amap a) (e1 e2: exp)
: Lemma (requires (xsdenote m am (canon e1) == xsdenote m am (canon e2)))
(ensures (mdenote m am e1 == mdenote m am e2)) | let monoid_reflect_orig (#a:Type) (m:cm a) (am:amap a) (e1 e2:exp) :
Lemma (requires (xsdenote m am (canon e1) == xsdenote m am (canon e2)))
(ensures (mdenote m am e1 == mdenote m am e2)) =
canon_correct m am e1; canon_correct m am e2 | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 204,
"start_col": 0,
"start_line": 201
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: FStar.Algebra.CommMonoid.cm a ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
e1: FStar.Tactics.CanonCommMonoidSimple.exp ->
e2: FStar.Tactics.CanonCommMonoidSimple.exp
-> FStar.Pervasives.Lemma
(requires
FStar.Tactics.CanonCommMonoidSimple.xsdenote m
am
(FSt... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.cm",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Tactics.CanonCommMonoidSimple.exp",
"FStar.Tactics.CanonCommMonoidSimple.canon_correct",
"Prims.unit",
"Prims.eq2",
"FStar.Tactics.CanonCommMonoidSimple.xsdenote",
"FStar.Tactics.CanonCommMonoidSimple.canon",
"Prims.sq... | [] | true | false | true | false | false | let monoid_reflect_orig (#a: Type) (m: cm a) (am: amap a) (e1 e2: exp)
: Lemma (requires (xsdenote m am (canon e1) == xsdenote m am (canon e2)))
(ensures (mdenote m am e1 == mdenote m am e2)) =
| canon_correct m am e1;
canon_correct m am e2 | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.reification_aux | val reification_aux (#a: Type) (ts: list term) (am: amap a) (mult unit t: term)
: Tac (exp * list term * amap a) | val reification_aux (#a: Type) (ts: list term) (am: amap a) (mult unit t: term)
: Tac (exp * list term * amap a) | let rec reification_aux (#a:Type) (ts:list term) (am:amap a)
(mult unit t : term) : Tac (exp * list term * amap a) =
let hd, tl = collect_app_ref t in
let fatom (t:term) (ts:list term) (am:amap a) : Tac (exp * list term * amap a) =
match where t ts with
| Some v -> (Atom v, ts, am)
... | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 240,
"start_col": 0,
"start_line": 221
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ts: Prims.list FStar.Tactics.NamedView.term ->
am: FStar.Tactics.CanonCommMonoidSimple.amap a ->
mult: FStar.Tactics.NamedView.term ->
unit: FStar.Tactics.NamedView.term ->
t: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac
((FStar.Tactics.CanonCommMonoidSimple.exp * Prims.list FStar... | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.list",
"FStar.Tactics.NamedView.term",
"FStar.Tactics.CanonCommMonoidSimple.amap",
"FStar.Stubs.Reflection.Types.term",
"Prims.l_or",
"Prims.eq2",
"Prims.precedes",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Pervasives.Native.fst",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Stubs.... | [
"recursion"
] | false | true | false | false | false | let rec reification_aux (#a: Type) (ts: list term) (am: amap a) (mult unit t: term)
: Tac (exp * list term * amap a) =
| let hd, tl = collect_app_ref t in
let fatom (t: term) (ts: list term) (am: amap a) : Tac ((exp * list term) * amap a) =
match where t ts with
| Some v -> (Atom v, ts, am)
| None ->
let vfresh = length ts in
let z = unquote t in
(Atom vfresh, ts @ [t], update vfresh z am)
in
match inspect hd, list_unre... | false |
FStar.Tactics.CanonCommMonoidSimple.fst | FStar.Tactics.CanonCommMonoidSimple.where_aux | val where_aux (n: nat) (x: term) (xs: list term) : Tac (option nat) | val where_aux (n: nat) (x: term) (xs: list term) : Tac (option nat) | let rec where_aux (n:nat) (x:term) (xs:list term) :
Tac (option nat) =
match xs with
| [] -> None
| x'::xs' -> if term_eq x x' then Some n else where_aux (n+1) x xs' | {
"file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 69,
"end_line": 217,
"start_col": 0,
"start_line": 213
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommSwaps.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommSwaps",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> x: FStar.Tactics.NamedView.term -> xs: Prims.list FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option Prims.nat) | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.nat",
"FStar.Tactics.NamedView.term",
"Prims.list",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.Some",
"Prims.bool",
"FStar.Tactics.CanonCommMonoidSimple.where_aux",
"Prims.op_Addition",
"FStar.Tactics.CanonCommMonoidSimple.term_eq"
] | [
"recursion"
] | false | true | false | false | false | let rec where_aux (n: nat) (x: term) (xs: list term) : Tac (option nat) =
| match xs with
| [] -> None
| x' :: xs' -> if term_eq x x' then Some n else where_aux (n + 1) x xs' | false |
Steel.ST.Array.fst | Steel.ST.Array.init_compare_inv | val init_compare_inv
(#o: _)
(#t: eqtype)
(#p0 #p1: perm)
(a0 a1: array t)
(#s0 #s1: Seq.seq t)
(l: US.t)
(ctr: R.ref (option US.t))
: STGhost unit
o
(let open US in
((pts_to a0 p0 s0) `star` (pts_to a1 p1 s1))
`star`
(R.pts_to ctr Steel.... | val init_compare_inv
(#o: _)
(#t: eqtype)
(#p0 #p1: perm)
(a0 a1: array t)
(#s0 #s1: Seq.seq t)
(l: US.t)
(ctr: R.ref (option US.t))
: STGhost unit
o
(let open US in
((pts_to a0 p0 s0) `star` (pts_to a1 p1 s1))
`star`
(R.pts_to ctr Steel.... | let init_compare_inv #o
(#t:eqtype)
(#p0 #p1:perm)
(a0 a1:array t)
(#s0: Seq.seq t)
(#s1: Seq.seq t)
(l:US.t)
(ctr : R.ref (option US.t))
: STGhost unit o
(let open US in
pts_to a0 p0 s0 `star`
pt... | {
"file_name": "lib/steel/Steel.ST.Array.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 66,
"end_line": 442,
"start_col": 0,
"start_line": 416
} | (*
Copyright 2020, 2021, 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 applicable law ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.HigherArray.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.che... | [
{
"abbrev": true,
"full_module": "Steel.ST.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Steel.ST.HigherArray",
"short_module": "H"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a0: Steel.ST.Array.array t ->
a1: Steel.ST.Array.array t ->
l: FStar.SizeT.t ->
ctr: Steel.ST.Reference.ref (FStar.Pervasives.Native.option FStar.SizeT.t)
-> Steel.ST.Effect.Ghost.STGhost Prims.unit | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"Prims.eqtype",
"Steel.FractionalPermission.perm",
"Steel.ST.Array.array",
"FStar.Seq.Base.seq",
"FStar.SizeT.t",
"Steel.ST.Reference.ref",
"FStar.Pervasives.Native.option",
"Steel.ST.Array.intro_exists_compare_inv",
"FStar.Ghost.hide",
"FStar.Pervasives.Native.Some",
"F... | [] | false | true | false | false | false | let init_compare_inv
#o
(#t: eqtype)
(#p0: perm)
(#p1: perm)
(a0: array t)
(a1: array t)
(#s0: Seq.seq t)
(#s1: Seq.seq t)
(l: US.t)
(ctr: R.ref (option US.t))
: STGhost unit
o
(let open US in
((pts_to a0 p0 s0) `star` (pts_to a1 p1 s1)... | pts_to_length a0 _;
pts_to_length a1 _;
intro_pure (equal_up_to s0 s1 (Ghost.hide (Some 0sz)));
rewrite (R.pts_to ctr Steel.FractionalPermission.full_perm (Some 0sz))
(R.pts_to ctr Steel.FractionalPermission.full_perm (Ghost.hide (Some 0sz)));
intro_exists_compare_inv a0 a1 l ctr (Ghost.hide (Some 0sz)) | false |
Steel.ST.Reference.fst | Steel.ST.Reference.with_local | val with_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: ret_t -> vprop)
(body: (r: ref t) ->
STT ret_t
(pts_to r full_perm init `star` pre)
(fun v -> exists_ (pts_to r full_perm) `star` post v)
)
: STF ret_t pre post True (fun _ -> True) | val with_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: ret_t -> vprop)
(body: (r: ref t) ->
STT ret_t
(pts_to r full_perm init `star` pre)
(fun v -> exists_ (pts_to r full_perm) `star` post v)
)
: STF ret_t pre post True (fun _ -> True) | let with_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: ret_t -> vprop)
(body: (r: ref t) ->
STT ret_t
(pts_to r full_perm init `star` pre)
(fun v -> exists_ (pts_to r full_perm) `star` post v)
)
: STF ret_t pre post True (fun _ -> True)
= _push_frame ();
let r = _alloca ini... | {
"file_name": "lib/steel/Steel.ST.Reference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 10,
"end_line": 149,
"start_col": 0,
"start_line": 132
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.Reference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.Reference.fst"
... | [
{
"abbrev": true,
"full_module": "Steel.Reference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | init: t -> body: (r: Steel.ST.Reference.ref t -> Steel.ST.Effect.STT ret_t)
-> Steel.ST.Effect.STF ret_t | Steel.ST.Effect.STF | [] | [] | [
"Steel.Effect.Common.vprop",
"Steel.ST.Reference.ref",
"Steel.Effect.Common.star",
"Steel.ST.Reference.pts_to",
"Steel.FractionalPermission.full_perm",
"Steel.ST.Util.exists_",
"Steel.ST.Util.return",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Prims.unit",
... | [] | false | true | false | false | false | let with_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: (ret_t -> vprop))
(body:
(r: ref t
-> STT ret_t
((pts_to r full_perm init) `star` pre)
(fun v -> (exists_ (pts_to r full_perm)) `star` (post v))))
... | _push_frame ();
let r = _alloca init in
let v = body r in
let _ = elim_exists () in
_free_and_pop_frame r;
return v | false |
CQueue.fst | CQueue.elim_llist_fragment_head_nil | val elim_llist_fragment_head_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
(head: ccell_ptrvalue a)
: SteelGhost unit opened
(llist_fragment_head l phead head)
(fun _ -> emp)
(fun _ -> Nil? l)
(fun h _ _ -> sel_llist_fragment_head l phead head h == (phe... | val elim_llist_fragment_head_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
(head: ccell_ptrvalue a)
: SteelGhost unit opened
(llist_fragment_head l phead head)
(fun _ -> emp)
(fun _ -> Nil? l)
(fun h _ _ -> sel_llist_fragment_head l phead head h == (phe... | let elim_llist_fragment_head_nil
l phead head
=
change_equal_slprop
(llist_fragment_head l phead head)
(vconst (phead, head));
elim_vconst (phead, head) | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 27,
"end_line": 822,
"start_col": 0,
"start_line": 816
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l: FStar.Ghost.erased (Prims.list a) ->
phead: Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a) ->
head: CQueue.Cell.ccell_ptrvalue a
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Prims.list",
"Steel.Reference.ref",
"CQueue.Cell.ccell_ptrvalue",
"CQueue.elim_vconst",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"Prims.unit",
"Steel.Effect.Atomic.change_equal_slprop",
"CQueue.llist_fragment_head",
"CQ... | [] | false | true | false | false | false | let elim_llist_fragment_head_nil l phead head =
| change_equal_slprop (llist_fragment_head l phead head) (vconst (phead, head));
elim_vconst (phead, head) | false |
CQueue.fst | CQueue.elim_llist_fragment_tail_nil | val elim_llist_fragment_tail_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
: SteelGhost unit opened
(llist_fragment_tail l phead)
(fun _ -> emp)
(fun _ -> Nil? l)
(fun h _ _ -> sel_llist_fragment_tail l phead h == phead) | val elim_llist_fragment_tail_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
: SteelGhost unit opened
(llist_fragment_tail l phead)
(fun _ -> emp)
(fun _ -> Nil? l)
(fun h _ _ -> sel_llist_fragment_tail l phead h == phead) | let elim_llist_fragment_tail_nil
l phead
=
change_equal_slprop
(llist_fragment_tail l phead)
(vconst phead);
elim_vconst phead | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 464,
"start_col": 0,
"start_line": 458
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: FStar.Ghost.erased (Prims.list a) -> phead: Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Prims.list",
"Steel.Reference.ref",
"CQueue.Cell.ccell_ptrvalue",
"CQueue.elim_vconst",
"Prims.unit",
"Steel.Effect.Atomic.change_equal_slprop",
"CQueue.llist_fragment_tail",
"CQueue.vconst"
] | [] | false | true | false | false | false | let elim_llist_fragment_tail_nil l phead =
| change_equal_slprop (llist_fragment_tail l phead) (vconst phead);
elim_vconst phead | false |
Steel.ST.Reference.fst | Steel.ST.Reference.with_named_local | val with_named_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: ret_t -> vprop)
(name: string)
(body: (r: ref t) ->
STT ret_t
(pts_to r full_perm init `star` pre)
(fun v -> exists_ (pts_to r full_perm) `star` post v)
)
: STF ret_t pre post True (fun _ -> True) | val with_named_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: ret_t -> vprop)
(name: string)
(body: (r: ref t) ->
STT ret_t
(pts_to r full_perm init `star` pre)
(fun v -> exists_ (pts_to r full_perm) `star` post v)
)
: STF ret_t pre post True (fun _ -> True) | let with_named_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: ret_t -> vprop)
(name: string)
(body: (r: ref t) ->
STT ret_t
(pts_to r full_perm init `star` pre)
(fun v -> exists_ (pts_to r full_perm) `star` post v)
)
: STF ret_t pre post True (fun _ -> True)
= _push_frame ()... | {
"file_name": "lib/steel/Steel.ST.Reference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 10,
"end_line": 170,
"start_col": 0,
"start_line": 151
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.Reference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.Reference.fst"
... | [
{
"abbrev": true,
"full_module": "Steel.Reference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | init: t -> name: Prims.string -> body: (r: Steel.ST.Reference.ref t -> Steel.ST.Effect.STT ret_t)
-> Steel.ST.Effect.STF ret_t | Steel.ST.Effect.STF | [] | [] | [
"Steel.Effect.Common.vprop",
"Prims.string",
"Steel.ST.Reference.ref",
"Steel.Effect.Common.star",
"Steel.ST.Reference.pts_to",
"Steel.FractionalPermission.full_perm",
"Steel.ST.Util.exists_",
"Steel.ST.Util.return",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",... | [] | false | true | false | false | false | let with_named_local
(#t: Type)
(init: t)
(#pre: vprop)
(#ret_t: Type)
(#post: (ret_t -> vprop))
(name: string)
(body:
(r: ref t
-> STT ret_t
((pts_to r full_perm init) `star` pre)
(fun v -> (exists_ (pts_to r full_per... | _push_frame ();
[@@ (rename_let name) ]let r = _alloca init in
let v = body r in
let _ = elim_exists () in
_free_and_pop_frame r;
return v | false |
CQueue.fst | CQueue.intro_llist_fragment_head_nil | val intro_llist_fragment_head_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
(head: ccell_ptrvalue a)
: SteelGhost unit opened
emp
(fun _ -> llist_fragment_head l phead head)
(fun _ -> Nil? l)
(fun _ _ h' -> sel_llist_fragment_head l phead head h' == (ph... | val intro_llist_fragment_head_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
(head: ccell_ptrvalue a)
: SteelGhost unit opened
emp
(fun _ -> llist_fragment_head l phead head)
(fun _ -> Nil? l)
(fun _ _ h' -> sel_llist_fragment_head l phead head h' == (ph... | let intro_llist_fragment_head_nil
l phead head
=
intro_vconst (phead, head);
change_equal_slprop
(vconst (phead, head))
(llist_fragment_head l phead head) | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 38,
"end_line": 802,
"start_col": 0,
"start_line": 796
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l: FStar.Ghost.erased (Prims.list a) ->
phead: Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a) ->
head: CQueue.Cell.ccell_ptrvalue a
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Prims.list",
"Steel.Reference.ref",
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Atomic.change_equal_slprop",
"CQueue.vconst",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"CQueue.llist_fragment_head",
"Prims.unit",
"CQueue.... | [] | false | true | false | false | false | let intro_llist_fragment_head_nil l phead head =
| intro_vconst (phead, head);
change_equal_slprop (vconst (phead, head)) (llist_fragment_head l phead head) | false |
CQueue.fst | CQueue.intro_llist_fragment_tail_nil | val intro_llist_fragment_tail_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
: SteelGhost unit opened
emp
(fun _ -> llist_fragment_tail l phead)
(fun _ -> Nil? l)
(fun _ _ h' -> sel_llist_fragment_tail l phead h' == phead) | val intro_llist_fragment_tail_nil
(#opened: _)
(#a: Type)
(l: Ghost.erased (list a))
(phead: ref (ccell_ptrvalue a))
: SteelGhost unit opened
emp
(fun _ -> llist_fragment_tail l phead)
(fun _ -> Nil? l)
(fun _ _ h' -> sel_llist_fragment_tail l phead h' == phead) | let intro_llist_fragment_tail_nil
l phead
=
intro_vconst phead;
change_equal_slprop
(vconst phead)
(llist_fragment_tail l phead) | {
"file_name": "share/steel/examples/steel/CQueue.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 445,
"start_col": 0,
"start_line": 439
} | module CQueue
open CQueue.LList
#set-options "--ide_id_info_off"
//Re-define squash, since this module explicitly
//replies on proving equalities of the form `t_of v == squash p`
//which are delicate in the presence of optimizations that
//unfold `Prims.squash (p /\ q)`to _:unit{p /\ q}
//See Issue #2496
let squash (... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"CQueue.LList.fsti.checked"
],
"interface_file": true,
"source... | [
{
"abbrev": false,
"full_module": "CQueue.LList",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: FStar.Ghost.erased (Prims.list a) -> phead: Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Prims.list",
"Steel.Reference.ref",
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Atomic.change_equal_slprop",
"CQueue.vconst",
"CQueue.llist_fragment_tail",
"Prims.unit",
"CQueue.intro_vconst"
] | [] | false | true | false | false | false | let intro_llist_fragment_tail_nil l phead =
| intro_vconst phead;
change_equal_slprop (vconst phead) (llist_fragment_tail l phead) | false |
LList2.fst | LList2.init | val init (#v: Ghost.erased (scalar_t (ptr cell))) (r: ref (scalar (ptr cell)))
: ST unit (pts_to r v) (fun _ -> pllist r []) (full (scalar (ptr cell)) v) (fun _ -> True) | val init (#v: Ghost.erased (scalar_t (ptr cell))) (r: ref (scalar (ptr cell)))
: ST unit (pts_to r v) (fun _ -> pllist r []) (full (scalar (ptr cell)) v) (fun _ -> True) | let init
(#v: Ghost.erased (scalar_t (ptr cell)))
(r: ref (scalar (ptr cell)))
: ST unit
(pts_to r v)
(fun _ -> pllist r [])
(full (scalar (ptr cell)) v)
(fun _ -> True)
= noop ();
rewrite (llist_nil (null _)) (llist (null _) []);
pllist_put r (null _) | {
"file_name": "share/steel/examples/steelc/LList2.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 196,
"start_col": 0,
"start_line": 186
} | module LList2
open Steel.ST.GenElim
open Steel.ST.C.Types
open Steel.ST.C.Types.Struct.Aux
open Steel.ST.C.Types.UserStruct // hides Struct
module U32 = FStar.UInt32
noeq
type cell_t = {
hd: scalar_t U32.t;
tl: scalar_t (ptr_gen cell_t);
}
noextract
inline_for_extraction
[@@ norm_field_attr]
let cell_struct_def ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.GenElim.fsti.checked",
"Steel.ST.C.Types.UserStruct.fsti.checked",
"Steel.ST.C.Types.Struct.Aux.fsti.checked",
"Steel.ST.C.Types.fst.checked",
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasi... | [
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.UserStruct // hides Struct",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.UserStruct",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r:
Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Scalar.scalar (Steel.ST.C.Types.Base.ptr LList2.cell
))
-> Steel.ST.Effect.ST Prims.unit | Steel.ST.Effect.ST | [] | [] | [
"FStar.Ghost.erased",
"Steel.ST.C.Types.Scalar.scalar_t",
"Steel.ST.C.Types.Base.ptr",
"LList2.cell_t",
"LList2.cell",
"Steel.ST.C.Types.Base.ref",
"Steel.ST.C.Types.Scalar.scalar",
"LList2.pllist_put",
"FStar.Ghost.hide",
"Prims.list",
"FStar.UInt32.t",
"Prims.Nil",
"Steel.ST.C.Types.Base.n... | [] | false | true | false | false | false | let init (#v: Ghost.erased (scalar_t (ptr cell))) (r: ref (scalar (ptr cell)))
: ST unit (pts_to r v) (fun _ -> pllist r []) (full (scalar (ptr cell)) v) (fun _ -> True) =
| noop ();
rewrite (llist_nil (null _)) (llist (null _) []);
pllist_put r (null _) | false |
CoreCrypto.fst | CoreCrypto.aeadRealIVSize | val aeadRealIVSize : a: CoreCrypto.aead_cipher -> Prims.int | let aeadRealIVSize (a:aead_cipher) = 12 | {
"file_name": "ucontrib/CoreCrypto/fst/CoreCrypto.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 86,
"start_col": 0,
"start_line": 86
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "CoreCrypto.fst"
} | [
{
"abbrev": false,
"full_module": "Platform.Bytes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: CoreCrypto.aead_cipher -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"CoreCrypto.aead_cipher",
"Prims.int"
] | [] | false | false | false | true | false | let aeadRealIVSize (a: aead_cipher) =
| 12 | false | |
CoreCrypto.fst | CoreCrypto.hashSize | val hashSize : _: CoreCrypto.hash_alg -> Prims.int | let hashSize = function
| MD5 -> 16
| SHA1 -> 20
| SHA224 -> 28
| SHA256 -> 32
| SHA384 -> 48
| SHA512 -> 64 | {
"file_name": "ucontrib/CoreCrypto/fst/CoreCrypto.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 35,
"start_col": 0,
"start_line": 29
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "CoreCrypto.fst"
} | [
{
"abbrev": false,
"full_module": "Platform.Bytes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: CoreCrypto.hash_alg -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"CoreCrypto.hash_alg",
"Prims.int"
] | [] | false | false | false | true | false | let hashSize =
| function
| MD5 -> 16
| SHA1 -> 20
| SHA224 -> 28
| SHA256 -> 32
| SHA384 -> 48
| SHA512 -> 64 | false | |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.bv_of_binder | val bv_of_binder (b: binder) : bv | val bv_of_binder (b: binder) : bv | let bv_of_binder (b : binder) : bv = (inspect_binder b).binder_bv | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Stubs.Reflection.Types.binder -> FStar.Stubs.Reflection.Types.bv | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.V1.Data.__proj__Mkbinder_view__item__binder_bv",
"FStar.Stubs.Reflection.V1.Builtins.inspect_binder",
"FStar.Stubs.Reflection.Types.bv"
] | [] | false | false | false | true | false | let bv_of_binder (b: binder) : bv =
| (inspect_binder b).binder_bv | false |
CoreCrypto.fst | CoreCrypto.blockSize | val blockSize : _: CoreCrypto.block_cipher -> Prims.int | let blockSize = function
| TDES_EDE_CBC -> 8
| AES_128_CBC -> 16
| AES_256_CBC -> 16 | {
"file_name": "ucontrib/CoreCrypto/fst/CoreCrypto.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 61,
"start_col": 0,
"start_line": 58
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "CoreCrypto.fst"
} | [
{
"abbrev": false,
"full_module": "Platform.Bytes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: CoreCrypto.block_cipher -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"CoreCrypto.block_cipher",
"Prims.int"
] | [] | false | false | false | true | false | let blockSize =
| function
| TDES_EDE_CBC -> 8
| AES_128_CBC -> 16
| AES_256_CBC -> 16 | false | |
CoreCrypto.fst | CoreCrypto.aeadTagSize | val aeadTagSize : _: CoreCrypto.aead_cipher -> Prims.int | let aeadTagSize = function
| AES_128_CCM_8 -> 8
| AES_256_CCM_8 -> 8
| AES_128_CCM -> 16
| AES_256_CCM -> 16
| AES_128_GCM -> 16
| AES_256_GCM -> 16
| CHACHA20_POLY1305 -> 16 | {
"file_name": "ucontrib/CoreCrypto/fst/CoreCrypto.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 96,
"start_col": 0,
"start_line": 89
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "CoreCrypto.fst"
} | [
{
"abbrev": false,
"full_module": "Platform.Bytes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: CoreCrypto.aead_cipher -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"CoreCrypto.aead_cipher",
"Prims.int"
] | [] | false | false | false | true | false | let aeadTagSize =
| function
| AES_128_CCM_8 -> 8
| AES_256_CCM_8 -> 8
| AES_128_CCM -> 16
| AES_256_CCM -> 16
| AES_128_GCM -> 16
| AES_256_GCM -> 16
| CHACHA20_POLY1305 -> 16 | false | |
PositiveRelaxed.fst | PositiveRelaxed.loop | val loop : p (S O) | val loop : p (S O) | let loop = bad (PSO (fun h -> bad (POd?.h h))) | {
"file_name": "examples/paradoxes/PositiveRelaxed.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 35,
"start_col": 0,
"start_line": 35
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "PositiveRelaxed.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"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 | PositiveRelaxed.p (PositiveRelaxed.S PositiveRelaxed.O) | Prims.Tot | [
"total"
] | [] | [
"PositiveRelaxed.bad",
"PositiveRelaxed.PSO",
"PositiveRelaxed.p",
"PositiveRelaxed.O",
"PositiveRelaxed.__proj__POd__item__h",
"PositiveRelaxed.S"
] | [] | false | false | false | true | false | let loop =
| bad (PSO (fun h -> bad (POd?.h h))) | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.mk_binder | val mk_binder (bv: bv) (sort: typ) : binder | val mk_binder (bv: bv) (sort: typ) : binder | let mk_binder (bv : bv) (sort : typ) : binder =
pack_binder {
binder_bv=bv;
binder_qual=Q_Explicit;
binder_attrs=[];
binder_sort = sort;
} | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 42,
"start_col": 0,
"start_line": 36
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | bv: FStar.Stubs.Reflection.Types.bv -> sort: FStar.Stubs.Reflection.Types.typ
-> FStar.Stubs.Reflection.Types.binder | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.V1.Builtins.pack_binder",
"FStar.Stubs.Reflection.V1.Data.Mkbinder_view",
"FStar.Stubs.Reflection.V1.Data.Q_Explicit",
"Prims.Nil",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.binder"
... | [] | false | false | false | true | false | let mk_binder (bv: bv) (sort: typ) : binder =
| pack_binder ({ binder_bv = bv; binder_qual = Q_Explicit; binder_attrs = []; binder_sort = sort }) | false |
CoreCrypto.fst | CoreCrypto.ec_bytelen | val ec_bytelen: ec_curve -> Tot (n:nat{n <= 127}) | val ec_bytelen: ec_curve -> Tot (n:nat{n <= 127}) | let ec_bytelen = function
| ECC_P256 -> 32
| ECC_P384 -> 48
| ECC_P521 -> 66 (* ceil(521/8) *)
| ECC_X25519 -> 32
| ECC_X448 -> 56 | {
"file_name": "ucontrib/CoreCrypto/fst/CoreCrypto.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 200,
"start_col": 0,
"start_line": 195
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "CoreCrypto.fst"
} | [
{
"abbrev": false,
"full_module": "Platform.Bytes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: CoreCrypto.ec_curve -> n: Prims.nat{n <= 127} | Prims.Tot | [
"total"
] | [] | [
"CoreCrypto.ec_curve",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual"
] | [] | false | false | false | false | false | let ec_bytelen =
| function
| ECC_P256 -> 32
| ECC_P384 -> 48
| ECC_P521 -> 66
| ECC_X25519 -> 32
| ECC_X448 -> 56 | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.type_of_binder | val type_of_binder (b: binder) : typ | val type_of_binder (b: binder) : typ | let type_of_binder (b : binder) : typ =
(inspect_binder b).binder_sort | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 53,
"start_col": 0,
"start_line": 52
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: FStar.Stubs.Reflection.Types.binder -> FStar.Stubs.Reflection.Types.typ | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.V1.Data.__proj__Mkbinder_view__item__binder_sort",
"FStar.Stubs.Reflection.V1.Builtins.inspect_binder",
"FStar.Stubs.Reflection.Types.typ"
] | [] | false | false | false | true | false | let type_of_binder (b: binder) : typ =
| (inspect_binder b).binder_sort | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.collect_app_ln | val collect_app_ln : term -> term * list argv | val collect_app_ln : term -> term * list argv | let collect_app_ln = collect_app_ln' [] | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 70,
"start_col": 0,
"start_line": 70
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V1.Data.argv | Prims.Tot | [
"total"
] | [] | [
"FStar.Reflection.V1.Derived.collect_app_ln'",
"Prims.Nil",
"FStar.Stubs.Reflection.V1.Data.argv"
] | [] | false | false | false | true | false | let collect_app_ln =
| collect_app_ln' [] | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.mk_implicit_binder | val mk_implicit_binder (bv: bv) (sort: typ) : binder | val mk_implicit_binder (bv: bv) (sort: typ) : binder | let mk_implicit_binder (bv : bv) (sort : typ) : binder =
pack_binder {
binder_bv=bv;
binder_qual=Q_Implicit;
binder_attrs=[];
binder_sort = sort;
} | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 50,
"start_col": 0,
"start_line": 44
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | bv: FStar.Stubs.Reflection.Types.bv -> sort: FStar.Stubs.Reflection.Types.typ
-> FStar.Stubs.Reflection.Types.binder | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.V1.Builtins.pack_binder",
"FStar.Stubs.Reflection.V1.Data.Mkbinder_view",
"FStar.Stubs.Reflection.V1.Data.Q_Implicit",
"Prims.Nil",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.binder"
... | [] | false | false | false | true | false | let mk_implicit_binder (bv: bv) (sort: typ) : binder =
| pack_binder ({ binder_bv = bv; binder_qual = Q_Implicit; binder_attrs = []; binder_sort = sort }) | false |
CoreCrypto.fst | CoreCrypto.aeadKeySize | val aeadKeySize : _: CoreCrypto.aead_cipher -> Prims.int | let aeadKeySize = function
| AES_128_CCM -> 16
| AES_128_CCM_8 -> 16
| AES_128_GCM -> 16
| AES_256_CCM -> 32
| AES_256_CCM_8 -> 32
| AES_256_GCM -> 32
| CHACHA20_POLY1305 -> 32 | {
"file_name": "ucontrib/CoreCrypto/fst/CoreCrypto.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 84,
"start_col": 0,
"start_line": 77
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "CoreCrypto.fst"
} | [
{
"abbrev": false,
"full_module": "Platform.Bytes",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: CoreCrypto.aead_cipher -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"CoreCrypto.aead_cipher",
"Prims.int"
] | [] | false | false | false | true | false | let aeadKeySize =
| function
| AES_128_CCM -> 16
| AES_128_CCM_8 -> 16
| AES_128_GCM -> 16
| AES_256_CCM -> 32
| AES_256_CCM_8 -> 32
| AES_256_GCM -> 32
| CHACHA20_POLY1305 -> 32 | false | |
PositiveRelaxed.fst | PositiveRelaxed.bad | val bad : p (S O) -> Tot (p (S O)) | val bad : p (S O) -> Tot (p (S O)) | let bad h = (PSO?.f h) (POd h) | {
"file_name": "examples/paradoxes/PositiveRelaxed.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 32,
"start_col": 0,
"start_line": 32
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "PositiveRelaxed.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: PositiveRelaxed.p (PositiveRelaxed.S PositiveRelaxed.O)
-> PositiveRelaxed.p (PositiveRelaxed.S PositiveRelaxed.O) | Prims.Tot | [
"total"
] | [] | [
"PositiveRelaxed.p",
"PositiveRelaxed.S",
"PositiveRelaxed.O",
"PositiveRelaxed.__proj__PSO__item__f",
"PositiveRelaxed.POd"
] | [] | false | false | false | true | false | let bad h =
| (PSO?.f h) (POd h) | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.mk_e_app | val mk_e_app (t: term) (args: list term) : Tot term | val mk_e_app (t: term) (args: list term) : Tot term | let mk_e_app (t : term) (args : list term) : Tot term =
let e t = (t, Q_Explicit) in
mk_app t (List.Tot.Base.map e args) | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 80,
"start_col": 0,
"start_line": 78
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term -> args: Prims.list FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Reflection.V1.Derived.mk_app",
"FStar.List.Tot.Base.map",
"FStar.Stubs.Reflection.V1.Data.argv",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V1.Data.aqualv",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V1.Data.Q_... | [] | false | false | false | true | false | let mk_e_app (t: term) (args: list term) : Tot term =
| let e t = (t, Q_Explicit) in
mk_app t (List.Tot.Base.map e args) | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.u_unk | val u_unk:universe | val u_unk:universe | let u_unk : universe = pack_universe Uv_Unk | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 82,
"start_col": 0,
"start_line": 82
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Stubs.Reflection.Types.universe | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.V1.Builtins.pack_universe",
"FStar.Stubs.Reflection.V1.Data.Uv_Unk"
] | [] | false | false | false | true | false | let u_unk:universe =
| pack_universe Uv_Unk | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.fv_to_string | val fv_to_string (fv: fv) : string | val fv_to_string (fv: fv) : string | let fv_to_string (fv:fv) : string = implode_qn (inspect_fv fv) | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 122,
"start_col": 0,
"start_line": 122
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | fv: FStar.Stubs.Reflection.Types.fv -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.fv",
"FStar.Stubs.Reflection.V1.Builtins.implode_qn",
"FStar.Stubs.Reflection.V1.Builtins.inspect_fv",
"Prims.string"
] | [] | false | false | false | true | false | let fv_to_string (fv: fv) : string =
| implode_qn (inspect_fv fv) | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.collect_arr_ln | val collect_arr_ln : typ -> list typ * comp | val collect_arr_ln : typ -> list typ * comp | let collect_arr_ln t =
let bs, c = collect_arr_ln_bs t in
List.Tot.Base.map type_of_binder bs, c | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 109,
"start_col": 0,
"start_line": 107
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.typ
-> Prims.list FStar.Stubs.Reflection.Types.typ * FStar.Stubs.Reflection.Types.comp | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.typ",
"Prims.list",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Pervasives.Native.Mktuple2",
"FStar.List.Tot.Base.map",
"FStar.Reflection.V1.Derived.type_of_binder",
"FStar.Pervasives.Native.tuple2",
"FStar.Reflection.V1.Derived.co... | [] | false | false | false | true | false | let collect_arr_ln t =
| let bs, c = collect_arr_ln_bs t in
List.Tot.Base.map type_of_binder bs, c | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.mk_strcat | val mk_strcat (t1 t2: term) : term | val mk_strcat (t1 t2: term) : term | let mk_strcat (t1 t2 : term) : term =
mk_e_app (pack_ln (Tv_FVar (pack_fv ["Prims"; "strcat"]))) [t1; t2] | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 71,
"end_line": 128,
"start_col": 0,
"start_line": 127
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t1: FStar.Stubs.Reflection.Types.term -> t2: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Derived.mk_e_app",
"FStar.Stubs.Reflection.V1.Builtins.pack_ln",
"FStar.Stubs.Reflection.V1.Data.Tv_FVar",
"FStar.Stubs.Reflection.V1.Builtins.pack_fv",
"Prims.Cons",
"Prims.string",
"Prims.Nil"
] | [] | false | false | false | true | false | let mk_strcat (t1 t2: term) : term =
| mk_e_app (pack_ln (Tv_FVar (pack_fv ["Prims"; "strcat"]))) [t1; t2] | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.mk_stringlit | val mk_stringlit (s: string) : term | val mk_stringlit (s: string) : term | let mk_stringlit (s : string) : term =
pack_ln (Tv_Const (C_String s)) | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 125,
"start_col": 0,
"start_line": 124
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Prims.string -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"FStar.Stubs.Reflection.V1.Builtins.pack_ln",
"FStar.Stubs.Reflection.V1.Data.Tv_Const",
"FStar.Stubs.Reflection.V1.Data.C_String",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let mk_stringlit (s: string) : term =
| pack_ln (Tv_Const (C_String s)) | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.collect_abs_ln | val collect_abs_ln : term -> list binder * term | val collect_abs_ln : term -> list binder * term | let collect_abs_ln t =
let (bs, t') = collect_abs' [] t in
(List.Tot.Base.rev bs, t') | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 120,
"start_col": 0,
"start_line": 118
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> Prims.list FStar.Stubs.Reflection.Types.binder * FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.Mktuple2",
"FStar.List.Tot.Base.rev",
"FStar.Pervasives.Native.tuple2",
"FStar.Reflection.V1.Derived.collect_abs'",
"Prims.Nil"
] | [] | false | false | false | true | false | let collect_abs_ln t =
| let bs, t' = collect_abs' [] t in
(List.Tot.Base.rev bs, t') | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.collect_arr_ln_bs | val collect_arr_ln_bs : typ -> list binder * comp | val collect_arr_ln_bs : typ -> list binder * comp | let collect_arr_ln_bs t =
let (bs, c) = collect_arr' [] (pack_comp (C_Total t)) in
(List.Tot.Base.rev bs, c) | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 29,
"end_line": 104,
"start_col": 0,
"start_line": 102
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.typ
-> Prims.list FStar.Stubs.Reflection.Types.binder * FStar.Stubs.Reflection.Types.comp | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.typ",
"Prims.list",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Pervasives.Native.Mktuple2",
"FStar.List.Tot.Base.rev",
"FStar.Pervasives.Native.tuple2",
"FStar.Reflection.V1.Derived.collect_arr'",
"Prims.Nil",
"FStar.Stubs.Refle... | [] | false | false | false | true | false | let collect_arr_ln_bs t =
| let bs, c = collect_arr' [] (pack_comp (C_Total t)) in
(List.Tot.Base.rev bs, c) | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.mk_cons_t | val mk_cons_t (ty h t: term) : term | val mk_cons_t (ty h t: term) : term | let mk_cons_t (ty h t : term) : term =
mk_app (pack_ln (Tv_FVar (pack_fv cons_qn))) [(ty, Q_Implicit); (h, Q_Explicit); (t, Q_Explicit)] | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 100,
"end_line": 134,
"start_col": 0,
"start_line": 133
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ty: FStar.Stubs.Reflection.Types.term ->
h: FStar.Stubs.Reflection.Types.term ->
t: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Derived.mk_app",
"FStar.Stubs.Reflection.V1.Builtins.pack_ln",
"FStar.Stubs.Reflection.V1.Data.Tv_FVar",
"FStar.Stubs.Reflection.V1.Builtins.pack_fv",
"FStar.Reflection.Const.cons_qn",
"Prims.Cons",
"FStar.Stubs.Reflection.V1.Data.argv",
"FSt... | [] | false | false | false | true | false | let mk_cons_t (ty h t: term) : term =
| mk_app (pack_ln (Tv_FVar (pack_fv cons_qn))) [(ty, Q_Implicit); (h, Q_Explicit); (t, Q_Explicit)] | false |
Hacl.Spec.Curve25519.Field64.Definition.fst | Hacl.Spec.Curve25519.Field64.Definition.felem4 | val felem4 : Type0 | let felem4 = (uint64 * uint64 * uint64 * uint64) | {
"file_name": "code/curve25519/Hacl.Spec.Curve25519.Field64.Definition.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 10,
"start_col": 0,
"start_line": 10
} | module Hacl.Spec.Curve25519.Field64.Definition
open Lib.Sequence
open Lib.IntTypes
module P = Spec.Curve25519
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Hacl.Spec.Bignum.Definitions.fst.checked",
"Hacl.Spec.Bignum.Convert.fst.checked",
"Hacl.Impl.Curve... | [
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Ha... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple4",
"Lib.IntTypes.uint64"
] | [] | false | false | false | true | true | let felem4 =
| (((uint64 * uint64) * uint64) * uint64) | false | |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.inspect_ln_unascribe | val inspect_ln_unascribe (t: term) : tv: term_view{tv << t /\ notAscription tv} | val inspect_ln_unascribe (t: term) : tv: term_view{tv << t /\ notAscription tv} | let rec inspect_ln_unascribe (t:term) : tv:term_view{tv << t /\ notAscription tv} =
match inspect_ln t with
| Tv_AscribedT t' _ _ _
| Tv_AscribedC t' _ _ _ -> inspect_ln_unascribe t'
| tv -> tv | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 31,
"start_col": 0,
"start_line": 27
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term
-> tv:
FStar.Stubs.Reflection.V1.Data.term_view
{tv << t /\ FStar.Stubs.Reflection.V1.Data.notAscription tv} | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V1.Builtins.inspect_ln",
"FStar.Pervasives.Native.option",
"Prims.bool",
"FStar.Reflection.V1.Derived.inspect_ln_unascribe",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Stubs.Reflection.V1.Data.term_view",
"Prims.l_and",
"Prims.precedes",
... | [
"recursion"
] | false | false | false | false | false | let rec inspect_ln_unascribe (t: term) : tv: term_view{tv << t /\ notAscription tv} =
| match inspect_ln t with
| Tv_AscribedT t' _ _ _ | Tv_AscribedC t' _ _ _ -> inspect_ln_unascribe t'
| tv -> tv | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.mk_cons | val mk_cons (h t: term) : term | val mk_cons (h t: term) : term | let mk_cons (h t : term) : term =
mk_e_app (pack_ln (Tv_FVar (pack_fv cons_qn))) [h; t] | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 131,
"start_col": 0,
"start_line": 130
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Stubs.Reflection.Types.term -> t: FStar.Stubs.Reflection.Types.term
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.V1.Derived.mk_e_app",
"FStar.Stubs.Reflection.V1.Builtins.pack_ln",
"FStar.Stubs.Reflection.V1.Data.Tv_FVar",
"FStar.Stubs.Reflection.V1.Builtins.pack_fv",
"FStar.Reflection.Const.cons_qn",
"Prims.Cons",
"Prims.Nil"
] | [] | false | false | false | true | false | let mk_cons (h t: term) : term =
| mk_e_app (pack_ln (Tv_FVar (pack_fv cons_qn))) [h; t] | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.is_fvar | val is_fvar (t: term) (nm: string) : bool | val is_fvar (t: term) (nm: string) : bool | let is_fvar (t : term) (nm:string) : bool =
match inspect_ln_unascribe t with
| Tv_FVar fv
| Tv_UInst fv _ -> implode_qn (inspect_fv fv) = nm
| _ -> false | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 201,
"start_col": 0,
"start_line": 197
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term -> nm: Prims.string -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"Prims.string",
"FStar.Reflection.V1.Derived.inspect_ln_unascribe",
"FStar.Stubs.Reflection.Types.fv",
"Prims.op_Equality",
"FStar.Stubs.Reflection.V1.Builtins.implode_qn",
"FStar.Stubs.Reflection.V1.Builtins.inspect_fv",
"FStar.Stubs.Reflection.V1.Data.universes",... | [] | false | false | false | true | false | let is_fvar (t: term) (nm: string) : bool =
| match inspect_ln_unascribe t with
| Tv_FVar fv | Tv_UInst fv _ -> implode_qn (inspect_fv fv) = nm
| _ -> false | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.binder_set_qual | val binder_set_qual (q: aqualv) (b: binder) : Tot binder | val binder_set_qual (q: aqualv) (b: binder) : Tot binder | let binder_set_qual (q:aqualv) (b:binder) : Tot binder =
let bview = inspect_binder b in
pack_binder {bview with binder_qual=q} | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 217,
"start_col": 0,
"start_line": 215
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | q: FStar.Stubs.Reflection.V1.Data.aqualv -> b: FStar.Stubs.Reflection.Types.binder
-> FStar.Stubs.Reflection.Types.binder | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.V1.Data.aqualv",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.V1.Builtins.pack_binder",
"FStar.Stubs.Reflection.V1.Data.Mkbinder_view",
"FStar.Stubs.Reflection.V1.Data.__proj__Mkbinder_view__item__binder_bv",
"FStar.Stubs.Reflection.V1.Data.__proj__Mkbinder_view__... | [] | false | false | false | true | false | let binder_set_qual (q: aqualv) (b: binder) : Tot binder =
| let bview = inspect_binder b in
pack_binder ({ bview with binder_qual = q }) | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.is_uvar | val is_uvar (t: term) : bool | val is_uvar (t: term) : bool | let is_uvar (t : term) : bool =
match inspect_ln (head t) with
| Tv_Uvar _ _ -> true
| _ -> false | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 213,
"start_col": 0,
"start_line": 210
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V1.Builtins.inspect_ln",
"FStar.Reflection.V1.Derived.head",
"Prims.nat",
"FStar.Stubs.Reflection.Types.ctx_uvar_and_subst",
"FStar.Stubs.Reflection.V1.Data.term_view",
"Prims.bool"
] | [] | false | false | false | true | false | let is_uvar (t: term) : bool =
| match inspect_ln (head t) with
| Tv_Uvar _ _ -> true
| _ -> false | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.add_check_with | val add_check_with : vconfig -> sigelt -> Tot sigelt | val add_check_with : vconfig -> sigelt -> Tot sigelt | let add_check_with vcfg se =
let attrs = sigelt_attrs se in
let vcfg_t = embed_vconfig vcfg in
let t = `(check_with (`#vcfg_t)) in
set_sigelt_attrs (t :: attrs) se | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 225,
"start_col": 0,
"start_line": 221
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | vcfg: FStar.VConfig.vconfig -> se: FStar.Stubs.Reflection.Types.sigelt
-> FStar.Stubs.Reflection.Types.sigelt | Prims.Tot | [
"total"
] | [] | [
"FStar.VConfig.vconfig",
"FStar.Stubs.Reflection.Types.sigelt",
"FStar.Stubs.Reflection.V1.Builtins.set_sigelt_attrs",
"Prims.Cons",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V1.Builtins.embed_vconfig",
"Prims.list",
"FStar.Stubs.Reflection.V1.Builtins.sigelt_attrs"
] | [] | false | false | false | true | false | let add_check_with vcfg se =
| let attrs = sigelt_attrs se in
let vcfg_t = embed_vconfig vcfg in
let t = `(check_with (`#vcfg_t)) in
set_sigelt_attrs (t :: attrs) se | false |
FStar.Reflection.V1.Derived.fst | FStar.Reflection.V1.Derived.flatten_name | val flatten_name : name -> Tot string | val flatten_name : name -> Tot string | let rec flatten_name ns =
match ns with
| [] -> ""
| [n] -> n
| n::ns -> n ^ "." ^ flatten_name ns | {
"file_name": "ulib/FStar.Reflection.V1.Derived.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 60,
"start_col": 0,
"start_line": 56
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.VConfig.fsti.checked",
"FStar.Stubs.Reflection.V1.Data.fsti.checked",
"FStar.Stubs.Reflection.V1.Builtins.fsti.checked",
"FStar.Stubs.Reflection.Types.fsti.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasiv... | [
{
"abbrev": false,
"full_module": "FStar.VConfig",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Order",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Reflection.V1.Data",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ns: FStar.Stubs.Reflection.Types.name -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.name",
"Prims.string",
"Prims.list",
"Prims.op_Hat",
"FStar.Reflection.V1.Derived.flatten_name"
] | [
"recursion"
] | false | false | false | true | false | let rec flatten_name ns =
| match ns with
| [] -> ""
| [n] -> n
| n :: ns -> n ^ "." ^ flatten_name ns | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.