file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
LowParse.Spec.DER.fst
LowParse.Spec.DER.serialize_der_length_payload
val serialize_der_length_payload (x: U8.t) : Tot (serializer (parse_der_length_payload x))
val serialize_der_length_payload (x: U8.t) : Tot (serializer (parse_der_length_payload x))
let serialize_der_length_payload (x: U8.t) : Tot (serializer (parse_der_length_payload x)) = assert_norm (der_length_max == pow2 (8 * 126) - 1); assert_norm (pow2 7 == 128); assert_norm (pow2 8 == 256); assert_norm (256 < der_length_max); assert (U8.v x <= der_length_max); let (x' : der_length_t) = U8.v x i...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 567, "start_col": 0, "start_line": 534 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "LowPa...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt8.t -> LowParse.Spec.Base.serializer (LowParse.Spec.DER.parse_der_length_payload x)
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt8.t", "Prims.op_LessThan", "LowParse.Spec.Combinators.serialize_weaken", "LowParse.Spec.Combinators.parse_ret_kind", "LowParse.Spec.Base.refine_with_tag", "LowParse.Spec.DER.der_length_t", "LowParse.Spec.DER.tag_of_der_length", "LowParse.Spec.DER.parse_der_length_payload_kind", "LowParse....
[]
false
false
false
false
false
let serialize_der_length_payload (x: U8.t) : Tot (serializer (parse_der_length_payload x)) =
assert_norm (der_length_max == pow2 (8 * 126) - 1); assert_norm (pow2 7 == 128); assert_norm (pow2 8 == 256); assert_norm (256 < der_length_max); assert (U8.v x <= der_length_max); let x':der_length_t = U8.v x in if x' < 128 then serialize_weaken (parse_der_length_payload_kind x) (serialize_ret (x' <: refine_with...
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_st_comp
val elab_st_comp (c: st_comp) : R.universe & R.term & R.term & R.term
val elab_st_comp (c: st_comp) : R.universe & R.term & R.term & R.term
let elab_st_comp (c:st_comp) : R.universe & R.term & R.term & R.term = let res = elab_term c.res in let pre = elab_term c.pre in let post = elab_term c.post in c.u, res, pre, post
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 120, "start_col": 0, "start_line": 115 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.st_comp -> ((FStar.Stubs.Reflection.Types.universe * FStar.Stubs.Reflection.Types.term) * FStar.Stubs.Reflection.Types.term) * FStar.Stubs.Reflection.Types.term
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.st_comp", "FStar.Pervasives.Native.Mktuple4", "FStar.Stubs.Reflection.Types.universe", "FStar.Stubs.Reflection.Types.term", "Pulse.Syntax.Base.__proj__Mkst_comp__item__u", "Pulse.Elaborate.Pure.elab_term", "Pulse.Syntax.Base.__proj__Mkst_comp__item__post", "Pulse.Syntax.Base.__proj_...
[]
false
false
false
true
false
let elab_st_comp (c: st_comp) : R.universe & R.term & R.term & R.term =
let res = elab_term c.res in let pre = elab_term c.pre in let post = elab_term c.post in c.u, res, pre, post
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.block_state_t
val block_state_t : Type0
let block_state_t = Common.s Spec.Blake2S Core.M32
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 18, "start_col": 0, "start_line": 18 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32" ]
[]
false
false
false
true
true
let block_state_t =
Common.s Spec.Blake2S Core.M32
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_pats
val elab_pats (ps: list pattern) : Tot (list R.pattern)
val elab_pats (ps: list pattern) : Tot (list R.pattern)
let elab_pats (ps:list pattern) : Tot (list R.pattern) = L.map elab_pat ps
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 74, "end_line": 113, "start_col": 0, "start_line": 113 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ps: Prims.list Pulse.Syntax.Base.pattern -> Prims.list FStar.Stubs.Reflection.V2.Data.pattern
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Pulse.Syntax.Base.pattern", "FStar.List.Tot.Base.map", "FStar.Stubs.Reflection.V2.Data.pattern", "Pulse.Elaborate.Pure.elab_pat" ]
[]
false
false
false
true
false
let elab_pats (ps: list pattern) : Tot (list R.pattern) =
L.map elab_pat ps
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.synth_der_length_payload32
val synth_der_length_payload32 (x: U8.t{der_length_payload_size_of_tag x <= 4}) (y: refine_with_tag tag_of_der_length x) : GTot (refine_with_tag tag_of_der_length32 x)
val synth_der_length_payload32 (x: U8.t{der_length_payload_size_of_tag x <= 4}) (y: refine_with_tag tag_of_der_length x) : GTot (refine_with_tag tag_of_der_length32 x)
let synth_der_length_payload32 (x: U8.t { der_length_payload_size_of_tag x <= 4 } ) (y: refine_with_tag tag_of_der_length x) : GTot (refine_with_tag tag_of_der_length32 x) = let _ = assert_norm (der_length_max == pow2 (8 * 126) - 1); let _ = assert_norm (pow2 (8 * 2) == 65536) in let _ = assert_norm (po...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 17, "end_line": 802, "start_col": 0, "start_line": 788 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.E...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt8.t{LowParse.Spec.DER.der_length_payload_size_of_tag x <= 4} -> y: LowParse.Spec.Base.refine_with_tag LowParse.Spec.DER.tag_of_der_length x -> Prims.GTot (LowParse.Spec.Base.refine_with_tag LowParse.Spec.DER.tag_of_der_length32 x)
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.UInt8.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.Spec.DER.der_length_payload_size_of_tag", "LowParse.Spec.Base.refine_with_tag", "LowParse.Spec.DER.der_length_t", "LowParse.Spec.DER.tag_of_der_length", "FStar.UInt32.uint_to_t", "Prims.unit", "Prims.op_GreaterThanOrEqual", "Pri...
[]
false
false
false
false
false
let synth_der_length_payload32 (x: U8.t{der_length_payload_size_of_tag x <= 4}) (y: refine_with_tag tag_of_der_length x) : GTot (refine_with_tag tag_of_der_length32 x) =
let _ = assert_norm (der_length_max == pow2 (8 * 126) - 1); let _ = assert_norm (pow2 (8 * 2) == 65536) in let _ = assert_norm (pow2 (8 * 3) == 16777216) in let _ = assert_norm (pow2 (8 * 4) == 4294967296) in if y >= 128 then (Math.pow2_lt_recip (8 * (log256 y - 1)) (8 * 126); assert (U8.v (tag_of...
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.der_length_payload_size_of_tag_inv32
val der_length_payload_size_of_tag_inv32 (x: der_length_t) : Lemma (requires (x < 4294967296)) (ensures (tag_of_der_length x == (if x < 128 then U8.uint_to_t x else if x < 256 then 129uy else if x < 65536 then 130uy else if x ...
val der_length_payload_size_of_tag_inv32 (x: der_length_t) : Lemma (requires (x < 4294967296)) (ensures (tag_of_der_length x == (if x < 128 then U8.uint_to_t x else if x < 256 then 129uy else if x < 65536 then 130uy else if x ...
let der_length_payload_size_of_tag_inv32 (x: der_length_t) : Lemma (requires (x < 4294967296)) (ensures ( tag_of_der_length x == ( if x < 128 then U8.uint_to_t x else if x < 256 then 129uy else if x < 65536 then 130uy else if x < 16777216 then 131uy else 1...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 786, "start_col": 0, "start_line": 750 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.E...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: LowParse.Spec.DER.der_length_t -> FStar.Pervasives.Lemma (requires x < 4294967296) (ensures LowParse.Spec.DER.tag_of_der_length x == (match x < 128 with | true -> FStar.UInt8.uint_to_t x | _ -> (match x < 256 with | true -> 129uy | _...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.op_LessThan", "Prims.bool", "LowParse.Spec.DER.log256_unique", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.pow2", "FStar.Mul.op_Star", "LowParse.Math.pow2_lt_recip", "Prims.op_Subtraction", "LowParse.Spec.DER.der_len...
[]
false
false
true
false
false
let der_length_payload_size_of_tag_inv32 (x: der_length_t) : Lemma (requires (x < 4294967296)) (ensures (tag_of_der_length x == (if x < 128 then U8.uint_to_t x else if x < 256 then 129uy else if x < 65536 then 130uy else if x ...
if x < 128 then () else let len_len = log256 x in assert_norm (der_length_max == pow2 (8 * 126) - 1); Math.pow2_lt_recip (8 * (len_len - 1)) (8 * 126); assert_norm (pow2 (8 * 1) == 256); assert_norm (pow2 (8 * 2) == 65536); assert_norm (pow2 (8 * 3) == 16777216); assert_norm (pow2 (8 * 4) == 4294967296); ...
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.hash_with_key
val hash_with_key:Impl.blake2_st Spec.Blake2S Core.M32
val hash_with_key:Impl.blake2_st Spec.Blake2S Core.M32
let hash_with_key : Impl.blake2_st Spec.Blake2S Core.M32 = Impl.blake2 #Spec.Blake2S #Core.M32 Blake2s32.init Blake2s32.update Blake2s32.finish
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 86, "end_line": 60, "start_col": 0, "start_line": 59 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Blake2.Generic.blake2_st Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Blake2.Generic.blake2", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Blake2s_32.init", "Hacl.Blake2s_32.update", "Hacl.Blake2s_32.finish" ]
[]
false
false
false
true
false
let hash_with_key:Impl.blake2_st Spec.Blake2S Core.M32 =
Impl.blake2 #Spec.Blake2S #Core.M32 Blake2s32.init Blake2s32.update Blake2s32.finish
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.synth_der_length_payload32_injective
val synth_der_length_payload32_injective (x: U8.t{der_length_payload_size_of_tag x <= 4}) : Lemma (synth_injective (synth_der_length_payload32 x)) [SMTPat (synth_injective (synth_der_length_payload32 x))]
val synth_der_length_payload32_injective (x: U8.t{der_length_payload_size_of_tag x <= 4}) : Lemma (synth_injective (synth_der_length_payload32 x)) [SMTPat (synth_injective (synth_der_length_payload32 x))]
let synth_der_length_payload32_injective (x: U8.t { der_length_payload_size_of_tag x <= 4 } ) : Lemma (synth_injective (synth_der_length_payload32 x)) [SMTPat (synth_injective (synth_der_length_payload32 x))] = assert_norm (der_length_max == pow2 (8 * 126) - 1); let _ = assert_norm (pow2 (8 * 2) == 65536) in ...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 822, "start_col": 0, "start_line": 804 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.E...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt8.t{LowParse.Spec.DER.der_length_payload_size_of_tag x <= 4} -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_injective (LowParse.Spec.DER.synth_der_length_payload32 x)) [ SMTPat (LowParse.Spec.Combinators.synth_injective (LowParse.Spec.DER.synth_der_length_p...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.UInt8.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.Spec.DER.der_length_payload_size_of_tag", "LowParse.Spec.Combinators.synth_injective_intro'", "LowParse.Spec.Base.refine_with_tag", "LowParse.Spec.DER.der_length_t", "LowParse.Spec.DER.tag_of_der_length", "FStar.UInt32.t", "LowPar...
[]
false
false
true
false
false
let synth_der_length_payload32_injective (x: U8.t{der_length_payload_size_of_tag x <= 4}) : Lemma (synth_injective (synth_der_length_payload32 x)) [SMTPat (synth_injective (synth_der_length_payload32 x))] =
assert_norm (der_length_max == pow2 (8 * 126) - 1); let _ = assert_norm (pow2 (8 * 2) == 65536) in let _ = assert_norm (pow2 (8 * 3) == 16777216) in let _ = assert_norm (pow2 (8 * 4) == 4294967296) in synth_injective_intro' (synth_der_length_payload32 x) (fun (y1: refine_with_tag tag_of_der_length x) (y2: refine_with...
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.parse_der_length_payload_unfold
val parse_der_length_payload_unfold (x: U8.t) (input: bytes) : Lemma (let y = parse (parse_der_length_payload x) input in (256 < der_length_max) /\ (if U8.v x < 128 then tag_of_der_length (U8.v x) == x /\ y == Some (U8.v x, 0) else if x = 128uy || x = 255uy then y...
val parse_der_length_payload_unfold (x: U8.t) (input: bytes) : Lemma (let y = parse (parse_der_length_payload x) input in (256 < der_length_max) /\ (if U8.v x < 128 then tag_of_der_length (U8.v x) == x /\ y == Some (U8.v x, 0) else if x = 128uy || x = 255uy then y...
let parse_der_length_payload_unfold (x: U8.t) (input: bytes) : Lemma ( let y = parse (parse_der_length_payload x) input in (256 < der_length_max) /\ ( if U8.v x < 128 then tag_of_der_length (U8.v x) == x /\ y == Some (U8.v x, 0) else if x = 128uy || x = 255uy then y == None else if x =...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 211, "start_col": 0, "start_line": 135 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "LowPa...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt8.t -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures (let y = LowParse.Spec.Base.parse (LowParse.Spec.DER.parse_der_length_payload x) input in 256 < LowParse.Spec.DER.der_length_max /\ (match FStar.UInt8.v x < 128 with | true -> LowParse.Sp...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.UInt8.t", "LowParse.Bytes.bytes", "Prims.op_LessThan", "Prims.bool", "Prims.op_Equality", "FStar.UInt8.__uint_to_t", "LowParse.Spec.Base.parse", "LowParse.Spec.Int.parse_u8", "LowParse.Spec.Base.consumed_length", "Prims.op_GreaterThanOrEqual", "FStar.UInt8.v", "LowParse.Spec.DER.log256_...
[]
false
false
true
false
false
let parse_der_length_payload_unfold (x: U8.t) (input: bytes) : Lemma (let y = parse (parse_der_length_payload x) input in (256 < der_length_max) /\ (if U8.v x < 128 then tag_of_der_length (U8.v x) == x /\ y == Some (U8.v x, 0) else if x = 128uy || x = 255uy then y...
assert_norm (der_length_max == pow2 (8 * 126) - 1); assert_norm (pow2 7 == 128); assert_norm (pow2 8 == 256); assert_norm (256 < der_length_max); assert (U8.v x <= der_length_max); let x':der_length_t = U8.v x in if x' < 128 then () else if x = 128uy then () else if x = 255uy then () else if x =...
false
Alg.fst
Alg.sublist
val sublist : l1: Alg.ops -> l2: Alg.ops -> Prims.logical
let sublist (l1 l2 : ops) = forall x. memP x l1 ==> memP x l2
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 46, "start_col": 0, "start_line": 46 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
l1: Alg.ops -> l2: Alg.ops -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Prims.l_Forall", "Alg.op", "Prims.l_imp", "FStar.List.Tot.Base.memP", "Prims.logical" ]
[]
false
false
false
true
true
let sublist (l1 l2: ops) =
forall x. memP x l1 ==> memP x l2
false
EverCrypt.DRBG.fst
EverCrypt.DRBG.mk_reseed
val mk_reseed: #a:supported_alg -> EverCrypt.HMAC.compute_st a -> reseed_st a
val mk_reseed: #a:supported_alg -> EverCrypt.HMAC.compute_st a -> reseed_st a
let mk_reseed #a hmac st additional_input additional_input_len = if additional_input_len >. max_additional_input_length then false else let entropy_input_len = min_length a in push_frame(); let entropy_input = B.alloca (u8 0) entropy_input_len in let ok = randombytes entropy_input entropy_input_...
{ "file_name": "providers/evercrypt/fst/EverCrypt.DRBG.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 174, "start_col": 0, "start_line": 152 }
module EverCrypt.DRBG open FStar.HyperStack.ST open Lib.IntTypes open Spec.Hash.Definitions module HS = FStar.HyperStack module B = LowStar.Buffer module S = Spec.HMAC_DRBG open Hacl.HMAC_DRBG open Lib.RandomBuffer.System open LowStar.BufferOps friend Hacl.HMAC_DRBG friend EverCrypt.HMAC #set-options "--max_ifuel...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.RandomBuffer.System.fsti.checked", "Lib.Memzero0.fsti.checked", "Lib.IntTypes.fsti.che...
[ { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_module": "Lib.RandomBuffer.System", "short_module": null }, { "abbrev": false, "full_module": "Hacl.HMAC_DRBG", "short_module": null }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hmac: EverCrypt.HMAC.compute_st a -> EverCrypt.DRBG.reseed_st a
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "EverCrypt.HMAC.compute_st", "EverCrypt.DRBG.state", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Lib.IntTypes.size_t", "Lib.IntTypes.op_Greater_Dot", "Lib.IntTypes.U32", "Hacl.HMAC_DRBG.max_additional_input_length", "Prims.bool", "Prims.unit", "FStar.HyperSt...
[]
false
false
false
false
false
let mk_reseed #a hmac st additional_input additional_input_len =
if additional_input_len >. max_additional_input_length then false else let entropy_input_len = min_length a in push_frame (); let entropy_input = B.alloca (u8 0) entropy_input_len in let ok = randombytes entropy_input entropy_input_len in let result = if not ok then false else (S.hmac_input_...
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.serialize_bounded_der_length32_size
val serialize_bounded_der_length32_size (min: der_length_t) (max: der_length_t { min <= max /\ max < 4294967296 }) (y': bounded_int32 min max) : Lemma ( Seq.length (serialize (serialize_bounded_der_length32 min max) y') == ( if y' `U32.lt` 128ul then 1 else if y' `U32.lt` 256ul then ...
val serialize_bounded_der_length32_size (min: der_length_t) (max: der_length_t { min <= max /\ max < 4294967296 }) (y': bounded_int32 min max) : Lemma ( Seq.length (serialize (serialize_bounded_der_length32 min max) y') == ( if y' `U32.lt` 128ul then 1 else if y' `U32.lt` 256ul then ...
let serialize_bounded_der_length32_size min max y' = serialize_bounded_der_length32_unfold min max y'
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 50, "end_line": 1008, "start_col": 0, "start_line": 1006 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.E...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: LowParse.Spec.DER.der_length_t -> max: LowParse.Spec.DER.der_length_t{min <= max /\ max < 4294967296} -> y': LowParse.Spec.BoundedInt.bounded_int32 min max -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.length (LowParse.Spec.Base.serialize (LowParse.Spec.DER.serialize_bounded_der_length...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.DER.serialize_bounded_der_length32_unfold", "Prims.unit" ]
[]
true
false
true
false
false
let serialize_bounded_der_length32_size min max y' =
serialize_bounded_der_length32_unfold min max y'
false
Alg.fst
Alg.abides_sublist
val abides_sublist (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)]
val abides_sublist (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)]
let abides_sublist #a (l1 l2 : ops) (c : tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)] = abides_sublist_nopat l1 l2 c
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 97, "start_col": 0, "start_line": 93 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
l1: Alg.ops -> l2: Alg.ops -> c: Alg.tree0 a -> FStar.Pervasives.Lemma (requires Alg.abides l1 c /\ Alg.sublist l1 l2) (ensures Alg.abides l2 c) [SMTPat (Alg.abides l2 c); SMTPat (Alg.sublist l1 l2)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Alg.ops", "Alg.tree0", "Alg.abides_sublist_nopat", "Prims.unit", "Prims.l_and", "Alg.abides", "Alg.sublist", "Prims.squash", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.prop", "Prims.logical", "Prims.Nil" ]
[]
true
false
true
false
false
let abides_sublist #a (l1: ops) (l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2 c)) [SMTPat (abides l2 c); SMTPat (sublist l1 l2)] =
abides_sublist_nopat l1 l2 c
false
Alg.fst
Alg.handle_tree
val handle_tree (#a #b:_) (#labs0 #labs1 : ops) ($f : tree a labs0) (v : a -> tree b labs1) (h : handler_tree labs0 b labs1) : tree b labs1
val handle_tree (#a #b:_) (#labs0 #labs1 : ops) ($f : tree a labs0) (v : a -> tree b labs1) (h : handler_tree labs0 b labs1) : tree b labs1
let handle_tree f v h = fold_with f v h
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 148, "start_col": 0, "start_line": 148 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: Alg.tree a labs0 -> v: (_: a -> Alg.tree b labs1) -> h: Alg.handler_tree labs0 b labs1 -> Alg.tree b labs1
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.tree", "Alg.handler_tree", "Alg.fold_with" ]
[]
false
false
false
false
false
let handle_tree f v h =
fold_with f v h
false
Alg.fst
Alg.handler_tree_op
val handler_tree_op : o: Alg.op -> b: Type -> labs: Alg.ops -> Type
let handler_tree_op (o:op) (b:Type) (labs:ops) = op_inp o -> (op_out o -> tree b labs) -> tree b labs
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 54, "end_line": 135, "start_col": 0, "start_line": 134 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
o: Alg.op -> b: Type -> labs: Alg.ops -> Type
Prims.Tot
[ "total" ]
[]
[ "Alg.op", "Alg.ops", "Alg.op_inp", "Alg.op_out", "Alg.tree" ]
[]
false
false
false
true
true
let handler_tree_op (o: op) (b: Type) (labs: ops) =
op_inp o -> (op_out o -> tree b labs) -> tree b labs
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_comp
val elab_comp (c: comp) : R.term
val elab_comp (c: comp) : R.term
let elab_comp (c:comp) : R.term = match c with | C_Tot t -> elab_term t | C_ST c -> let u, res, pre, post = elab_st_comp c in mk_stt_comp u res pre (mk_abs res R.Q_Explicit post) | C_STAtomic inames obs c -> let inames = elab_term inames in let u, res, pre, post = elab_st...
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 64, "end_line": 140, "start_col": 0, "start_line": 122 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.comp -> FStar.Stubs.Reflection.Types.term
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.term", "Pulse.Elaborate.Pure.elab_term", "Pulse.Syntax.Base.st_comp", "FStar.Stubs.Reflection.Types.universe", "FStar.Stubs.Reflection.Types.term", "Pulse.Reflection.Util.mk_stt_comp", "Pulse.Reflection.Util.mk_abs", "FStar.Stubs.Reflection.V2.Data.Q_Expl...
[]
false
false
false
true
false
let elab_comp (c: comp) : R.term =
match c with | C_Tot t -> elab_term t | C_ST c -> let u, res, pre, post = elab_st_comp c in mk_stt_comp u res pre (mk_abs res R.Q_Explicit post) | C_STAtomic inames obs c -> let inames = elab_term inames in let u, res, pre, post = elab_st_comp c in let post = mk_abs res R.Q_Explicit post in mk_stt_atomic_co...
false
Pulse.Typing.Metatheory.Base.fsti
Pulse.Typing.Metatheory.Base.inames_of_comp_st
val inames_of_comp_st : c: Pulse.Syntax.Base.comp_st -> Pulse.Syntax.Base.term
let inames_of_comp_st (c:comp_st) = match c with | C_STAtomic _ _ _ -> comp_inames c | _ -> tm_emp_inames
{ "file_name": "lib/steel/pulse/Pulse.Typing.Metatheory.Base.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 22, "end_line": 41, "start_col": 0, "start_line": 38 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.TypeChecker.Core.fsti.checked", "FStar.Reflection....
[ { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Pulse.Syntax.Base.comp_st -> Pulse.Syntax.Base.term
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.comp_st", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.observability", "Pulse.Syntax.Base.st_comp", "Pulse.Syntax.Base.comp_inames", "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.tm_emp_inames" ]
[]
false
false
false
true
false
let inames_of_comp_st (c: comp_st) =
match c with | C_STAtomic _ _ _ -> comp_inames c | _ -> tm_emp_inames
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_pat
val elab_pat (p: pattern) : Tot R.pattern
val elab_pat (p: pattern) : Tot R.pattern
let rec elab_pat (p:pattern) : Tot R.pattern = let elab_fv (f:fv) : R.fv = R.pack_fv f.fv_name in match p with | Pat_Constant c -> R.Pat_Constant c | Pat_Var v ty -> R.Pat_Var RT.sort_default v | Pat_Cons fv vs -> R.Pat_Cons (elab_fv fv) None (Pulse.Common.map_dec p vs elab_sub_pat) | Pat_Dot_Term...
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 15, "end_line": 111, "start_col": 0, "start_line": 96 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Pulse.Syntax.Base.pattern -> FStar.Stubs.Reflection.V2.Data.pattern
Prims.Tot
[ "total" ]
[ "elab_pat", "elab_sub_pat" ]
[ "Pulse.Syntax.Base.pattern", "Pulse.Syntax.Base.constant", "FStar.Stubs.Reflection.V2.Data.Pat_Constant", "FStar.Reflection.Typing.pp_name_t", "FStar.Reflection.Typing.sort_t", "FStar.Stubs.Reflection.V2.Data.Pat_Var", "FStar.Reflection.Typing.sort_default", "Pulse.Syntax.Base.fv", "Prims.list", "...
[ "mutual recursion" ]
false
false
false
true
false
let rec elab_pat (p: pattern) : Tot R.pattern =
let elab_fv (f: fv) : R.fv = R.pack_fv f.fv_name in match p with | Pat_Constant c -> R.Pat_Constant c | Pat_Var v ty -> R.Pat_Var RT.sort_default v | Pat_Cons fv vs -> R.Pat_Cons (elab_fv fv) None (Pulse.Common.map_dec p vs elab_sub_pat) | Pat_Dot_Term None -> R.Pat_Dot_Term None | Pat_Dot_Term (Some t) -> R.Pat_Dot_Te...
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.free
val free : Hacl.Streaming.Functor.free_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) (FStar.Ghost.reveal (FStar.Ghost.hide ())) (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
let free = F.free (blake2s_32 0) (G.hide ()) (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 100, "end_line": 48, "start_col": 0, "start_line": 47 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Streaming.Functor.free_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) (FStar.Ghost.reveal (FStar.Ghost.hide ())) (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.free", "Prims.unit", "Hacl.Streaming.Blake2s_32.blake2s_32", "FStar.Ghost.hide", "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Streaming.Blake2.Common.empty_key" ]
[]
false
false
false
false
false
let free =
F.free (blake2s_32 0) (G.hide ()) (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.state_t
val state_t : Type0
let state_t = F.state_s (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 106, "end_line": 19, "start_col": 0, "start_line": 19 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.state_s", "Prims.unit", "Hacl.Streaming.Blake2s_32.blake2s_32", "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Streaming.Blake2.Common.empty_key" ]
[]
false
false
false
true
true
let state_t =
F.state_s (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_qual
val elab_qual : _: FStar.Pervasives.Native.option Pulse.Syntax.Base.qualifier -> FStar.Stubs.Reflection.V2.Data.aqualv
let elab_qual = function | None -> R.Q_Explicit | Some Implicit -> R.Q_Implicit
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 33, "end_line": 34, "start_col": 0, "start_line": 32 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "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.Pervasives.Native.option Pulse.Syntax.Base.qualifier -> FStar.Stubs.Reflection.V2.Data.aqualv
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.option", "Pulse.Syntax.Base.qualifier", "FStar.Stubs.Reflection.V2.Data.Q_Explicit", "FStar.Stubs.Reflection.V2.Data.Q_Implicit", "FStar.Stubs.Reflection.V2.Data.aqualv" ]
[]
false
false
false
true
false
let elab_qual =
function | None -> R.Q_Explicit | Some Implicit -> R.Q_Implicit
false
Alg.fst
Alg.abides
val abides (#a: _) (labs: ops) (f: tree0 a) : prop
val abides (#a: _) (labs: ops) (f: tree0 a) : prop
let rec abides #a (labs:ops) (f : tree0 a) : prop = begin match f with | Op a i k -> a `memP` labs /\ (forall o. abides labs (k o)) | Return _ -> True end
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 53, "start_col": 0, "start_line": 49 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
labs: Alg.ops -> f: Alg.tree0 a -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.tree0", "Alg.op", "Alg.op_inp", "Alg.op_out", "Prims.l_and", "FStar.List.Tot.Base.memP", "Prims.l_Forall", "Alg.abides", "Prims.l_True", "Prims.prop" ]
[ "recursion" ]
false
false
false
true
true
let rec abides #a (labs: ops) (f: tree0 a) : prop =
match f with | Op a i k -> a `memP` labs /\ (forall o. abides labs (k o)) | Return _ -> True
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_observability
val elab_observability : _: Pulse.Syntax.Base.observability -> FStar.Stubs.Reflection.Types.term
let elab_observability = let open R in function | Neutral -> pack_ln (Tv_FVar (pack_fv neutral_lid)) | Unobservable -> pack_ln (Tv_FVar (pack_fv unobservable_lid)) | Observable -> pack_ln (Tv_FVar (pack_fv observable_lid))
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 61, "end_line": 41, "start_col": 0, "start_line": 36 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Pulse.Syntax.Base.observability -> FStar.Stubs.Reflection.Types.term
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.observability", "FStar.Stubs.Reflection.V2.Builtins.pack_ln", "FStar.Stubs.Reflection.V2.Data.Tv_FVar", "FStar.Stubs.Reflection.V2.Builtins.pack_fv", "Pulse.Reflection.Util.neutral_lid", "Pulse.Reflection.Util.unobservable_lid", "Pulse.Reflection.Util.observable_lid", "FStar.Stubs.R...
[]
false
false
false
true
false
let elab_observability =
let open R in function | Neutral -> pack_ln (Tv_FVar (pack_fv neutral_lid)) | Unobservable -> pack_ln (Tv_FVar (pack_fv unobservable_lid)) | Observable -> pack_ln (Tv_FVar (pack_fv observable_lid))
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_term
val elab_term (top: term) : R.term
val elab_term (top: term) : R.term
let rec elab_term (top:term) : R.term = let open R in let w t' = RU.set_range t' top.range in match top.t with | Tm_VProp -> w (pack_ln (Tv_FVar (pack_fv vprop_lid))) | Tm_Emp -> w (pack_ln (Tv_FVar (pack_fv emp_lid))) | Tm_Inv p -> let p = elab_term p in let head...
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 9, "end_line": 93, "start_col": 0, "start_line": 43 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "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
top: Pulse.Syntax.Base.term -> FStar.Stubs.Reflection.Types.term
Prims.Tot
[ "total" ]
[]
[ "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "FStar.Stubs.Reflection.V2.Builtins.pack_ln", "FStar.Stubs.Reflection.V2.Data.Tv_FVar", "FStar.Stubs.Reflection.V2.Builtins.pack_fv", "Pulse.Reflection.Util.vprop_lid", "Pulse.Reflection.Util.emp_lid", "FStar.Stubs.Reflection.V2.Da...
[ "recursion" ]
false
false
false
true
false
let rec elab_term (top: term) : R.term =
let open R in let w t' = RU.set_range t' top.range in match top.t with | Tm_VProp -> w (pack_ln (Tv_FVar (pack_fv vprop_lid))) | Tm_Emp -> w (pack_ln (Tv_FVar (pack_fv emp_lid))) | Tm_Inv p -> let p = elab_term p in let head = pack_ln (Tv_FVar (pack_fv inv_lid)) in w (pack_ln (Tv_App head (p, Q_Explicit))) | Tm_P...
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.blake2s_32
val blake2s_32 : kk: Hacl.Streaming.Blake2.Common.key_size Spec.Blake2.Definitions.Blake2S -> Hacl.Streaming.Interface.block Prims.unit
let blake2s_32 kk = Common.blake2 Spec.Blake2S Core.M32 kk Blake2s32.init Blake2s32.update_multi Blake2s32.update_last Blake2s32.finish
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 14, "start_col": 0, "start_line": 12 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
kk: Hacl.Streaming.Blake2.Common.key_size Spec.Blake2.Definitions.Blake2S -> Hacl.Streaming.Interface.block Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Blake2.Common.key_size", "Spec.Blake2.Definitions.Blake2S", "Hacl.Streaming.Blake2.Common.blake2", "Hacl.Impl.Blake2.Core.M32", "Hacl.Blake2s_32.init", "Hacl.Blake2s_32.update_multi", "Hacl.Blake2s_32.update_last", "Hacl.Blake2s_32.finish", "Hacl.Streaming.Interface.block", "Prims....
[]
false
false
false
true
false
let blake2s_32 kk =
Common.blake2 Spec.Blake2S Core.M32 kk Blake2s32.init Blake2s32.update_multi Blake2s32.update_last Blake2s32.finish
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_sub_pat
val elab_sub_pat (pi: pattern & bool) : R.pattern & bool
val elab_sub_pat (pi: pattern & bool) : R.pattern & bool
let rec elab_pat (p:pattern) : Tot R.pattern = let elab_fv (f:fv) : R.fv = R.pack_fv f.fv_name in match p with | Pat_Constant c -> R.Pat_Constant c | Pat_Var v ty -> R.Pat_Var RT.sort_default v | Pat_Cons fv vs -> R.Pat_Cons (elab_fv fv) None (Pulse.Common.map_dec p vs elab_sub_pat) | Pat_Dot_Term...
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 15, "end_line": 111, "start_col": 0, "start_line": 96 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "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
pi: (Pulse.Syntax.Base.pattern * Prims.bool) -> FStar.Stubs.Reflection.V2.Data.pattern * Prims.bool
Prims.Tot
[ "total" ]
[ "elab_pat", "elab_sub_pat" ]
[ "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.pattern", "Prims.bool", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.V2.Data.pattern", "Pulse.Elaborate.Pure.elab_pat" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec elab_sub_pat (pi: pattern & bool) : R.pattern & bool =
let p, i = pi in elab_pat p, i
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_statomic_equiv
val elab_statomic_equiv (g: R.env) (c: comp{C_STAtomic? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STAtomic inames obs {...
val elab_statomic_equiv (g: R.env) (c: comp{C_STAtomic? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STAtomic inames obs {...
let elab_statomic_equiv (g:R.env) (c:comp{C_STAtomic? c}) (pre:R.term) (post:R.term) (eq_pre:RT.equiv g pre (elab_term (comp_pre c))) (eq_post:RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STAtomic inames obs {u;res} = c in ...
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 184, "start_col": 0, "start_line": 159 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: FStar.Stubs.Reflection.Types.env -> c: Pulse.Syntax.Base.comp{C_STAtomic? c} -> pre: FStar.Stubs.Reflection.Types.term -> post: FStar.Stubs.Reflection.Types.term -> eq_pre: FStar.Reflection.Typing.equiv g pre (Pulse.Elaborate.Pure.elab_term (Pulse.Syntax.Base.comp_pre c)) -...
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Reflection.Types.env", "Pulse.Syntax.Base.comp", "Prims.b2t", "Pulse.Syntax.Base.uu___is_C_STAtomic", "FStar.Stubs.Reflection.Types.term", "FStar.Reflection.Typing.equiv", "Pulse.Elaborate.Pure.elab_term", "Pulse.Syntax.Base.comp_pre", "Pulse.Reflection.Util.mk_abs", "Pulse.Syntax.Bas...
[]
false
false
false
false
false
let elab_statomic_equiv (g: R.env) (c: comp{C_STAtomic? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STAtomic inames obs {...
let C_STAtomic inames obs { u = u ; res = res } = c in let c' = mk_stt_atomic_comp (elab_observability obs) u (elab_term res) (elab_term inames) pre post in mk_stt_atomic_comp_equiv _ (elab_observability obs) (comp_u c) (elab_term (comp_res c)) (elab_term inames) _ _ _ _ eq_pre eq_post
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.reset
val reset : Hacl.Streaming.Functor.reset_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) (FStar.Ghost.hide (FStar.Ghost.reveal (FStar.Ghost.hide ()))) (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
let reset = F.reset (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 92, "end_line": 36, "start_col": 0, "start_line": 35 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Streaming.Functor.reset_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) (FStar.Ghost.hide (FStar.Ghost.reveal (FStar.Ghost.hide ()))) (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.reset", "Prims.unit", "Hacl.Streaming.Blake2s_32.blake2s_32", "FStar.Ghost.hide", "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Streaming.Blake2.Common.empty_key" ]
[]
false
false
false
false
false
let reset =
F.reset (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
false
Alg.fst
Alg.abides_app
val abides_app (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1 @ l2) c)) [SMTPat (abides (l1 @ l2) c)]
val abides_app (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1 @ l2) c)) [SMTPat (abides (l1 @ l2) c)]
let abides_app #a (l1 l2 : ops) (c : tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1@l2) c)) [SMTPat (abides (l1@l2) c)] = sublist_at l1 l2
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 112, "start_col": 0, "start_line": 108 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
l1: Alg.ops -> l2: Alg.ops -> c: Alg.tree0 a -> FStar.Pervasives.Lemma (requires Alg.abides l1 c \/ Alg.abides l2 c) (ensures Alg.abides (l1 @ l2) c) [SMTPat (Alg.abides (l1 @ l2) c)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Alg.ops", "Alg.tree0", "Alg.sublist_at", "Prims.unit", "Prims.l_or", "Alg.abides", "Prims.squash", "FStar.List.Tot.Base.op_At", "Alg.op", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.prop", "Prims.Nil" ]
[]
true
false
true
false
false
let abides_app #a (l1: ops) (l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c \/ abides l2 c)) (ensures (abides (l1 @ l2) c)) [SMTPat (abides (l1 @ l2) c)] =
sublist_at l1 l2
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.malloc
val malloc : Hacl.Streaming.Functor.malloc_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) () (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
let malloc = F.malloc (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 32, "start_col": 0, "start_line": 31 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Streaming.Functor.malloc_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) () (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.malloc", "Prims.unit", "Hacl.Streaming.Blake2s_32.blake2s_32", "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Streaming.Blake2.Common.empty_key" ]
[]
false
false
false
false
false
let malloc =
F.malloc (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
false
Alg.fst
Alg.abides_sublist_nopat
val abides_sublist_nopat (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c)
val abides_sublist_nopat (#a: _) (l1 l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c)
let rec abides_sublist_nopat #a (l1 l2 : ops) (c : tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c) = match c with | Return _ -> () | Op a i k -> let sub o : Lemma (abides l2 (k o)) = abides_sublist_nopat l1 l2 (k o) in Classical.forall_i...
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 91, "start_col": 0, "start_line": 82 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
l1: Alg.ops -> l2: Alg.ops -> c: Alg.tree0 a -> FStar.Pervasives.Lemma (requires Alg.abides l1 c /\ Alg.sublist l1 l2) (ensures Alg.abides l2 c)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Alg.ops", "Alg.tree0", "Alg.op", "Alg.op_inp", "Alg.op_out", "FStar.Classical.forall_intro", "Alg.abides", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Alg.abides_sublist_nopat", "Prims.l_and", "Alg.sublist" ]
[ "recursion" ]
false
false
true
false
false
let rec abides_sublist_nopat #a (l1: ops) (l2: ops) (c: tree0 a) : Lemma (requires (abides l1 c) /\ sublist l1 l2) (ensures (abides l2) c) =
match c with | Return _ -> () | Op a i k -> let sub o : Lemma (abides l2 (k o)) = abides_sublist_nopat l1 l2 (k o) in Classical.forall_intro sub
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_stghost_equiv
val elab_stghost_equiv (g: R.env) (c: comp{C_STGhost? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STGhost { u = u ; res =...
val elab_stghost_equiv (g: R.env) (c: comp{C_STGhost? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STGhost { u = u ; res =...
let elab_stghost_equiv (g:R.env) (c:comp{C_STGhost? c}) (pre:R.term) (post:R.term) (eq_pre:RT.equiv g pre (elab_term (comp_pre c))) (eq_post:RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STGhost {u;res} = c in mk_stt_...
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 26, "end_line": 202, "start_col": 0, "start_line": 186 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: FStar.Stubs.Reflection.Types.env -> c: Pulse.Syntax.Base.comp{C_STGhost? c} -> pre: FStar.Stubs.Reflection.Types.term -> post: FStar.Stubs.Reflection.Types.term -> eq_pre: FStar.Reflection.Typing.equiv g pre (Pulse.Elaborate.Pure.elab_term (Pulse.Syntax.Base.comp_pre c)) ->...
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Reflection.Types.env", "Pulse.Syntax.Base.comp", "Prims.b2t", "Pulse.Syntax.Base.uu___is_C_STGhost", "FStar.Stubs.Reflection.Types.term", "FStar.Reflection.Typing.equiv", "Pulse.Elaborate.Pure.elab_term", "Pulse.Syntax.Base.comp_pre", "Pulse.Reflection.Util.mk_abs", "Pulse.Syntax.Base...
[]
false
false
false
false
false
let elab_stghost_equiv (g: R.env) (c: comp{C_STGhost? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_STGhost { u = u ; res =...
let C_STGhost _ = c in mk_stt_ghost_comp_equiv _ (comp_u c) (elab_term (comp_res c)) _ _ _ _ eq_pre eq_post
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.serialize_bounded_der_length32_unfold
val serialize_bounded_der_length32_unfold (min: der_length_t) (max: der_length_t { min <= max /\ max < 4294967296 }) (y': bounded_int32 min max) : Lemma ( let res = serialize (serialize_bounded_der_length32 min max) y' in let x = tag_of_der_length32_impl y' in let s1 = Seq.create 1 x in if x `U8...
val serialize_bounded_der_length32_unfold (min: der_length_t) (max: der_length_t { min <= max /\ max < 4294967296 }) (y': bounded_int32 min max) : Lemma ( let res = serialize (serialize_bounded_der_length32 min max) y' in let x = tag_of_der_length32_impl y' in let s1 = Seq.create 1 x in if x `U8...
let serialize_bounded_der_length32_unfold min max y' = serialize_synth_eq _ (synth_bounded_der_length32 min max) (serialize_bounded_der_length min max) (synth_bounded_der_length32_recip min max) () y'; serialize_bounded_der_length_unfold min max (U32.v y'); let x = tag_of_der_length32_impl...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 7, "end_line": 1003, "start_col": 0, "start_line": 983 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.E...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: LowParse.Spec.DER.der_length_t -> max: LowParse.Spec.DER.der_length_t{min <= max /\ max < 4294967296} -> y': LowParse.Spec.BoundedInt.bounded_int32 min max -> FStar.Pervasives.Lemma (ensures (let res = LowParse.Spec.Base.serialize (LowParse.Spec.DER.serialize_bounded_der_length32...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.BoundedInt.bounded_int32", "FStar.UInt8.lt", "FStar.UInt8.__uint_to_t", "Prims.bool", "Prims.op_Equality", "FStar.UInt8.t", "FStar.Math.Lemmas.small_modulo_lemma_1", ...
[]
false
false
true
false
false
let serialize_bounded_der_length32_unfold min max y' =
serialize_synth_eq _ (synth_bounded_der_length32 min max) (serialize_bounded_der_length min max) (synth_bounded_der_length32_recip min max) () y'; serialize_bounded_der_length_unfold min max (U32.v y'); let x = tag_of_der_length32_impl y' in if x `U8.lt` 128uy then () else if x = 129uy then FStar.Math.Lem...
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.update
val update : Hacl.Streaming.Functor.update_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) (FStar.Ghost.reveal (FStar.Ghost.hide ())) (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
let update = F.update (blake2s_32 0) (G.hide ()) (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 102, "end_line": 40, "start_col": 0, "start_line": 39 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Streaming.Functor.update_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) (FStar.Ghost.reveal (FStar.Ghost.hide ())) (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.update", "Prims.unit", "Hacl.Streaming.Blake2s_32.blake2s_32", "FStar.Ghost.hide", "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Streaming.Blake2.Common.empty_key" ]
[]
false
false
false
false
false
let update =
F.update (blake2s_32 0) (G.hide ()) (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
false
Alg.fst
Alg.abides_at_self
val abides_at_self (#a: _) (l: ops) (c: tree0 a) : Lemma (abides (l @ l) c <==> abides l c) [SMTPat (abides (l @ l) c)]
val abides_at_self (#a: _) (l: ops) (c: tree0 a) : Lemma (abides (l @ l) c <==> abides l c) [SMTPat (abides (l @ l) c)]
let abides_at_self #a (l : ops) (c : tree0 a) : Lemma (abides (l@l) c <==> abides l c) [SMTPat (abides (l@l) c)] = (* Trigger some patterns *) assert (sublist l (l@l)); assert (sublist (l@l) l)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 106, "start_col": 0, "start_line": 99 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Alg.ops -> c: Alg.tree0 a -> FStar.Pervasives.Lemma (ensures Alg.abides (l @ l) c <==> Alg.abides l c) [SMTPat (Alg.abides (l @ l) c)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Alg.ops", "Alg.tree0", "Prims._assert", "Alg.sublist", "FStar.List.Tot.Base.op_At", "Alg.op", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "Alg.abides", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.prop", "Prims.Nil" ]
[]
true
false
true
false
false
let abides_at_self #a (l: ops) (c: tree0 a) : Lemma (abides (l @ l) c <==> abides l c) [SMTPat (abides (l @ l) c)] =
assert (sublist l (l @ l)); assert (sublist (l @ l) l)
false
Alg.fst
Alg.sublist_at
val sublist_at (l1 l2: ops) : Lemma (sublist l1 (l1 @ l2) /\ sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (sublist l1 (l1 @ l2))]; [SMTPat (sublist l2 (l1 @ l2))]]]
val sublist_at (l1 l2: ops) : Lemma (sublist l1 (l1 @ l2) /\ sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (sublist l1 (l1 @ l2))]; [SMTPat (sublist l2 (l1 @ l2))]]]
let rec sublist_at (l1 l2 : ops) : Lemma (sublist l1 (l1@l2) /\ sublist l2 (l1@l2)) [SMTPatOr [[SMTPat (sublist l1 (l1@l2))]; [SMTPat (sublist l2 (l1@l2))]]] = match l1 with | [] -> () | _::l1 -> sublist_at l1 l2
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 75, "start_col": 0, "start_line": 68 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
l1: Alg.ops -> l2: Alg.ops -> FStar.Pervasives.Lemma (ensures Alg.sublist l1 (l1 @ l2) /\ Alg.sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (Alg.sublist l1 (l1 @ l2))]; [SMTPat (Alg.sublist l2 (l1 @ l2))]]]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Alg.ops", "Alg.op", "Prims.list", "Alg.sublist_at", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_and", "Alg.sublist", "FStar.List.Tot.Base.op_At", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat_or", "FStar.Pervasives.smt_pat", "Prims.logical", "Prims.Nil...
[ "recursion" ]
false
false
true
false
false
let rec sublist_at (l1 l2: ops) : Lemma (sublist l1 (l1 @ l2) /\ sublist l2 (l1 @ l2)) [SMTPatOr [[SMTPat (sublist l1 (l1 @ l2))]; [SMTPat (sublist l2 (l1 @ l2))]]] =
match l1 with | [] -> () | _ :: l1 -> sublist_at l1 l2
false
Alg.fst
Alg.bind
val bind (a b: Type) (#labs1 #labs2: ops) (c: tree a labs1) (f: (x: a -> tree b labs2)) : Tot (tree b (labs1 @ labs2))
val bind (a b: Type) (#labs1 #labs2: ops) (c: tree a labs1) (f: (x: a -> tree b labs2)) : Tot (tree b (labs1 @ labs2))
let bind (a b : Type) (#labs1 #labs2 : ops) (c : tree a labs1) (f : (x:a -> tree b labs2)) : Tot (tree b (labs1@labs2)) = handle_tree #_ #_ #_ #(labs1@labs2) c f (fun act i k -> Op act i k)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 71, "end_line": 159, "start_col": 0, "start_line": 154 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> c: Alg.tree a labs1 -> f: (x: a -> Alg.tree b labs2) -> Alg.tree b (labs1 @ labs2)
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.tree", "Alg.handle_tree", "FStar.List.Tot.Base.op_At", "Alg.op", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.Op" ]
[]
false
false
false
false
false
let bind (a b: Type) (#labs1 #labs2: ops) (c: tree a labs1) (f: (x: a -> tree b labs2)) : Tot (tree b (labs1 @ labs2)) =
handle_tree #_ #_ #_ #(labs1 @ labs2) c f (fun act i k -> Op act i k)
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.digest
val digest : Hacl.Streaming.Functor.digest_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) () (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
let digest = F.digest (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 44, "start_col": 0, "start_line": 43 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Streaming.Functor.digest_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) () (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.digest", "Prims.unit", "Hacl.Streaming.Blake2s_32.blake2s_32", "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Streaming.Blake2.Common.empty_key" ]
[]
false
false
false
false
false
let digest =
F.digest (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
false
Alg.fst
Alg.fold_with
val fold_with (#a #b:_) (#labs : ops) (f:tree a labs) (v : a -> b) (h: (o:op{o `memP` labs} -> op_inp o -> (op_out o -> b) -> b)) : b
val fold_with (#a #b:_) (#labs : ops) (f:tree a labs) (v : a -> b) (h: (o:op{o `memP` labs} -> op_inp o -> (op_out o -> b) -> b)) : b
let rec fold_with #a #b #labs f v h = match f with | Return x -> v x | Op act i k -> let k' (o : op_out act) : b = fold_with #_ #_ #labs (k o) v h in h act i k'
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 131, "start_col": 0, "start_line": 124 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Alg.tree a labs -> v: (_: a -> b) -> h: (o: Alg.op{FStar.List.Tot.Base.memP o labs} -> _: Alg.op_inp o -> _: (_: Alg.op_out o -> b) -> b) -> b
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.tree", "Alg.op", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.tree0", "Alg.fold_with" ]
[ "recursion" ]
false
false
false
false
false
let rec fold_with #a #b #labs f v h =
match f with | Return x -> v x | Op act i k -> let k' (o: op_out act) : b = fold_with #_ #_ #labs (k o) v h in h act i k'
false
Alg.fst
Alg.subcomp
val subcomp (a: Type) (#labs1 #labs2: ops) (f: tree a labs1) : Pure (tree a labs2) (requires (sublist labs1 labs2)) (ensures (fun _ -> True))
val subcomp (a: Type) (#labs1 #labs2: ops) (f: tree a labs1) : Pure (tree a labs2) (requires (sublist labs1 labs2)) (ensures (fun _ -> True))
let subcomp (a:Type) (#labs1 #labs2 : ops) (f : tree a labs1) : Pure (tree a labs2) (requires (sublist labs1 labs2)) (ensures (fun _ -> True)) = f
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 167, "start_col": 0, "start_line": 161 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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 -> f: Alg.tree a labs1 -> Prims.Pure (Alg.tree a labs2)
Prims.Pure
[]
[]
[ "Alg.ops", "Alg.tree", "Alg.sublist", "Prims.l_True" ]
[]
false
false
false
false
false
let subcomp (a: Type) (#labs1 #labs2: ops) (f: tree a labs1) : Pure (tree a labs2) (requires (sublist labs1 labs2)) (ensures (fun _ -> True)) =
f
false
Alg.fst
Alg.run
val run (#a: _) (f: (unit -> Alg a [])) : a
val run (#a: _) (f: (unit -> Alg a [])) : a
let run #a (f : unit -> Alg a []) : a = frompure (reify (f ()))
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 229, "start_col": 0, "start_line": 229 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> a
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Nil", "Alg.op", "Alg.frompure" ]
[]
false
false
false
false
false
let run #a (f: (unit -> Alg a [])) : a =
frompure (reify (f ()))
false
Alg.fst
Alg.return
val return (a: Type) (x: a) : tree a []
val return (a: Type) (x: a) : tree a []
let return (a:Type) (x:a) : tree a [] = Return x
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 152, "start_col": 0, "start_line": 150 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> x: a -> Alg.tree a []
Prims.Tot
[ "total" ]
[]
[ "Alg.Return", "Alg.tree", "Prims.Nil", "Alg.op" ]
[]
false
false
false
true
false
let return (a: Type) (x: a) : tree a [] =
Return x
false
Alg.fst
Alg.memP_at
val memP_at (l1 l2: ops) (l: op) : Lemma (memP l (l1 @ l2) <==> (memP l l1 \/ memP l l2)) [SMTPat (memP l (l1 @ l2))]
val memP_at (l1 l2: ops) (l: op) : Lemma (memP l (l1 @ l2) <==> (memP l l1 \/ memP l l2)) [SMTPat (memP l (l1 @ l2))]
let rec memP_at (l1 l2 : ops) (l : op) : Lemma (memP l (l1@l2) <==> (memP l l1 \/ memP l l2)) [SMTPat (memP l (l1@l2))] = match l1 with | [] -> () | _::l1 -> memP_at l1 l2 l
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 66, "start_col": 0, "start_line": 61 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
l1: Alg.ops -> l2: Alg.ops -> l: Alg.op -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.memP l (l1 @ l2) <==> FStar.List.Tot.Base.memP l l1 \/ FStar.List.Tot.Base.memP l l2) [SMTPat (FStar.List.Tot.Base.memP l (l1 @ l2))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Alg.ops", "Alg.op", "Prims.list", "Alg.memP_at", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "FStar.List.Tot.Base.memP", "FStar.List.Tot.Base.op_At", "Prims.l_or", "Prims.Cons", "FStar.Pervasives.pattern", "FStar.Pervasives.smt_pat", "Prims.Nil" ]
[ "recursion" ]
false
false
true
false
false
let rec memP_at (l1 l2: ops) (l: op) : Lemma (memP l (l1 @ l2) <==> (memP l l1 \/ memP l l2)) [SMTPat (memP l (l1 @ l2))] =
match l1 with | [] -> () | _ :: l1 -> memP_at l1 l2 l
false
Pulse.Elaborate.Pure.fst
Pulse.Elaborate.Pure.elab_stt_equiv
val elab_stt_equiv (g: R.env) (c: comp{C_ST? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_ST { u = u ; res = res } = c in ...
val elab_stt_equiv (g: R.env) (c: comp{C_ST? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_ST { u = u ; res = res } = c in ...
let elab_stt_equiv (g:R.env) (c:comp{C_ST? c}) (pre:R.term) (post:R.term) (eq_pre:RT.equiv g pre (elab_term (comp_pre c))) (eq_post:RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_ST {u;res} = c in mk_stt_comp u ...
{ "file_name": "lib/steel/pulse/Pulse.Elaborate.Pure.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 157, "start_col": 0, "start_line": 142 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Syntax.Base.fsti.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Common.fst.checked", "prims.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Range....
[ { "abbrev": false, "full_module": "Pulse.Reflection.Util", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Syntax.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: FStar.Stubs.Reflection.Types.env -> c: Pulse.Syntax.Base.comp{C_ST? c} -> pre: FStar.Stubs.Reflection.Types.term -> post: FStar.Stubs.Reflection.Types.term -> eq_pre: FStar.Reflection.Typing.equiv g pre (Pulse.Elaborate.Pure.elab_term (Pulse.Syntax.Base.comp_pre c)) -> ...
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Reflection.Types.env", "Pulse.Syntax.Base.comp", "Prims.b2t", "Pulse.Syntax.Base.uu___is_C_ST", "FStar.Stubs.Reflection.Types.term", "FStar.Reflection.Typing.equiv", "Pulse.Elaborate.Pure.elab_term", "Pulse.Syntax.Base.comp_pre", "Pulse.Reflection.Util.mk_abs", "Pulse.Syntax.Base.comp...
[]
false
false
false
false
false
let elab_stt_equiv (g: R.env) (c: comp{C_ST? c}) (pre post: R.term) (eq_pre: RT.equiv g pre (elab_term (comp_pre c))) (eq_post: RT.equiv g post (mk_abs (elab_term (comp_res c)) R.Q_Explicit (elab_term (comp_post c)))) : RT.equiv g (let C_ST { u = u ; res = res } = c in ...
mk_stt_comp_equiv _ (comp_u c) (elab_term (comp_res c)) _ _ _ _ _ (RT.Rel_refl _ _ _) eq_pre eq_post
false
Pulse.Typing.Metatheory.Base.fsti
Pulse.Typing.Metatheory.Base.veq_weakening
val veq_weakening: g: env -> g': env{disjoint g g'} -> #v1: vprop -> #v2: vprop -> vprop_equiv (push_env g g') v1 v2 -> g1: env{pairwise_disjoint g g1 g'} -> vprop_equiv (push_env (push_env g g1) g') v1 v2
val veq_weakening: g: env -> g': env{disjoint g g'} -> #v1: vprop -> #v2: vprop -> vprop_equiv (push_env g g') v1 v2 -> g1: env{pairwise_disjoint g g1 g'} -> vprop_equiv (push_env (push_env g g1) g') v1 v2
let veq_weakening (g:env) (g':env { disjoint g g' }) (#v1 #v2:vprop) (_:vprop_equiv (push_env g g') v1 v2) (g1:env { pairwise_disjoint g g1 g' }) : vprop_equiv (push_env (push_env g g1) g') v1 v2 = RU.magic ()
{ "file_name": "lib/steel/pulse/Pulse.Typing.Metatheory.Base.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 65, "end_line": 111, "start_col": 0, "start_line": 107 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.TypeChecker.Core.fsti.checked", "FStar.Reflection....
[ { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": true, "full_module": "FStar.Stubs.TypeChecker.Core", "short_module": "C" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> g': Pulse.Typing.Env.env{Pulse.Typing.Env.disjoint g g'} -> _: Pulse.Typing.vprop_equiv (Pulse.Typing.Env.push_env g g') v1 v2 -> g1: Pulse.Typing.Env.env{Pulse.Typing.Env.pairwise_disjoint g g1 g'} -> Pulse.Typing.vprop_equiv (Pulse.Typing.Env.push_env (Pulse.Typing.Env.pu...
Prims.Tot
[ "total" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Typing.Env.disjoint", "Pulse.Syntax.Base.vprop", "Pulse.Typing.vprop_equiv", "Pulse.Typing.Env.push_env", "Pulse.Typing.Env.pairwise_disjoint", "Pulse.RuntimeUtils.magic" ]
[]
false
false
false
false
false
let veq_weakening (g: env) (g': env{disjoint g g'}) (#v1: vprop) (#v2: vprop) (_: vprop_equiv (push_env g g') v1 v2) (g1: env{pairwise_disjoint g g1 g'}) : vprop_equiv (push_env (push_env g g1) g') v1 v2 =
RU.magic ()
false
Alg.fst
Alg.handler_op
val handler_op : o: Alg.op -> b: Type -> labs: Alg.ops -> Type
let handler_op (o:op) (b:Type) (labs:ops) = op_inp o -> (op_out o -> Alg b labs) -> Alg b labs
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 94, "end_line": 303, "start_col": 0, "start_line": 303 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
o: Alg.op -> b: Type -> labs: Alg.ops -> Type
Prims.Tot
[ "total" ]
[]
[ "Alg.op", "Alg.ops", "Alg.op_inp", "Alg.op_out" ]
[]
false
false
false
true
true
let handler_op (o: op) (b: Type) (labs: ops) =
op_inp o -> (op_out o -> Alg b labs) -> Alg b labs
false
Alg.fst
Alg.lift_pure_alg
val lift_pure_alg (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : Pure (tree a []) (requires (wp (fun _ -> True))) (ensures (fun _ -> True))
val lift_pure_alg (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : Pure (tree a []) (requires (wp (fun _ -> True))) (ensures (fun _ -> True))
let lift_pure_alg (a:Type) (wp : pure_wp a) (f : unit -> PURE a wp) : Pure (tree a []) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) = let v = FStar.Monotonic.Pure.elim_pure f (fun _ -> True) in Return v
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 194, "start_col": 0, "start_line": 186 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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 -> wp: Prims.pure_wp a -> f: (_: Prims.unit -> Prims.PURE a) -> Prims.Pure (Alg.tree a [])
Prims.Pure
[]
[]
[ "Prims.pure_wp", "Prims.unit", "Alg.Return", "FStar.Monotonic.Pure.elim_pure", "Prims.l_True", "Alg.tree", "Prims.Nil", "Alg.op" ]
[]
false
false
false
false
false
let lift_pure_alg (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : Pure (tree a []) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) =
let v = FStar.Monotonic.Pure.elim_pure f (fun _ -> True) in Return v
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.serialize_der_length_weak_unfold
val serialize_der_length_weak_unfold (y: der_length_t) : Lemma (let res = serialize serialize_der_length_weak y in let x = tag_of_der_length y in let s1 = Seq.create 1 x in if x `U8.lt` 128uy then res `Seq.equal` s1 else if x = 129uy then y <= 255 /\ res `Seq.equal`...
val serialize_der_length_weak_unfold (y: der_length_t) : Lemma (let res = serialize serialize_der_length_weak y in let x = tag_of_der_length y in let s1 = Seq.create 1 x in if x `U8.lt` 128uy then res `Seq.equal` s1 else if x = 129uy then y <= 255 /\ res `Seq.equal`...
let serialize_der_length_weak_unfold (y: der_length_t) : Lemma (let res = serialize serialize_der_length_weak y in let x = tag_of_der_length y in let s1 = Seq.create 1 x in if x `U8.lt` 128uy then res `Seq.equal` s1 else if x = 129uy then y <= 255 /\ res `Seq.equal` (s1 `Seq.append` Seq.crea...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 689, "start_col": 0, "start_line": 577 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "LowPa...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 6, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
y: LowParse.Spec.DER.der_length_t -> FStar.Pervasives.Lemma (ensures (let res = LowParse.Spec.Base.serialize LowParse.Spec.DER.serialize_der_length_weak y in let x = LowParse.Spec.DER.tag_of_der_length y in let s1 = FStar.Seq.Base.create 1 x in (match FStar.UInt8.lt x 128uy with ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.unit", "Prims.op_LessThan", "Prims.bool", "Prims.op_BarBar", "Prims.op_Equality", "FStar.UInt8.t", "FStar.UInt8.__uint_to_t", "LowParse.Spec.DER.tag_of_der_length_invalid", "LowParse.Spec.Int.serialize_u8_spec", "FStar.UInt8.uint_to_t", "LowParse.Spec.C...
[]
false
false
true
false
false
let serialize_der_length_weak_unfold (y: der_length_t) : Lemma (let res = serialize serialize_der_length_weak y in let x = tag_of_der_length y in let s1 = Seq.create 1 x in if x `U8.lt` 128uy then res `Seq.equal` s1 else if x = 129uy then y <= 255 /\ res `Seq.equal`...
let x = tag_of_der_length y in serialize_u8_spec x; assert_norm (der_length_max == pow2 (8 * 126) - 1); assert_norm (pow2 7 == 128); assert_norm (pow2 8 == 256); assert_norm (256 < der_length_max); assert (U8.v x <= der_length_max); let x':der_length_t = U8.v x in if x' < 128 then () else if x = 128uy || x = 255uy ...
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.parse_bounded_der_length32_unfold
val parse_bounded_der_length32_unfold (min: der_length_t) (max: der_length_t { min <= max /\ max < 4294967296 }) (input: bytes) : Lemma (let res = parse (parse_bounded_der_length32 min max) input in match parse parse_u8 input with | None -> res == None | Some (x, consumed_x) -> let len = der_lengt...
val parse_bounded_der_length32_unfold (min: der_length_t) (max: der_length_t { min <= max /\ max < 4294967296 }) (input: bytes) : Lemma (let res = parse (parse_bounded_der_length32 min max) input in match parse parse_u8 input with | None -> res == None | Some (x, consumed_x) -> let len = der_lengt...
let parse_bounded_der_length32_unfold min max input = parse_synth_eq (parse_bounded_der_length min max) (synth_bounded_der_length32 min max) input; parse_bounded_der_length_unfold min max input; match parse parse_u8 input with | None -> () | Some (x, consumed_x) -> let len = der_length_payload_size_of_ta...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 12, "end_line": 962, "start_col": 0, "start_line": 936 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.E...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: LowParse.Spec.DER.der_length_t -> max: LowParse.Spec.DER.der_length_t{min <= max /\ max < 4294967296} -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures (let res = LowParse.Spec.Base.parse (LowParse.Spec.DER.parse_bounded_der_length32 min max) input in ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Bytes.bytes", "LowParse.Spec.Base.parse", "FStar.UInt8.t", "LowParse.Spec.Int.parse_u8", "LowParse.Spec.Base.consumed_length", "Prims.op_AmpAmp", "LowParse.Spec.DER.der_leng...
[]
false
false
true
false
false
let parse_bounded_der_length32_unfold min max input =
parse_synth_eq (parse_bounded_der_length min max) (synth_bounded_der_length32 min max) input; parse_bounded_der_length_unfold min max input; match parse parse_u8 input with | None -> () | Some (x, consumed_x) -> let len = der_length_payload_size_of_tag x in if der_length_payload_size min <= len && len <= der_length...
false
EverCrypt.DRBG.fst
EverCrypt.DRBG.mk_instantiate
val mk_instantiate: #a:supported_alg -> EverCrypt.HMAC.compute_st a -> instantiate_st a
val mk_instantiate: #a:supported_alg -> EverCrypt.HMAC.compute_st a -> instantiate_st a
let mk_instantiate #a hmac st personalization_string personalization_string_len = if personalization_string_len >. max_personalization_string_length then false else let entropy_input_len = min_length a in let nonce_len = min_length a /. 2ul in let min_entropy = entropy_input_len +! nonce_len in ...
{ "file_name": "providers/evercrypt/fst/EverCrypt.DRBG.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 124, "start_col": 0, "start_line": 96 }
module EverCrypt.DRBG open FStar.HyperStack.ST open Lib.IntTypes open Spec.Hash.Definitions module HS = FStar.HyperStack module B = LowStar.Buffer module S = Spec.HMAC_DRBG open Hacl.HMAC_DRBG open Lib.RandomBuffer.System open LowStar.BufferOps friend Hacl.HMAC_DRBG friend EverCrypt.HMAC #set-options "--max_ifuel...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.RandomBuffer.System.fsti.checked", "Lib.Memzero0.fsti.checked", "Lib.IntTypes.fsti.che...
[ { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_module": "Lib.RandomBuffer.System", "short_module": null }, { "abbrev": false, "full_module": "Hacl.HMAC_DRBG", "short_module": null }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hmac: EverCrypt.HMAC.compute_st a -> EverCrypt.DRBG.instantiate_st a
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "EverCrypt.HMAC.compute_st", "EverCrypt.DRBG.state", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Lib.IntTypes.size_t", "Lib.IntTypes.op_Greater_Dot", "Lib.IntTypes.U32", "Hacl.HMAC_DRBG.max_personalization_string_length", "Prims.bool", "Prims.unit", "FStar.H...
[]
false
false
false
false
false
let mk_instantiate #a hmac st personalization_string personalization_string_len =
if personalization_string_len >. max_personalization_string_length then false else let entropy_input_len = min_length a in let nonce_len = min_length a /. 2ul in let min_entropy = entropy_input_len +! nonce_len in push_frame (); assert_norm (range (v min_entropy) U32); let entropy = B.alloca (u8 0) min_entr...
false
Alg.fst
Alg.geneff
val geneff (o: op) (i: op_inp o) : Alg (op_out o) [o]
val geneff (o: op) (i: op_inp o) : Alg (op_out o) [o]
let geneff (o : op) (i : op_inp o) : Alg (op_out o) [o] = Alg?.reflect (Op o i Return)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 201, "start_col": 0, "start_line": 199 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
o: Alg.op -> i: Alg.op_inp o -> Alg.Alg (Alg.op_out o)
Alg.Alg
[]
[]
[ "Alg.op", "Alg.op_inp", "Alg.Op", "Alg.op_out", "Alg.Return", "Prims.Cons", "Prims.Nil" ]
[]
false
true
false
false
false
let geneff (o: op) (i: op_inp o) : Alg (op_out o) [o] =
Alg?.reflect (Op o i Return)
false
Hacl.Streaming.Blake2s_32.fst
Hacl.Streaming.Blake2s_32.alloca
val alloca : Hacl.Streaming.Functor.alloca_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) () (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
let alloca = F.alloca (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
{ "file_name": "code/streaming/Hacl.Streaming.Blake2s_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 28, "start_col": 0, "start_line": 27 }
module Hacl.Streaming.Blake2s_32 module Blake2s32 = Hacl.Blake2s_32 module Common = Hacl.Streaming.Blake2.Common module Core = Hacl.Impl.Blake2.Core module F = Hacl.Streaming.Functor module G = FStar.Ghost module Impl = Hacl.Impl.Blake2.Generic module Spec = Spec.Blake2 inline_for_extraction noextract let blake2s_32 ...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "Hacl.Streaming.Functor.fsti.checked", "Hacl.Streaming.Blake2.Common.fst.checked", "Hacl.Impl.Blake2.Generic.fst.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.Blake2s_32.fst.checked", "FS...
[ { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, "full_module": "Hacl.Impl.Blake2.Generic", "short_module": "Impl" }, { "abbrev": true, "full_module": "FStar.Ghost", "short_module": "G" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Streaming.Functor.alloca_st (Hacl.Streaming.Blake2s_32.blake2s_32 0) () (Hacl.Streaming.Blake2.Common.s Spec.Blake2.Definitions.Blake2S Hacl.Impl.Blake2.Core.M32) (Hacl.Streaming.Blake2.Common.empty_key Spec.Blake2.Definitions.Blake2S)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Functor.alloca", "Prims.unit", "Hacl.Streaming.Blake2s_32.blake2s_32", "Hacl.Streaming.Blake2.Common.s", "Spec.Blake2.Definitions.Blake2S", "Hacl.Impl.Blake2.Core.M32", "Hacl.Streaming.Blake2.Common.empty_key" ]
[]
false
false
false
false
false
let alloca =
F.alloca (blake2s_32 0) () (Common.s Spec.Blake2S Core.M32) (Common.empty_key Spec.Blake2S)
false
Alg.fst
Alg.put
val put: state -> Alg unit [Write]
val put: state -> Alg unit [Write]
let put : state -> Alg unit [Write] = geneff Write
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 204, "start_col": 0, "start_line": 204 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
_: Alg.state -> Alg.Alg Prims.unit
Alg.Alg
[]
[]
[ "Alg.geneff", "Alg.Write" ]
[]
false
true
false
false
false
let put: state -> Alg unit [Write] =
geneff Write
false
Alg.fst
Alg.listmap
val listmap (#a #b #labs: _) (f: (a -> Alg b labs)) (l: list a) : Alg (list b) labs
val listmap (#a #b #labs: _) (f: (a -> Alg b labs)) (l: list a) : Alg (list b) labs
let rec listmap #a #b #labs (f : a -> Alg b labs) (l : list a) : Alg (list b) labs = match l with | [] -> [] | x::xs -> f x :: listmap #_ #_ #labs f xs
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 217, "start_col": 0, "start_line": 213 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> Alg.Alg b) -> l: Prims.list a -> Alg.Alg (Prims.list b)
Alg.Alg
[]
[]
[ "Alg.ops", "Prims.list", "Prims.Nil", "Prims.Cons", "Alg.listmap" ]
[ "recursion" ]
false
true
false
false
false
let rec listmap #a #b #labs (f: (a -> Alg b labs)) (l: list a) : Alg (list b) labs =
match l with | [] -> [] | x :: xs -> f x :: listmap #_ #_ #labs f xs
false
LowParse.Spec.DER.fst
LowParse.Spec.DER.parse_der_length_payload32_unfold
val parse_der_length_payload32_unfold (x: U8.t { der_length_payload_size_of_tag x <= 4 } ) (input: bytes) : Lemma ( let y = parse (parse_der_length_payload32 x) input in (256 < der_length_max) /\ ( if U8.v x < 128 then tag_of_der_length (U8.v x) == x /\ y == Some (Cast.uint8_to_uint32 x, 0) el...
val parse_der_length_payload32_unfold (x: U8.t { der_length_payload_size_of_tag x <= 4 } ) (input: bytes) : Lemma ( let y = parse (parse_der_length_payload32 x) input in (256 < der_length_max) /\ ( if U8.v x < 128 then tag_of_der_length (U8.v x) == x /\ y == Some (Cast.uint8_to_uint32 x, 0) el...
let parse_der_length_payload32_unfold x input = parse_synth_eq (parse_der_length_payload x) (synth_der_length_payload32 x) input; assert_norm (der_length_max == pow2 (8 * 126) - 1); assert_norm (pow2 (8 * 1) == 256); let _ = assert_norm (pow2 (8 * 2) == 65536) in let _ = assert_norm (pow2 (8 * 3) == 167...
{ "file_name": "src/lowparse/LowParse.Spec.DER.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 7, "end_line": 914, "start_col": 0, "start_line": 876 }
module LowParse.Spec.DER open LowParse.Spec.Combinators open LowParse.Spec.SeqBytes.Base // include LowParse.Spec.VLData // for in_bounds open FStar.Mul module U8 = FStar.UInt8 module UInt = FStar.UInt module Math = LowParse.Math module E = FStar.Endianness module Seq = FStar.Seq #reset-options "--z3cliopt smt.arith...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.SeqBytes.Base.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Tactics.Effect.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.E...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 4, "no_plugins": false, "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.UInt8.t{LowParse.Spec.DER.der_length_payload_size_of_tag x <= 4} -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures (let y = LowParse.Spec.Base.parse (LowParse.Spec.DER.parse_der_length_payload32 x) input in 256 < LowParse.Spec.DER.der_length_max /\ (match FS...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.UInt8.t", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.Spec.DER.der_length_payload_size_of_tag", "LowParse.Bytes.bytes", "Prims.op_LessThan", "FStar.UInt8.v", "Prims.bool", "Prims.op_BarBar", "Prims.op_Equality", "FStar.UInt8.__uint_to_t", "LowParse.Spec.Combinators.parse_synth_eq...
[]
false
false
true
false
false
let parse_der_length_payload32_unfold x input =
parse_synth_eq (parse_der_length_payload x) (synth_der_length_payload32 x) input; assert_norm (der_length_max == pow2 (8 * 126) - 1); assert_norm (pow2 (8 * 1) == 256); let _ = assert_norm (pow2 (8 * 2) == 65536) in let _ = assert_norm (pow2 (8 * 3) == 16777216) in let _ = assert_norm (pow2 (8 * 4) == 4294967296) in (m...
false
Alg.fst
Alg.another_raise
val another_raise (#a: _) (e: exn) : Alg a [Raise]
val another_raise (#a: _) (e: exn) : Alg a [Raise]
let another_raise #a (e:exn) : Alg a [Raise] = // Funnily enough, the version below succeeds from concluding `a == // empty` under the lambda since the context becomes inconsistent. All // good, just surprising. Alg?.reflect (Op Raise e Return)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 211, "start_col": 0, "start_line": 207 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Prims.exn -> Alg.Alg a
Alg.Alg
[]
[]
[ "Prims.exn", "Alg.Op", "Alg.Raise", "Alg.Return", "Prims.Cons", "Alg.op", "Prims.Nil" ]
[]
false
true
false
false
false
let another_raise #a (e: exn) : Alg a [Raise] =
Alg?.reflect (Op Raise e Return)
false
Alg.fst
Alg.raise
val raise: #a: _ -> exn -> Alg a [Raise]
val raise: #a: _ -> exn -> Alg a [Raise]
let raise : #a:_ -> exn -> Alg a [Raise] = fun e -> match geneff Raise e with
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 80, "end_line": 205, "start_col": 0, "start_line": 205 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Prims.exn -> Alg.Alg a
Alg.Alg
[]
[]
[ "Prims.exn", "Alg.op_out", "Alg.Raise", "Alg.geneff" ]
[]
false
true
false
false
false
let raise: #a: _ -> exn -> Alg a [Raise] =
fun e -> match geneff Raise e with
false
Alg.fst
Alg.interp_pure
val interp_pure (#a: _) (f: (unit -> Alg a [])) : Tot a
val interp_pure (#a: _) (f: (unit -> Alg a [])) : Tot a
let interp_pure #a (f : unit -> Alg a []) : Tot a = interp_pure_tree (reify (f ()))
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 83, "end_line": 591, "start_col": 0, "start_line": 591 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> a
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Nil", "Alg.op", "Alg.interp_pure_tree" ]
[]
false
false
false
false
false
let interp_pure #a (f: (unit -> Alg a [])) : Tot a =
interp_pure_tree (reify (f ()))
false
Alg.fst
Alg.get
val get: unit -> Alg int [Read]
val get: unit -> Alg int [Read]
let get : unit -> Alg int [Read] = geneff Read
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 203, "start_col": 0, "start_line": 203 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Alg.Alg Prims.int
Alg.Alg
[]
[]
[ "Alg.geneff", "Alg.Read" ]
[]
false
true
false
false
false
let get: unit -> Alg int [Read] =
geneff Read
false
Alg.fst
Alg.interp_rd
val interp_rd (#a: _) (f: (unit -> Alg a [Read])) (s: state) : Tot a
val interp_rd (#a: _) (f: (unit -> Alg a [Read])) (s: state) : Tot a
let interp_rd #a (f : unit -> Alg a [Read]) (s:state) : Tot a = interp_rd_tree (reify (f ())) s
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 95, "end_line": 599, "start_col": 0, "start_line": 599 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s: Alg.state -> a
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Read", "Prims.Nil", "Alg.state", "Alg.interp_rd_tree" ]
[]
false
false
false
false
false
let interp_rd #a (f: (unit -> Alg a [Read])) (s: state) : Tot a =
interp_rd_tree (reify (f ())) s
false
Alg.fst
Alg.interp_rdwr
val interp_rdwr (#a: _) (f: (unit -> Alg a [Read; Write])) (s: state) : Tot (a & state)
val interp_rdwr (#a: _) (f: (unit -> Alg a [Read; Write])) (s: state) : Tot (a & state)
let interp_rdwr #a (f : unit -> Alg a [Read; Write]) (s:state) : Tot (a & state) = interp_rdwr_tree (reify (f ())) s
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 116, "end_line": 609, "start_col": 0, "start_line": 609 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s: Alg.state -> a * Alg.state
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Read", "Alg.Write", "Prims.Nil", "Alg.state", "Alg.interp_rdwr_tree", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
false
false
let interp_rdwr #a (f: (unit -> Alg a [Read; Write])) (s: state) : Tot (a & state) =
interp_rdwr_tree (reify (f ())) s
false
Alg.fst
Alg.frompure
val frompure (#a: _) (t: tree a []) : a
val frompure (#a: _) (t: tree a []) : a
let frompure #a (t : tree a []) : a = match t with | Return x -> x
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 66, "end_line": 226, "start_col": 0, "start_line": 226 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Alg.tree a [] -> a
Prims.Tot
[ "total" ]
[]
[ "Alg.tree", "Prims.Nil", "Alg.op" ]
[]
false
false
false
true
false
let frompure #a (t: tree a []) : a =
match t with | Return x -> x
false
Alg.fst
Alg.defh_tree
val defh_tree (#b #labs: _) (#o: op{o `memP` labs}) : handler_tree_op o b labs
val defh_tree (#b #labs: _) (#o: op{o `memP` labs}) : handler_tree_op o b labs
let defh_tree #b #labs (#o:op{o `memP` labs}) : handler_tree_op o b labs = fun i k -> Op o i k
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 337, "start_col": 0, "start_line": 335 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
Alg.handler_tree_op o b labs
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Alg.op", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.tree", "Alg.Op", "Alg.handler_tree_op" ]
[]
false
false
false
false
false
let defh_tree #b #labs (#o: op{o `memP` labs}) : handler_tree_op o b labs =
fun i k -> Op o i k
false
Alg.fst
Alg.try_with
val try_with (#a #labs: _) (f: (unit -> Alg a (Raise :: labs))) (g: (unit -> Alg a labs)) : Alg a labs
val try_with (#a #labs: _) (f: (unit -> Alg a (Raise :: labs))) (g: (unit -> Alg a labs)) : Alg a labs
let try_with #a #labs (f : (unit -> Alg a (Raise::labs))) (g:unit -> Alg a labs) : Alg a labs = handle_with f (fun x -> x) (function Raise -> fun _ _ -> g () | _ -> defh)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 348, "start_col": 0, "start_line": 343 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> g: (_: Prims.unit -> Alg.Alg a) -> Alg.Alg a
Alg.Alg
[]
[]
[ "Prims.list", "Alg.op", "Prims.unit", "Prims.Cons", "Alg.Raise", "Alg.handle_with", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.defh", "Alg.handler_op" ]
[]
false
true
false
false
false
let try_with #a #labs (f: (unit -> Alg a (Raise :: labs))) (g: (unit -> Alg a labs)) : Alg a labs =
handle_with f (fun x -> x) (function | Raise -> fun _ _ -> g () | _ -> defh)
false
Alg.fst
Alg.__catch1
val __catch1 (#a #labs: _) (t1: tree a (Raise :: labs)) (t2: tree a labs) : tree a labs
val __catch1 (#a #labs: _) (t1: tree a (Raise :: labs)) (t2: tree a labs) : tree a labs
let __catch1 #a #labs (t1 : tree a (Raise::labs)) (t2 : tree a labs) : tree a labs = handle_tree t1 (fun x -> Return x) (function Raise -> fun i k -> t2 | op -> fun i k -> Op op i k)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 277, "start_col": 0, "start_line": 273 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Alg.tree a (Alg.Raise :: labs) -> t2: Alg.tree a labs -> Alg.tree a labs
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Alg.op", "Alg.tree", "Prims.Cons", "Alg.Raise", "Alg.handle_tree", "Alg.Return", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.Op", "Alg.handler_tree_op" ]
[]
false
false
false
false
false
let __catch1 #a #labs (t1: tree a (Raise :: labs)) (t2: tree a labs) : tree a labs =
handle_tree t1 (fun x -> Return x) (function | Raise -> fun i k -> t2 | op -> fun i k -> Op op i k)
false
Alg.fst
Alg.interp_read_raise_exn
val interp_read_raise_exn (#a: _) (f: (unit -> Alg a [Read; Raise])) (s: state) : either exn a
val interp_read_raise_exn (#a: _) (f: (unit -> Alg a [Read; Raise])) (s: state) : either exn a
let interp_read_raise_exn #a (f : unit -> Alg a [Read; Raise]) (s:state) : either exn a = interp_read_raise_tree (reify (f ())) s
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 620, "start_col": 0, "start_line": 619 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s: Alg.state -> FStar.Pervasives.either Prims.exn a
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Read", "Alg.Raise", "Prims.Nil", "Alg.state", "Alg.interp_read_raise_tree", "FStar.Pervasives.either", "Prims.exn" ]
[]
false
false
false
false
false
let interp_read_raise_exn #a (f: (unit -> Alg a [Read; Raise])) (s: state) : either exn a =
interp_read_raise_tree (reify (f ())) s
false
Alg.fst
Alg.test_catch2
val test_catch2 (f: (unit -> Alg int [Raise; Write])) : Alg int [Raise; Write]
val test_catch2 (f: (unit -> Alg int [Raise; Write])) : Alg int [Raise; Write]
let test_catch2 (f : unit -> Alg int [Raise; Write]) : Alg int [Raise; Write] = let g () : Alg int [] = 42 in catch f g
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 292, "start_col": 0, "start_line": 290 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg Prims.int) -> Alg.Alg Prims.int
Alg.Alg
[]
[]
[ "Prims.unit", "Prims.int", "Prims.Cons", "Alg.op", "Alg.Raise", "Alg.Write", "Prims.Nil", "Alg.catch" ]
[]
false
true
false
false
false
let test_catch2 (f: (unit -> Alg int [Raise; Write])) : Alg int [Raise; Write] =
let g () : Alg int [] = 42 in catch f g
false
Alg.fst
Alg.test0
val test0 (x y: int) : Alg int [Read; Raise]
val test0 (x y: int) : Alg int [Read; Raise]
let test0 (x y : int) : Alg int [Read; Raise] = let z = get () in if z < 0 then raise (Failure "error"); x + y + z
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 236, "start_col": 0, "start_line": 233 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.int -> y: Prims.int -> Alg.Alg Prims.int
Alg.Alg
[]
[]
[ "Prims.int", "Prims.op_Addition", "Prims.unit", "Prims.op_LessThan", "Alg.raise", "Alg.Failure", "Prims.bool", "Alg.get", "Prims.Cons", "Alg.op", "Alg.Read", "Alg.Raise", "Prims.Nil" ]
[]
false
true
false
false
false
let test0 (x y: int) : Alg int [Read; Raise] =
let z = get () in if z < 0 then raise (Failure "error"); x + y + z
false
Alg.fst
Alg.interp_all
val interp_all (#a: _) (f: (unit -> Alg a [Read; Write; Raise])) (s: state) : Tot (option a & state)
val interp_all (#a: _) (f: (unit -> Alg a [Read; Write; Raise])) (s: state) : Tot (option a & state)
let interp_all #a (f : unit -> Alg a [Read; Write; Raise]) (s:state) : Tot (option a & state) = interp_all_tree (reify (f ())) s
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 128, "end_line": 632, "start_col": 0, "start_line": 632 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s: Alg.state -> FStar.Pervasives.Native.option a * Alg.state
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Read", "Alg.Write", "Alg.Raise", "Prims.Nil", "Alg.state", "Alg.interp_all_tree", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option" ]
[]
false
false
false
false
false
let interp_all #a (f: (unit -> Alg a [Read; Write; Raise])) (s: state) : Tot (option a & state) =
interp_all_tree (reify (f ())) s
false
Alg.fst
Alg.defh
val defh (#b #labs: _) (#o: op{o `memP` labs}) : handler_op o b labs
val defh (#b #labs: _) (#o: op{o `memP` labs}) : handler_op o b labs
let defh #b #labs (#o:op{o `memP` labs}) : handler_op o b labs = fun i k -> k (geneff o i)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 326, "start_col": 0, "start_line": 324 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
Alg.handler_op o b labs
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Alg.op", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.geneff", "Alg.handler_op" ]
[]
false
false
false
false
false
let defh #b #labs (#o: op{o `memP` labs}) : handler_op o b labs =
fun i k -> k (geneff o i)
false
Alg.fst
Alg.__catch0
val __catch0 (#a #labs: _) (t1: tree a (Raise :: labs)) (t2: tree a labs) : tree a labs
val __catch0 (#a #labs: _) (t1: tree a (Raise :: labs)) (t2: tree a labs) : tree a labs
let rec __catch0 #a #labs (t1 : tree a (Raise::labs)) (t2 : tree a labs) : tree a labs = match t1 with | Op Raise e _ -> t2 | Op act i k -> let k' o : tree a labs = __catch0 (k o) t2 in Op act i k' | Return v -> Return v
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 270, "start_col": 0, "start_line": 261 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Alg.tree a (Alg.Raise :: labs) -> t2: Alg.tree a labs -> Alg.tree a labs
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Alg.op", "Alg.tree", "Prims.Cons", "Alg.Raise", "Alg.op_inp", "Alg.op_out", "Alg.tree0", "Alg.Op", "Alg.__catch0", "Alg.Return" ]
[ "recursion" ]
false
false
false
false
false
let rec __catch0 #a #labs (t1: tree a (Raise :: labs)) (t2: tree a labs) : tree a labs =
match t1 with | Op Raise e _ -> t2 | Op act i k -> let k' o : tree a labs = __catch0 (k o) t2 in Op act i k' | Return v -> Return v
false
Alg.fst
Alg.handle_with
val handle_with (#a #b: _) (#labs0 #labs1: ops) ($f: (unit -> Alg a labs0)) (v: (a -> Alg b labs1)) (h: handler labs0 b labs1) : Alg b labs1
val handle_with (#a #b: _) (#labs0 #labs1: ops) ($f: (unit -> Alg a labs0)) (v: (a -> Alg b labs1)) (h: handler labs0 b labs1) : Alg b labs1
let handle_with (#a #b:_) (#labs0 #labs1 : ops) ($f : unit -> Alg a labs0) (v : a -> Alg b labs1) (h : handler labs0 b labs1) (* Looking at v and h together, they basically represent * a handler type [ a<labs0> ->> b<labs1> ] *) : Alg b labs1 = Alg?.reflect (...
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 89, "end_line": 319, "start_col": 0, "start_line": 310 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (_: Prims.unit -> Alg.Alg a) -> v: (_: a -> Alg.Alg b) -> h: Alg.handler labs0 b labs1 -> Alg.Alg b
Alg.Alg
[]
[]
[ "Alg.ops", "Prims.unit", "Alg.handler", "Alg.handle_tree", "Alg.tree", "Alg.op", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out" ]
[]
false
true
false
false
false
let handle_with (#a #b: _) (#labs0 #labs1: ops) ($f: (unit -> Alg a labs0)) (v: (a -> Alg b labs1)) (h: handler labs0 b labs1) : Alg b labs1 =
Alg?.reflect (handle_tree (reify (f ())) (fun x -> reify (v x)) (fun a i k -> reify (h a i (fun o -> Alg?.reflect (k o)))))
false
Alg.fst
Alg.listmap_read
val listmap_read (#a #b #labs: _) (f: (a -> Alg b labs)) (l: list a) : Alg (list b) (Read :: labs)
val listmap_read (#a #b #labs: _) (f: (a -> Alg b labs)) (l: list a) : Alg (list b) (Read :: labs)
let rec listmap_read #a #b #labs (f : a -> Alg b labs) (l : list a) : Alg (list b) (Read::labs) = match l with | [] -> let x = get () in [] | x::xs -> let _ = get () in f x :: listmap_read #_ #_ #labs f xs
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 67, "end_line": 223, "start_col": 0, "start_line": 219 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> Alg.Alg b) -> l: Prims.list a -> Alg.Alg (Prims.list b)
Alg.Alg
[]
[]
[ "Alg.ops", "Prims.list", "Prims.Nil", "Prims.int", "Alg.get", "Prims.Cons", "Alg.listmap_read", "Alg.op", "Alg.Read" ]
[ "recursion" ]
false
true
false
false
false
let rec listmap_read #a #b #labs (f: (a -> Alg b labs)) (l: list a) : Alg (list b) (Read :: labs) =
match l with | [] -> let x = get () in [] | x :: xs -> let _ = get () in f x :: listmap_read #_ #_ #labs f xs
false
Alg.fst
Alg.some_as_alg
val some_as_alg: #a: Type -> #labs: _ -> a -> Alg (option a) labs
val some_as_alg: #a: Type -> #labs: _ -> a -> Alg (option a) labs
let some_as_alg (#a:Type) #labs : a -> Alg (option a) labs = fun x -> Some x
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 351, "start_col": 0, "start_line": 350 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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 -> Alg.Alg (FStar.Pervasives.Native.option a)
Alg.Alg
[]
[]
[ "Alg.ops", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.option" ]
[]
false
true
false
false
false
let some_as_alg (#a: Type) #labs : a -> Alg (option a) labs =
fun x -> Some x
false
Alg.fst
Alg.exp_defh
val exp_defh (#b #labs: _) : handler labs b labs
val exp_defh (#b #labs: _) : handler labs b labs
let exp_defh #b #labs : handler labs b labs = fun o i k -> k (geneff o i)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 331, "start_col": 0, "start_line": 329 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
Alg.handler labs b labs
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.op", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.geneff", "Alg.handler" ]
[]
false
false
false
false
false
let exp_defh #b #labs : handler labs b labs =
fun o i k -> k (geneff o i)
false
Alg.fst
Alg.test1
val test1 (x y: int) : Alg int [Raise; Read; Write]
val test1 (x y: int) : Alg int [Raise; Read; Write]
let test1 (x y : int) : Alg int [Raise; Read; Write] = let z = get () in if x + z > 0 then raise (Failure "asd") else (put 42; y - z)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 242, "start_col": 0, "start_line": 238 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.int -> y: Prims.int -> Alg.Alg Prims.int
Alg.Alg
[]
[]
[ "Prims.int", "Prims.op_GreaterThan", "Prims.op_Addition", "Alg.raise", "Alg.Failure", "Prims.bool", "Prims.op_Subtraction", "Prims.unit", "Alg.put", "Alg.get", "Prims.Cons", "Alg.op", "Alg.Raise", "Alg.Read", "Alg.Write", "Prims.Nil" ]
[]
false
true
false
false
false
let test1 (x y: int) : Alg int [Raise; Read; Write] =
let z = get () in if x + z > 0 then raise (Failure "asd") else (put 42; y - z)
false
Alg.fst
Alg.catchE
val catchE (#a #labs: _) (f: (unit -> Alg a (Raise :: labs))) : Alg (option a) labs
val catchE (#a #labs: _) (f: (unit -> Alg a (Raise :: labs))) : Alg (option a) labs
let catchE #a #labs (f : unit -> Alg a (Raise::labs)) : Alg (option a) labs = handle_with f some_as_alg (function Raise -> fun _ _ -> None | _ -> defh)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 355, "start_col": 0, "start_line": 353 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> Alg.Alg (FStar.Pervasives.Native.option a)
Alg.Alg
[]
[]
[ "Prims.list", "Alg.op", "Prims.unit", "Prims.Cons", "Alg.Raise", "Alg.handle_with", "FStar.Pervasives.Native.option", "Alg.some_as_alg", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "FStar.Pervasives.Native.None", "Alg.defh", "Alg.handler_op" ]
[]
false
true
false
false
false
let catchE #a #labs (f: (unit -> Alg a (Raise :: labs))) : Alg (option a) labs =
handle_with f some_as_alg (function | Raise -> fun _ _ -> None | _ -> defh)
false
Alg.fst
Alg.handle_sub
val handle_sub (#a #b #labs0 #labs1: _) (f: (unit -> Alg a (labs0 @ labs1))) (v: (a -> Alg b labs1)) (h: handler labs0 b labs1) : Alg b labs1
val handle_sub (#a #b #labs0 #labs1: _) (f: (unit -> Alg a (labs0 @ labs1))) (v: (a -> Alg b labs1)) (h: handler labs0 b labs1) : Alg b labs1
let handle_sub (#a #b:_) (#labs0 #labs1:_) (f : unit -> Alg a (labs0@labs1)) (v : a -> Alg b labs1) (h : handler labs0 b labs1) : Alg b labs1 = handle_with f v (widen_handler h)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 518, "start_col": 0, "start_line": 513 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> v: (_: a -> Alg.Alg b) -> h: Alg.handler labs0 b labs1 -> Alg.Alg b
Alg.Alg
[]
[]
[ "Prims.list", "Alg.op", "Prims.unit", "FStar.List.Tot.Base.op_At", "Alg.handler", "Alg.handle_with", "Alg.widen_handler" ]
[]
false
true
false
false
false
let handle_sub (#a #b #labs0 #labs1: _) (f: (unit -> Alg a (labs0 @ labs1))) (v: (a -> Alg b labs1)) (h: handler labs0 b labs1) : Alg b labs1 =
handle_with f v (widen_handler h)
false
Alg.fst
Alg.labpoly
val labpoly (#labs: _) (f g: (unit -> Alg int labs)) : Alg int labs
val labpoly (#labs: _) (f g: (unit -> Alg int labs)) : Alg int labs
let labpoly #labs (f g : unit -> Alg int labs) : Alg int labs = f () + g ()
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 75, "end_line": 245, "start_col": 0, "start_line": 245 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg Prims.int) -> g: (_: Prims.unit -> Alg.Alg Prims.int) -> Alg.Alg Prims.int
Alg.Alg
[]
[]
[ "Alg.ops", "Prims.unit", "Prims.int", "Prims.op_Addition" ]
[]
false
true
false
false
false
let labpoly #labs (f: (unit -> Alg int labs)) (g: (unit -> Alg int labs)) : Alg int labs =
f () + g ()
false
Alg.fst
Alg.__catchST0
val __catchST0 (#a #labs: _) (t1: tree a (Read :: Write :: labs)) (s0: state) : tree (a & int) labs
val __catchST0 (#a #labs: _) (t1: tree a (Read :: Write :: labs)) (s0: state) : tree (a & int) labs
let rec __catchST0 #a #labs (t1 : tree a (Read::Write::labs)) (s0:state) : tree (a & int) labs = match t1 with | Return v -> Return (v, s0) | Op Write s k -> __catchST0 (k ()) s | Op Read _ k -> __catchST0 (k s0) s0 | Op act i k -> (* default case *) let k' o : tree (a & int) labs = __catchS...
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 382, "start_col": 0, "start_line": 372 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Alg.tree a (Alg.Read :: Alg.Write :: labs) -> s0: Alg.state -> Alg.tree (a * Prims.int) labs
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Alg.op", "Alg.tree", "Prims.Cons", "Alg.Read", "Alg.Write", "Alg.state", "Alg.Return", "FStar.Pervasives.Native.tuple2", "Prims.int", "FStar.Pervasives.Native.Mktuple2", "Alg.op_inp", "Alg.op_out", "Alg.tree0", "Alg.__catchST0", "Alg.Op" ]
[ "recursion" ]
false
false
false
false
false
let rec __catchST0 #a #labs (t1: tree a (Read :: Write :: labs)) (s0: state) : tree (a & int) labs =
match t1 with | Return v -> Return (v, s0) | Op Write s k -> __catchST0 (k ()) s | Op Read _ k -> __catchST0 (k s0) s0 | Op act i k -> let k' o : tree (a & int) labs = __catchST0 #a #labs (k o) s0 in Op act i k'
false
Alg.fst
Alg.widen_handler
val widen_handler (#b #labs0 #labs1: _) (h: handler labs0 b labs1) : handler (labs0 @ labs1) b labs1
val widen_handler (#b #labs0 #labs1: _) (h: handler labs0 b labs1) : handler (labs0 @ labs1) b labs1
let widen_handler (#b:_) (#labs0 #labs1:_) (h:handler labs0 b labs1) : handler (labs0@labs1) b labs1 = fun op -> (* This relies on decidable equality of operation labels, * or at least on being able to decide whether `op` is in `labs0` * or not. Since currently they are an `eqt...
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 510, "start_col": 0, "start_line": 500 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Alg.handler labs0 b labs1 -> Alg.handler (labs0 @ labs1) b labs1
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.handler", "Alg.op", "FStar.List.Tot.Base.memP", "FStar.List.Tot.Base.op_At", "FStar.List.Tot.Base.mem", "Prims.bool", "Alg.defh", "Alg.handler_op", "Prims.unit", "FStar.List.Tot.Properties.mem_memP" ]
[]
false
false
false
false
false
let widen_handler (#b #labs0 #labs1: _) (h: handler labs0 b labs1) : handler (labs0 @ labs1) b labs1 =
fun op -> mem_memP op labs0; if op `mem` labs0 then h op else defh
false
Alg.fst
Alg.widen_handler_1
val widen_handler_1 (#b: _) (#o: op) (#labs1: _) (h: handler_op o b labs1) : handler (o :: labs1) b labs1
val widen_handler_1 (#b: _) (#o: op) (#labs1: _) (h: handler_op o b labs1) : handler (o :: labs1) b labs1
let widen_handler_1 (#b:_) (#o:op) (#labs1:_) (h:handler_op o b labs1) : handler (o::labs1) b labs1 = widen_handler #_ #[o] (fun _ -> h)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 523, "start_col": 0, "start_line": 520 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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: Alg.handler_op o b labs1 -> Alg.handler (o :: labs1) b labs1
Prims.Tot
[ "total" ]
[]
[ "Alg.op", "Alg.ops", "Alg.handler_op", "Alg.widen_handler", "Prims.Cons", "Prims.Nil", "FStar.List.Tot.Base.memP", "Alg.handler" ]
[]
false
false
false
false
false
let widen_handler_1 (#b: _) (#o: op) (#labs1: _) (h: handler_op o b labs1) : handler (o :: labs1) b labs1 =
widen_handler #_ #[o] (fun _ -> h)
false
Alg.fst
Alg.handle_read
val handle_read (#a: Type) (#labs: ops) (f: (unit -> Alg a (Read :: labs))) (h: handler_op Read a labs) : Alg a labs
val handle_read (#a: Type) (#labs: ops) (f: (unit -> Alg a (Read :: labs))) (h: handler_op Read a labs) : Alg a labs
let handle_read (#a:Type) (#labs:ops) (f : unit -> Alg a (Read::labs)) (h : handler_op Read a labs) : Alg a labs = handle_with f (fun x -> x) (function Read -> h | _ -> defh)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 469, "start_col": 0, "start_line": 463 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> h: Alg.handler_op Alg.Read a labs -> Alg.Alg a
Alg.Alg
[]
[]
[ "Alg.ops", "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Read", "Alg.handler_op", "Alg.handle_with", "FStar.List.Tot.Base.memP", "Alg.defh" ]
[]
false
true
false
false
false
let handle_read (#a: Type) (#labs: ops) (f: (unit -> Alg a (Read :: labs))) (h: handler_op Read a labs) : Alg a labs =
handle_with f (fun x -> x) (function | Read -> h | _ -> defh)
false
Alg.fst
Alg.handle_return
val handle_return (#a: _) (x: a) : Alg (option a & state) [Write; Read]
val handle_return (#a: _) (x: a) : Alg (option a & state) [Write; Read]
let handle_return #a (x:a) : Alg (option a & state) [Write; Read] = (Some x, get ())
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 550, "start_col": 0, "start_line": 548 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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 -> Alg.Alg (FStar.Pervasives.Native.option a * Alg.state)
Alg.Alg
[]
[]
[ "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.option", "Prims.int", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "Alg.state", "Alg.get", "Prims.Cons", "Alg.op", "Alg.Write", "Alg.Read", "Prims.Nil" ]
[]
false
true
false
false
false
let handle_return #a (x: a) : Alg (option a & state) [Write; Read] =
(Some x, get ())
false
Alg.fst
Alg.catch
val catch (#a #labs: _) (f: (unit -> Alg a (Raise :: labs))) (g: (unit -> Alg a labs)) : Alg a labs
val catch (#a #labs: _) (f: (unit -> Alg a (Raise :: labs))) (g: (unit -> Alg a labs)) : Alg a labs
let catch #a #labs (f : unit -> Alg a (Raise::labs)) (g : unit -> Alg a labs) : Alg a labs = Alg?.reflect (__catch1 (reify (f ())) (reify (g ())))
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 282, "start_col": 0, "start_line": 280 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> g: (_: Prims.unit -> Alg.Alg a) -> Alg.Alg a
Alg.Alg
[]
[]
[ "Prims.list", "Alg.op", "Prims.unit", "Prims.Cons", "Alg.Raise", "Alg.__catch1" ]
[]
false
true
false
false
false
let catch #a #labs (f: (unit -> Alg a (Raise :: labs))) (g: (unit -> Alg a labs)) : Alg a labs =
Alg?.reflect (__catch1 (reify (f ())) (reify (g ())))
false
Alg.fst
Alg.baseop
val baseop : Type0
let baseop = o:op{not (Other? o)}
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 720, "start_col": 0, "start_line": 720 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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" ]
[]
[ "Alg.op", "Prims.b2t", "Prims.op_Negation", "Alg.uu___is_Other" ]
[]
false
false
false
true
true
let baseop =
o: op{not (Other? o)}
false
Alg.fst
Alg.trlabs'
val trlabs' : x: Prims.list Lattice.eff_label -> Prims.list Alg.op
let trlabs' = List.Tot.map trlab'
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 733, "start_col": 0, "start_line": 733 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.list Lattice.eff_label -> Prims.list Alg.op
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Lattice.eff_label", "Alg.op", "Alg.trlab'" ]
[]
false
false
false
true
false
let trlabs' =
List.Tot.map trlab'
false
Alg.fst
Alg.trlabs
val trlabs : x: Prims.list Alg.baseop -> Prims.list Lattice.eff_label
let trlabs = List.Tot.map trlab
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 732, "start_col": 0, "start_line": 732 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.list Alg.baseop -> Prims.list Lattice.eff_label
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Alg.baseop", "Lattice.eff_label", "Alg.trlab" ]
[]
false
false
false
true
false
let trlabs =
List.Tot.map trlab
false
Alg.fst
Alg._catchST
val _catchST (#a #labs: _) (f: (unit -> Alg a (Read :: Write :: labs))) (s0: state) : Alg (a & state) labs
val _catchST (#a #labs: _) (f: (unit -> Alg a (Read :: Write :: labs))) (s0: state) : Alg (a & state) labs
let _catchST #a #labs (f : unit -> Alg a (Read::Write::labs)) (s0 : state) : Alg (a & state) labs = Alg?.reflect (__catchST1 (reify (f ())) s0)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 410, "start_col": 0, "start_line": 406 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s0: Alg.state -> Alg.Alg (a * Alg.state)
Alg.Alg
[]
[]
[ "Prims.list", "Alg.op", "Prims.unit", "Prims.Cons", "Alg.Read", "Alg.Write", "Alg.state", "Alg.__catchST1", "FStar.Pervasives.Native.tuple2" ]
[]
false
true
false
false
false
let _catchST #a #labs (f: (unit -> Alg a (Read :: Write :: labs))) (s0: state) : Alg (a & state) labs =
Alg?.reflect (__catchST1 (reify (f ())) s0)
false
Alg.fst
Alg.catchST
val catchST (#a #labs: _) (f: (unit -> Alg a (Read :: Write :: labs))) (s0: state) : Alg (a & state) labs
val catchST (#a #labs: _) (f: (unit -> Alg a (Read :: Write :: labs))) (s0: state) : Alg (a & state) labs
let catchST #a #labs (f: unit -> Alg a (Read::Write::labs)) (s0:state) : Alg (a & state) labs = handle_with #_ #(state -> Alg _ labs) #_ #labs f (fun x s -> (x, s)) (function Read -> fun _ k s -> k s s | Write -> fun s k _ -> k () s ...
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 425, "start_col": 0, "start_line": 419 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s0: Alg.state -> Alg.Alg (a * Alg.state)
Alg.Alg
[]
[]
[ "Prims.list", "Alg.op", "Prims.unit", "Prims.Cons", "Alg.Read", "Alg.Write", "Alg.state", "FStar.Pervasives.Native.tuple2", "Alg.handle_with", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.memP", "Alg.op_inp", "Alg.op_out", "Alg.defh", "Alg.handler_op" ]
[]
false
true
false
false
false
let catchST #a #labs (f: (unit -> Alg a (Read :: Write :: labs))) (s0: state) : Alg (a & state) labs =
handle_with #_ #(state -> Alg _ labs) #_ #labs f (fun x s -> (x, s)) (function | Read -> fun _ k s -> k s s | Write -> fun s k _ -> k () s | _ -> defh) s0
false
Alg.fst
Alg.read_handler
val read_handler (#b: Type) (#labs: ops) (s0: state) : handler_op Read b labs
val read_handler (#b: Type) (#labs: ops) (s0: state) : handler_op Read b labs
let read_handler (#b:Type) (#labs:ops) (s0:state) : handler_op Read b labs = fun _ k -> k s0
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 460, "start_col": 0, "start_line": 456 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
s0: Alg.state -> Alg.handler_op Alg.Read b labs
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.state", "Alg.op_inp", "Alg.Read", "Alg.op_out", "Alg.handler_op" ]
[]
false
false
false
false
false
let read_handler (#b: Type) (#labs: ops) (s0: state) : handler_op Read b labs =
fun _ k -> k s0
false
Alg.fst
Alg.handle_write
val handle_write (#a: Type) (#labs: ops) (f: (unit -> Alg a (Write :: labs))) : Alg a labs
val handle_write (#a: Type) (#labs: ops) (f: (unit -> Alg a (Write :: labs))) : Alg a labs
let handle_write (#a:Type) (#labs:ops) (f : unit -> Alg a (Write::labs)) : Alg a labs = handle_with f (fun x -> x) (function Write -> write_handler | _ -> defh)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 486, "start_col": 0, "start_line": 480 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> Alg.Alg a
Alg.Alg
[]
[]
[ "Alg.ops", "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Write", "Alg.handle_with", "FStar.List.Tot.Base.memP", "Alg.write_handler", "Alg.defh", "Alg.handler_op" ]
[]
false
true
false
false
false
let handle_write (#a: Type) (#labs: ops) (f: (unit -> Alg a (Write :: labs))) : Alg a labs =
handle_with f (fun x -> x) (function | Write -> write_handler | _ -> defh)
false
Alg.fst
Alg.write_handler
val write_handler (#a: Type) (#labs: ops) : handler_op Write a labs
val write_handler (#a: Type) (#labs: ops) : handler_op Write a labs
let write_handler (#a:Type) (#labs:ops) : handler_op Write a labs = fun s k -> handle_read k (read_handler s)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 477, "start_col": 0, "start_line": 474 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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
Alg.handler_op Alg.Write a labs
Prims.Tot
[ "total" ]
[]
[ "Alg.ops", "Alg.op_inp", "Alg.Write", "Alg.op_out", "Alg.handle_read", "Alg.read_handler", "Alg.handler_op" ]
[]
false
false
false
false
false
let write_handler (#a: Type) (#labs: ops) : handler_op Write a labs =
fun s k -> handle_read k (read_handler s)
false
Alg.fst
Alg.fixup
val fixup: list baseop -> ops
val fixup: list baseop -> ops
let fixup : list baseop -> ops = List.Tot.map #baseop #op (fun x -> x)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "end_line": 745, "start_col": 0, "start_line": 745 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "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.list Alg.baseop -> Alg.ops
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Alg.baseop", "Alg.op" ]
[]
false
false
false
true
false
let fixup: list baseop -> ops =
List.Tot.map #baseop #op (fun x -> x)
false
Alg.fst
Alg.runST
val runST: #a: _ -> f: (unit -> Alg a ([Read; Write])) -> state -> a & state
val runST: #a: _ -> f: (unit -> Alg a ([Read; Write])) -> state -> a & state
let runST #a (f : unit -> Alg a (Read::Write::[])) : state -> a & state = fun s0 -> run (fun () -> catchST f s0)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 432, "start_col": 0, "start_line": 429 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> _: Alg.state -> a * Alg.state
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Read", "Alg.Write", "Prims.Nil", "Alg.state", "Alg.run", "FStar.Pervasives.Native.tuple2", "Alg.catchST" ]
[]
false
false
false
false
false
let runST #a (f: (unit -> Alg a ([Read; Write]))) : state -> a & state =
fun s0 -> run (fun () -> catchST f s0)
false
Alg.fst
Alg.run_stexn
val run_stexn (#a: _) (f: (unit -> Alg a [Write; Raise; Read])) (s_0: state) : option (a & state)
val run_stexn (#a: _) (f: (unit -> Alg a [Write; Raise; Read])) (s_0: state) : option (a & state)
let run_stexn #a (f : unit -> Alg a [Write; Raise; Read]) (s_0:state) : option (a & state) = run (fun () -> catchE (fun () -> catchST f s_0))
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 447, "start_col": 0, "start_line": 446 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s_0: Alg.state -> FStar.Pervasives.Native.option (a * Alg.state)
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Write", "Alg.Raise", "Alg.Read", "Prims.Nil", "Alg.state", "Alg.run", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "Alg.catchE", "Alg.catchST" ]
[]
false
false
false
false
false
let run_stexn #a (f: (unit -> Alg a [Write; Raise; Read])) (s_0: state) : option (a & state) =
run (fun () -> catchE (fun () -> catchST f s_0))
false
Alg.fst
Alg.run_tree
val run_tree (#a: _) (f: (unit -> Alg a [Raise; Write; Read])) (s0: state) : option a & state
val run_tree (#a: _) (f: (unit -> Alg a [Raise; Write; Read])) (s0: state) : option a & state
let run_tree #a (f : unit -> Alg a [Raise; Write; Read]) (s0:state) : option a & state = run (fun () -> handle_read' (fun () -> handle_write' (fun () -> handle_with f handle_return handler_raise)) s0)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 54, "end_line": 570, "start_col": 0, "start_line": 565 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> s0: Alg.state -> FStar.Pervasives.Native.option a * Alg.state
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.Cons", "Alg.op", "Alg.Raise", "Alg.Write", "Alg.Read", "Prims.Nil", "Alg.state", "Alg.run", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "Alg.handle_read'", "Alg.handle_write'", "Alg.handle_with", "Alg.handle_return", "Alg.handler_raise" ]
[]
false
false
false
false
false
let run_tree #a (f: (unit -> Alg a [Raise; Write; Read])) (s0: state) : option a & state =
run (fun () -> handle_read' (fun () -> handle_write' (fun () -> handle_with f handle_return handler_raise)) s0)
false
Alg.fst
Alg.lattice_get_repr
val lattice_get_repr: Prims.unit -> L.repr int [L.RD]
val lattice_get_repr: Prims.unit -> L.repr int [L.RD]
let lattice_get_repr () : L.repr int [L.RD] = reify (L.get ())
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 62, "end_line": 761, "start_col": 0, "start_line": 761 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Lattice.repr Prims.int [Lattice.RD]
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Lattice.get", "Prims.int", "Lattice.repr", "Prims.Cons", "Lattice.eff_label", "Lattice.RD", "Prims.Nil" ]
[]
false
false
false
true
false
let lattice_get_repr () : L.repr int [L.RD] =
reify (L.get ())
false
Alg.fst
Alg.handle_one
val handle_one (#a: _) (#o: op) (#labs1: _) ($f: (unit -> Alg a (o :: labs1))) (h: handler_op o a labs1) : Alg a labs1
val handle_one (#a: _) (#o: op) (#labs1: _) ($f: (unit -> Alg a (o :: labs1))) (h: handler_op o a labs1) : Alg a labs1
let handle_one (#a:_) (#o:op) (#labs1:_) ($f : unit -> Alg a (o::labs1)) (h : handler_op o a labs1) : Alg a labs1 = handle_with f (fun x -> x) (widen_handler_1 h)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 529, "start_col": 0, "start_line": 525 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (_: Prims.unit -> Alg.Alg a) -> h: Alg.handler_op o a labs1 -> Alg.Alg a
Alg.Alg
[]
[]
[ "Alg.op", "Prims.list", "Prims.unit", "Prims.Cons", "Alg.handler_op", "Alg.handle_with", "Alg.widen_handler_1" ]
[]
false
true
false
false
false
let handle_one (#a: _) (#o: op) (#labs1: _) ($f: (unit -> Alg a (o :: labs1))) (h: handler_op o a labs1) : Alg a labs1 =
handle_with f (fun x -> x) (widen_handler_1 h)
false
Alg.fst
Alg.handle_write'
val handle_write' (#a #labs: _) (f: (unit -> Alg a (Write :: labs))) : Alg a labs
val handle_write' (#a #labs: _) (f: (unit -> Alg a (Write :: labs))) : Alg a labs
let handle_write' #a #labs (f : unit -> Alg a (Write::labs)) : Alg a labs = handle_one f (fun s k -> handle_read' k s)
{ "file_name": "examples/layeredeffects/Alg.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 546, "start_col": 0, "start_line": 544 }
module Alg (*** Algebraic effects. ***) open FStar.Tactics.V2 open FStar.List.Tot open FStar.Universe //module WF = FStar.WellFounded module L = Lattice type state = int type empty = (* The set of operations. We keep an uninterpreted infinite set of `Other` so we never rely on knowing all operations. *) type op = ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lattice.fst.checked", "FStar.Universe.fsti.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.List.Tot.fst.checked"...
[ { "abbrev": true, "full_module": "Lattice", "short_module": "L" }, { "abbrev": false, "full_module": "FStar.Universe", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Alg.Alg a) -> Alg.Alg a
Alg.Alg
[]
[]
[ "Prims.list", "Alg.op", "Prims.unit", "Prims.Cons", "Alg.Write", "Alg.handle_one", "Alg.op_inp", "Alg.op_out", "Alg.handle_read'" ]
[]
false
true
false
false
false
let handle_write' #a #labs (f: (unit -> Alg a (Write :: labs))) : Alg a labs =
handle_one f (fun s k -> handle_read' k s)
false