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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PulseCore.Atomic.fst | PulseCore.Atomic.equiv | val equiv (#p #q: slprop) (pf: slprop_equiv p q) : squash (p == q) | val equiv (#p #q: slprop) (pf: slprop_equiv p q) : squash (p == q) | let equiv (#p #q:slprop) (pf:slprop_equiv p q)
: squash (p == q)
= let _ : squash (slprop_equiv p q) = FStar.Squash.return_squash pf in
I.slprop_equiv_elim p q | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 25,
"end_line": 18,
"start_col": 0,
"start_line": 15
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | pf: PulseCore.InstantiatedSemantics.slprop_equiv p q -> Prims.squash (p == q) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.InstantiatedSemantics.slprop_equiv",
"PulseCore.InstantiatedSemantics.slprop_equiv_elim",
"Prims.squash",
"FStar.Squash.return_squash",
"Prims.eq2"
] | [] | false | false | true | false | false | let equiv (#p #q: slprop) (pf: slprop_equiv p q) : squash (p == q) =
| let _:squash (slprop_equiv p q) = FStar.Squash.return_squash pf in
I.slprop_equiv_elim p q | false |
PulseCore.Atomic.fst | PulseCore.Atomic.bind_atomic | val bind_atomic
(#a:Type u#a)
(#b:Type u#b)
(#obs1:_)
(#obs2:observability { at_most_one_observable obs1 obs2 })
(#opens:inames)
(#pre1:slprop)
(#post1:a -> slprop)
(#post2:b -> slprop)
(e1:stt_atomic a #obs1 opens pre1 post1)
(e2:(x:a -> stt_atomic b #obs2 opens (post1... | val bind_atomic
(#a:Type u#a)
(#b:Type u#b)
(#obs1:_)
(#obs2:observability { at_most_one_observable obs1 obs2 })
(#opens:inames)
(#pre1:slprop)
(#post1:a -> slprop)
(#post2:b -> slprop)
(e1:stt_atomic a #obs1 opens pre1 post1)
(e2:(x:a -> stt_atomic b #obs2 opens (post1... | let bind_atomic
(#a:Type u#a)
(#b:Type u#b)
(#obs1:_)
(#obs2:observability { at_most_one_observable obs1 obs2 })
(#opens:inames)
(#pre1:slprop)
(#post1:a -> slprop)
(#post2:b -> slprop)
(e1:stt_atomic a #obs1 opens pre1 post1)
(e2:(x:a -> stt_atomic b #obs2 opens (post1... | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 67,
"start_col": 0,
"start_line": 56
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 |
e1: PulseCore.Atomic.stt_atomic a opens pre1 post1 ->
e2: (x: a -> PulseCore.Atomic.stt_atomic b opens (post1 x) post2)
-> PulseCore.Atomic.stt_atomic b opens pre1 post2 | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Observability.observability",
"Prims.b2t",
"PulseCore.Observability.at_most_one_observable",
"PulseCore.Action.inames",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Action.bind",
"PulseCore.Observability.join_obs"
] | [] | false | false | false | false | false | let bind_atomic
(#a: Type u#a)
(#b: Type u#b)
(#obs1: _)
(#obs2: observability{at_most_one_observable obs1 obs2})
(#opens: inames)
(#pre1: slprop)
(#post1: (a -> slprop))
(#post2: (b -> slprop))
(e1: stt_atomic a #obs1 opens pre1 post1)
(e2: (x: a -> stt_atomi... | A.bind e1 e2 | false |
PulseCore.Atomic.fst | PulseCore.Atomic.frame_atomic | val frame_atomic
(#a:Type u#a)
(#obs: observability)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(frame:slprop)
(e:stt_atomic a #obs opens pre post)
: stt_atomic a #obs opens (pre ** frame) (fun x -> post x ** frame) | val frame_atomic
(#a:Type u#a)
(#obs: observability)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(frame:slprop)
(e:stt_atomic a #obs opens pre post)
: stt_atomic a #obs opens (pre ** frame) (fun x -> post x ** frame) | let frame_atomic
(#a:Type u#a)
(#obs: observability)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(frame:slprop)
(e:stt_atomic a #obs opens pre post)
: stt_atomic a #obs opens (pre ** frame) (fun x -> post x ** frame)
= A.frame e | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 11,
"end_line": 117,
"start_col": 0,
"start_line": 108
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | frame: PulseCore.InstantiatedSemantics.slprop -> e: PulseCore.Atomic.stt_atomic a opens pre post
-> PulseCore.Atomic.stt_atomic a opens (pre ** frame) (fun x -> post x ** frame) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Observability.observability",
"PulseCore.Action.inames",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Action.frame",
"PulseCore.InstantiatedSemantics.op_Star_Star"
] | [] | false | false | false | false | false | let frame_atomic
(#a: Type u#a)
(#obs: observability)
(#opens: inames)
(#pre: slprop)
(#post: (a -> slprop))
(frame: slprop)
(e: stt_atomic a #obs opens pre post)
: stt_atomic a #obs opens (pre ** frame) (fun x -> post x ** frame) =
| A.frame e | false |
SimplePrintfReify.fst | SimplePrintfReify.concat_lemma | val concat_lemma (s1 s2: list char) (l1 l2: list dir)
: Lemma
(requires (reify (parse_format s1) () = Some l1 /\ reify (parse_format s2) () = Some l2))
(ensures (reify (parse_format (s1 @ s2)) () = Some (l1 @ l2)))
(decreases s1) | val concat_lemma (s1 s2: list char) (l1 l2: list dir)
: Lemma
(requires (reify (parse_format s1) () = Some l1 /\ reify (parse_format s2) () = Some l2))
(ensures (reify (parse_format (s1 @ s2)) () = Some (l1 @ l2)))
(decreases s1) | let rec concat_lemma (s1 s2 : list char) (l1 l2:list dir)
: Lemma (requires (reify (parse_format s1) () = Some l1 /\ reify (parse_format s2) () = Some l2))
(ensures (reify (parse_format (s1 @ s2)) () = Some (l1@l2)))
(decreases s1)
= match s1 with
| [] -> ()
| ['%'] -> ()
| '%' :: c :: s1' ->
be... | {
"file_name": "examples/printf/SimplePrintfReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 187,
"start_col": 0,
"start_line": 169
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.String.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Char.fsti.checked"
],
"interface_file": false,
"source_file": "SimplePrintfReify.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": false,
"full_module": "FStar.String",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Char",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s1: Prims.list FStar.String.char ->
s2: Prims.list FStar.String.char ->
l1: Prims.list SimplePrintfReify.dir ->
l2: Prims.list SimplePrintfReify.dir
-> FStar.Pervasives.Lemma
(requires
reify (SimplePrintfReify.parse_format s1) () = FStar.Pervasives.Native.Some l1 /\
reify (Simpl... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.list",
"FStar.String.char",
"SimplePrintfReify.dir",
"SimplePrintfReify.concat_lemma",
"Prims.unit",
"FStar.Char.char",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Pervasives.Native.option",
"SimplePrintfReify.parse_format",
"FStar.Pervasives.Native.Some",
"Prims.squash",
... | [
"recursion"
] | false | false | true | false | false | let rec concat_lemma (s1 s2: list char) (l1 l2: list dir)
: Lemma
(requires (reify (parse_format s1) () = Some l1 /\ reify (parse_format s2) () = Some l2))
(ensures (reify (parse_format (s1 @ s2)) () = Some (l1 @ l2)))
(decreases s1) =
| match s1 with
| [] -> ()
| ['%'] -> ()
| '%' :: c :: s1' ->
(match c with
| '%' | 'b' | 'd' | 'c' | 's' -> (match l1 with | _ :: l1' -> concat_lemma s1' s2 l1' l2)
| _ -> ())
| c :: s1' -> match l1 with | _ :: l1' -> concat_lemma s1' s2 l1' l2 | false |
PulseCore.Atomic.fst | PulseCore.Atomic.lift_atomic1 | val lift_atomic1
(#a:Type u#1)
(#obs:_)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens pre post)
: stt a pre post | val lift_atomic1
(#a:Type u#1)
(#obs:_)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens pre post)
: stt a pre post | let lift_atomic1
(#a:Type u#1)
(#obs:_)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens pre post)
: stt a pre post
= A.lift1 e | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 11,
"end_line": 96,
"start_col": 0,
"start_line": 88
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | e: PulseCore.Atomic.stt_atomic a opens pre post -> PulseCore.InstantiatedSemantics.stt a pre post | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Observability.observability",
"PulseCore.Action.inames",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Action.lift1",
"PulseCore.InstantiatedSemantics.stt"
] | [] | false | false | false | false | false | let lift_atomic1
(#a: Type u#1)
(#obs: _)
(#opens: inames)
(#pre: slprop)
(#post: (a -> slprop))
(e: stt_atomic a #obs opens pre post)
: stt a pre post =
| A.lift1 e | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_clens_dsum_cases_known_payload | val gaccessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot
(gaccessor (parse_dsum_cases' t f g (Known k)... | val gaccessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot
(gaccessor (parse_dsum_cases' t f g (Known k)... | let gaccessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot (gaccessor (parse_dsum_cases' t f g (Known k)) (dsnd (f k)) (clens_dsum_c... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 2102,
"start_col": 0,
"start_line": 2089
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.dsum ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x))) ->
g: LowParse.Spec.Base.parser ku (LowParse.Spec.Sum.dsum_type_of_unkn... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Low.Base.Spec.gaccessor_ext",
"Prims.__proj__Mkdtuple2__it... | [] | false | false | false | false | false | let gaccessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot
(gaccessor (parse_dsum_cases' t f g (Known k)... | synth_dsum_case_injective t (Known k);
synth_dsum_case_inverse t (Known k);
synth_injective_synth_inverse_synth_inverse_recip (synth_dsum_case t (Known k))
(synth_dsum_case_recip t (Known k))
();
gaccessor_ext (gaccessor_synth (dsnd (f k))
(synth_dsum_case t (Known k))
(synth_dsum_case_recip t (Known k)... | false |
PulseCore.Atomic.fst | PulseCore.Atomic.lift_atomic2 | val lift_atomic2
(#a:Type u#2)
(#obs:_)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens pre post)
: stt a pre post | val lift_atomic2
(#a:Type u#2)
(#obs:_)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens pre post)
: stt a pre post | let lift_atomic2
(#a:Type u#2)
(#obs:_)
(#opens:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens pre post)
: stt a pre post
= A.lift2 e | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 11,
"end_line": 106,
"start_col": 0,
"start_line": 98
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | e: PulseCore.Atomic.stt_atomic a opens pre post -> PulseCore.InstantiatedSemantics.stt a pre post | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Observability.observability",
"PulseCore.Action.inames",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Action.lift2",
"PulseCore.InstantiatedSemantics.stt"
] | [] | false | false | false | false | false | let lift_atomic2
(#a: Type u#2)
(#obs: _)
(#opens: inames)
(#pre: slprop)
(#post: (a -> slprop))
(e: stt_atomic a #obs opens pre post)
: stt a pre post =
| A.lift2 e | false |
PulseCore.Atomic.fst | PulseCore.Atomic.return_atomic | val return_atomic
(#a:Type u#a)
(x:a)
(p:a -> slprop)
: stt_atomic a #Neutral emp_inames (p x) (fun r -> p r ** pure (r == x)) | val return_atomic
(#a:Type u#a)
(x:a)
(p:a -> slprop)
: stt_atomic a #Neutral emp_inames (p x) (fun r -> p r ** pure (r == x)) | let return_atomic #a x post
: stt_atomic a #Neutral emp_inames
(post x)
(fun r -> post r ** pure (r == x))
= emp_unit_r (post x);
pure_trivial (x == x) ();
coerce_eq () (return_atomic' #a x post) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 41,
"end_line": 52,
"start_col": 0,
"start_line": 46
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | x: a -> p: (_: a -> PulseCore.InstantiatedSemantics.slprop)
-> PulseCore.Atomic.stt_atomic a
PulseCore.Action.emp_inames
(p x)
(fun r -> p r ** PulseCore.InstantiatedSemantics.pure (r == x)) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Pervasives.coerce_eq",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Observability.Unobservable",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"PulseCore.InstantiatedSemantics.pure",
"Prims.eq2",
"PulseCore.Observability.... | [] | false | false | false | false | false | let return_atomic #a x post
: stt_atomic a #Neutral emp_inames (post x) (fun r -> post r ** pure (r == x)) =
| emp_unit_r (post x);
pure_trivial (x == x) ();
coerce_eq () (return_atomic' #a x post) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.pure_equiv | val pure_equiv: p: prop -> q: prop -> squash (p <==> q) -> slprop_equiv (pure p) (pure q) | val pure_equiv: p: prop -> q: prop -> squash (p <==> q) -> slprop_equiv (pure p) (pure q) | let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.PropositionalExtensionality.apply p q;
slprop_equiv_refl (pure p) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 13,
"start_col": 0,
"start_line": 10
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: Prims.prop -> q: Prims.prop -> _: Prims.squash (p <==> q)
-> PulseCore.InstantiatedSemantics.slprop_equiv (PulseCore.InstantiatedSemantics.pure p)
(PulseCore.InstantiatedSemantics.pure q) | Prims.Tot | [
"total"
] | [] | [
"Prims.prop",
"Prims.squash",
"Prims.l_iff",
"PulseCore.InstantiatedSemantics.slprop_equiv_refl",
"PulseCore.InstantiatedSemantics.pure",
"Prims.unit",
"FStar.PropositionalExtensionality.apply",
"PulseCore.InstantiatedSemantics.slprop_equiv"
] | [] | false | false | false | false | false | let pure_equiv (p: prop) (q: prop) (_: squash (p <==> q)) : slprop_equiv (pure p) (pure q) =
| FStar.PropositionalExtensionality.apply p q;
slprop_equiv_refl (pure p) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.emp_unit_r | val emp_unit_r (p: slprop) : squash (p ** emp == p) | val emp_unit_r (p: slprop) : squash (p ** emp == p) | let emp_unit_r (p:slprop)
: squash (p ** emp == p)
= calc (==) {
(p ** emp);
(==) { equiv (slprop_equiv_comm p emp) }
(emp ** p);
(==) { equiv (slprop_equiv_unit p) }
p;
} | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 38,
"start_col": 0,
"start_line": 30
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: PulseCore.InstantiatedSemantics.slprop
-> Prims.squash (p ** PulseCore.InstantiatedSemantics.emp == p) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Calc.calc_finish",
"Prims.eq2",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"PulseCore.InstantiatedSemantics.emp",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
"FStar.Cal... | [] | false | false | true | false | false | let emp_unit_r (p: slprop) : squash (p ** emp == p) =
| calc ( == ) {
(p ** emp);
( == ) { equiv (slprop_equiv_comm p emp) }
(emp ** p);
( == ) { equiv (slprop_equiv_unit p) }
p;
} | false |
PulseCore.Atomic.fst | PulseCore.Atomic.pure_trivial | val pure_trivial: p: prop -> squash p -> squash (pure p == emp) | val pure_trivial: p: prop -> squash p -> squash (pure p == emp) | let pure_trivial (p:prop) (_:squash p)
: squash (pure p == emp)
= calc (==) {
pure p;
(==) { equiv (pure_equiv p True ()) }
pure True;
(==) { equiv (A.pure_true ()) }
emp;
} | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 28,
"start_col": 0,
"start_line": 20
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: Prims.prop -> _: Prims.squash p
-> Prims.squash (PulseCore.InstantiatedSemantics.pure p == PulseCore.InstantiatedSemantics.emp) | Prims.Tot | [
"total"
] | [] | [
"Prims.prop",
"Prims.squash",
"FStar.Calc.calc_finish",
"PulseCore.InstantiatedSemantics.slprop",
"Prims.eq2",
"PulseCore.InstantiatedSemantics.pure",
"PulseCore.InstantiatedSemantics.emp",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"Prims.l_T... | [] | false | false | true | false | false | let pure_trivial (p: prop) (_: squash p) : squash (pure p == emp) =
| calc ( == ) {
pure p;
( == ) { equiv (pure_equiv p True ()) }
pure True;
( == ) { equiv (A.pure_true ()) }
emp;
} | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.accessor_clens_dsum_cases_known_payload | val accessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot (accessor (gaccessor_clens_dsum_cases_known_payloa... | val accessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot (accessor (gaccessor_clens_dsum_cases_known_payloa... | let accessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot (accessor (gaccessor_clens_dsum_cases_known_payload t f g k))
= [@inline_l... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 2121,
"start_col": 0,
"start_line": 2105
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.dsum ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x))) ->
g: LowParse.Spec.Base.parser ku (LowParse.Spec.Sum.dsum_type_of_unkn... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Low.Base.accessor_ext",
"Prims.__proj__Mkdtuple2__item___1... | [] | false | false | false | false | false | let accessor_clens_dsum_cases_known_payload
(t: dsum)
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_known_key t)
: Tot (accessor (gaccessor_clens_dsum_cases_known_payloa... | [@@ inline_let ]let _ =
synth_dsum_case_injective t (Known k);
synth_dsum_case_inverse t (Known k);
synth_injective_synth_inverse_synth_inverse_recip (synth_dsum_case t (Known k))
(synth_dsum_case_recip t (Known k))
()
in
accessor_ext (accessor_synth (dsnd (f k))
(synth_dsum_case t (Known k))
... | false |
PulseCore.Atomic.fst | PulseCore.Atomic.stt_ghost | val stt_ghost
(a:Type u#a)
(pre:slprop)
(post:a -> slprop)
: Type u#(max 2 a) | val stt_ghost
(a:Type u#a)
(pre:slprop)
(post:a -> slprop)
: Type u#(max 2 a) | let stt_ghost a pre post = Ghost.erased (act a emp_inames pre post) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 67,
"end_line": 145,
"start_col": 0,
"start_line": 145
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 |
a: Type ->
pre: PulseCore.InstantiatedSemantics.slprop ->
post: (_: a -> PulseCore.InstantiatedSemantics.slprop)
-> Type | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.erased",
"PulseCore.Action.act",
"PulseCore.Action.emp_inames"
] | [] | false | false | false | true | true | let stt_ghost a pre post =
| Ghost.erased (act a emp_inames pre post) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.return_ghost | val return_ghost
(#a:Type u#a)
(x:a)
(p:a -> slprop)
: stt_ghost a (p x) (fun r -> p r ** pure (r == x)) | val return_ghost
(#a:Type u#a)
(x:a)
(p:a -> slprop)
: stt_ghost a (p x) (fun r -> p r ** pure (r == x)) | let return_ghost #a x p = Ghost.hide (return_atomic #a x p) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 59,
"end_line": 146,
"start_col": 0,
"start_line": 146
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | x: a -> p: (_: a -> PulseCore.InstantiatedSemantics.slprop)
-> PulseCore.Atomic.stt_ghost a
(p x)
(fun r -> p r ** PulseCore.InstantiatedSemantics.pure (r == x)) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"PulseCore.InstantiatedSemantics.pure",
"Prims.eq2",
"PulseCore.Atomic.return_atomic",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let return_ghost #a x p =
| Ghost.hide (return_atomic #a x p) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.bind_ghost | val bind_ghost
(#a:Type u#a)
(#b:Type u#b)
(#pre1:slprop)
(#post1:a -> slprop)
(#post2:b -> slprop)
(e1:stt_ghost a pre1 post1)
(e2:(x:a -> stt_ghost b (post1 x) post2))
: stt_ghost b pre1 post2 | val bind_ghost
(#a:Type u#a)
(#b:Type u#b)
(#pre1:slprop)
(#post1:a -> slprop)
(#post2:b -> slprop)
(e1:stt_ghost a pre1 post1)
(e2:(x:a -> stt_ghost b (post1 x) post2))
: stt_ghost b pre1 post2 | let bind_ghost
(#a:Type u#a)
(#b:Type u#b)
(#pre1:slprop)
(#post1:a -> slprop)
(#post2:b -> slprop)
(e1:stt_ghost a pre1 post1)
(e2:(x:a -> stt_ghost b (post1 x) post2))
: stt_ghost b pre1 post2
= let e1 = Ghost.reveal e1 in
let e2 = FStar.Ghost.Pull.pull (fun (x:a) -> Ghost.rev... | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 27,
"end_line": 159,
"start_col": 0,
"start_line": 148
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 |
e1: PulseCore.Atomic.stt_ghost a pre1 post1 ->
e2: (x: a -> PulseCore.Atomic.stt_ghost b (post1 x) post2)
-> PulseCore.Atomic.stt_ghost b pre1 post2 | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_ghost",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Action.emp_inames",
"PulseCore.Action.bind",
"FStar.Ghost.Pull.pull",
"FStar.Ghost.reveal"
] | [] | false | false | false | false | false | let bind_ghost
(#a: Type u#a)
(#b: Type u#b)
(#pre1: slprop)
(#post1: (a -> slprop))
(#post2: (b -> slprop))
(e1: stt_ghost a pre1 post1)
(e2: (x: a -> stt_ghost b (post1 x) post2))
: stt_ghost b pre1 post2 =
| let e1 = Ghost.reveal e1 in
let e2 = FStar.Ghost.Pull.pull (fun (x: a) -> Ghost.reveal (e2 x)) in
Ghost.hide (A.bind e1 e2) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.return_ghost_noeq | val return_ghost_noeq
(#a:Type u#a)
(x:a)
(p:a -> slprop)
: stt_ghost a (p x) p | val return_ghost_noeq
(#a:Type u#a)
(x:a)
(p:a -> slprop)
: stt_ghost a (p x) p | let return_ghost_noeq #a x p = Ghost.hide (A.return #_ #p x) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 60,
"end_line": 147,
"start_col": 0,
"start_line": 147
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | x: a -> p: (_: a -> PulseCore.InstantiatedSemantics.slprop) -> PulseCore.Atomic.stt_ghost a (p x) p | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Action.emp_inames",
"PulseCore.Action.return",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let return_ghost_noeq #a x p =
| Ghost.hide (A.return #_ #p x) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.intro_pure | val intro_pure (p:prop) (pf:squash p)
: stt_ghost unit emp (fun _ -> pure p) | val intro_pure (p:prop) (pf:squash p)
: stt_ghost unit emp (fun _ -> pure p) | let intro_pure (p:prop) (pf:squash p)
: stt_ghost unit emp (fun _ -> pure p)
= Ghost.hide (A.intro_pure p pf) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 196,
"start_col": 0,
"start_line": 194
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: Prims.prop -> pf: Prims.squash p
-> PulseCore.Atomic.stt_ghost Prims.unit
PulseCore.InstantiatedSemantics.emp
(fun _ -> PulseCore.InstantiatedSemantics.pure p) | Prims.Tot | [
"total"
] | [] | [
"Prims.prop",
"Prims.squash",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.unit",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.emp",
"PulseCore.InstantiatedSemantics.pure",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Action.intro_pure",
"PulseCore.Atomic.stt_gho... | [] | false | false | false | false | false | let intro_pure (p: prop) (pf: squash p) : stt_ghost unit emp (fun _ -> pure p) =
| Ghost.hide (A.intro_pure p pf) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.noop | val noop (p:slprop)
: stt_ghost unit p (fun _ -> p) | val noop (p:slprop)
: stt_ghost unit p (fun _ -> p) | let noop (p:slprop)
: stt_ghost unit p (fun _ -> p)
= Ghost.hide (A.return #_ #(fun _ -> p) ()) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 43,
"end_line": 192,
"start_col": 0,
"start_line": 190
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: PulseCore.InstantiatedSemantics.slprop -> PulseCore.Atomic.stt_ghost Prims.unit p (fun _ -> p) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.unit",
"PulseCore.Action.emp_inames",
"PulseCore.Action.return",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let noop (p: slprop) : stt_ghost unit p (fun _ -> p) =
| Ghost.hide (A.return #_ #(fun _ -> p) ()) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.frame_ghost | val frame_ghost
(#a:Type u#a)
(#pre:slprop)
(#post:a -> slprop)
(frame:slprop)
(e:stt_ghost a pre post)
: stt_ghost a (pre ** frame) (fun x -> post x ** frame) | val frame_ghost
(#a:Type u#a)
(#pre:slprop)
(#post:a -> slprop)
(frame:slprop)
(e:stt_ghost a pre post)
: stt_ghost a (pre ** frame) (fun x -> post x ** frame) | let frame_ghost
(#a:Type u#a)
(#pre:slprop)
(#post:a -> slprop)
(frame:slprop)
(e:stt_ghost a pre post)
: stt_ghost a (pre ** frame) (fun x -> post x ** frame)
= Ghost.hide (A.frame (Ghost.reveal e)) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 39,
"end_line": 185,
"start_col": 0,
"start_line": 178
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | frame: PulseCore.InstantiatedSemantics.slprop -> e: PulseCore.Atomic.stt_ghost a pre post
-> PulseCore.Atomic.stt_ghost a (pre ** frame) (fun x -> post x ** frame) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_ghost",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"PulseCore.Action.frame",
"FStar.Ghost.reveal"
] | [] | false | false | false | false | false | let frame_ghost
(#a: Type u#a)
(#pre: slprop)
(#post: (a -> slprop))
(frame: slprop)
(e: stt_ghost a pre post)
: stt_ghost a (pre ** frame) (fun x -> post x ** frame) =
| Ghost.hide (A.frame (Ghost.reveal e)) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.lift_neutral_ghost | val lift_neutral_ghost
(#a:Type u#a)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #Neutral emp_inames pre post)
: stt_ghost a pre post | val lift_neutral_ghost
(#a:Type u#a)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #Neutral emp_inames pre post)
: stt_ghost a pre post | let lift_neutral_ghost
(#a:Type u#a)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #Neutral emp_inames pre post)
: stt_ghost a pre post
= Ghost.hide e | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 176,
"start_col": 0,
"start_line": 170
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | e: PulseCore.Atomic.stt_atomic a PulseCore.Action.emp_inames pre post
-> PulseCore.Atomic.stt_ghost a pre post | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Observability.Neutral",
"PulseCore.Action.emp_inames",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let lift_neutral_ghost
(#a: Type u#a)
(#pre: slprop)
(#post: (a -> slprop))
(e: stt_atomic a #Neutral emp_inames pre post)
: stt_ghost a pre post =
| Ghost.hide e | false |
PulseCore.Atomic.fst | PulseCore.Atomic.intro_exists | val intro_exists (#a:Type u#a) (p:a -> slprop) (x:erased a)
: stt_ghost unit (p x) (fun _ -> exists* x. p x) | val intro_exists (#a:Type u#a) (p:a -> slprop) (x:erased a)
: stt_ghost unit (p x) (fun _ -> exists* x. p x) | let intro_exists (#a:Type u#a) (p:a -> slprop) (x:erased a)
: stt_ghost unit (p x) (fun _ -> exists* x. p x)
= Ghost.hide (A.intro_exists p x) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 204,
"start_col": 0,
"start_line": 202
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: (_: a -> PulseCore.InstantiatedSemantics.slprop) -> x: FStar.Ghost.erased a
-> PulseCore.Atomic.stt_ghost Prims.unit (p (FStar.Ghost.reveal x)) (fun _ -> exists* (x: a). p x) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.erased",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.unit",
"PulseCore.Action.emp_inames",
"FStar.Ghost.reveal",
"PulseCore.InstantiatedSemantics.op_exists_Star",
"PulseCore.Action.intro_exists",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let intro_exists (#a: Type u#a) (p: (a -> slprop)) (x: erased a)
: stt_ghost unit (p x) (fun _ -> exists* x. p x) =
| Ghost.hide (A.intro_exists p x) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.elim_pure | val elim_pure (p:prop)
: stt_ghost (squash p) (pure p) (fun _ -> emp) | val elim_pure (p:prop)
: stt_ghost (squash p) (pure p) (fun _ -> emp) | let elim_pure (p:prop)
: stt_ghost (squash p) (pure p) (fun _ -> emp)
= Ghost.hide (A.elim_pure p) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 28,
"end_line": 200,
"start_col": 0,
"start_line": 198
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: Prims.prop
-> PulseCore.Atomic.stt_ghost (Prims.squash p)
(PulseCore.InstantiatedSemantics.pure p)
(fun _ -> PulseCore.InstantiatedSemantics.emp) | Prims.Tot | [
"total"
] | [] | [
"Prims.prop",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.squash",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.pure",
"PulseCore.InstantiatedSemantics.emp",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Action.elim_pure",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let elim_pure (p: prop) : stt_ghost (squash p) (pure p) (fun _ -> emp) =
| Ghost.hide (A.elim_pure p) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.elim_exists | val elim_exists (#a:Type u#a) (p:a -> slprop)
: stt_ghost (erased a) (exists* x. p x) (fun x -> p x) | val elim_exists (#a:Type u#a) (p:a -> slprop)
: stt_ghost (erased a) (exists* x. p x) (fun x -> p x) | let elim_exists (#a:Type u#a) (p:a -> slprop)
: stt_ghost (erased a) (exists* x. p x) (fun x -> p x)
= Ghost.hide (A.elim_exists p) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 208,
"start_col": 0,
"start_line": 206
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: (_: a -> PulseCore.InstantiatedSemantics.slprop)
-> PulseCore.Atomic.stt_ghost (FStar.Ghost.erased a)
(exists* (x: a). p x)
(fun x -> p (FStar.Ghost.reveal x)) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"FStar.Ghost.erased",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.op_exists_Star",
"FStar.Ghost.reveal",
"PulseCore.Action.elim_exists",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let elim_exists (#a: Type u#a) (p: (a -> slprop))
: stt_ghost (erased a) (exists* x. p x) (fun x -> p x) =
| Ghost.hide (A.elim_exists p) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.sub_atomic | val sub_atomic
(#a:Type u#a)
(#obs:_)
(#opens:inames)
(#pre1:slprop)
(pre2:slprop)
(#post1:a -> slprop)
(post2:a -> slprop)
(pf1 : slprop_equiv pre1 pre2)
(pf2 : slprop_post_equiv post1 post2)
(e:stt_atomic a #obs opens pre1 post1)
: stt_atomic a #obs opens pre2 post2 | val sub_atomic
(#a:Type u#a)
(#obs:_)
(#opens:inames)
(#pre1:slprop)
(pre2:slprop)
(#post1:a -> slprop)
(post2:a -> slprop)
(pf1 : slprop_equiv pre1 pre2)
(pf2 : slprop_post_equiv post1 post2)
(e:stt_atomic a #obs opens pre1 post1)
: stt_atomic a #obs opens pre2 post2 | let sub_atomic
(#a:Type u#a)
(#obs:_)
(#opens:inames)
(#pre1:slprop)
(pre2:slprop)
(#post1:a -> slprop)
(post2:a -> slprop)
(pf1 : slprop_equiv pre1 pre2)
(pf2 : slprop_post_equiv post1 post2)
(e:stt_atomic a #obs opens pre1 post1)
: stt_atomic a #obs opens pre2 post2
... | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 20,
"end_line": 131,
"start_col": 0,
"start_line": 119
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 |
pre2: PulseCore.InstantiatedSemantics.slprop ->
post2: (_: a -> PulseCore.InstantiatedSemantics.slprop) ->
pf1: PulseCore.InstantiatedSemantics.slprop_equiv pre1 pre2 ->
pf2: PulseCore.InstantiatedSemantics.slprop_post_equiv post1 post2 ->
e: PulseCore.Atomic.stt_atomic a opens pre1 post1
-> Puls... | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Observability.observability",
"PulseCore.Action.inames",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.InstantiatedSemantics.slprop_equiv",
"PulseCore.InstantiatedSemantics.slprop_post_equiv",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Action.sub"
] | [] | false | false | false | false | false | let sub_atomic
(#a: Type u#a)
(#obs: _)
(#opens: inames)
(#pre1 pre2: slprop)
(#post1 post2: (a -> slprop))
(pf1: slprop_equiv pre1 pre2)
(pf2: slprop_post_equiv post1 post2)
(e: stt_atomic a #obs opens pre1 post1)
: stt_atomic a #obs opens pre2 post2 =
| A.sub pre2 post2 e | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.valid_sum_elim | val valid_sum_elim
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid (parse_sum t p pc) h... | val valid_sum_elim
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid (parse_sum t p pc) h... | let valid_sum_elim
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel: _) (#rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (
valid (parse_sum t p pc) h input pos
))
(ens... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 11,
"end_line": 477,
"start_col": 0,
"start_line": 440
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.HyperStack.mem ->
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.... | [] | false | false | true | false | false | let valid_sum_elim
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid (parse_sum t p pc) h... | let sinput = bytes_of_slice_from h input pos in
let _ = parse_sum_eq'' t p pc sinput in
[@@ inline_let ]let _ = valid_facts (parse_sum t p pc) h input pos in
let Some (k', consumed_k) = parse p sinput in
let pos_after_tag = U32.uint_to_t (U32.v pos + consumed_k) in
[@@ inline_let ]let _ = valid_facts p h input pos in
a... | false |
PulseCore.Atomic.fst | PulseCore.Atomic.new_invariant | val new_invariant
(p:slprop)
: stt_atomic (inv p) #Unobservable emp_inames p (fun _ -> emp) | val new_invariant
(p:slprop)
: stt_atomic (inv p) #Unobservable emp_inames p (fun _ -> emp) | let new_invariant
(p:slprop)
: stt_atomic (inv p) #Unobservable emp_inames p (fun _ -> emp)
= A.new_invariant p | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 224,
"start_col": 0,
"start_line": 221
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | p: PulseCore.InstantiatedSemantics.slprop
-> PulseCore.Atomic.stt_atomic (PulseCore.Action.inv p)
PulseCore.Action.emp_inames
p
(fun _ -> PulseCore.InstantiatedSemantics.emp) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Action.new_invariant",
"PulseCore.Atomic.stt_atomic",
"PulseCore.Action.inv",
"PulseCore.Observability.Unobservable",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.emp"
] | [] | false | false | false | false | false | let new_invariant (p: slprop) : stt_atomic (inv p) #Unobservable emp_inames p (fun _ -> emp) =
| A.new_invariant p | false |
PulseCore.Atomic.fst | PulseCore.Atomic.with_invariant | val with_invariant
(#a:Type)
(#obs:_)
(#fp:slprop)
(#fp':a -> slprop)
(#f_opens:inames)
(#p:slprop)
(i:inv p{not (mem_inv f_opens i)})
($f:unit -> stt_atomic a #obs f_opens
(p ** fp)
(fun x -> p ** fp' x))
: stt_atomic a ... | val with_invariant
(#a:Type)
(#obs:_)
(#fp:slprop)
(#fp':a -> slprop)
(#f_opens:inames)
(#p:slprop)
(i:inv p{not (mem_inv f_opens i)})
($f:unit -> stt_atomic a #obs f_opens
(p ** fp)
(fun x -> p ** fp' x))
: stt_atomic a ... | let with_invariant
(#a:Type)
(#obs:_)
(#fp:slprop)
(#fp':a -> slprop)
(#f_opens:inames)
(#p:slprop)
(i:inv p{not (mem_inv f_opens i)})
($f:unit -> stt_atomic a #obs f_opens
(p ** fp)
(fun x -> p ** fp' x))
: stt_atomic a ... | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 238,
"start_col": 0,
"start_line": 226
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 |
i: PulseCore.Action.inv p {Prims.op_Negation (PulseCore.Action.mem_inv f_opens i)} ->
$f: (_: Prims.unit -> PulseCore.Atomic.stt_atomic a f_opens (p ** fp) (fun x -> p ** fp' x))
-> PulseCore.Atomic.stt_atomic a (PulseCore.Action.add_inv f_opens i) fp fp' | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Observability.observability",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Action.inames",
"PulseCore.Action.inv",
"Prims.b2t",
"Prims.op_Negation",
"PulseCore.Action.mem_inv",
"Prims.unit",
"PulseCore.Atomic.stt_atomic",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"PulseC... | [] | false | false | false | false | false | let with_invariant
(#a: Type)
(#obs: _)
(#fp: slprop)
(#fp': (a -> slprop))
(#f_opens: inames)
(#p: slprop)
(i: inv p {not (mem_inv f_opens i)})
($f: (unit -> stt_atomic a #obs f_opens (p ** fp) (fun x -> p ** fp' x)))
: stt_atomic a #obs (add_inv f_opens i) fp fp' =
... | A.with_invariant i f | false |
PulseCore.Atomic.fst | PulseCore.Atomic.pts_to_not_null | val pts_to_not_null
(#a:Type u#1)
(#p:FStar.PCM.pcm a)
(r:ref a p)
(v:a)
: stt_ghost (squash (not (is_ref_null r)))
(pts_to r v)
(fun _ -> pts_to r v) | val pts_to_not_null
(#a:Type u#1)
(#p:FStar.PCM.pcm a)
(r:ref a p)
(v:a)
: stt_ghost (squash (not (is_ref_null r)))
(pts_to r v)
(fun _ -> pts_to r v) | let pts_to_not_null #a #p r v = Ghost.hide (A.pts_to_not_null #a #p r v) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 72,
"end_line": 240,
"start_col": 0,
"start_line": 240
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: PulseCore.Action.ref a p -> v: a
-> PulseCore.Atomic.stt_ghost (Prims.squash (Prims.op_Negation (PulseCore.Action.is_ref_null r)))
(PulseCore.Action.pts_to r v)
(fun _ -> PulseCore.Action.pts_to r v) | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Action.ref",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.squash",
"Prims.b2t",
"Prims.op_Negation",
"PulseCore.Action.is_ref_null",
"PulseCore.Action.emp_inames",
"PulseCore.Action.pts_to",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Action.pts_to_no... | [] | false | false | false | false | false | let pts_to_not_null #a #p r v =
| Ghost.hide (A.pts_to_not_null #a #p r v) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.alloc | val alloc
(#a:Type u#1)
(#pcm:pcm a)
(x:a{compatible pcm x x /\ pcm.refine x})
: stt_atomic (ref a pcm)
#Observable
emp_inames
emp
(fun r -> pts_to r x) | val alloc
(#a:Type u#1)
(#pcm:pcm a)
(x:a{compatible pcm x x /\ pcm.refine x})
: stt_atomic (ref a pcm)
#Observable
emp_inames
emp
(fun r -> pts_to r x) | let alloc = A.alloc | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 241,
"start_col": 0,
"start_line": 241
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a{FStar.PCM.compatible pcm x x /\ Mkpcm?.refine pcm x}
-> PulseCore.Atomic.stt_atomic (PulseCore.Action.ref a pcm)
PulseCore.Action.emp_inames
PulseCore.InstantiatedSemantics.emp
(fun r -> PulseCore.Action.pts_to r x) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Action.alloc"
] | [] | false | false | false | false | false | let alloc =
| A.alloc | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_clens_dsum_unknown_payload_injective | val gaccessor_clens_dsum_unknown_payload_injective
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl': b... | val gaccessor_clens_dsum_unknown_payload_injective
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl': b... | let gaccessor_clens_dsum_unknown_payload_injective
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl' : bytes)
: Lemma
(requires (... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 1995,
"start_col": 0,
"start_line": 1977
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Bytes.bytes",
"LowPa... | [] | true | false | true | false | false | let gaccessor_clens_dsum_unknown_payload_injective
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl': b... | parse_dsum_eq3 t p f g sl;
parse_dsum_eq3 t p f g sl';
parse_injective (parse_dsum t p f g) sl sl';
parse_injective p sl sl' | false |
PulseCore.Atomic.fst | PulseCore.Atomic.sub_invs_stt_atomic | val sub_invs_stt_atomic
(#a:Type u#a)
(#obs:_)
(#opens1 #opens2:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens1 pre post)
(_ : squash (inames_subset opens1 opens2))
: stt_atomic a #obs opens2 pre post | val sub_invs_stt_atomic
(#a:Type u#a)
(#obs:_)
(#opens1 #opens2:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens1 pre post)
(_ : squash (inames_subset opens1 opens2))
: stt_atomic a #obs opens2 pre post | let sub_invs_stt_atomic
(#a:Type u#a)
(#obs:_)
(#opens1 #opens2:inames)
(#pre:slprop)
(#post:a -> slprop)
(e:stt_atomic a #obs opens1 pre post)
(_ : squash (inames_subset opens1 opens2))
: stt_atomic a #obs opens2 pre post
= assert (Set.equal (Set.union opens1 opens2) opens2);
A.... | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 143,
"start_col": 0,
"start_line": 133
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 |
e: PulseCore.Atomic.stt_atomic a opens1 pre post ->
_: Prims.squash (PulseCore.Action.inames_subset opens1 opens2)
-> PulseCore.Atomic.stt_atomic a opens2 pre post | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Observability.observability",
"PulseCore.Action.inames",
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_atomic",
"Prims.squash",
"PulseCore.Action.inames_subset",
"PulseCore.Action.weaken",
"Prims.unit",
"Prims._assert",
"FStar.Set.equal",
"PulseCore.Action.iname",
... | [] | false | false | false | false | false | let sub_invs_stt_atomic
(#a: Type u#a)
(#obs: _)
(#opens1: inames)
(#opens2: inames)
(#pre: slprop)
(#post: (a -> slprop))
(e: stt_atomic a #obs opens1 pre post)
(_: squash (inames_subset opens1 opens2))
: stt_atomic a #obs opens2 pre post =
| assert (Set.equal (Set.union opens1 opens2) opens2);
A.weaken opens2 e | false |
PulseCore.Atomic.fst | PulseCore.Atomic.witness | val witness
(#a:Type)
(#pcm:pcm a)
(r:erased (ref a pcm))
(fact:stable_property pcm)
(v:Ghost.erased a)
(pf:squash (forall z. compatible pcm v z ==> fact z))
: stt_ghost
(witnessed r fact)
(pts_to r v)
(fun _ -> pts_to r v) | val witness
(#a:Type)
(#pcm:pcm a)
(r:erased (ref a pcm))
(fact:stable_property pcm)
(v:Ghost.erased a)
(pf:squash (forall z. compatible pcm v z ==> fact z))
: stt_ghost
(witnessed r fact)
(pts_to r v)
(fun _ -> pts_to r v) | let witness #a #pcm r f v pf = Ghost.hide (A.witness r f v pf) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 62,
"end_line": 246,
"start_col": 0,
"start_line": 246
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: FStar.Ghost.erased (PulseCore.Action.ref a pcm) ->
fact: PulseCore.Action.stable_property pcm ->
v: FStar.Ghost.erased a ->
pf: Prims.squash (forall (z: a). FStar.PCM.compatible pcm (FStar.Ghost.reveal v) z ==> fact z)
-> PulseCore.Atomic.stt_ghost (PulseCore.Action.witnessed (FStar.Ghost.reveal r... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"PulseCore.Action.ref",
"PulseCore.Action.stable_property",
"Prims.squash",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.PCM.compatible",
"FStar.Ghost.reveal",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Action.witnessed",
"PulseCore.Action.emp_in... | [] | false | false | false | false | false | let witness #a #pcm r f v pf =
| Ghost.hide (A.witness r f v pf) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.write | val write
(#a:Type)
(#p:pcm a)
(r:ref a p)
(x y:Ghost.erased a)
(f:FStar.PCM.frame_preserving_upd p x y)
: stt_atomic unit
#Observable
emp_inames
(pts_to r x)
(fun _ -> pts_to r y) | val write
(#a:Type)
(#p:pcm a)
(r:ref a p)
(x y:Ghost.erased a)
(f:FStar.PCM.frame_preserving_upd p x y)
: stt_atomic unit
#Observable
emp_inames
(pts_to r x)
(fun _ -> pts_to r y) | let write = A.write | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 243,
"start_col": 0,
"start_line": 243
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Action.ref a p ->
x: FStar.Ghost.erased a ->
y: FStar.Ghost.erased a ->
f: FStar.PCM.frame_preserving_upd p (FStar.Ghost.reveal x) (FStar.Ghost.reveal y)
-> PulseCore.Atomic.stt_atomic Prims.unit
PulseCore.Action.emp_inames
(PulseCore.Action.pts_to r (FStar.Ghost.reveal x))
... | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Action.write"
] | [] | false | false | false | false | false | let write =
| A.write | false |
PulseCore.Atomic.fst | PulseCore.Atomic.recall | val recall
(#a:Type u#1)
(#pcm:pcm a)
(#fact:property a)
(r:erased (ref a pcm))
(v:Ghost.erased a)
(w:witnessed r fact)
: stt_ghost (v1:Ghost.erased a{compatible pcm v v1})
(pts_to r v)
(fun v1 -> pts_to r v ** pure (fact v1)) | val recall
(#a:Type u#1)
(#pcm:pcm a)
(#fact:property a)
(r:erased (ref a pcm))
(v:Ghost.erased a)
(w:witnessed r fact)
: stt_ghost (v1:Ghost.erased a{compatible pcm v v1})
(pts_to r v)
(fun v1 -> pts_to r v ** pure (fact v1)) | let recall #a #pcm #fact r v w = Ghost.hide (A.recall r v w) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 60,
"end_line": 247,
"start_col": 0,
"start_line": 247
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: FStar.Ghost.erased (PulseCore.Action.ref a pcm) ->
v: FStar.Ghost.erased a ->
w: PulseCore.Action.witnessed (FStar.Ghost.reveal r) fact
-> PulseCore.Atomic.stt_ghost (v1:
FStar.Ghost.erased a
{FStar.PCM.compatible pcm (FStar.Ghost.reveal v) (FStar.Ghost.reveal v1)})
(PulseCore.... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Action.property",
"FStar.Ghost.erased",
"PulseCore.Action.ref",
"PulseCore.Action.witnessed",
"FStar.Ghost.reveal",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"FStar.PCM.compatible",
"PulseCore.Action.emp_inames",
"PulseCore.Action.pts_to",
"PulseCore.InstantiatedS... | [] | false | false | false | false | false | let recall #a #pcm #fact r v w =
| Ghost.hide (A.recall r v w) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_pts_to | val ghost_pts_to (#a:Type u#1) (#p:pcm a) (r:ghost_ref p) (v:a) : slprop | val ghost_pts_to (#a:Type u#1) (#p:pcm a) (r:ghost_ref p) (v:a) : slprop | let ghost_pts_to #a #p r v = pts_to r v | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 39,
"end_line": 250,
"start_col": 0,
"start_line": 250
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: PulseCore.Atomic.ghost_ref p -> v: a -> PulseCore.InstantiatedSemantics.slprop | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Atomic.ghost_ref",
"PulseCore.Action.pts_to",
"FStar.Ghost.reveal",
"PulseCore.Action.ref",
"PulseCore.InstantiatedSemantics.slprop"
] | [] | false | false | false | false | false | let ghost_pts_to #a #p r v =
| pts_to r v | false |
PulseCore.Atomic.fst | PulseCore.Atomic.sub_ghost | val sub_ghost
(#a:Type u#a)
(#pre1:slprop)
(pre2:slprop)
(#post1:a -> slprop)
(post2:a -> slprop)
(pf1 : slprop_equiv pre1 pre2)
(pf2 : slprop_post_equiv post1 post2)
(e:stt_ghost a pre1 post1)
: stt_ghost a pre2 post2 | val sub_ghost
(#a:Type u#a)
(#pre1:slprop)
(pre2:slprop)
(#post1:a -> slprop)
(post2:a -> slprop)
(pf1 : slprop_equiv pre1 pre2)
(pf2 : slprop_post_equiv post1 post2)
(e:stt_ghost a pre1 post1)
: stt_ghost a pre2 post2 | let sub_ghost pre2 post2 pf1 pf2 e
= Ghost.hide (A.sub pre2 post2 e) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 188,
"start_col": 0,
"start_line": 187
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 |
pre2: PulseCore.InstantiatedSemantics.slprop ->
post2: (_: a -> PulseCore.InstantiatedSemantics.slprop) ->
pf1: PulseCore.InstantiatedSemantics.slprop_equiv pre1 pre2 ->
pf2: PulseCore.InstantiatedSemantics.slprop_post_equiv post1 post2 ->
e: PulseCore.Atomic.stt_ghost a pre1 post1
-> PulseCore.A... | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.InstantiatedSemantics.slprop_equiv",
"PulseCore.InstantiatedSemantics.slprop_post_equiv",
"PulseCore.Atomic.stt_ghost",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Action.emp_inames",
"PulseCore.Action.sub",
"FStar.Ghost.reveal"
] | [] | false | false | false | false | false | let sub_ghost pre2 post2 pf1 pf2 e =
| Ghost.hide (A.sub pre2 post2 e) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.hide_ghost | val hide_ghost (#a #pre #post: _) (f: stt_ghost a pre post)
: stt_ghost (erased a) pre (fun x -> post (reveal x)) | val hide_ghost (#a #pre #post: _) (f: stt_ghost a pre post)
: stt_ghost (erased a) pre (fun x -> post (reveal x)) | let hide_ghost #a #pre #post
(f:stt_ghost a pre post)
: stt_ghost (erased a) pre (fun x -> post (reveal x))
= let f = Ghost.reveal f in
Ghost.hide <|
A.bind f
(fun (r:a) ->
A.return #(erased a) #(fun (x:erased a) -> post (reveal x))
(hide r)) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 16,
"end_line": 259,
"start_col": 0,
"start_line": 251
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: PulseCore.Atomic.stt_ghost a pre post
-> PulseCore.Atomic.stt_ghost (FStar.Ghost.erased a) pre (fun x -> post (FStar.Ghost.reveal x)) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"PulseCore.Atomic.stt_ghost",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"FStar.Ghost.erased",
"PulseCore.Action.emp_inames",
"FStar.Ghost.reveal",
"PulseCore.Action.bind",
"PulseCore.Action.return"
] | [] | false | false | false | false | false | let hide_ghost #a #pre #post (f: stt_ghost a pre post)
: stt_ghost (erased a) pre (fun x -> post (reveal x)) =
| let f = Ghost.reveal f in
Ghost.hide <|
A.bind f (fun (r: a) -> A.return #(erased a) #(fun (x: erased a) -> post (reveal x)) (hide r)) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_ref | val ghost_ref (#[@@@unused] a:Type u#a) ([@@@unused]p:pcm a) : Type0 | val ghost_ref (#[@@@unused] a:Type u#a) ([@@@unused]p:pcm a) : Type0 | let ghost_ref #a p = Ghost.erased (ref a p) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 43,
"end_line": 249,
"start_col": 0,
"start_line": 249
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"PulseCore.Action.ref"
] | [] | false | false | false | true | true | let ghost_ref #a p =
| Ghost.erased (ref a p) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_witnessed | val ghost_witnessed
(#a:Type u#1)
(#p:pcm a)
(r:ghost_ref p)
(f:property a)
: Type0 | val ghost_witnessed
(#a:Type u#1)
(#p:pcm a)
(r:ghost_ref p)
(f:property a)
: Type0 | let ghost_witnessed
(#a:Type u#1)
(#p:pcm a)
(r:ghost_ref p)
(f:property a)
= witnessed (reveal r) f | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 285,
"start_col": 0,
"start_line": 280
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: PulseCore.Atomic.ghost_ref p -> f: PulseCore.Action.property a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Atomic.ghost_ref",
"PulseCore.Action.property",
"PulseCore.Action.witnessed",
"FStar.Ghost.reveal",
"PulseCore.Action.ref"
] | [] | false | false | false | false | true | let ghost_witnessed (#a: Type u#1) (#p: pcm a) (r: ghost_ref p) (f: property a) =
| witnessed (reveal r) f | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_write | val ghost_write
(#a:Type)
(#p:pcm a)
(r:ghost_ref p)
(x y:Ghost.erased a)
(f:FStar.PCM.frame_preserving_upd p x y)
: stt_ghost unit
(ghost_pts_to r x)
(fun _ -> ghost_pts_to r y) | val ghost_write
(#a:Type)
(#p:pcm a)
(r:ghost_ref p)
(x y:Ghost.erased a)
(f:FStar.PCM.frame_preserving_upd p x y)
: stt_ghost unit
(ghost_pts_to r x)
(fun _ -> ghost_pts_to r y) | let ghost_write r x y f = Ghost.hide (A.write r x y f) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 54,
"end_line": 275,
"start_col": 0,
"start_line": 275
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Atomic.ghost_ref p ->
x: FStar.Ghost.erased a ->
y: FStar.Ghost.erased a ->
f: FStar.PCM.frame_preserving_upd p (FStar.Ghost.reveal x) (FStar.Ghost.reveal y)
-> PulseCore.Atomic.stt_ghost Prims.unit
(PulseCore.Atomic.ghost_pts_to r (FStar.Ghost.reveal x))
(fun _ -> PulseCore.... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Atomic.ghost_ref",
"FStar.Ghost.erased",
"FStar.PCM.frame_preserving_upd",
"FStar.Ghost.reveal",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.unit",
"PulseCore.Action.emp_inames",
"PulseCore.Atomic.ghost_pts_to",
"PulseCore.InstantiatedSemantics.slprop",
"Puls... | [] | false | false | false | false | false | let ghost_write r x y f =
| Ghost.hide (A.write r x y f) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_reveal | val ghost_reveal (a:Type) (x:erased a)
: stt_ghost a emp (fun y -> pure (reveal x == y)) | val ghost_reveal (a:Type) (x:erased a)
: stt_ghost a emp (fun y -> pure (reveal x == y)) | let ghost_reveal (a:Type) (x:erased a)
: stt_ghost a emp (fun y -> pure (reveal x == y))
= let m
: stt_ghost a
(pure (reveal x == reveal x))
(fun y -> pure (reveal x == y))
= Ghost.hide (A.return #_ #(fun y -> pure (reveal x == y)) (reveal x))
in
pure_trivial (reveal x == reveal x) (... | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 219,
"start_col": 0,
"start_line": 210
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.InstantiatedSemantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "PulseCore.Action",
"short_module": "A"
},
{
"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 | a: Type -> x: FStar.Ghost.erased a
-> PulseCore.Atomic.stt_ghost a
PulseCore.InstantiatedSemantics.emp
(fun y -> PulseCore.InstantiatedSemantics.pure (FStar.Ghost.reveal x == y)) | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Prims.unit",
"PulseCore.Atomic.pure_trivial",
"Prims.eq2",
"FStar.Ghost.reveal",
"PulseCore.Atomic.stt_ghost",
"PulseCore.InstantiatedSemantics.pure",
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Action.emp_inames",
"Pu... | [] | false | false | false | false | false | let ghost_reveal (a: Type) (x: erased a) : stt_ghost a emp (fun y -> pure (reveal x == y)) =
| let m:stt_ghost a (pure (reveal x == reveal x)) (fun y -> pure (reveal x == y)) =
Ghost.hide (A.return #_ #(fun y -> pure (reveal x == y)) (reveal x))
in
pure_trivial (reveal x == reveal x) ();
m | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_clens_dsum_unknown_payload' | val gaccessor_clens_dsum_unknown_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
: Tot (gaccessor' (pa... | val gaccessor_clens_dsum_unknown_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
: Tot (gaccessor' (pa... | let gaccessor_clens_dsum_unknown_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
: Tot (gaccessor' (parse_dsum t p f g) g (clens_d... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 105,
"end_line": 1975,
"start_col": 0,
"start_line": 1955
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Bytes.bytes",
"Prims... | [] | false | false | false | false | false | let gaccessor_clens_dsum_unknown_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
: Tot (gaccessor' (pa... | fun (input: bytes) ->
parse_dsum_eq3 t p f g input;
let res =
match parse p input with
| Some (tg, consumed) ->
let k = maybe_enum_key_of_repr (dsum_enum t) tg in
synth_dsum_case_inverse t k;
synth_dsum_case_injective t k;
synth_injective_synth_inverse_synth_inverse_recip (synth_dsum... | false |
PulseCore.Atomic.fst | PulseCore.Atomic.drop | val drop (p:slprop)
: stt_ghost unit p (fun _ -> emp) | val drop (p:slprop)
: stt_ghost unit p (fun _ -> emp) | let drop p = Ghost.hide (A.drop p) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 34,
"end_line": 305,
"start_col": 0,
"start_line": 305
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: PulseCore.InstantiatedSemantics.slprop
-> PulseCore.Atomic.stt_ghost Prims.unit p (fun _ -> PulseCore.InstantiatedSemantics.emp) | Prims.Tot | [
"total"
] | [] | [
"PulseCore.InstantiatedSemantics.slprop",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.unit",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.emp",
"PulseCore.Action.drop",
"PulseCore.Atomic.stt_ghost"
] | [] | false | false | false | false | false | let drop p =
| Ghost.hide (A.drop p) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_witness | val ghost_witness
(#a:Type)
(#pcm:pcm a)
(r:ghost_ref pcm)
(fact:stable_property pcm)
(v:Ghost.erased a)
(pf:squash (forall z. compatible pcm v z ==> fact z))
: stt_ghost
(ghost_witnessed r fact)
(ghost_pts_to r v)
(fun _ -> ghost_pts_to r v) | val ghost_witness
(#a:Type)
(#pcm:pcm a)
(r:ghost_ref pcm)
(fact:stable_property pcm)
(v:Ghost.erased a)
(pf:squash (forall z. compatible pcm v z ==> fact z))
: stt_ghost
(ghost_witnessed r fact)
(ghost_pts_to r v)
(fun _ -> ghost_pts_to r v) | let ghost_witness
(#a:Type)
(#pcm:pcm a)
(r:ghost_ref pcm)
(fact:stable_property pcm)
(v:Ghost.erased a)
(pf:squash (forall z. compatible pcm v z ==> fact z))
= Ghost.hide (A.witness r fact v pf) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 36,
"end_line": 294,
"start_col": 0,
"start_line": 287
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Atomic.ghost_ref pcm ->
fact: PulseCore.Action.stable_property pcm ->
v: FStar.Ghost.erased a ->
pf: Prims.squash (forall (z: a). FStar.PCM.compatible pcm (FStar.Ghost.reveal v) z ==> fact z)
-> PulseCore.Atomic.stt_ghost (PulseCore.Atomic.ghost_witnessed r fact)
(PulseCore.Atomic.... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Atomic.ghost_ref",
"PulseCore.Action.stable_property",
"FStar.Ghost.erased",
"Prims.squash",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.PCM.compatible",
"FStar.Ghost.reveal",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"PulseCore.Atomic.ghost_witnessed",
"PulseCore.A... | [] | false | false | false | false | false | let ghost_witness
(#a: Type)
(#pcm: pcm a)
(r: ghost_ref pcm)
(fact: stable_property pcm)
(v: Ghost.erased a)
(pf: squash (forall z. compatible pcm v z ==> fact z))
=
| Ghost.hide (A.witness r fact v pf) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.read | val read
(#a:Type)
(#p:pcm a)
(r:ref a p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
FStar.PCM.frame_compatible p x v y})))
: stt_atomic (v:a{compatible p x v /\ p.refine v})
#Observable
emp_inames
(pts_to r x)
(fu... | val read
(#a:Type)
(#p:pcm a)
(r:ref a p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
FStar.PCM.frame_compatible p x v y})))
: stt_atomic (v:a{compatible p x v /\ p.refine v})
#Observable
emp_inames
(pts_to r x)
(fu... | let read = A.read | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 242,
"start_col": 0,
"start_line": 242
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Action.ref a p ->
x: FStar.Ghost.erased a ->
f:
(v: a{FStar.PCM.compatible p (FStar.Ghost.reveal x) v}
-> Prims.GTot (y: a{FStar.PCM.compatible p y v /\ FStar.PCM.frame_compatible p x v y}))
-> PulseCore.Atomic.stt_atomic (v:
a{FStar.PCM.compatible p (FStar.Ghost.reve... | Prims.Tot | [
"total"
] | [] | [
"PulseCore.Action.read"
] | [] | false | false | false | false | false | let read =
| A.read | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_recall | val ghost_recall
(#a:Type u#1)
(#pcm:pcm a)
(#fact:property a)
(r:ghost_ref pcm)
(v:Ghost.erased a)
(w:ghost_witnessed r fact)
: stt_ghost (v1:Ghost.erased a{compatible pcm v v1})
(ghost_pts_to r v)
(fun v1 -> ghost_pts_to r v ** pure (fact v1)) | val ghost_recall
(#a:Type u#1)
(#pcm:pcm a)
(#fact:property a)
(r:ghost_ref pcm)
(v:Ghost.erased a)
(w:ghost_witnessed r fact)
: stt_ghost (v1:Ghost.erased a{compatible pcm v v1})
(ghost_pts_to r v)
(fun v1 -> ghost_pts_to r v ** pure (fact v1)) | let ghost_recall
(#a:Type u#1)
(#pcm:pcm a)
(#fact:property a)
(r:ghost_ref pcm)
(v:Ghost.erased a)
(w:ghost_witnessed r fact)
= Ghost.hide (A.recall r v w) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 303,
"start_col": 0,
"start_line": 296
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Atomic.ghost_ref pcm ->
v: FStar.Ghost.erased a ->
w: PulseCore.Atomic.ghost_witnessed r fact
-> PulseCore.Atomic.stt_ghost (v1:
FStar.Ghost.erased a
{FStar.PCM.compatible pcm (FStar.Ghost.reveal v) (FStar.Ghost.reveal v1)})
(PulseCore.Atomic.ghost_pts_to r (FStar.Gho... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Action.property",
"PulseCore.Atomic.ghost_ref",
"FStar.Ghost.erased",
"PulseCore.Atomic.ghost_witnessed",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"FStar.PCM.compatible",
"FStar.Ghost.reveal",
"PulseCore.Action.emp_inames",
"PulseCore.Atomic.ghost_pts_to",
"Pulse... | [] | false | false | false | false | false | let ghost_recall
(#a: Type u#1)
(#pcm: pcm a)
(#fact: property a)
(r: ghost_ref pcm)
(v: Ghost.erased a)
(w: ghost_witnessed r fact)
=
| Ghost.hide (A.recall r v w) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_clens_dsum_unknown_payload_no_lookahead | val gaccessor_clens_dsum_unknown_payload_no_lookahead
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl'... | val gaccessor_clens_dsum_unknown_payload_no_lookahead
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl'... | let gaccessor_clens_dsum_unknown_payload_no_lookahead
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl' : bytes)
: Lemma
(require... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 2017,
"start_col": 0,
"start_line": 1997
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Bytes.bytes",
"LowPa... | [] | true | false | true | false | false | let gaccessor_clens_dsum_unknown_payload_no_lookahead
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(sl sl'... | parse_dsum_eq3 t p f g sl;
parse_dsum_eq3 t p f g sl';
parse_strong_prefix (parse_dsum t p f g) sl sl';
parse_injective p sl sl' | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_alloc | val ghost_alloc
(#a:Type u#1)
(#pcm:pcm a)
(x:erased a{compatible pcm x x /\ pcm.refine x})
: stt_ghost (ghost_ref pcm)
emp
(fun r -> ghost_pts_to r x) | val ghost_alloc
(#a:Type u#1)
(#pcm:pcm a)
(x:erased a{compatible pcm x x /\ pcm.refine x})
: stt_ghost (ghost_ref pcm)
emp
(fun r -> ghost_pts_to r x) | let ghost_alloc #a #pcm x = hide_ghost (Ghost.hide <| A.alloc #a x) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 67,
"end_line": 261,
"start_col": 0,
"start_line": 261
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x:
FStar.Ghost.erased a
{ FStar.PCM.compatible pcm (FStar.Ghost.reveal x) (FStar.Ghost.reveal x) /\
Mkpcm?.refine pcm (FStar.Ghost.reveal x) }
-> PulseCore.Atomic.stt_ghost (PulseCore.Atomic.ghost_ref pcm)
PulseCore.InstantiatedSemantics.emp
(fun r -> PulseCore.Atomic.ghost_pt... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"Prims.l_and",
"FStar.PCM.compatible",
"FStar.Ghost.reveal",
"FStar.PCM.__proj__Mkpcm__item__refine",
"PulseCore.Atomic.hide_ghost",
"PulseCore.Action.ref",
"PulseCore.InstantiatedSemantics.emp",
"PulseCore.Action.pts_to",
"PulseCore.InstantiatedSemantics.s... | [] | false | false | false | false | false | let ghost_alloc #a #pcm x =
| hide_ghost (Ghost.hide <| A.alloc #a x) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_read | val ghost_read
(#a:Type)
(#p:pcm a)
(r:ghost_ref p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
FStar.PCM.frame_compatible p x v y})))
: stt_ghost (erased (v:a{compatible p x v /\ p.refine v}))
(ghost_pts_to r x)
(fun v -> gh... | val ghost_read
(#a:Type)
(#p:pcm a)
(r:ghost_ref p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
FStar.PCM.frame_compatible p x v y})))
: stt_ghost (erased (v:a{compatible p x v /\ p.refine v}))
(ghost_pts_to r x)
(fun v -> gh... | let ghost_read
(#a:Type)
(#p:pcm a)
(r:ghost_ref p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
FStar.PCM.frame_compatible p x v y})))
: stt_ghost (erased (v:a{compatible p x v /\ p.refine v}))
(ghost_pts_to r x)
(fun v -> gh... | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 41,
"end_line": 273,
"start_col": 0,
"start_line": 262
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Atomic.ghost_ref p ->
x: FStar.Ghost.erased a ->
f:
(v: a{FStar.PCM.compatible p (FStar.Ghost.reveal x) v}
-> Prims.GTot (y: a{FStar.PCM.compatible p y v /\ FStar.PCM.frame_compatible p x v y}))
-> PulseCore.Atomic.stt_ghost (FStar.Ghost.erased (v:
a{FStar.PCM.com... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Atomic.ghost_ref",
"FStar.Ghost.erased",
"FStar.PCM.compatible",
"FStar.Ghost.reveal",
"Prims.l_and",
"FStar.PCM.frame_compatible",
"PulseCore.Atomic.hide_ghost",
"FStar.PCM.__proj__Mkpcm__item__refine",
"PulseCore.Atomic.ghost_pts_to",
"PulseCore.Action.pts_to",
"P... | [] | false | false | false | false | false | let ghost_read
(#a: Type)
(#p: pcm a)
(r: ghost_ref p)
(x: erased a)
(f:
(v: a{compatible p x v}
-> GTot (y: a{compatible p y v /\ FStar.PCM.frame_compatible p x v y})))
: stt_ghost (erased (v: a{compatible p x v /\ p.refine v}))
(ghost_pts_to r x)
(... | hide_ghost <| (Ghost.hide <| A.read r x f) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.share | val share
(#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a{composable pcm v0 v1})
: stt_ghost unit
(pts_to r (v0 `op pcm` v1))
(fun _ -> pts_to r v0 ** pts_to r v1) | val share
(#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a{composable pcm v0 v1})
: stt_ghost unit
(pts_to r (v0 `op pcm` v1))
(fun _ -> pts_to r v0 ** pts_to r v1) | let share #a #pcm r v0 v1 = Ghost.hide (A.share r v0 v1) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 244,
"start_col": 0,
"start_line": 244
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Action.ref a pcm ->
v0: FStar.Ghost.erased a ->
v1:
FStar.Ghost.erased a
{FStar.PCM.composable pcm (FStar.Ghost.reveal v0) (FStar.Ghost.reveal v1)}
-> PulseCore.Atomic.stt_ghost Prims.unit
(PulseCore.Action.pts_to r (FStar.PCM.op pcm (FStar.Ghost.reveal v0) (FStar.Ghost.r... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Action.ref",
"FStar.Ghost.erased",
"FStar.PCM.composable",
"FStar.Ghost.reveal",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.unit",
"PulseCore.Action.emp_inames",
"PulseCore.Action.pts_to",
"FStar.PCM.op",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"Pu... | [] | false | false | false | false | false | let share #a #pcm r v0 v1 =
| Ghost.hide (A.share r v0 v1) | false |
Steel.HigherReference.fst | Steel.HigherReference.free | val free (#a:Type) (#v:erased a) (r:ref a)
: SteelT unit (pts_to r full_perm v) (fun _ -> emp) | val free (#a:Type) (#v:erased a) (r:ref a)
: SteelT unit (pts_to r full_perm v) (fun _ -> emp) | let free (#a:Type) (#v:erased a) (r:ref a)
: SteelT unit (pts_to r full_perm v) (fun _ -> emp)
= let v_old : erased (fractional a) = Ghost.hide (Some (Ghost.reveal v, full_perm)) in
rewrite_slprop
(pts_to r full_perm v)
(RP.pts_to r v_old `star` pure (perm_ok full_perm))
(fun _ -> ());
eli... | {
"file_name": "lib/steel/Steel.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 221,
"start_col": 0,
"start_line": 212
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.PCMReference.fsti.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "RP"
},
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.HigherReference.ref a -> Steel.Effect.SteelT Prims.unit | Steel.Effect.SteelT | [] | [] | [
"FStar.Ghost.erased",
"Steel.HigherReference.ref",
"Steel.Effect.Atomic.drop",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.PCMReference.pts_to",
"Steel.PCMFrac.fractional",
"Steel.PCMFrac.pcm_frac",
"FStar.PCM.__proj__Mkpcm'__item__one",
"FStar.PCM.__pr... | [] | false | true | false | false | false | let free (#a: Type) (#v: erased a) (r: ref a) : SteelT unit (pts_to r full_perm v) (fun _ -> emp) =
| let v_old:erased (fractional a) = Ghost.hide (Some (Ghost.reveal v, full_perm)) in
rewrite_slprop (pts_to r full_perm v)
((RP.pts_to r v_old) `star` (pure (perm_ok full_perm)))
(fun _ -> ());
elim_pure (perm_ok full_perm);
RP.free r v_old;
drop (RP.pts_to r (Mkpcm'?.one (Mkpcm?.p pcm_frac))) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.gather | val gather
(#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a)
: stt_ghost (squash (composable pcm v0 v1))
(pts_to r v0 ** pts_to r v1)
(fun _ -> pts_to r (op pcm v0 v1)) | val gather
(#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a)
: stt_ghost (squash (composable pcm v0 v1))
(pts_to r v0 ** pts_to r v1)
(fun _ -> pts_to r (op pcm v0 v1)) | let gather #a #pcm r v0 v1 = Ghost.hide (A.gather r v0 v1) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 58,
"end_line": 245,
"start_col": 0,
"start_line": 245
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: PulseCore.Action.ref a pcm -> v0: FStar.Ghost.erased a -> v1: FStar.Ghost.erased a
-> PulseCore.Atomic.stt_ghost (Prims.squash (FStar.PCM.composable pcm
(FStar.Ghost.reveal v0)
(FStar.Ghost.reveal v1)))
(PulseCore.Action.pts_to r (FStar.Ghost.reveal v0) **
PulseCore.Action... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Action.ref",
"FStar.Ghost.erased",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.squash",
"FStar.PCM.composable",
"FStar.Ghost.reveal",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"PulseCore.Action.pts_to",
"FStar.PCM.op",
"... | [] | false | false | false | false | false | let gather #a #pcm r v0 v1 =
| Ghost.hide (A.gather r v0 v1) | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_share | val ghost_share
(#a:Type)
(#pcm:pcm a)
(r:ghost_ref pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a{composable pcm v0 v1})
: stt_ghost unit
(ghost_pts_to r (v0 `op pcm` v1))
(fun _ -> ghost_pts_to r v0 ** ghost_pts_to r v1) | val ghost_share
(#a:Type)
(#pcm:pcm a)
(r:ghost_ref pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a{composable pcm v0 v1})
: stt_ghost unit
(ghost_pts_to r (v0 `op pcm` v1))
(fun _ -> ghost_pts_to r v0 ** ghost_pts_to r v1) | let ghost_share r v0 v1 = Ghost.hide (A.share r v0 v1) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 54,
"end_line": 277,
"start_col": 0,
"start_line": 277
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: PulseCore.Atomic.ghost_ref pcm ->
v0: FStar.Ghost.erased a ->
v1:
FStar.Ghost.erased a
{FStar.PCM.composable pcm (FStar.Ghost.reveal v0) (FStar.Ghost.reveal v1)}
-> PulseCore.Atomic.stt_ghost Prims.unit
(PulseCore.Atomic.ghost_pts_to r
(FStar.PCM.op pcm (FStar.Ghost.revea... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Atomic.ghost_ref",
"FStar.Ghost.erased",
"FStar.PCM.composable",
"FStar.Ghost.reveal",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.unit",
"PulseCore.Action.emp_inames",
"PulseCore.Atomic.ghost_pts_to",
"FStar.PCM.op",
"PulseCore.InstantiatedSemantics.op_Star_... | [] | false | false | false | false | false | let ghost_share r v0 v1 =
| Ghost.hide (A.share r v0 v1) | false |
WasmSupport.fst | WasmSupport.align_64 | val align_64 (x: U32.t) : Tot U32.t | val align_64 (x: U32.t) : Tot U32.t | let align_64 (x: U32.t): Tot U32.t =
if not ( U32.((x &^ 0x07ul) =^ 0ul) ) then
U32.( (x &^ lognot 0x07ul) +%^ 0x08ul )
else
x | {
"file_name": "runtime/WasmSupport.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 5,
"end_line": 31,
"start_col": 0,
"start_line": 27
} | module WasmSupport
open FStar.HyperStack.ST
module C = FStar.Int.Cast
module I64 = FStar.Int64
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module B = LowStar.Buffer
open LowStar.BufferOps
open FStar.Mul
(* Functions implemented primitively in JS. No F* client should call those! *)
assume val trap: Prims.st... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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.UInt32.t -> FStar.UInt32.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.op_Negation",
"FStar.UInt32.op_Equals_Hat",
"FStar.UInt32.op_Amp_Hat",
"FStar.UInt32.__uint_to_t",
"FStar.UInt32.op_Plus_Percent_Hat",
"FStar.UInt32.lognot",
"Prims.bool"
] | [] | false | false | false | true | false | let align_64 (x: U32.t) : Tot U32.t =
| if not (let open U32 in (x &^ 0x07ul) =^ 0ul)
then let open U32 in (x &^ lognot 0x07ul) +%^ 0x08ul
else x | false |
PulseCore.Atomic.fst | PulseCore.Atomic.ghost_gather | val ghost_gather
(#a:Type)
(#pcm:pcm a)
(r:ghost_ref pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a)
: stt_ghost (squash (composable pcm v0 v1))
(ghost_pts_to r v0 ** ghost_pts_to r v1)
(fun _ -> ghost_pts_to r (op pcm v0 v1)) | val ghost_gather
(#a:Type)
(#pcm:pcm a)
(r:ghost_ref pcm)
(v0:FStar.Ghost.erased a)
(v1:FStar.Ghost.erased a)
: stt_ghost (squash (composable pcm v0 v1))
(ghost_pts_to r v0 ** ghost_pts_to r v1)
(fun _ -> ghost_pts_to r (op pcm v0 v1)) | let ghost_gather r v0 v1 = Ghost.hide (A.gather r v0 v1) | {
"file_name": "lib/pulse_core/PulseCore.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 278,
"start_col": 0,
"start_line": 278
} | module PulseCore.Atomic
module I = PulseCore.InstantiatedSemantics
module A = PulseCore.Action
open PulseCore.InstantiatedSemantics
open PulseCore.Action
let stt_atomic a #obs opens pre post =
A.act a opens pre post
let pure_equiv (p q:prop) (_:squash (p <==> q))
: slprop_equiv (pure p) (pure q)
= FStar.Proposi... | {
"checked_file": "/",
"dependencies": [
"PulseCore.InstantiatedSemantics.fsti.checked",
"PulseCore.Action.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "PulseCore.Preorder",
"short_module": "PP"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "PulseCore.Action",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: PulseCore.Atomic.ghost_ref pcm -> v0: FStar.Ghost.erased a -> v1: FStar.Ghost.erased a
-> PulseCore.Atomic.stt_ghost (Prims.squash (FStar.PCM.composable pcm
(FStar.Ghost.reveal v0)
(FStar.Ghost.reveal v1)))
(PulseCore.Atomic.ghost_pts_to r (FStar.Ghost.reveal v0) **
PulseC... | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.pcm",
"PulseCore.Atomic.ghost_ref",
"FStar.Ghost.erased",
"FStar.Ghost.hide",
"PulseCore.Action.act",
"Prims.squash",
"FStar.PCM.composable",
"FStar.Ghost.reveal",
"PulseCore.Action.emp_inames",
"PulseCore.InstantiatedSemantics.op_Star_Star",
"PulseCore.Atomic.ghost_pts_to",
"FStar.... | [] | false | false | false | false | false | let ghost_gather r v0 v1 =
| Ghost.hide (A.gather r v0 v1) | false |
WasmSupport.fst | WasmSupport.betole16 | val betole16 : x: FStar.UInt16.t -> FStar.UInt16.t | let betole16 (x: FStar.UInt16.t) =
let open FStar.UInt16 in
logor
(logand (shift_right x 8ul) 0x00FFus)
(logand (shift_left x 8ul) 0xFF00us) | {
"file_name": "runtime/WasmSupport.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 40,
"end_line": 42,
"start_col": 0,
"start_line": 38
} | module WasmSupport
open FStar.HyperStack.ST
module C = FStar.Int.Cast
module I64 = FStar.Int64
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module B = LowStar.Buffer
open LowStar.BufferOps
open FStar.Mul
(* Functions implemented primitively in JS. No F* client should call those! *)
assume val trap: Prims.st... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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.UInt16.t -> FStar.UInt16.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt16.t",
"FStar.UInt16.logor",
"FStar.UInt16.logand",
"FStar.UInt16.shift_right",
"FStar.UInt32.__uint_to_t",
"FStar.UInt16.__uint_to_t",
"FStar.UInt16.shift_left"
] | [] | false | false | false | true | false | let betole16 (x: FStar.UInt16.t) =
| let open FStar.UInt16 in
logor (logand (shift_right x 8ul) 0x00FFus) (logand (shift_left x 8ul) 0xFF00us) | false | |
WasmSupport.fst | WasmSupport.betole32 | val betole32 : x: FStar.UInt32.t -> FStar.UInt32.t | let betole32 (x: U32.t) =
let open U32 in
logor (logor (logor (logand (shift_right x 24ul) 0x000000FFul)
(logand (shift_right x 8ul) 0x0000FF00ul))
(logand (shift_left x 8ul) 0x00FF0000ul))
(logand (shift_left x 24ul) 0xFF000000ul) | {
"file_name": "runtime/WasmSupport.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 45,
"end_line": 49,
"start_col": 0,
"start_line": 44
} | module WasmSupport
open FStar.HyperStack.ST
module C = FStar.Int.Cast
module I64 = FStar.Int64
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module B = LowStar.Buffer
open LowStar.BufferOps
open FStar.Mul
(* Functions implemented primitively in JS. No F* client should call those! *)
assume val trap: Prims.st... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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.UInt32.t -> FStar.UInt32.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.logor",
"FStar.UInt32.logand",
"FStar.UInt32.shift_right",
"FStar.UInt32.__uint_to_t",
"FStar.UInt32.shift_left"
] | [] | false | false | false | true | false | let betole32 (x: U32.t) =
| let open U32 in
logor (logor (logor (logand (shift_right x 24ul) 0x000000FFul)
(logand (shift_right x 8ul) 0x0000FF00ul))
(logand (shift_left x 8ul) 0x00FF0000ul))
(logand (shift_left x 24ul) 0xFF000000ul) | false | |
GT.fst | GT.t_return | val t_return (#a: _) (x: a) : m a T | val t_return (#a: _) (x: a) : m a T | let t_return #a (x:a) : m a T = (fun () -> x) | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 20,
"start_col": 0,
"start_line": 20
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> GT.m a GT.T | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"GT.m",
"GT.T"
] | [] | false | false | false | true | false | let t_return #a (x: a) : m a T =
| (fun () -> x) | false |
GT.fst | GT.d_return | val d_return (#a: _) (x: a) : m a D | val d_return (#a: _) (x: a) : m a D | let d_return #a (x:a) : m a D = raise_val (fun () -> x) | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 55,
"end_line": 22,
"start_col": 0,
"start_line": 22
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> GT.m a GT.D | Prims.Tot | [
"total"
] | [] | [
"FStar.Universe.raise_val",
"Prims.unit",
"GT.m",
"GT.D"
] | [] | false | false | false | true | false | let d_return #a (x: a) : m a D =
| raise_val (fun () -> x) | false |
GT.fst | GT.g_return | val g_return (#a: _) (x: a) : m a G | val g_return (#a: _) (x: a) : m a G | let g_return #a (x:a) : m a G = (fun () -> x) | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> GT.m a GT.G | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"GT.m",
"GT.G"
] | [] | false | false | false | true | false | let g_return #a (x: a) : m a G =
| (fun () -> x) | false |
GT.fst | GT.t_bind | val t_bind (#a #b: _) (c: m a T) (f: (a -> m b T)) : m b T | val t_bind (#a #b: _) (c: m a T) (f: (a -> m b T)) : m b T | let t_bind #a #b (c : m a T) (f : a -> m b T) : m b T = fun () -> f (c ()) () | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 77,
"end_line": 30,
"start_col": 0,
"start_line": 30
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: GT.m a GT.T -> f: (_: a -> GT.m b GT.T) -> GT.m b GT.T | Prims.Tot | [
"total"
] | [] | [
"GT.m",
"GT.T",
"Prims.unit"
] | [] | false | false | false | true | false | let t_bind #a #b (c: m a T) (f: (a -> m b T)) : m b T =
| fun () -> f (c ()) () | false |
GT.fst | GT.g_bind | val g_bind (#a #b: _) (c: m a G) (f: (a -> m b G)) : m b G | val g_bind (#a #b: _) (c: m a G) (f: (a -> m b G)) : m b G | let g_bind #a #b (c : m a G) (f : a -> m b G) : m b G = fun () -> f (c ()) () | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 77,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: GT.m a GT.G -> f: (_: a -> GT.m b GT.G) -> GT.m b GT.G | Prims.Tot | [
"total"
] | [] | [
"GT.m",
"GT.G",
"Prims.unit"
] | [] | false | false | false | true | false | let g_bind #a #b (c: m a G) (f: (a -> m b G)) : m b G =
| fun () -> f (c ()) () | false |
GT.fst | GT.d_bind | val d_bind (#a #b: _) (c: m a D) (f: (a -> m b D)) : m b D | val d_bind (#a #b: _) (c: m a D) (f: (a -> m b D)) : m b D | let d_bind #a #b (c : m a D) (f : a -> m b D) : m b D =
raise_val (fun () -> downgrade_val (f (downgrade_val c ())) ()) | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 33,
"start_col": 0,
"start_line": 32
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: GT.m a GT.D -> f: (_: a -> GT.m b GT.D) -> GT.m b GT.D | Prims.Tot | [
"total"
] | [] | [
"GT.m",
"GT.D",
"FStar.Universe.raise_val",
"Prims.unit",
"FStar.Universe.downgrade_val",
"FStar.Universe.raise_t"
] | [] | false | false | false | true | false | let d_bind #a #b (c: m a D) (f: (a -> m b D)) : m b D =
| raise_val (fun () -> downgrade_val (f (downgrade_val c ())) ()) | false |
GT.fst | GT.subcomp | val subcomp (a: Type) (i: idx) (f: m a i) : m a i | val subcomp (a: Type) (i: idx) (f: m a i) : m a i | let subcomp (a:Type) (i:idx) (f : m a i) : m a i = f | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 54,
"start_col": 0,
"start_line": 54
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> i: GT.idx -> f: GT.m a i -> GT.m a i | Prims.Tot | [
"total"
] | [] | [
"GT.idx",
"GT.m"
] | [] | false | false | false | false | false | let subcomp (a: Type) (i: idx) (f: m a i) : m a i =
| f | false |
GT.fst | GT.t1_d | val t1_d: Prims.unit -> Dv (list int) | val t1_d: Prims.unit -> Dv (list int) | let t1_d () : Dv (list int) = downgrade_val (r_map #D (fun x -> raise_val (fun () -> x + 1)) [1;2;3;4]) () | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 106,
"end_line": 52,
"start_col": 0,
"start_line": 52
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.Pervasives.Dv (Prims.list Prims.int) | FStar.Pervasives.Dv | [] | [] | [
"Prims.unit",
"FStar.Universe.downgrade_val",
"Prims.list",
"Prims.int",
"GT.r_map",
"GT.D",
"FStar.Universe.raise_val",
"Prims.op_Addition",
"GT.m",
"Prims.Cons",
"Prims.Nil"
] | [] | false | true | false | false | false | let t1_d () : Dv (list int) =
| downgrade_val (r_map #D (fun x -> raise_val (fun () -> x + 1)) [1; 2; 3; 4]) () | false |
GT.fst | GT.t1_t | val t1_t: Prims.unit -> Tot (list int) | val t1_t: Prims.unit -> Tot (list int) | let t1_t () : Tot (list int) = r_map #T (fun x -> fun () -> x + 1) [1;2;3;4] () | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 79,
"end_line": 50,
"start_col": 0,
"start_line": 50
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> Prims.list Prims.int | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"GT.r_map",
"GT.T",
"Prims.int",
"Prims.op_Addition",
"Prims.Cons",
"Prims.Nil",
"Prims.list"
] | [] | false | false | false | true | false | let t1_t () : Tot (list int) =
| r_map #T (fun x -> fun () -> x + 1) [1; 2; 3; 4] () | false |
GT.fst | GT.t1_g | val t1_g: Prims.unit -> GTot (list int) | val t1_g: Prims.unit -> GTot (list int) | let t1_g () : GTot (list int) = r_map #G (fun x -> fun () -> x + 1) [1;2;3;4] () | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 51,
"start_col": 0,
"start_line": 51
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> Prims.GTot (Prims.list Prims.int) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.unit",
"GT.r_map",
"GT.G",
"Prims.int",
"Prims.op_Addition",
"Prims.Cons",
"Prims.Nil",
"Prims.list"
] | [] | false | false | false | false | false | let t1_g () : GTot (list int) =
| r_map #G (fun x -> fun () -> x + 1) [1; 2; 3; 4] () | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.valid_sum_intro | val valid_sum_intro
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma
(requires
(valid (pars... | val valid_sum_intro
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma
(requires
(valid (pars... | let valid_sum_intro
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (
valid (parse_enum_key p (sum_enum t)) h input pos /\... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 55,
"end_line": 237,
"start_col": 0,
"start_line": 209
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 8,
"max_fuel": 2,
"max_ifuel": 8,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.HyperStack.mem ->
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.... | [] | false | false | true | false | false | let valid_sum_intro
(h: HS.mem)
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: U32.t)
: Lemma
(requires
(valid (pars... | valid_facts (parse_enum_key p (sum_enum t)) h input pos;
let k = contents (parse_enum_key p (sum_enum t)) h input pos in
let pos_payload = get_valid_pos (parse_enum_key p (sum_enum t)) h input pos in
valid_facts (dsnd (pc k)) h input pos_payload;
valid_facts (parse_sum t p pc) h input pos;
parse_sum_eq t p pc (bytes_of... | false |
A.fst | A.main | val main:
argc:Int32.t{Int32.v argc > 0}
-> argv:Buffer.buffer string{Buffer.length argv == Int32.v argc}
-> Stack Int32.t
(requires (fun h -> True))
(ensures (fun h _ h' -> True)) | val main:
argc:Int32.t{Int32.v argc > 0}
-> argv:Buffer.buffer string{Buffer.length argv == Int32.v argc}
-> Stack Int32.t
(requires (fun h -> True))
(ensures (fun h _ h' -> True)) | let main argc argv =
if not (B.validate (Cast.int32_to_uint32 argc) argv)
then 1l
else 0l | {
"file_name": "examples/sample_project/A.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 24,
"start_col": 0,
"start_line": 21
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int32.fsti.checked",
"FStar.Int.Cast.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.Buffer.fst.checked",
"B.fsti.checked"
],
"interface_file": true,
"source_file": "A.fst... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": false,
"full_module": "FStar.Int.Cast",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
argc: FStar.Int32.t{FStar.Int32.v argc > 0} ->
argv: FStar.Buffer.buffer Prims.string {FStar.Buffer.length argv == FStar.Int32.v argc}
-> FStar.HyperStack.ST.Stack FStar.Int32.t | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Int32.t",
"Prims.b2t",
"Prims.op_GreaterThan",
"FStar.Int32.v",
"FStar.Buffer.buffer",
"Prims.string",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"FStar.Int.size",
"FStar.Int32.n",
"FStar.Buffer.length",
"FStar.Int32.__int_to_t",
"Prims.bool",
"Prims.... | [] | false | true | false | false | false | let main argc argv =
| if not (B.validate (Cast.int32_to_uint32 argc) argv) then 1l else 0l | false |
WasmSupport.fst | WasmSupport.betole64 | val betole64 : x: FStar.UInt64.t -> FStar.UInt64.t | let betole64 (x: U64.t) =
let low = C.uint32_to_uint64 (betole32 (C.uint64_to_uint32 x)) in
let high = C.uint32_to_uint64 (betole32 (C.uint64_to_uint32 (U64.shift_right x 32ul))) in
U64.logor (U64.shift_left low 32ul) high | {
"file_name": "runtime/WasmSupport.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 42,
"end_line": 54,
"start_col": 0,
"start_line": 51
} | module WasmSupport
open FStar.HyperStack.ST
module C = FStar.Int.Cast
module I64 = FStar.Int64
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module B = LowStar.Buffer
open LowStar.BufferOps
open FStar.Mul
(* Functions implemented primitively in JS. No F* client should call those! *)
assume val trap: Prims.st... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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.UInt64.t -> FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t",
"FStar.UInt64.logor",
"FStar.UInt64.shift_left",
"FStar.UInt32.__uint_to_t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt64.v",
"FStar.UInt32.v",
"WasmSupport.betole32",
"FStar.Int.Cast.uint64_to_uint32",
"FStar.UInt64.shift_... | [] | false | false | false | true | false | let betole64 (x: U64.t) =
| let low = C.uint32_to_uint64 (betole32 (C.uint64_to_uint32 x)) in
let high = C.uint32_to_uint64 (betole32 (C.uint64_to_uint32 (U64.shift_right x 32ul))) in
U64.logor (U64.shift_left low 32ul) high | false | |
GT.fst | GT.app | val app (#a #b #i: _) (f: (a -> GTD b i)) (x: a) : GTD b i | val app (#a #b #i: _) (f: (a -> GTD b i)) (x: a) : GTD b i | let app #a #b #i (f : a -> GTD b i) (x : a) : GTD b i = f x | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 92,
"start_col": 0,
"start_line": 92
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> GT.GTD b) -> x: a -> GT.GTD b | GT.GTD | [] | [] | [
"GT.idx"
] | [] | false | true | false | false | false | let app #a #b #i (f: (a -> GTD b i)) (x: a) : GTD b i =
| f x | false |
GT.fst | GT.labs0 | val labs0 (#i: _) (n: int) : GTD int i | val labs0 (#i: _) (n: int) : GTD int i | let labs0 #i (n:int) : GTD int i =
if n < 0
then -n
else n | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 113,
"start_col": 0,
"start_line": 110
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.int -> GT.GTD Prims.int | GT.GTD | [] | [] | [
"GT.idx",
"Prims.int",
"Prims.op_LessThan",
"Prims.op_Minus",
"Prims.bool"
] | [] | false | true | false | false | false | let labs0 #i (n: int) : GTD int i =
| if n < 0 then - n else n | false |
Pulse.Checker.Return.fst | Pulse.Checker.Return.check_tot_or_ghost_term | val check_tot_or_ghost_term (g: env) (e t: term) (c: option ctag)
: T.Tac (c: ctag & e: term & typing g e (eff_of_ctag c) t) | val check_tot_or_ghost_term (g: env) (e t: term) (c: option ctag)
: T.Tac (c: ctag & e: term & typing g e (eff_of_ctag c) t) | let check_tot_or_ghost_term (g:env) (e:term) (t:term) (c:option ctag)
: T.Tac (c:ctag & e:term & typing g e (eff_of_ctag c) t)
= let (| e, eff, d |) = check_term_at_type g e t in
check_effect d c | {
"file_name": "lib/steel/pulse/Pulse.Checker.Return.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 18,
"end_line": 52,
"start_col": 0,
"start_line": 49
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.fsti.checked",
"Pulse.Checker.Base.fsti.checked",
"pr... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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 ->
e: Pulse.Syntax.Base.term ->
t: Pulse.Syntax.Base.term ->
c: FStar.Pervasives.Native.option Pulse.Syntax.Base.ctag
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple3 Pulse.Syntax.Base.ctag
(fun _ -> Pulse.Syntax.Base.term)
(fun c e -> Pulse.Typing.typ... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.ctag",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"Pulse.Typing.typing",
"Pulse.Checker.Return.check_effect",
"FStar.Pervasives.dtuple3",
"Pulse.Typing.eff_of_ctag",
"Pulse.Checker.Pure.check_t... | [] | false | true | false | false | false | let check_tot_or_ghost_term (g: env) (e t: term) (c: option ctag)
: T.Tac (c: ctag & e: term & typing g e (eff_of_ctag c) t) =
| let (| e , eff , d |) = check_term_at_type g e t in
check_effect d c | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.valid_dsum_elim_known | val valid_dsum_elim_known
(h: HS.mem)
(t: dsum)
(#kt: parser_kind)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(#rrel #rel: _)
... | val valid_dsum_elim_known
(h: HS.mem)
(t: dsum)
(#kt: parser_kind)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(#rrel #rel: _)
... | let valid_dsum_elim_known
(h: HS.mem)
(t: dsum)
(#kt: parser_kind)
(p: parser kt (dsum_repr_type t))
(f: ((x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(#rrel #rel: _)
(input: slice rrel rel)
(po... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 46,
"end_line": 1334,
"start_col": 0,
"start_line": 1300
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.HyperStack.mem ->
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowPar... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag"... | [] | false | false | true | false | false | let valid_dsum_elim_known
(h: HS.mem)
(t: dsum)
(#kt: parser_kind)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(#rrel #rel: _)
... | valid_facts (parse_dsum t p f g) h input pos;
parse_dsum_eq t p f g (bytes_of_slice_from h input pos);
valid_facts (parse_maybe_enum_key p (dsum_enum t)) h input pos;
let Known k = contents (parse_maybe_enum_key p (dsum_enum t)) h input pos in
let pos_payload = get_valid_pos (parse_maybe_enum_key p (dsum_enum t)) h inp... | false |
Pulse.Checker.Return.fst | Pulse.Checker.Return.compute_tot_or_ghost_term_type_and_u | val compute_tot_or_ghost_term_type_and_u (g: env) (e: term) (c: option ctag)
: T.Tac (result_of_typing g) | val compute_tot_or_ghost_term_type_and_u (g: env) (e: term) (c: option ctag)
: T.Tac (result_of_typing g) | let compute_tot_or_ghost_term_type_and_u (g:env) (e:term) (c:option ctag)
: T.Tac (result_of_typing g)
= let (| t, eff, ty, (| u, ud |), d |) = compute_term_type_and_u g e in
let (| c, e, d |) = check_effect d c in
R c e u ty ud d | {
"file_name": "lib/steel/pulse/Pulse.Checker.Return.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 69,
"start_col": 0,
"start_line": 65
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.fsti.checked",
"Pulse.Checker.Base.fsti.checked",
"pr... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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 ->
e: Pulse.Syntax.Base.term ->
c: FStar.Pervasives.Native.option Pulse.Syntax.Base.ctag
-> FStar.Tactics.Effect.Tac (Pulse.Checker.Return.result_of_typing g) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.ctag",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"Pulse.Syntax.Base.universe",
"Pulse.Typing.universe_of",
"Pulse.Typing.typing",
"Pulse.Typing.eff_of_ctag",
"Pulse.Checker.Return.R",
"Pulse... | [] | false | true | false | false | false | let compute_tot_or_ghost_term_type_and_u (g: env) (e: term) (c: option ctag)
: T.Tac (result_of_typing g) =
| let (| t , eff , ty , (| u , ud |) , d |) = compute_term_type_and_u g e in
let (| c , e , d |) = check_effect d c in
R c e u ty ud d | false |
WasmSupport.fst | WasmSupport.memzero | val memzero (x: B.buffer UInt8.t) (len sz: UInt32.t)
: Stack unit
(requires fun h0 -> B.live h0 x /\ sz <> 0ul /\ B.length x = U32.v len * U32.v sz)
(ensures (fun h0 _ h1 -> let open B in modifies (loc_buffer x) h0 h1)) | val memzero (x: B.buffer UInt8.t) (len sz: UInt32.t)
: Stack unit
(requires fun h0 -> B.live h0 x /\ sz <> 0ul /\ B.length x = U32.v len * U32.v sz)
(ensures (fun h0 _ h1 -> let open B in modifies (loc_buffer x) h0 h1)) | let memzero (x: B.buffer UInt8.t) (len: UInt32.t) (sz: UInt32.t): Stack unit
(requires fun h0 -> B.live h0 x /\ sz <> 0ul /\ B.length x = U32.v len * U32.v sz)
(ensures (fun h0 _ h1 -> B.(modifies (loc_buffer x) h0 h1)))
=
if len `U32.gte` (0xfffffffful `U32.div` sz) then
trap "Overflow in memzero; see WasmSu... | {
"file_name": "runtime/WasmSupport.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 3,
"end_line": 69,
"start_col": 0,
"start_line": 56
} | module WasmSupport
open FStar.HyperStack.ST
module C = FStar.Int.Cast
module I64 = FStar.Int64
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module B = LowStar.Buffer
open LowStar.BufferOps
open FStar.Mul
(* Functions implemented primitively in JS. No F* client should call those! *)
assume val trap: Prims.st... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: LowStar.Buffer.buffer FStar.UInt8.t -> len: FStar.UInt32.t -> sz: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.UInt32.t",
"C.Loops.for",
"FStar.UInt32.__uint_to_t",
"FStar.Monotonic.HyperStack.mem",
"Prims.nat",
"Prims.l_and",
"LowStar.Monotonic.Buffer.live",
"LowStar.Buffer.trivial_preorder",
"LowStar.Monotonic.Buffer.modifies",
"LowStar.Monotonic.Buffe... | [] | false | true | false | false | false | let memzero (x: B.buffer UInt8.t) (len sz: UInt32.t)
: Stack unit
(requires fun h0 -> B.live h0 x /\ sz <> 0ul /\ B.length x = U32.v len * U32.v sz)
(ensures (fun h0 _ h1 -> let open B in modifies (loc_buffer x) h0 h1)) =
| if len `U32.gte` (0xfffffffful `U32.div` sz) then trap "Overflow in memzero; see WasmSupport.fst";
let n_bytes = U32.mul len sz in
let h0 = FStar.HyperStack.ST.get () in
C.Loops.for 0ul
n_bytes
(fun h _ -> B.live h x /\ B.(modifies (loc_buffer x) h0 h))
(fun i -> x.(i) <- 0uy) | false |
GT.fst | GT.return | val return (a: Type) (x: a) (i: idx) : m a i | val return (a: Type) (x: a) (i: idx) : m a i | let return (a:Type) (x:a) (i:idx) : m a i =
match i with
| T -> t_return x
| G -> g_return x
| D -> d_return x | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 28,
"start_col": 0,
"start_line": 24
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> x: a -> i: GT.idx -> GT.m a i | Prims.Tot | [
"total"
] | [] | [
"GT.idx",
"GT.t_return",
"GT.g_return",
"GT.d_return",
"GT.m"
] | [] | false | false | false | false | false | let return (a: Type) (x: a) (i: idx) : m a i =
| match i with
| T -> t_return x
| G -> g_return x
| D -> d_return x | false |
WorkingWithSquashedProofs.fst | WorkingWithSquashedProofs.valid_baz_alt_alt | val valid_baz_alt_alt (a: Type) (x: a) : GTot (squash (baz a x)) | val valid_baz_alt_alt (a: Type) (x: a) : GTot (squash (baz a x)) | let valid_baz_alt_alt (a:Type) (x:a)
: GTot (squash (baz a x))
= let fb : squash (foo a x \/ bar a x) = foo_or_bar x in
FStar.Squash.join_squash
(elim_squash_or fb
(lemma_as_squash (c_foo_baz x))
(lemma_as_squash (c_bar_baz x))) | {
"file_name": "examples/misc/WorkingWithSquashedProofs.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 141,
"start_col": 0,
"start_line": 135
} | (*
Copyright 2008-2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "WorkingWithSquashedProofs.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 -> Prims.GTot (Prims.squash (WorkingWithSquashedProofs.baz a x)) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Squash.join_squash",
"WorkingWithSquashedProofs.baz",
"WorkingWithSquashedProofs.elim_squash_or",
"Prims.squash",
"WorkingWithSquashedProofs.foo",
"WorkingWithSquashedProofs.bar",
"WorkingWithSquashedProofs.lemma_as_squash",
"WorkingWithSquashedProofs.c_foo_baz",
"WorkingWithSquashedProofs.c_... | [] | false | false | true | false | false | let valid_baz_alt_alt (a: Type) (x: a) : GTot (squash (baz a x)) =
| let fb:squash (foo a x \/ bar a x) = foo_or_bar x in
FStar.Squash.join_squash (elim_squash_or fb
(lemma_as_squash (c_foo_baz x))
(lemma_as_squash (c_bar_baz x))) | false |
WasmSupport.fst | WasmSupport.check_buffer_size | val check_buffer_size (s: U32.t) : Stack unit (fun _ -> True) (fun _ _ _ -> True) | val check_buffer_size (s: U32.t) : Stack unit (fun _ -> True) (fun _ _ _ -> True) | let check_buffer_size (s: U32.t): Stack unit (fun _-> True) (fun _ _ _ -> True) =
if U32.( s =^ 0ul ) then
trap "Zero-sized arrays are not supported in C and in WASM either. See WasmSupport.fst" | {
"file_name": "runtime/WasmSupport.fst",
"git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321",
"git_url": "https://github.com/FStarLang/karamel.git",
"project_name": "karamel"
} | {
"end_col": 91,
"end_line": 36,
"start_col": 0,
"start_line": 34
} | module WasmSupport
open FStar.HyperStack.ST
module C = FStar.Int.Cast
module I64 = FStar.Int64
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module B = LowStar.Buffer
open LowStar.BufferOps
open FStar.Mul
(* Functions implemented primitively in JS. No F* client should call those! *)
assume val trap: Prims.st... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.UInt32.t -> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.op_Equals_Hat",
"FStar.UInt32.__uint_to_t",
"WasmSupport.trap",
"Prims.unit",
"Prims.bool",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_True"
] | [] | false | true | false | false | false | let check_buffer_size (s: U32.t) : Stack unit (fun _ -> True) (fun _ _ _ -> True) =
| if let open U32 in s =^ 0ul
then trap "Zero-sized arrays are not supported in C and in WASM either. See WasmSupport.fst" | false |
WorkingWithSquashedProofs.fst | WorkingWithSquashedProofs.valid_baz | val valid_baz (a: Type) (x: a) : Lemma (baz a x) | val valid_baz (a: Type) (x: a) : Lemma (baz a x) | let valid_baz (a:Type) (x:a)
: Lemma (baz a x)
= let s_fb : squash (foo a x \/ bar a x) = foo_or_bar x in
FStar.Squash.bind_squash s_fb (fun (fb:(foo a x \/ bar a x)) ->
FStar.Squash.bind_squash fb (fun (c_fb:Prims.sum (foo a x) (bar a x)) ->
let s_baz : squash (baz a x) =
match c_fb with
... | {
"file_name": "examples/misc/WorkingWithSquashedProofs.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 96,
"start_col": 0,
"start_line": 82
} | (*
Copyright 2008-2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "WorkingWithSquashedProofs.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 -> FStar.Pervasives.Lemma (ensures WorkingWithSquashedProofs.baz a x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Squash.bind_squash",
"Prims.l_or",
"WorkingWithSquashedProofs.foo",
"WorkingWithSquashedProofs.bar",
"WorkingWithSquashedProofs.baz",
"Prims.sum",
"Prims.squash",
"WorkingWithSquashedProofs.foo_baz",
"WorkingWithSquashedProofs.bar_baz",
"WorkingWithSquashedProofs.foo_or_bar",
"Prims.unit"... | [] | false | false | true | false | false | let valid_baz (a: Type) (x: a) : Lemma (baz a x) =
| let s_fb:squash (foo a x \/ bar a x) = foo_or_bar x in
FStar.Squash.bind_squash s_fb
(fun (fb: (foo a x \/ bar a x)) ->
FStar.Squash.bind_squash fb
(fun (c_fb: Prims.sum (foo a x) (bar a x)) ->
let s_baz:squash (baz a x) =
match c_fb with
| Prims.Left f -> foo_baz... | false |
WorkingWithSquashedProofs.fst | WorkingWithSquashedProofs.elim_squash_or | val elim_squash_or (#r #p #q: _) (f: squash (p \/ q)) (left: (p -> GTot r)) (right: (q -> GTot r))
: GTot (squash r) | val elim_squash_or (#r #p #q: _) (f: squash (p \/ q)) (left: (p -> GTot r)) (right: (q -> GTot r))
: GTot (squash r) | let elim_squash_or (#r:_) (#p #q:_) (f:squash (p \/ q)) (left: p -> GTot r) (right: q -> GTot r)
: GTot (squash r)
= FStar.Squash.bind_squash #_ #r f (fun pq ->
FStar.Squash.bind_squash pq (fun c ->
match c with
| Prims.Left x -> FStar.Squash.return_squash (left x)
| Prims.Right x -> FStar.Squash.re... | {
"file_name": "examples/misc/WorkingWithSquashedProofs.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 61,
"end_line": 133,
"start_col": 0,
"start_line": 127
} | (*
Copyright 2008-2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "WorkingWithSquashedProofs.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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.squash (p \/ q) -> left: (_: p -> Prims.GTot r) -> right: (_: q -> Prims.GTot r)
-> Prims.GTot (Prims.squash r) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.logical",
"Prims.squash",
"Prims.l_or",
"FStar.Squash.bind_squash",
"Prims.sum",
"FStar.Squash.return_squash"
] | [] | false | false | true | false | false | let elim_squash_or (#r #p #q: _) (f: squash (p \/ q)) (left: (p -> GTot r)) (right: (q -> GTot r))
: GTot (squash r) =
| FStar.Squash.bind_squash #_
#r
f
(fun pq ->
FStar.Squash.bind_squash pq
(function
| Prims.Left x -> FStar.Squash.return_squash (left x)
| Prims.Right x -> FStar.Squash.return_squash (right x))) | false |
WorkingWithSquashedProofs.fst | WorkingWithSquashedProofs.foo_implies_bar | val foo_implies_bar (a: Type) (x: a{foo a x}) : Lemma (bar a x) | val foo_implies_bar (a: Type) (x: a{foo a x}) : Lemma (bar a x) | let foo_implies_bar (a:Type) (x:a{foo a x})
: Lemma (bar a x)
= FStar.Squash.bind_squash () (lemma_as_squash (foo_pf_implies_bar a x)) | {
"file_name": "examples/misc/WorkingWithSquashedProofs.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 56,
"start_col": 0,
"start_line": 54
} | (*
Copyright 2008-2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "WorkingWithSquashedProofs.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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{WorkingWithSquashedProofs.foo a x}
-> FStar.Pervasives.Lemma (ensures WorkingWithSquashedProofs.bar a x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"WorkingWithSquashedProofs.foo",
"FStar.Squash.bind_squash",
"WorkingWithSquashedProofs.bar",
"WorkingWithSquashedProofs.lemma_as_squash",
"WorkingWithSquashedProofs.foo_pf_implies_bar",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let foo_implies_bar (a: Type) (x: a{foo a x}) : Lemma (bar a x) =
| FStar.Squash.bind_squash () (lemma_as_squash (foo_pf_implies_bar a x)) | false |
WorkingWithSquashedProofs.fst | WorkingWithSquashedProofs.lemma_as_squash | val lemma_as_squash (#a #b: _) ($lem: (a -> Lemma b)) (x: a) : GTot (squash b) | val lemma_as_squash (#a #b: _) ($lem: (a -> Lemma b)) (x: a) : GTot (squash b) | let lemma_as_squash #a #b ($lem: (a -> Lemma b)) (x:a)
: GTot (squash b)
= lem x | {
"file_name": "examples/misc/WorkingWithSquashedProofs.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 51,
"start_col": 0,
"start_line": 49
} | (*
Copyright 2008-2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "WorkingWithSquashedProofs.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 | $lem: (_: a -> FStar.Pervasives.Lemma (ensures b)) -> x: a -> Prims.GTot (Prims.squash b) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | true | false | false | let lemma_as_squash #a #b ($lem: (a -> Lemma b)) (x: a) : GTot (squash b) =
| lem x | false |
GT.fst | GT.m | val m (a: Type u#aa) (i: idx) : Type u#aa | val m (a: Type u#aa) (i: idx) : Type u#aa | let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a) | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 18,
"start_col": 0,
"start_line": 14
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> i: GT.idx -> Type | Prims.Tot | [
"total"
] | [] | [
"GT.idx",
"Prims.unit",
"FStar.Universe.raise_t"
] | [] | false | false | false | true | true | let m (a: Type u#aa) (i: idx) : Type u#aa =
| match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a) | false |
WorkingWithSquashedProofs.fst | WorkingWithSquashedProofs.valid_baz_alt | val valid_baz_alt (a: Type) (x: a) : Lemma (baz a x) | val valid_baz_alt (a: Type) (x: a) : Lemma (baz a x) | let valid_baz_alt (a:Type) (x:a)
: Lemma (baz a x)
= let s_fb : squash (foo a x \/ bar a x) = foo_or_bar x in
FStar.Squash.bind_squash s_fb (fun (fb:(foo a x \/ bar a x)) ->
FStar.Squash.bind_squash fb (fun (c_fb:Prims.sum (foo a x) (bar a x)) ->
let s_baz : squash (baz a x) =
match c_fb with
... | {
"file_name": "examples/misc/WorkingWithSquashedProofs.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 123,
"start_col": 0,
"start_line": 111
} | (*
Copyright 2008-2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "WorkingWithSquashedProofs.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Squash",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"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 -> FStar.Pervasives.Lemma (ensures WorkingWithSquashedProofs.baz a x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Squash.bind_squash",
"Prims.l_or",
"WorkingWithSquashedProofs.foo",
"WorkingWithSquashedProofs.bar",
"WorkingWithSquashedProofs.baz",
"Prims.sum",
"Prims.squash",
"WorkingWithSquashedProofs.c_foo_baz",
"WorkingWithSquashedProofs.c_bar_baz",
"WorkingWithSquashedProofs.foo_or_bar",
"Prims.u... | [] | false | false | true | false | false | let valid_baz_alt (a: Type) (x: a) : Lemma (baz a x) =
| let s_fb:squash (foo a x \/ bar a x) = foo_or_bar x in
FStar.Squash.bind_squash s_fb
(fun (fb: (foo a x \/ bar a x)) ->
FStar.Squash.bind_squash fb
(fun (c_fb: Prims.sum (foo a x) (bar a x)) ->
let s_baz:squash (baz a x) =
match c_fb with
| Prims.Left f -> c_foo_b... | false |
GT.fst | GT.r_map | val r_map (#i #a #b: _) (f: (a -> m b i)) (xs: list a) : m (list b) i | val r_map (#i #a #b: _) (f: (a -> m b i)) (xs: list a) : m (list b) i | let rec r_map #i #a #b (f : a -> m b i) (xs : list a) : m (list b) i =
match xs with
| [] -> return _ [] _
| x::xs ->
bind _ _ _ (f x) (fun y ->
bind _ _ _ (r_map f xs) (fun ys ->
return _ (y::ys) _)) | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 48,
"start_col": 0,
"start_line": 42
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> GT.m b i) -> xs: Prims.list a -> GT.m (Prims.list b) i | Prims.Tot | [
"total"
] | [] | [
"GT.idx",
"GT.m",
"Prims.list",
"GT.return",
"Prims.Nil",
"GT.bind",
"GT.r_map",
"Prims.Cons"
] | [
"recursion"
] | false | false | false | false | false | let rec r_map #i #a #b (f: (a -> m b i)) (xs: list a) : m (list b) i =
| match xs with
| [] -> return _ [] _
| x :: xs -> bind _ _ _ (f x) (fun y -> bind _ _ _ (r_map f xs) (fun ys -> return _ (y :: ys) _)) | false |
GT.fst | GT.bind | val bind (a b: Type) (i: idx) (c: m a i) (f: (a -> m b i)) : m b i | val bind (a b: Type) (i: idx) (c: m a i) (f: (a -> m b i)) : m b i | let bind (a b : Type) (i:idx) (c : m a i) (f : a -> m b i) : m b i =
match i with
| T -> t_bind #a #b c f
| D -> coerce (d_bind #a #b c f) // GM: wow... still needs a coerce, how can that be?
| G -> g_bind #a #b c f | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 39,
"start_col": 0,
"start_line": 35
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> b: Type -> i: GT.idx -> c: GT.m a i -> f: (_: a -> GT.m b i) -> GT.m b i | Prims.Tot | [
"total"
] | [] | [
"GT.idx",
"GT.m",
"GT.t_bind",
"GT.coerce",
"GT.D",
"GT.d_bind",
"GT.g_bind"
] | [] | false | false | false | false | false | let bind (a b: Type) (i: idx) (c: m a i) (f: (a -> m b i)) : m b i =
| match i with
| T -> t_bind #a #b c f
| D -> coerce (d_bind #a #b c f)
| G -> g_bind #a #b c f | false |
GT.fst | GT.coerce | val coerce (#a #b: _) (x: a{a == b}) : b | val coerce (#a #b: _) (x: a{a == b}) : b | let coerce #a #b (x:a{a == b}) : b = x | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 12,
"start_col": 0,
"start_line": 12
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a{a == b} -> b | Prims.Tot | [
"total"
] | [] | [
"Prims.eq2"
] | [] | false | false | false | false | false | let coerce #a #b (x: a{a == b}) : b =
| x | false |
GT.fst | GT.appn | val appn (#a #i: _) (n: nat) (f: (a -> GTD a i)) (x: a) : GTD a i | val appn (#a #i: _) (n: nat) (f: (a -> GTD a i)) (x: a) : GTD a i | let rec appn #a #i (n:nat) (f : a -> GTD a i) (x : a) : GTD a i =
match n with
| 0 -> x
| _ -> begin
appn (n-1) f (f x)
end | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 103,
"start_col": 0,
"start_line": 98
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> f: (_: a -> GT.GTD a) -> x: a -> GT.GTD a | GT.GTD | [] | [] | [
"GT.idx",
"Prims.nat",
"Prims.int",
"GT.appn",
"Prims.op_Subtraction"
] | [
"recursion"
] | false | true | false | false | false | let rec appn #a #i (n: nat) (f: (a -> GTD a i)) (x: a) : GTD a i =
| match n with
| 0 -> x
| _ -> appn (n - 1) f (f x) | false |
GT.fst | GT.map | val map (#a #b #i: _) (f: (a -> GTD b i)) (xs: list a) : GTD (list b) i | val map (#a #b #i: _) (f: (a -> GTD b i)) (xs: list a) : GTD (list b) i | let rec map #a #b #i (f : a -> GTD b i) (xs : list a) : GTD (list b) i =
match xs with
| [] -> []
| x::xs -> (f x)::(map f xs) | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 90,
"start_col": 0,
"start_line": 87
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> GT.GTD b) -> xs: Prims.list a -> GT.GTD (Prims.list b) | GT.GTD | [] | [] | [
"GT.idx",
"Prims.list",
"Prims.Nil",
"Prims.Cons",
"GT.map"
] | [
"recursion"
] | false | true | false | false | false | let rec map #a #b #i (f: (a -> GTD b i)) (xs: list a) : GTD (list b) i =
| match xs with
| [] -> []
| x :: xs -> (f x) :: (map f xs) | false |
GT.fst | GT.lift_pure_gtd | val lift_pure_gtd (a: Type) (wp: pure_wp a) (i: idx) (f: (unit -> PURE a wp))
: Pure (m a i) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) | val lift_pure_gtd (a: Type) (wp: pure_wp a) (i: idx) (f: (unit -> PURE a wp))
: Pure (m a i) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) | let lift_pure_gtd (a:Type) (wp : pure_wp a) (i : idx)
(f : unit -> PURE a wp)
: Pure (m a i)
(requires (wp (fun _ -> True)))
(ensures (fun _ -> True))
= //f
// GM: Surprised that this works actually... I expected that I would need to
... | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 83,
"start_col": 0,
"start_line": 70
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> wp: Prims.pure_wp a -> i: GT.idx -> f: (_: Prims.unit -> Prims.PURE a)
-> Prims.Pure (GT.m a i) | Prims.Pure | [] | [] | [
"Prims.pure_wp",
"GT.idx",
"Prims.unit",
"GT.coerce",
"FStar.Universe.raise_t",
"GT.m",
"FStar.Universe.raise_val",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity",
"Prims.l_True"
] | [] | false | false | false | false | false | let lift_pure_gtd (a: Type) (wp: pure_wp a) (i: idx) (f: (unit -> PURE a wp))
: Pure (m a i) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) =
| FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp;
match i with
| T -> f
| G -> f
| D -> coerce (raise_val (fun () -> f () <: Dv a)) | false |
GT.fst | GT.labs | val labs (#i: _) (n: int) : GTD nat i | val labs (#i: _) (n: int) : GTD nat i | let labs #i (n:int) : GTD nat i =
if n < 0
then -n
else n | {
"file_name": "examples/layeredeffects/GT.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 118,
"start_col": 0,
"start_line": 115
} | module GT
open FStar.Tactics.V2
open FStar.Universe
type idx =
| T
| G
| D
// GM: Force a type equality by SMT
let coerce #a #b (x:a{a == b}) : b = x
let m (a:Type u#aa) (i:idx) : Type u#aa =
match i with
| T -> unit -> Tot a
| G -> unit -> GTot a
| D -> raise_t (unit -> Dv a)
let t_return #a (x:a) : m... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "GT.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Universe",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.int -> GT.GTD Prims.nat | GT.GTD | [] | [] | [
"GT.idx",
"Prims.int",
"Prims.op_LessThan",
"Prims.op_Minus",
"Prims.bool",
"Prims.nat"
] | [] | false | true | false | false | false | let labs #i (n: int) : GTD nat i =
| if n < 0 then - n else n | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_clens_dsum_payload' | val gaccessor_clens_dsum_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_key t)
: Tot
... | val gaccessor_clens_dsum_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_key t)
: Tot
... | let gaccessor_clens_dsum_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_key t)
: Tot (gaccessor' (parse_dsum t p f g) ... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 131,
"end_line": 1839,
"start_col": 0,
"start_line": 1819
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.dsum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) ->
f:
(x: LowParse.Spec.Sum.dsum_known_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_repr_type",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Spec.Sum.dsum_key",
... | [] | false | false | false | false | false | let gaccessor_clens_dsum_payload'
(#kt: parser_kind)
(t: dsum)
(p: parser kt (dsum_repr_type t))
(f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))))
(#ku: parser_kind)
(g: parser ku (dsum_type_of_unknown_tag t))
(k: dsum_key t)
: Tot
... | fun (input: bytes) ->
parse_dsum_eq3 t p f g input;
let res =
match parse p input with
| Some (_, consumed) ->
synth_dsum_case_inverse t k;
synth_dsum_case_injective t k;
synth_injective_synth_inverse_synth_inverse_recip (synth_dsum_case t k)
(synth_dsum_case_recip t k)
();... | false |
Pulse.Checker.Return.fst | Pulse.Checker.Return.check_effect | val check_effect
(#g: env)
(#e: term)
(#eff: T.tot_or_ghost)
(#t: term)
(d: typing g e eff t)
(c: option ctag)
: T.Tac (c: ctag & e: term & typing g e (eff_of_ctag c) t) | val check_effect
(#g: env)
(#e: term)
(#eff: T.tot_or_ghost)
(#t: term)
(d: typing g e eff t)
(c: option ctag)
: T.Tac (c: ctag & e: term & typing g e (eff_of_ctag c) t) | let check_effect
(#g:env) (#e:term) (#eff:T.tot_or_ghost) (#t:term)
(d:typing g e eff t)
(c:option ctag)
: T.Tac (c:ctag & e:term & typing g e (eff_of_ctag c) t)
= match c, eff with
| None, T.E_Total ->
(| STT_Atomic, e, d |)
| None, T.E_Ghost ->
(| STT_Ghost, e, d |)
| Some STT_Ghost, T.E_T... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Return.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 81,
"end_line": 46,
"start_col": 0,
"start_line": 29
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.fsti.checked",
"Pulse.Checker.Base.fsti.checked",
"pr... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | d: Pulse.Typing.typing g e eff t -> c: FStar.Pervasives.Native.option Pulse.Syntax.Base.ctag
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.dtuple3 Pulse.Syntax.Base.ctag
(fun _ -> Pulse.Syntax.Base.term)
(fun c e -> Pulse.Typing.typing g e (Pulse.Typing.eff_of_ctag c) t)) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Stubs.TypeChecker.Core.tot_or_ghost",
"Pulse.Typing.typing",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.ctag",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Mkdtuple3",
"Pulse.Typing.eff_of_ctag",
"Pulse.Syntax.Base.STT_Ato... | [] | false | true | false | false | false | let check_effect
(#g: env)
(#e: term)
(#eff: T.tot_or_ghost)
(#t: term)
(d: typing g e eff t)
(c: option ctag)
: T.Tac (c: ctag & e: term & typing g e (eff_of_ctag c) t) =
| match c, eff with
| None, T.E_Total -> (| STT_Atomic, e, d |)
| None, T.E_Ghost -> (| STT_Ghost, e, d |)
| Some STT_Ghost, T.E_Total -> (| STT_Atomic, e, d |)
| Some STT_Ghost, T.E_Ghost -> (| STT_Ghost, e, d |)
| _, T.E_Total -> (| STT_Atomic, e, d |)
| _ -> fail g (Some e.range) "Expected a total term, but this term ... | false |
Pulse.Checker.Return.fst | Pulse.Checker.Return.check | val check
(g:env)
(ctxt:term)
(ctxt_typing:tot_typing g ctxt tm_vprop)
(post_hint:post_hint_opt g)
(res_ppname:ppname)
(st:st_term { Tm_Return? st.term })
(check:check_t)
: T.Tac (checker_result_t g ctxt post_hint) | val check
(g:env)
(ctxt:term)
(ctxt_typing:tot_typing g ctxt tm_vprop)
(post_hint:post_hint_opt g)
(res_ppname:ppname)
(st:st_term { Tm_Return? st.term })
(check:check_t)
: T.Tac (checker_result_t g ctxt post_hint) | let check
(g:env)
(ctxt:term)
(ctxt_typing:tot_typing g ctxt tm_vprop)
(post_hint:post_hint_opt g)
(res_ppname:ppname)
(st:st_term { Tm_Return? st.term })
(check:check_t)
: T.Tac (checker_result_t g ctxt post_hint)
= let Tm_Return f = st.term in
match Pulse.Checker.Base.is_stateful_application g f... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Return.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 159,
"start_col": 0,
"start_line": 138
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"Pulse.Checker.Prover.fsti.checked",
"Pulse.Checker.Base.fsti.checked",
"pr... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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 ->
ctxt: Pulse.Syntax.Base.term ->
ctxt_typing: Pulse.Typing.tot_typing g ctxt Pulse.Syntax.Base.tm_vprop ->
post_hint: Pulse.Typing.post_hint_opt g ->
res_ppname: Pulse.Syntax.Base.ppname ->
st: Pulse.Syntax.Base.st_term{Tm_Return? (Mkst_term?.term st)} ->
check: Pu... | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot_typing",
"Pulse.Syntax.Base.tm_vprop",
"Pulse.Typing.post_hint_opt",
"Pulse.Syntax.Base.ppname",
"Pulse.Syntax.Base.st_term",
"Prims.b2t",
"Pulse.Syntax.Base.uu___is_Tm_Return",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
... | [] | false | true | false | false | false | let check
(g: env)
(ctxt: term)
(ctxt_typing: tot_typing g ctxt tm_vprop)
(post_hint: post_hint_opt g)
(res_ppname: ppname)
(st: st_term{Tm_Return? st.term})
(check: check_t)
: T.Tac (checker_result_t g ctxt post_hint) =
| let Tm_Return f = st.term in
match Pulse.Checker.Base.is_stateful_application g f.term with
| Some st_app -> check g ctxt ctxt_typing post_hint res_ppname st_app
| None ->
(match post_hint with
| Some p ->
(check_core g
ctxt
ctxt_typing
post_hint
res_ppname
... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_clens_sum_payload_no_lookahead | val gaccessor_clens_sum_payload_no_lookahead
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(sl sl': bytes)
: Lemma
(requires
((parse_sum_kind kt t pc).parser_... | val gaccessor_clens_sum_payload_no_lookahead
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(sl sl': bytes)
: Lemma
(requires
((parse_sum_kind kt t pc).parser_... | let gaccessor_clens_sum_payload_no_lookahead
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(sl sl' : bytes)
: Lemma
(requires (
(parse_sum_kind kt t pc).parser_kind_subkind == Some ParserStron... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 857,
"start_col": 0,
"start_line": 839
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowP... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.parse_injective",
"Prims.unit",
"LowParse.Spec... | [] | true | false | true | false | false | let gaccessor_clens_sum_payload_no_lookahead
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(sl sl': bytes)
: Lemma
(requires
((parse_sum_kind kt t pc).parser_... | parse_sum_eq'' t p pc sl;
parse_sum_eq'' t p pc sl';
parse_strong_prefix (parse_sum t p pc) sl sl';
parse_injective p sl sl' | false |
Steel.ArrayArith.fsti | Steel.ArrayArith.within_bounds_intro | val within_bounds_intro (#a: Type) (#p1 #pp #p2: perm) (arr1 p arr2: array a)
: Steel bool
(((varrayp arr1 p1) `star` (varrayp p pp)) `star` (varrayp arr2 p2))
(fun _ -> ((varrayp arr1 p1) `star` (varrayp p pp)) `star` (varrayp arr2 p2))
(requires fun h0 -> same_base_array arr1 arr2)
(ensure... | val within_bounds_intro (#a: Type) (#p1 #pp #p2: perm) (arr1 p arr2: array a)
: Steel bool
(((varrayp arr1 p1) `star` (varrayp p pp)) `star` (varrayp arr2 p2))
(fun _ -> ((varrayp arr1 p1) `star` (varrayp p pp)) `star` (varrayp arr2 p2))
(requires fun h0 -> same_base_array arr1 arr2)
(ensure... | let within_bounds_intro (#a: Type)
(#p1 #pp #p2: perm)
(arr1 p arr2: array a)
: Steel bool
(varrayp arr1 p1 `star` varrayp p pp `star` varrayp arr2 p2)
(fun _ -> varrayp arr1 p1 `star` varrayp p pp `star` varrayp arr2 p2)
(requires fun h0 -> same_base_array arr1 arr2)
(ensures fun h0 r h1 ->
(if r the... | {
"file_name": "lib/steel/Steel.ArrayArith.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 12,
"end_line": 72,
"start_col": 0,
"start_line": 46
} | module Steel.ArrayArith
open Steel.FractionalPermission
open Steel.Effect.Atomic
open Steel.Effect
open Steel.ST.Array
open Steel.Array
(* This module provides a very restricted way of doing pointer arithmetic comparison on Steel arrays.
Primitives in this module are considered builtins by karamel, and have handwr... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Array.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"Steel.Array.fsti.checked",
"prims.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"... | [
{
"abbrev": false,
"full_module": "Steel.Array",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Array",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "St... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | arr1: Steel.ST.Array.array a -> p: Steel.ST.Array.array a -> arr2: Steel.ST.Array.array a
-> Steel.Effect.Steel Prims.bool | Steel.Effect.Steel | [] | [] | [
"Steel.FractionalPermission.perm",
"Steel.ST.Array.array",
"Steel.Effect.Atomic.return",
"Prims.bool",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.Effect.Common.VStar",
"Steel.Array.varrayp",
"Steel.Effect.Common.vprop",
"Prims.unit",
"Steel.Array.int... | [] | false | true | false | false | false | let within_bounds_intro (#a: Type) (#p1 #pp #p2: perm) (arr1 p arr2: array a)
: Steel bool
(((varrayp arr1 p1) `star` (varrayp p pp)) `star` (varrayp arr2 p2))
(fun _ -> ((varrayp arr1 p1) `star` (varrayp p pp)) `star` (varrayp arr2 p2))
(requires fun h0 -> same_base_array arr1 arr2)
(ensure... | let s1 = elim_varrayp arr1 p1 in
let s2 = elim_varrayp arr2 p2 in
let sp = elim_varrayp p pp in
change_equal_slprop (pts_to arr1 p1 _) (pts_to (| ptr_of arr1, Ghost.hide (length arr1) |) p1 _);
change_equal_slprop (pts_to p pp _) (pts_to (| ptr_of p, Ghost.hide (length p) |) pp _);
change_equal_slprop (pts_to arr2 _ _)... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_clens_sum_payload' | val gaccessor_clens_sum_payload'
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (gaccessor' (parse_sum t p pc) (dsnd (pc k)) (clens_sum_payload t k)) | val gaccessor_clens_sum_payload'
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (gaccessor' (parse_sum t p pc) (dsnd (pc k)) (clens_sum_payload t k)) | let gaccessor_clens_sum_payload'
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (gaccessor' (parse_sum t p pc) (dsnd (pc k)) (clens_sum_payload t k))
= fun (input: bytes) ->
parse_sum_eq'' t p ... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 108,
"end_line": 814,
"start_col": 0,
"start_line": 796
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowP... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Bytes.bytes",
"Prims.nat",
"LowParse.Low.Base.Spec.gaccessor_post'",
"LowParse.S... | [] | false | false | false | false | false | let gaccessor_clens_sum_payload'
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (gaccessor' (parse_sum t p pc) (dsnd (pc k)) (clens_sum_payload t k)) =
| fun (input: bytes) ->
parse_sum_eq'' t p pc input;
let res =
match parse p input with
| Some (_, consumed) ->
synth_sum_case_inverse t k;
synth_sum_case_injective t k;
synth_injective_synth_inverse_synth_inverse_recip (synth_sum_case t k)
(synth_sum_case_recip t k)
();
... | false |
LowParse.Low.BoundedInt.fst | LowParse.Low.BoundedInt.div256 | val div256 (x: U32.t) : Tot (y: U32.t{U32.v y == U32.v x / 256}) | val div256 (x: U32.t) : Tot (y: U32.t{U32.v y == U32.v x / 256}) | let div256 (x: U32.t) : Tot (y: U32.t { U32.v y == U32.v x / 256 }) =
assert_norm (pow2 8 == 256);
FStar.UInt.shift_right_value_lemma #32 (U32.v x) 8;
x `U32.shift_right` 8ul | {
"file_name": "src/lowparse/LowParse.Low.BoundedInt.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 25,
"end_line": 32,
"start_col": 0,
"start_line": 29
} | module LowParse.Low.BoundedInt
open LowParse.Low.Combinators
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module E = LowParse.Endianness.BitFields
module BF = LowParse.BitFields... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.BoundedInt.fst.checked",
"LowParse.Low.Endianness.fst.checked",
"LowParse.Low.Combinators.fsti.checked",
"LowParse.Endianness.BitFields.fst.checked",
"LowParse.BitFields.fsti.checke... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Low.Endianness",
"short_module": "LE"
},
{
"abbrev": true,
"full_module": "LowParse.BitFields",
"short_module": "BF"
},
{
"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 | x: FStar.UInt32.t -> y: FStar.UInt32.t{FStar.UInt32.v y == FStar.UInt32.v x / 256} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.shift_right",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"FStar.UInt.shift_right_value_lemma",
"FStar.UInt32.v",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.pow2",
"Prims.op_Division"
] | [] | false | false | false | false | false | let div256 (x: U32.t) : Tot (y: U32.t{U32.v y == U32.v x / 256}) =
| assert_norm (pow2 8 == 256);
FStar.UInt.shift_right_value_lemma #32 (U32.v x) 8;
x `U32.shift_right` 8ul | false |
SteelFramingTestSuite.fst | SteelFramingTestSuite.test_if9 | val test_if9 (b: bool) (r1 r2: ref)
: SteelT unit ((ptr r1) `star` (ptr r2)) (fun _ -> (ptr r1) `star` (ptr r2)) | val test_if9 (b: bool) (r1 r2: ref)
: SteelT unit ((ptr r1) `star` (ptr r2)) (fun _ -> (ptr r1) `star` (ptr r2)) | let test_if9 (b:bool) (r1 r2: ref) : SteelT unit
(ptr r1 `star` ptr r2)
(fun _ -> ptr r1 `star` ptr r2)
= write r1 0;
if b then (write r1 0) else (write r2 0);
write r2 0;
if b then (write r1 0) else (write r2 0);
write r1 0 | {
"file_name": "share/steel/tests/SteelFramingTestSuite.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 154,
"start_col": 0,
"start_line": 147
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "SteelFramingTestSuite.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Prims.bool -> r1: SteelFramingTestSuite.ref -> r2: SteelFramingTestSuite.ref
-> Steel.Effect.SteelT Prims.unit | Steel.Effect.SteelT | [] | [] | [
"Prims.bool",
"SteelFramingTestSuite.ref",
"SteelFramingTestSuite.write",
"Prims.unit",
"Steel.Effect.Common.star",
"SteelFramingTestSuite.ptr",
"Steel.Effect.Common.vprop"
] | [] | false | true | false | false | false | let test_if9 (b: bool) (r1 r2: ref)
: SteelT unit ((ptr r1) `star` (ptr r2)) (fun _ -> (ptr r1) `star` (ptr r2)) =
| write r1 0;
if b then (write r1 0) else (write r2 0);
write r2 0;
if b then (write r1 0) else (write r2 0);
write r1 0 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.