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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LowParseWriters.fsti | LowParseWriters.validate_post | val validate_post (p: parser) (inv: memory_invariant) (b: B.buffer U8.t)
: Tot (pure_post' (ptr p inv & U32.t) (validate_pre inv b)) | val validate_post (p: parser) (inv: memory_invariant) (b: B.buffer U8.t)
: Tot (pure_post' (ptr p inv & U32.t) (validate_pre inv b)) | let validate_post
(p: parser)
(inv: memory_invariant)
(b: B.buffer U8.t)
: Tot (pure_post' (ptr p inv & U32.t) (validate_pre inv b))
= fun (x, pos) ->
valid_pos p inv.h0 b 0ul pos /\
deref_spec x == contents p inv.h0 b 0ul pos | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 47,
"end_line": 785,
"start_col": 0,
"start_line": 778
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser ->
inv: LowParseWriters.memory_invariant ->
b: LowStar.Buffer.buffer FStar.UInt8.t
-> LowParseWriters.pure_post' (LowParseWriters.ptr p inv * FStar.UInt32.t)
(LowParseWriters.validate_pre inv b) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.memory_invariant",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.Pervasives.Native.tuple2",
"LowParseWriters.ptr",
"FStar.UInt32.t",
"Prims.l_and",
"LowParseWriters.LowParse.valid_pos",
"FStar.Ghost.reveal",
"FStar.Monotonic.HyperStack.mem",... | [] | false | false | false | false | false | let validate_post (p: parser) (inv: memory_invariant) (b: B.buffer U8.t)
: Tot (pure_post' (ptr p inv & U32.t) (validate_pre inv b)) =
| fun (x, pos) -> valid_pos p inv.h0 b 0ul pos /\ deref_spec x == contents p inv.h0 b 0ul pos | false |
LowParseWriters.fsti | LowParseWriters.lift_read | val lift_read
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot
(repr a r (r) (fun _ -> pre) (fun st x st' -> st == st' /\ post x) (fun _ -> post_er... | val lift_read
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot
(repr a r (r) (fun _ -> pre) (fun st x st' -> st == st' /\ post x) (fun _ -> post_er... | let lift_read
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot (repr a r (r)
(fun _ -> pre) // (lift_read_pre pre r)
(fun st x st' -> st == st' /\ post x) // (lift_read_post a... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 116,
"end_line": 1259,
"start_col": 0,
"start_line": 1245
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: Prims.pure_pre ->
post: LowParseWriters.pure_post' a pre ->
post_err: LowParseWriters.pure_post_err pre ->
inv: LowParseWriters.memory_invariant ->
r: LowParseWriters.LowParse.parser ->
f_read_spec: LowParseWriters.read_repr a pre post post_err inv
-> LowParseWriters.repr ... | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_pre",
"LowParseWriters.pure_post'",
"LowParseWriters.pure_post_err",
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.parser",
"LowParseWriters.read_repr",
"LowParseWriters.Repr",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_and",
"Prims.eq2",
"LowParseWr... | [] | false | false | false | false | false | let lift_read
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot
(repr a r (r) (fun _ -> pre) (fun st x st' -> st == st' /\ post x) (fun _ -> post_er... | Repr (lift_read_spec a pre post post_err inv r f_read_spec)
(lift_read_impl a pre post post_err inv r f_read_spec) | false |
LowParseWriters.fsti | LowParseWriters.deref_repr | val deref_repr (#p: parser) (#inv: memory_invariant) (r: leaf_reader p) (x: ptr p inv)
: Tot (read_repr (Parser?.t p) True (fun res -> res == deref_spec x) (fun _ -> False) inv) | val deref_repr (#p: parser) (#inv: memory_invariant) (r: leaf_reader p) (x: ptr p inv)
: Tot (read_repr (Parser?.t p) True (fun res -> res == deref_spec x) (fun _ -> False) inv) | let deref_repr
(#p: parser)
(#inv: memory_invariant)
(r: leaf_reader p)
(x: ptr p inv)
: Tot (read_repr (Parser?.t p) True (fun res -> res == deref_spec x) (fun _ -> False) inv)
= ReadRepr (fun _ -> Correct (deref_spec x)) (deref_impl r x) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 61,
"end_line": 715,
"start_col": 0,
"start_line": 709
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | r: LowParseWriters.LowParse.leaf_reader p -> x: LowParseWriters.ptr p inv
-> LowParseWriters.read_repr (Parser?.t p)
Prims.l_True
(fun res -> res == LowParseWriters.deref_spec x)
(fun _ -> Prims.l_False)
inv | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.leaf_reader",
"LowParseWriters.ptr",
"LowParseWriters.ReadRepr",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_True",
"Prims.eq2",
"LowParseWriters.deref_spec",
"Prims.unit",
"Prims.l_... | [] | false | false | false | false | false | let deref_repr (#p: parser) (#inv: memory_invariant) (r: leaf_reader p) (x: ptr p inv)
: Tot (read_repr (Parser?.t p) True (fun res -> res == deref_spec x) (fun _ -> False) inv) =
| ReadRepr (fun _ -> Correct (deref_spec x)) (deref_impl r x) | false |
LowParseWriters.fsti | LowParseWriters.access_repr | val access_repr
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Tot
(read_repr (ptr p2 inv)
(lens.clens_cond (deref_spec x))
(fun res ->
lens.clens... | val access_repr
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Tot
(read_repr (ptr p2 inv)
(lens.clens_cond (deref_spec x))
(fun res ->
lens.clens... | let access_repr
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Tot (read_repr (ptr p2 inv) (lens.clens_cond (deref_spec x)) (fun res -> lens.clens_cond (deref_spec x) /\ deref_spec res == lens.clens_get (de... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 755,
"start_col": 0,
"start_line": 747
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.accessor g -> x: LowParseWriters.ptr p1 inv
-> LowParseWriters.read_repr (LowParseWriters.ptr p2 inv)
(Mkclens?.clens_cond lens (LowParseWriters.deref_spec x))
(fun res ->
Mkclens?.clens_cond lens (LowParseWriters.deref_spec x) /\
LowParseWriters.deref_spec ... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.clens",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.gaccessor",
"LowParseWriters.LowParse.accessor",
"LowParseWriters.ptr",
"LowParseWriters.ReadRepr",
"LowParseWriters.... | [] | false | false | false | false | false | let access_repr
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Tot
(read_repr (ptr p2 inv)
(lens.clens_cond (deref_spec x))
(fun res ->
lens.clens... | ReadRepr (fun _ -> Correct (access_spec g x)) (access_impl a x) | false |
LowParseWriters.fsti | LowParseWriters.test_read_if | val test_read_if (inv: memory_invariant) (f: (unit -> Read bool (True) (fun _ -> True) inv))
: Read bool (True) (fun _ -> True) inv | val test_read_if (inv: memory_invariant) (f: (unit -> Read bool (True) (fun _ -> True) inv))
: Read bool (True) (fun _ -> True) inv | let test_read_if
(inv: memory_invariant)
(f: unit -> Read bool (True) (fun _ -> True) inv)
: Read bool (True) (fun _ -> True) inv
= if f ()
then false
else false | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 493,
"start_col": 0,
"start_line": 487
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | inv: LowParseWriters.memory_invariant -> f: (_: Prims.unit -> LowParseWriters.Read Prims.bool)
-> LowParseWriters.Read Prims.bool | LowParseWriters.Read | [] | [] | [
"LowParseWriters.memory_invariant",
"Prims.unit",
"Prims.bool",
"Prims.l_True"
] | [] | false | true | false | false | false | let test_read_if (inv: memory_invariant) (f: (unit -> Read bool (True) (fun _ -> True) inv))
: Read bool (True) (fun _ -> True) inv =
| if f () then false else false | false |
LowParseWriters.fsti | LowParseWriters.destr_repr_spec | val destr_repr_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (repr_spec a r_in r_out pre post post_err) | val destr_repr_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (repr_spec a r_in r_out pre post post_err) | let destr_repr_spec
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: unit -> EWrite a r_in r_out pre post post_err l)
: Tot (repr_spec a r_in r_out pre post post_err)
= Repr?.spec (reify (f... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 1298,
"start_col": 0,
"start_line": 1288
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
$f_destr_spec: (_: Pr... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.__proj__Repr__item__spec",
"LowParseWriters.repr_spec"
] | [] | false | false | false | false | false | let destr_repr_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (repr_spec a r_in r_out pre post post_err)... | Repr?.spec (reify (f_destr_spec ())) | false |
LowParseWriters.fsti | LowParseWriters.destr_repr_impl | val destr_repr_impl
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(repr_impl a
r_in
r_ou... | val destr_repr_impl
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(repr_impl a
r_in
r_ou... | let destr_repr_impl
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: unit -> EWrite a r_in r_out pre post post_err l)
: Tot (repr_impl a r_in r_out pre post post_err l (destr_repr_spec a r_... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 1311,
"start_col": 0,
"start_line": 1301
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
$f_destr_spec: (_: Pr... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.__proj__Repr__item__impl",
"LowParseWriters.repr_impl",
"LowParseWriters.destr_repr_spec"
] | [] | false | false | false | false | false | let destr_repr_impl
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(repr_impl a
r_in
r_ou... | Repr?.impl (reify (f_destr_spec ())) | false |
LowParseWriters.fsti | LowParseWriters.validate | val validate
(#p: parser)
(v: validator p)
(inv: memory_invariant)
(b: B.buffer U8.t)
(len: U32.t{B.len b == len})
: ERead (ptr p inv & U32.t)
(validate_pre inv b)
(validate_post p inv b)
(validate_post_err p inv b)
inv | val validate
(#p: parser)
(v: validator p)
(inv: memory_invariant)
(b: B.buffer U8.t)
(len: U32.t{B.len b == len})
: ERead (ptr p inv & U32.t)
(validate_pre inv b)
(validate_post p inv b)
(validate_post_err p inv b)
inv | let validate
(#p: parser)
(v: validator p)
(inv: memory_invariant)
(b: B.buffer U8.t)
(len: U32.t { B.len b == len })
: ERead (ptr p inv & U32.t) (validate_pre inv b) (validate_post p inv b) (validate_post_err p inv b) inv
= ERead?.reflect (validate_repr v inv b len) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 828,
"start_col": 0,
"start_line": 821
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
v: LowParseWriters.LowParse.validator p ->
inv: LowParseWriters.memory_invariant ->
b: LowStar.Buffer.buffer FStar.UInt8.t ->
len: FStar.UInt32.t{LowStar.Monotonic.Buffer.len b == len}
-> LowParseWriters.ERead (LowParseWriters.ptr p inv * FStar.UInt32.t) | LowParseWriters.ERead | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.validator",
"LowParseWriters.memory_invariant",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"LowStar.Buffer.trivial_preorder",
"LowParseWriters.validate_repr",
"FStar.Pervasi... | [] | false | true | false | false | false | let validate
(#p: parser)
(v: validator p)
(inv: memory_invariant)
(b: B.buffer U8.t)
(len: U32.t{B.len b == len})
: ERead (ptr p inv & U32.t)
(validate_pre inv b)
(validate_post p inv b)
(validate_post_err p inv b)
inv =
| ERead?.reflect (validate_repr v inv b len) | false |
LowParseWriters.fsti | LowParseWriters.extract | val extract
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (extract_t l f_destr_spec) | val extract
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (extract_t l f_destr_spec) | let extract
(#a:Type u#x)
(#r_in: parser)
(#r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: unit -> EWrite a r_in r_out pre post post_err l)
: Tot (extract_t l f_destr_spec)
= extract_repr_impl _ _ _ _ _ _ _ _ (des... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 1368,
"start_col": 0,
"start_line": 1358
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | l: LowParseWriters.memory_invariant -> $f_destr_spec: (_: Prims.unit -> LowParseWriters.EWrite a)
-> LowParseWriters.extract_t l f_destr_spec | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.extract_repr_impl",
"LowParseWriters.destr_repr_spec",
"LowParseWriters.destr_repr_impl",
"LowParseWriters.extract_... | [] | false | false | false | false | false | let extract
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (extract_t l f_destr_spec) =
| extract_repr_impl _ _ _ _ _ _ _ _ (destr_repr_impl _ _ _ _ _ _ _ f_destr_spec) | false |
LowParseWriters.fsti | LowParseWriters.buffer_sub | val buffer_sub
(#t: Type)
(#inv: memory_invariant)
(b: B.buffer t)
(i: U32.t)
(len: Ghost.erased U32.t)
: Read (B.buffer t)
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\
U32.v i + U32.v len <= B.length b)
(fun res ->
U32.v i + U32.v l... | val buffer_sub
(#t: Type)
(#inv: memory_invariant)
(b: B.buffer t)
(i: U32.t)
(len: Ghost.erased U32.t)
: Read (B.buffer t)
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\
U32.v i + U32.v len <= B.length b)
(fun res ->
U32.v i + U32.v l... | let buffer_sub
(#t: Type)
(#inv: memory_invariant)
(b: B.buffer t)
(i: U32.t)
(len: Ghost.erased U32.t)
: Read (B.buffer t)
(
B.live inv.h0 b /\
B.loc_buffer b `B.loc_disjoint` inv.lwrite /\
U32.v i + U32.v len <= B.length b
)
(fun res ->
U32.v i + U32.v len <= B.length b ... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 650,
"start_col": 0,
"start_line": 632
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | b: LowStar.Buffer.buffer t -> i: FStar.UInt32.t -> len: FStar.Ghost.erased FStar.UInt32.t
-> LowParseWriters.Read (LowStar.Buffer.buffer t) | LowParseWriters.Read | [] | [] | [
"LowParseWriters.memory_invariant",
"LowStar.Buffer.buffer",
"FStar.UInt32.t",
"FStar.Ghost.erased",
"LowParseWriters.ReadRepr",
"Prims.l_and",
"LowStar.Monotonic.Buffer.live",
"LowStar.Buffer.trivial_preorder",
"FStar.Ghost.reveal",
"FStar.Monotonic.HyperStack.mem",
"LowParseWriters.__proj__Mkm... | [] | false | true | false | false | false | let buffer_sub
(#t: Type)
(#inv: memory_invariant)
(b: B.buffer t)
(i: U32.t)
(len: Ghost.erased U32.t)
: Read (B.buffer t)
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\
U32.v i + U32.v len <= B.length b)
(fun res ->
U32.v i + U32.v l... | ERead?.reflect (ReadRepr _ (buffer_sub_impl inv b i len)) | false |
LowParseWriters.fsti | LowParseWriters.buffer_index_spec | val buffer_index_spec (#t: Type) (inv: memory_invariant) (b: B.buffer t) (i: U32.t)
: Tot
(read_repr_spec t
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\ U32.v i < B.length b)
(fun res -> U32.v i < B.length b /\ res == Seq.index (B.as_seq inv.h0 b) (U32.v i))
(fun _... | val buffer_index_spec (#t: Type) (inv: memory_invariant) (b: B.buffer t) (i: U32.t)
: Tot
(read_repr_spec t
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\ U32.v i < B.length b)
(fun res -> U32.v i < B.length b /\ res == Seq.index (B.as_seq inv.h0 b) (U32.v i))
(fun _... | let buffer_index_spec
(#t: Type)
(inv: memory_invariant)
(b: B.buffer t)
(i: U32.t)
: Tot (read_repr_spec t
(
B.live inv.h0 b /\
B.loc_buffer b `B.loc_disjoint` inv.lwrite /\
U32.v i < B.length b
)
(fun res ->
U32.v i < B.length b /\
res == Seq.index (B.as_seq inv.h0 ... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 570,
"start_col": 0,
"start_line": 550
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | inv: LowParseWriters.memory_invariant -> b: LowStar.Buffer.buffer t -> i: FStar.UInt32.t
-> LowParseWriters.read_repr_spec t
(LowStar.Monotonic.Buffer.live (FStar.Ghost.reveal (Mkmemory_invariant?.h0 inv)) b /\
LowStar.Monotonic.Buffer.loc_disjoint (LowStar.Monotonic.Buffer.loc_buffer b)
(FSta... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.memory_invariant",
"LowStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.unit",
"LowParseWriters.Correct",
"FStar.Seq.Base.index",
"LowStar.Monotonic.Buffer.as_seq",
"LowStar.Buffer.trivial_preorder",
"FStar.Ghost.reveal",
"FStar.Monotonic.HyperStack.mem",
"LowParseWriters.__proj__M... | [] | false | false | false | false | false | let buffer_index_spec (#t: Type) (inv: memory_invariant) (b: B.buffer t) (i: U32.t)
: Tot
(read_repr_spec t
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\ U32.v i < B.length b)
(fun res -> U32.v i < B.length b /\ res == Seq.index (B.as_seq inv.h0 b) (U32.v i))
(fun _... | fun _ ->
let j = U32.v i in
Correct (Seq.index (B.as_seq inv.h0 b) j) | false |
LowParseWriters.fsti | LowParseWriters.buffer_index | val buffer_index (#t: Type) (#inv: memory_invariant) (b: B.buffer t) (i: U32.t)
: Read t
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\ U32.v i < B.length b)
(fun res -> U32.v i < B.length b /\ res == Seq.index (B.as_seq inv.h0 b) (U32.v i))
inv | val buffer_index (#t: Type) (#inv: memory_invariant) (b: B.buffer t) (i: U32.t)
: Read t
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\ U32.v i < B.length b)
(fun res -> U32.v i < B.length b /\ res == Seq.index (B.as_seq inv.h0 b) (U32.v i))
inv | let buffer_index
(#t: Type)
(#inv: memory_invariant)
(b: B.buffer t)
(i: U32.t)
: Read t
(
B.live inv.h0 b /\
B.loc_buffer b `B.loc_disjoint` inv.lwrite /\
U32.v i < B.length b
)
(fun res ->
U32.v i < B.length b /\
res == Seq.index (B.as_seq inv.h0 b) (U32.v i)
)
... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 57,
"end_line": 597,
"start_col": 0,
"start_line": 581
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | b: LowStar.Buffer.buffer t -> i: FStar.UInt32.t -> LowParseWriters.Read t | LowParseWriters.Read | [] | [] | [
"LowParseWriters.memory_invariant",
"LowStar.Buffer.buffer",
"FStar.UInt32.t",
"LowParseWriters.ReadRepr",
"Prims.l_and",
"LowStar.Monotonic.Buffer.live",
"LowStar.Buffer.trivial_preorder",
"FStar.Ghost.reveal",
"FStar.Monotonic.HyperStack.mem",
"LowParseWriters.__proj__Mkmemory_invariant__item__h... | [] | false | true | false | false | false | let buffer_index (#t: Type) (#inv: memory_invariant) (b: B.buffer t) (i: U32.t)
: Read t
(B.live inv.h0 b /\ (B.loc_buffer b) `B.loc_disjoint` inv.lwrite /\ U32.v i < B.length b)
(fun res -> U32.v i < B.length b /\ res == Seq.index (B.as_seq inv.h0 b) (U32.v i))
inv =
| ERead?.reflect (ReadRepr _ (buffer_index_impl inv b i)) | false |
LowParseWriters.fsti | LowParseWriters.access | val access
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Read (ptr p2 inv)
(lens.clens_cond (deref_spec x))
(fun res -> lens.clens_cond (deref_spec x) /\ deref_spec ... | val access
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Read (ptr p2 inv)
(lens.clens_cond (deref_spec x))
(fun res -> lens.clens_cond (deref_spec x) /\ deref_spec ... | let access
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Read (ptr p2 inv) (lens.clens_cond (deref_spec x)) (fun res -> lens.clens_cond (deref_spec x) /\ deref_spec res == lens.clens_get (deref_spec x)) in... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 766,
"start_col": 0,
"start_line": 758
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.accessor g -> x: LowParseWriters.ptr p1 inv
-> LowParseWriters.Read (LowParseWriters.ptr p2 inv) | LowParseWriters.Read | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.clens",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.gaccessor",
"LowParseWriters.LowParse.accessor",
"LowParseWriters.ptr",
"LowParseWriters.access_repr",
"LowParseWrite... | [] | false | true | false | false | false | let access
(#p1 #p2: parser)
(#lens: clens (Parser?.t p1) (Parser?.t p2))
(#inv: memory_invariant)
(#g: gaccessor p1 p2 lens)
(a: accessor g)
(x: ptr p1 inv)
: Read (ptr p2 inv)
(lens.clens_cond (deref_spec x))
(fun res -> lens.clens_cond (deref_spec x) /\ deref_spec ... | Read?.reflect (access_repr a x) | false |
LowParseWriters.fsti | LowParseWriters.frame_out | val frame_out (a: Type) (frame: parser) (p: (parser)) : Tot parser | val frame_out (a: Type) (frame: parser) (p: (parser)) : Tot parser | let frame_out
(a: Type)
(frame: parser)
(p: (parser))
: Tot parser
= frame `parse_pair` p | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 1427,
"start_col": 0,
"start_line": 1422
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 -> frame: LowParseWriters.LowParse.parser -> p: LowParseWriters.LowParse.parser
-> LowParseWriters.LowParse.parser | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.parse_pair"
] | [] | false | false | false | true | false | let frame_out (a: Type) (frame: parser) (p: (parser)) : Tot parser =
| frame `parse_pair` p | false |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.precomp_basepoint_table_lemma_w4 | val precomp_basepoint_table_lemma_w4: unit ->
Lemma (forall (i:nat{i < 16}). precomp_table_acc_inv g_aff 16 precomp_basepoint_table_lseq_w4 i) | val precomp_basepoint_table_lemma_w4: unit ->
Lemma (forall (i:nat{i < 16}). precomp_table_acc_inv g_aff 16 precomp_basepoint_table_lseq_w4 i) | let precomp_basepoint_table_lemma_w4 () =
normalize_term_spec (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 15);
SPT.precomp_base_table_lemma mk_p256_precomp_base_table S.base_point 16 precomp_basepoint_table_lseq_w4 | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 105,
"end_line": 209,
"start_col": 0,
"start_line": 207
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.PrecompTable",
"short_module": "SPTK"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.PrecompBaseTable256",
"short_module": "SPT256"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
forall (i: Prims.nat{i < 16}).
Hacl.P256.PrecompTable.precomp_table_acc_inv Hacl.P256.PrecompTable.g_aff
16
Hacl.P256.PrecompTable.precomp_basepoint_table_lseq_w4
i) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.unit",
"Hacl.Spec.PrecompBaseTable.precomp_base_table_lemma",
"Spec.P256.PointOps.proj_point",
"Lib.IntTypes.U64",
"FStar.UInt32.uint_to_t",
"Hacl.P256.PrecompTable.mk_p256_precomp_base_table",
"Spec.P256.PointOps.base_point",
"Hacl.P256.PrecompTable.precomp_basepoint_table_lseq_w4",
"FStar.P... | [] | true | false | true | false | false | let precomp_basepoint_table_lemma_w4 () =
| normalize_term_spec (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 15);
SPT.precomp_base_table_lemma mk_p256_precomp_base_table
S.base_point
16
precomp_basepoint_table_lseq_w4 | false |
LowParseWriters.fsti | LowParseWriters.repr_spec | val repr_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
: Tot (Type u#x) | val repr_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
: Tot (Type u#x) | let repr_spec (a:Type u#x) (r_in: parser) (r_out: parser) (pre: pre_t r_in) (post: post_t a r_in r_out pre) (post_err: post_err_t r_in pre) : Tot (Type u#x) =
(v_in: Parser?.t r_in) ->
Ghost (result (a & Parser?.t r_out))
(requires (pre v_in))
(ensures (fun res ->
match res with
| Correct (v, v_out) -> ... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 4,
"end_line": 859,
"start_col": 0,
"start_line": 851
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre
-> Type | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.result",
"FStar.Pervasives.Native.tuple2",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowParseWri... | [] | false | false | false | false | true | let repr_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
: Tot (Type u#x) =
| v_in: Parser?.t r_in
-> Ghost (result (a & Parser?.t r_out))
(requires (pre v_in))
(ensures
(function
| Correct (v, v_out) -> post v_in v v_out /\ size r_in v_in <= size r_out v_out
| Error _ -> post_err v_in)) | false |
LowParseWriters.fsti | LowParseWriters.repr_impl_post | val repr_impl_post
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(spec: repr_spec a r_in r_out pre post post_err)
(b: B.buffer u8 {l.lwrite `B.loc_includes` (B.loc_buffer b)})
... | val repr_impl_post
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(spec: repr_spec a r_in r_out pre post post_err)
(b: B.buffer u8 {l.lwrite `B.loc_includes` (B.loc_buffer b)})
... | let repr_impl_post
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(spec: repr_spec a r_in r_out pre post post_err)
(b: B.buffer u8 { l.lwrite `B.loc_includes` B.loc_buffer b })
(pos1: U32.t { U32.v p... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 903,
"start_col": 0,
"start_line": 868
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
spec: LowParseWriters... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"LowParseWriters.repr_spec",
"LowStar.Buffer.buffer",
"LowParseWriters.LowParse.u8",
"LowStar.Monotonic.Buffer.loc_includes",
"FStar.Ghost.reveal"... | [] | false | false | false | false | true | let repr_impl_post
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(spec: repr_spec a r_in r_out pre post post_err)
(b: B.buffer u8 {l.lwrite `B.loc_includes` (B.loc_buffer b)})
... | valid_pos r_in h b 0ul pos1 /\ B.modifies (B.loc_buffer b) h h' /\
(let v_in = contents r_in h b 0ul pos1 in
pre v_in /\
(match spec v_in, res with
| Correct (v, v_out), ICorrect v' pos2 ->
U32.v pos1 <= U32.v pos2 /\ valid_pos (r_out) h' b 0ul pos2 /\ v' == v /\
v_out == contents (r_out) h' b 0ul p... | false |
LowParseWriters.fsti | LowParseWriters.frame_post_err | val frame_post_err (frame: parser) (pre: pre_t parse_empty) (post_err: post_err_t parse_empty pre)
: Tot (post_err_t frame (frame_pre frame pre)) | val frame_post_err (frame: parser) (pre: pre_t parse_empty) (post_err: post_err_t parse_empty pre)
: Tot (post_err_t frame (frame_pre frame pre)) | let frame_post_err
(frame: parser)
(pre: pre_t parse_empty)
(post_err: post_err_t parse_empty pre)
: Tot (post_err_t frame (frame_pre frame pre))
= fun _ -> post_err () | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 1452,
"start_col": 0,
"start_line": 1447
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t LowParseWriters.LowParse.parse_empty ->
post_err: LowParseWriters.post_err_t LowParseWriters.LowParse.parse_empty pre
-> LowParseWriters.post_err_t frame (LowParseWriters.frame_pre frame pre) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.post_err_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.frame_pre"
] | [] | false | false | false | false | false | let frame_post_err (frame: parser) (pre: pre_t parse_empty) (post_err: post_err_t parse_empty pre)
: Tot (post_err_t frame (frame_pre frame pre)) =
| fun _ -> post_err () | false |
LowParseWriters.fsti | LowParseWriters.frame_post | val frame_post
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
: Tot (post_t a frame (frame_out a frame p) (frame_pre frame pre)) | val frame_post
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
: Tot (post_t a frame (frame_out a frame p) (frame_pre frame pre)) | let frame_post
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
: Tot (post_t a frame (frame_out a frame p) (frame_pre frame pre))
= fun v_in v (v_in', v_out) -> v_in == v_in' /\ post () v v_out | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 63,
"end_line": 1444,
"start_col": 0,
"start_line": 1437
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t LowParseWriters.LowParse.parse_empty ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a LowParseWriters.LowParse.parse_empty p pre
-> LowParseWriters.post_t a
frame
(LowParseWriters.fr... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.post_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.frame_out",
"Prims.l_and",
"Prims.eq2",
"LowParseWriters.frame_pre"
] | [] | false | false | false | false | false | let frame_post
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
: Tot (post_t a frame (frame_out a frame p) (frame_pre frame pre)) =
| fun v_in v (v_in', v_out) -> v_in == v_in' /\ post () v v_out | false |
Steel.Effect.Atomic.fst | Steel.Effect.Atomic.intro_vdep | val intro_vdep (#opened:inames)
(v: vprop)
(q: vprop)
(p: (t_of v -> Tot vprop))
: SteelGhost unit opened
(v `star` q)
(fun _ -> vdep v p)
(requires (fun h -> q == p (h v)))
(ensures (fun h _ h' ->
let x2 = h' (vdep v p) in
q == p (h v) /\
dfst x2 == (h v) /\
dsnd x2 == (h ... | val intro_vdep (#opened:inames)
(v: vprop)
(q: vprop)
(p: (t_of v -> Tot vprop))
: SteelGhost unit opened
(v `star` q)
(fun _ -> vdep v p)
(requires (fun h -> q == p (h v)))
(ensures (fun h _ h' ->
let x2 = h' (vdep v p) in
q == p (h v) /\
dfst x2 == (h v) /\
dsnd x2 == (h ... | let intro_vdep
v q p
=
reveal_star v q;
change_slprop_rel_with_cond
(v `star` q)
(vdep v p)
(vdep_cond v q p)
(vdep_rel v q p)
(fun m -> intro_vdep_lemma v q p m) | {
"file_name": "lib/steel/Steel.Effect.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 39,
"end_line": 770,
"start_col": 0,
"start_line": 761
} | (*
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.Semantics.Hoare.MST.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.fst.checked",
"Steel.Effect.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMSTTotal.fst.che... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Steel.Effect.Common.vprop ->
q: Steel.Effect.Common.vprop ->
p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.t_of",
"Steel.Effect.Atomic.change_slprop_rel_with_cond",
"Steel.Effect.Common.star",
"Steel.Effect.Common.vdep",
"Steel.Effect.Atomic.vdep_cond",
"Steel.Effect.Atomic.vdep_rel",
"Steel.Memory.mem",
"Steel.Effect.Atomic.intro... | [] | false | true | false | false | false | let intro_vdep v q p =
| reveal_star v q;
change_slprop_rel_with_cond (v `star` q)
(vdep v p)
(vdep_cond v q p)
(vdep_rel v q p)
(fun m -> intro_vdep_lemma v q p m) | false |
LowParseWriters.fsti | LowParseWriters.return_spec | val return_spec (a: Type) (x: a) (r: parser)
: Tot
(repr_spec a
r
r
(fun _ -> True)
(fun v_in x' v_out -> x' == x /\ v_out == v_in)
(fun _ -> False)) | val return_spec (a: Type) (x: a) (r: parser)
: Tot
(repr_spec a
r
r
(fun _ -> True)
(fun v_in x' v_out -> x' == x /\ v_out == v_in)
(fun _ -> False)) | let return_spec
(a:Type) (x:a) (r: parser)
: Tot (repr_spec a r r (fun _ -> True) (fun v_in x' v_out -> x' == x /\ v_out == v_in) (fun _ -> False))
= fun c -> Correct (x, c) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 993,
"start_col": 0,
"start_line": 990
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: a -> r: LowParseWriters.LowParse.parser
-> LowParseWriters.repr_spec a
r
r
(fun _ -> Prims.l_True)
(fun v_in x' v_out -> x' == x /\ v_out == v_in)
(fun _ -> Prims.l_False) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.Correct",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"LowParseWriters.result",
"LowParseWriters.repr_spec",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Prims.l_Fals... | [] | false | false | false | false | false | let return_spec (a: Type) (x: a) (r: parser)
: Tot
(repr_spec a
r
r
(fun _ -> True)
(fun v_in x' v_out -> x' == x /\ v_out == v_in)
(fun _ -> False)) =
| fun c -> Correct (x, c) | false |
LowParseWriters.fsti | LowParseWriters.frame_pre | val frame_pre (frame: parser) (pre: pre_t parse_empty) : Tot (pre_t frame) | val frame_pre (frame: parser) (pre: pre_t parse_empty) : Tot (pre_t frame) | let frame_pre
(frame: parser)
(pre: pre_t parse_empty)
: Tot (pre_t frame)
= fun _ -> pre () | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 1434,
"start_col": 0,
"start_line": 1430
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t LowParseWriters.LowParse.parse_empty
-> LowParseWriters.pre_t frame | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.LowParse.__proj__Parser__item__t"
] | [] | false | false | false | false | false | let frame_pre (frame: parser) (pre: pre_t parse_empty) : Tot (pre_t frame) =
| fun _ -> pre () | false |
LowParseWriters.fsti | LowParseWriters.recast_writer_post | val recast_writer_post
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (post_t a r_in r_out pre) | val recast_writer_post
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (post_t a r_in r_out pre) | let recast_writer_post
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: unit -> EWrite a r_in r_out pre post post_err l)
: Tot (post_t a r_in r_out pre)
=
fun v_in v v_out -> pre v_in /\ destr_repr_s... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 132,
"end_line": 1565,
"start_col": 0,
"start_line": 1554
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
f: (_: Prims.unit -> ... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_and",
"Prims.eq2",
"LowParseWriters.result",
"FStar.Pervasives.Native... | [] | false | false | false | false | false | let recast_writer_post
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (post_t a r_in r_out pre) =
| fun v_in v v_out ->
pre v_in /\ destr_repr_spec a r_in r_out pre post post_err l f v_in == Correct (v, v_out) /\
post v_in v v_out | false |
LowParseWriters.fsti | LowParseWriters.recast_writer_post_err | val recast_writer_post_err
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (post_err_t r_in pre) | val recast_writer_post_err
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (post_err_t r_in pre) | let recast_writer_post_err
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: unit -> EWrite a r_in r_out pre post post_err l)
: Tot (post_err_t r_in pre)
=
fun v_in -> pre v_in /\ Error? (destr_repr_s... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 107,
"end_line": 1579,
"start_col": 0,
"start_line": 1568
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
f: (_: Prims.unit -> ... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_and",
"Prims.b2t",
"LowParseWriters.uu___is_Error",
"FStar.Pervasives... | [] | false | false | false | false | false | let recast_writer_post_err
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot (post_err_t r_in pre) =
| fun v_in ->
pre v_in /\ Error? (destr_repr_spec a r_in r_out pre post post_err l f v_in) /\ post_err v_in | false |
LowParseWriters.fsti | LowParseWriters.frame2_pre | val frame2_pre (frame ppre: parser) (pre: pre_t ppre) : Tot (pre_t (frame `parse_pair` ppre)) | val frame2_pre (frame ppre: parser) (pre: pre_t ppre) : Tot (pre_t (frame `parse_pair` ppre)) | let frame2_pre
(frame: parser)
(ppre: parser)
(pre: pre_t ppre)
: Tot (pre_t (frame `parse_pair` ppre))
= fun (_, x) -> pre x | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 1661,
"start_col": 0,
"start_line": 1656
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser ->
ppre: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t ppre
-> LowParseWriters.pre_t (LowParseWriters.LowParse.parse_pair frame ppre) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.LowParse.parse_pair"
] | [] | false | false | false | false | false | let frame2_pre (frame ppre: parser) (pre: pre_t ppre) : Tot (pre_t (frame `parse_pair` ppre)) =
| fun (_, x) -> pre x | false |
LowParseWriters.fsti | LowParseWriters.frame2_post | val frame2_post
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
: Tot (post_t a (frame `parse_pair` ppre) (frame_out a frame p) (frame2_pre frame ppre pre)) | val frame2_post
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
: Tot (post_t a (frame `parse_pair` ppre) (frame_out a frame p) (frame2_pre frame ppre pre)) | let frame2_post
(a: Type)
(frame: parser)
(ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
: Tot (post_t a (frame `parse_pair` ppre) (frame_out a frame p) (frame2_pre frame ppre pre))
= fun (v_frame, v_in) v (v_frame', v_out) -> v_frame == v_frame' /\ post v_in v v_out | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 85,
"end_line": 1672,
"start_col": 0,
"start_line": 1664
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
ppre: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t ppre ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a ppre p pre
-> LowParseWriters.post_t a
(LowParseWriters.LowParse.parse_pair frame ppre)
... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.LowParse.parse_pair",
"LowParseWriters.frame_out",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.tuple2",
"Prims.l_and",
"Prims.... | [] | false | false | false | false | false | let frame2_post
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
: Tot (post_t a (frame `parse_pair` ppre) (frame_out a frame p) (frame2_pre frame ppre pre)) =
| fun (v_frame, v_in) v (v_frame', v_out) -> v_frame == v_frame' /\ post v_in v v_out | false |
LowParseWriters.fsti | LowParseWriters.frame2_post_err | val frame2_post_err (frame ppre: parser) (pre: pre_t ppre) (post_err: post_err_t ppre pre)
: Tot (post_err_t (frame `parse_pair` ppre) (frame2_pre frame ppre pre)) | val frame2_post_err (frame ppre: parser) (pre: pre_t ppre) (post_err: post_err_t ppre pre)
: Tot (post_err_t (frame `parse_pair` ppre) (frame2_pre frame ppre pre)) | let frame2_post_err
(frame: parser)
(ppre: parser)
(pre: pre_t ppre)
(post_err: post_err_t ppre pre)
: Tot (post_err_t (frame `parse_pair` ppre) (frame2_pre frame ppre pre))
= fun (_, x) -> post_err x | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 1681,
"start_col": 0,
"start_line": 1675
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser ->
ppre: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t ppre ->
post_err: LowParseWriters.post_err_t ppre pre
-> LowParseWriters.post_err_t (LowParseWriters.LowParse.parse_pair frame ppre)
(LowParseWriters.frame2_pre frame ppre pre) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_err_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.LowParse.parse_pair",
"LowParseWriters.frame2_pre"
] | [] | false | false | false | false | false | let frame2_post_err (frame ppre: parser) (pre: pre_t ppre) (post_err: post_err_t ppre pre)
: Tot (post_err_t (frame `parse_pair` ppre) (frame2_pre frame ppre pre)) =
| fun (_, x) -> post_err x | false |
LowParseWriters.fsti | LowParseWriters.lift_read_spec | val lift_read_spec
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot
(repr_spec a r (r) (fun _ -> pre) (fun st x st' -> st == st' /\ post x) (fun _ ... | val lift_read_spec
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot
(repr_spec a r (r) (fun _ -> pre) (fun st x st' -> st == st' /\ post x) (fun _ ... | let lift_read_spec
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot (repr_spec a r (r)
(fun _ -> pre) // (lift_read_pre pre r)
(fun st x st' -> st == st' /\ post x) // (lift_r... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 1231,
"start_col": 0,
"start_line": 1215
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: Prims.pure_pre ->
post: LowParseWriters.pure_post' a pre ->
post_err: LowParseWriters.pure_post_err pre ->
inv: LowParseWriters.memory_invariant ->
r: LowParseWriters.LowParse.parser ->
f_read_spec: LowParseWriters.read_repr a pre post post_err inv
-> LowParseWriters.repr_... | Prims.Tot | [
"total"
] | [] | [
"Prims.pure_pre",
"LowParseWriters.pure_post'",
"LowParseWriters.pure_post_err",
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.parser",
"LowParseWriters.read_repr",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.__proj__ReadRepr__item__spec",
"LowParseWriters.Co... | [] | false | false | false | false | false | let lift_read_spec
(a: Type)
(pre: pure_pre)
(post: pure_post' a pre)
(post_err: pure_post_err pre)
(inv: memory_invariant)
(r: parser)
(f_read_spec: read_repr a pre post post_err inv)
: Tot
(repr_spec a r (r) (fun _ -> pre) (fun st x st' -> st == st' /\ post x) (fun _ ... | fun st ->
match ReadRepr?.spec f_read_spec () with
| Correct res -> Correct (res, st)
| Error e -> Error e | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.set_def | val set_def (#t: eqtype) (s: FStar.Set.set t) (x: t) : Tot bool | val set_def (#t: eqtype) (s: FStar.Set.set t) (x: t) : Tot bool | let set_def
(#t: eqtype)
(s: FStar.Set.set t)
(x: t)
: Tot bool
= FStar.Set.mem x s | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 16,
"start_col": 0,
"start_line": 11
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *) | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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 | s: FStar.Set.set t -> x: t -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.Set.set",
"FStar.Set.mem",
"Prims.bool"
] | [] | false | false | false | false | false | let set_def (#t: eqtype) (s: FStar.Set.set t) (x: t) : Tot bool =
| FStar.Set.mem x s | false |
LowParseWriters.fsti | LowParseWriters.bind_spec | val bind_spec
(a b: Type)
(r_in_f r_out_f: parser)
(pre_f: pre_t r_in_f)
(post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
(r_out_g: parser)
(pre_g: (x: a -> pre_t (r_out_f)))
(post_g: (x: a -> post_t b (r_out_f) r_out_g (pre_g x)))
(post... | val bind_spec
(a b: Type)
(r_in_f r_out_f: parser)
(pre_f: pre_t r_in_f)
(post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
(r_out_g: parser)
(pre_g: (x: a -> pre_t (r_out_f)))
(post_g: (x: a -> post_t b (r_out_f) r_out_g (pre_g x)))
(post... | let bind_spec (a:Type) (b:Type)
(r_in_f:parser) (r_out_f: parser)
(pre_f: pre_t r_in_f) (post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
(r_out_g: parser)
(pre_g: (x:a) -> pre_t (r_out_f)) (post_g: (x:a) -> post_t b (r_out_f) r_out_g (pre_g x))
(post_err_g: (x:a) -> post_err_t (... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 1029,
"start_col": 0,
"start_line": 1007
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
b: Type ->
r_in_f: LowParseWriters.LowParse.parser ->
r_out_f: LowParseWriters.LowParse.parser ->
pre_f: LowParseWriters.pre_t r_in_f ->
post_f: LowParseWriters.post_t a r_in_f r_out_f pre_f ->
post_err_f: LowParseWriters.post_err_t r_in_f pre_f ->
r_out_g: LowParseWriters.Lo... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.repr_spec",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.string",
"LowParseWriters.Error",
"FStar.Pervasives.Native.tuple2",
"LowParseWriters.result",
... | [] | false | false | false | false | false | let bind_spec
(a b: Type)
(r_in_f r_out_f: parser)
(pre_f: pre_t r_in_f)
(post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
(r_out_g: parser)
(pre_g: (x: a -> pre_t (r_out_f)))
(post_g: (x: a -> post_t b (r_out_f) r_out_g (pre_g x)))
(post... | fun c ->
match f_bind_spec c with
| Correct (x, cf) -> g x cf
| Error e -> Error e | false |
LowParseWriters.fsti | LowParseWriters.wrap_extracted_impl | val wrap_extracted_impl
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
(e: extract_t l f_destr_spec)
: ... | val wrap_extracted_impl
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
(e: extract_t l f_destr_spec)
: ... | let wrap_extracted_impl
(#a:Type u#x)
(#r_in: parser)
(#r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: unit -> EWrite a r_in r_out pre post post_err l)
(e: extract_t l f_destr_spec)
: EWrite a r_in r_out pre pos... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 4,
"end_line": 1385,
"start_col": 0,
"start_line": 1371
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
l: LowParseWriters.memory_invariant ->
$f_destr_spec: (_: Prims.unit -> LowParseWriters.EWrite a) ->
e: LowParseWriters.extract_t l f_destr_spec
-> LowParseWriters.EWrite a | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.extract_t",
"LowParseWriters.Repr",
"LowParseWriters.destr_repr_spec",
"LowParseWriters.mk_repr_impl",
"LowStar.B... | [] | false | true | false | false | false | let wrap_extracted_impl
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
(e: extract_t l f_destr_spec)
: ... | EWrite?.reflect (Repr (destr_repr_spec _ _ _ _ _ _ _ f_destr_spec)
(mk_repr_impl a
r_in
r_out
_
_
_
_
(destr_repr_spec _ _ _ _ _ _ _ f_destr_spec)
(fun b len pos1 -> e b len pos1))) | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.nonempty_set | val nonempty_set : t: Prims.eqtype -> Type0 | let nonempty_set (t: eqtype) =
(s: Set.set t { exists x . set_def s x == true }) | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 51,
"end_line": 20,
"start_col": 0,
"start_line": 19
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Prims.eqtype -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.Set.set",
"Prims.l_Exists",
"Prims.eq2",
"Prims.bool",
"Pulse.C.Types.UserStruct.set_def"
] | [] | false | false | false | true | true | let nonempty_set (t: eqtype) =
| (s: Set.set t {exists x. set_def s x == true}) | false | |
LowParseWriters.fsti | LowParseWriters.subcomp | val subcomp
(a: Type)
([@@@ refl_implicit]r_in [@@@ refl_implicit]r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
([@@@ refl_implicit]l: memory_invariant)
([@@@ refl_implicit]r_in' [@@@ refl_implicit]r_out': parser)
(pre': ... | val subcomp
(a: Type)
([@@@ refl_implicit]r_in [@@@ refl_implicit]r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
([@@@ refl_implicit]l: memory_invariant)
([@@@ refl_implicit]r_in' [@@@ refl_implicit]r_out': parser)
(pre': ... | let subcomp (a:Type)
([@@@refl_implicit] r_in:parser)
([@@@ refl_implicit] r_out: parser)
(pre: pre_t r_in) (post: post_t a r_in r_out pre) (post_err: post_err_t r_in pre)
([@@@ refl_implicit] l:memory_invariant)
([@@@refl_implicit] r_in':parser)
([@@@ refl_implicit] r_out': parser)
(pre': pre_t r_in') (p... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 1138,
"start_col": 0,
"start_line": 1121
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
r_in': LowParseWriter... | Prims.Pure | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.squash",
"Prims.eq2",
"LowParseWriters.repr",
"LowParseWriters.Repr",
"LowParseWriters.subcomp_spec",
"LowParseWriters.__proj__Repr__item... | [] | false | false | false | false | false | let subcomp
(a: Type)
([@@@ refl_implicit]r_in [@@@ refl_implicit]r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
([@@@ refl_implicit]l: memory_invariant)
([@@@ refl_implicit]r_in' [@@@ refl_implicit]r_out': parser)
(pre': ... | Repr (subcomp_spec a r_in r_out pre post post_err pre' post' post_err' (Repr?.spec f_subcomp))
(subcomp_impl a r_in r_out pre post post_err l r_in' r_out' pre' post' post_err' l'
(Repr?.spec f_subcomp) (Repr?.impl f_subcomp) ()) | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.set | val set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f)
: Tot t | val set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f)
: Tot t | let set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f) : Tot t =
sd.mk (set_aux sd x f v) | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 61,
"start_col": 0,
"start_line": 60
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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 |
sd: Pulse.C.Types.UserStruct.struct_def t ->
x: t ->
f: Pulse.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd) ->
v: Mkfield_description_gen_t?.fd_type (Mkstruct_def?.field_desc sd) f
-> t | Prims.Tot | [
"total"
] | [] | [
"Pulse.C.Types.UserStruct.struct_def",
"Pulse.C.Types.UserStruct.field_t",
"Pulse.C.Types.UserStruct.__proj__Mkstruct_def__item__fields",
"Pulse.C.Types.Struct.Aux.__proj__Mkfield_description_gen_t__item__fd_type",
"Pulse.C.Types.UserStruct.__proj__Mkstruct_def__item__field_desc",
"Pulse.C.Types.UserStruc... | [] | false | false | false | false | false | let set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f)
: Tot t =
| sd.mk (set_aux sd x f v) | false |
LowParseWriters.fsti | LowParseWriters.subcomp_spec | val subcomp_spec
(a: Type)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(pre': pre_t r_in)
(post': post_t a r_in r_out pre')
(post_err': post_err_t r_in pre')
(f_subcomp: repr_spec a r_in r_out pre post post_... | val subcomp_spec
(a: Type)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(pre': pre_t r_in)
(post': post_t a r_in r_out pre')
(post_err': post_err_t r_in pre')
(f_subcomp: repr_spec a r_in r_out pre post post_... | let subcomp_spec (a:Type)
(r_in:parser) (r_out: parser)
(pre: pre_t r_in) (post: post_t a r_in r_out pre) (post_err: post_err_t r_in pre)
(pre': pre_t r_in) (post': post_t a r_in r_out pre') (post_err': post_err_t r_in pre')
(f_subcomp:repr_spec a r_in r_out pre post post_err)
: Pure (repr_spec a r_in r_out pre... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 1105,
"start_col": 0,
"start_line": 1097
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
pre': LowParseWriters.pre_t r_in ->
post': LowParseWriters.p... | Prims.Pure | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.repr_spec",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.result",
"FStar.Pervasives.Native.tuple2",
"LowParseWriters.subcomp_spec_cond",
"Pri... | [] | false | false | false | false | false | let subcomp_spec
(a: Type)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(pre': pre_t r_in)
(post': post_t a r_in r_out pre')
(post_err': post_err_t r_in pre')
(f_subcomp: repr_spec a r_in r_out pre post post_... | (fun x -> f_subcomp x) | false |
LowParseWriters.fsti | LowParseWriters.wfailwith_spec | val wfailwith_spec (a: Type) (rin rout: parser) (s: string)
: Tot (repr_spec a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True)) | val wfailwith_spec (a: Type) (rin rout: parser) (s: string)
: Tot (repr_spec a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True)) | let wfailwith_spec
(a: Type)
(rin rout: parser)
(s: string)
: Tot (repr_spec a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True))
= fun _ -> Error s | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 1268,
"start_col": 0,
"start_line": 1263
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
rin: LowParseWriters.LowParse.parser ->
rout: LowParseWriters.LowParse.parser ->
s: Prims.string
-> LowParseWriters.repr_spec a
rin
rout
(fun _ -> Prims.l_True)
(fun _ _ _ -> Prims.l_False)
(fun _ -> Prims.l_True) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"Prims.string",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.Error",
"FStar.Pervasives.Native.tuple2",
"LowParseWriters.result",
"LowParseWriters.repr_spec",
"Prims.l_True",
"Prims.l_False"
] | [] | false | false | false | false | false | let wfailwith_spec (a: Type) (rin rout: parser) (s: string)
: Tot (repr_spec a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True)) =
| fun _ -> Error s | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.field_t | val field_t (s: Set.set string) : Tot eqtype | val field_t (s: Set.set string) : Tot eqtype | let field_t (s: Set.set string) : Tot eqtype =
(f: string { Set.mem f s }) | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 33,
"start_col": 0,
"start_line": 32
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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 | s: FStar.Set.set Prims.string -> Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.Set.set",
"Prims.string",
"Prims.b2t",
"FStar.Set.mem",
"Prims.eqtype"
] | [] | false | false | false | true | false | let field_t (s: Set.set string) : Tot eqtype =
| (f: string{Set.mem f s}) | false |
LowParseWriters.fsti | LowParseWriters.bind | val bind
(a b: Type)
(r_in_f [@@@ refl_implicit]r_out_f: parser)
(pre_f: pre_t r_in_f)
(post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
([@@@ refl_implicit]l_f: memory_invariant)
([@@@ refl_implicit]r_in_g r_out_g: parser)
(pre_g: (x: a -> pre... | val bind
(a b: Type)
(r_in_f [@@@ refl_implicit]r_out_f: parser)
(pre_f: pre_t r_in_f)
(post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
([@@@ refl_implicit]l_f: memory_invariant)
([@@@ refl_implicit]r_in_g r_out_g: parser)
(pre_g: (x: a -> pre... | let bind (a:Type) (b:Type)
(r_in_f:parser) ([@@@ refl_implicit] r_out_f: parser)
(pre_f: pre_t r_in_f) (post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
([@@@ refl_implicit] l_f: memory_invariant)
([@@@ refl_implicit] r_in_g:parser)
(r_out_g: parser)
(pre_g: (x:a) -> pre_t r_in... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 328,
"end_line": 1072,
"start_col": 0,
"start_line": 1048
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
b: Type ->
r_in_f: LowParseWriters.LowParse.parser ->
r_out_f: LowParseWriters.LowParse.parser ->
pre_f: LowParseWriters.pre_t r_in_f ->
post_f: LowParseWriters.post_t a r_in_f r_out_f pre_f ->
post_err_f: LowParseWriters.post_err_t r_in_f pre_f ->
l_f: LowParseWriters.memory... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.squash",
"Prims.eq2",
"LowParseWriters.repr",
"LowParseWriters.Repr",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_and",
... | [] | false | false | false | false | false | let bind
(a b: Type)
(r_in_f [@@@ refl_implicit]r_out_f: parser)
(pre_f: pre_t r_in_f)
(post_f: post_t a r_in_f r_out_f pre_f)
(post_err_f: post_err_t r_in_f pre_f)
([@@@ refl_implicit]l_f: memory_invariant)
([@@@ refl_implicit]r_in_g r_out_g: parser)
(pre_g: (x: a -> pre... | Repr
(bind_spec a b r_in_f r_out_f pre_f post_f post_err_f r_out_g pre_g post_g post_err_g
(Repr?.spec f_bind) (fun x -> Repr?.spec (g x)))
(bind_impl a b r_in_f r_out_f pre_f post_f post_err_f r_out_g pre_g post_g post_err_g
(Repr?.spec f_bind) (fun x -> Repr?.spec (g x)) l_g (Repr?.impl f_bind)
... | false |
LowParseWriters.fsti | LowParseWriters.extract_t | val extract_t
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot Type | val extract_t
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot Type | let extract_t
(#a:Type u#x)
(#r_in: parser)
(#r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: unit -> EWrite a r_in r_out pre post post_err l)
: Tot Type
=
(b: B.buffer u8 { l.lwrite `B.loc_includes` B.loc_buff... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 1355,
"start_col": 0,
"start_line": 1314
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | l: LowParseWriters.memory_invariant -> $f_destr_spec: (_: Prims.unit -> LowParseWriters.EWrite a)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowStar.Buffer.buffer",
"LowParseWriters.LowParse.u8",
"LowStar.Monotonic.Buffer.loc_includes",
"FStar.Ghost.reveal",
"LowStar.Mo... | [] | false | false | false | false | true | let extract_t
(#a: Type u#x)
(#r_in #r_out: parser)
(#pre: pre_t r_in)
(#post: post_t a r_in r_out pre)
(#post_err: post_err_t r_in pre)
(l: memory_invariant)
($f_destr_spec: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot Type =
|
b: B.buffer u8 {l.lwrite `B.loc_includes` (B.loc_buffer b)} ->
len: U32.t{len == B.len b} ->
pos1: buffer_offset b
-> HST.Stack (iresult a)
(requires
(fun h ->
B.modifies l.lwrite l.h0 h /\ (HS.get_tip l.h0) `HS.includes` (HS.get_tip h) /\
valid_pos r_in h b 0ul pos1... | false |
LowParseWriters.fsti | LowParseWriters.get_state_spec | val get_state_spec (p: parser)
: Tot
(repr_spec (Ghost.erased (Parser?.t p))
p
p
(fun _ -> True)
(fun x y z -> x == Ghost.reveal y /\ x == z)
(fun _ -> False)) | val get_state_spec (p: parser)
: Tot
(repr_spec (Ghost.erased (Parser?.t p))
p
p
(fun _ -> True)
(fun x y z -> x == Ghost.reveal y /\ x == z)
(fun _ -> False)) | let get_state_spec
(p: parser)
: Tot (repr_spec (Ghost.erased (Parser?.t p)) p p (fun _ -> True) (fun x y z -> x == Ghost.reveal y /\ x == z) (fun _ -> False))
= fun x -> Correct (Ghost.hide x, x) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 1406,
"start_col": 0,
"start_line": 1403
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser
-> LowParseWriters.repr_spec (FStar.Ghost.erased (Parser?.t p))
p
p
(fun _ -> Prims.l_True)
(fun x y z -> x == FStar.Ghost.reveal y /\ x == z)
(fun _ -> Prims.l_False) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.Correct",
"FStar.Pervasives.Native.tuple2",
"FStar.Ghost.erased",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Ghost.hide",
"LowParseWriters.result",
"LowParseWriters.repr_spec",
"Prims.l_True",
... | [] | false | false | false | false | false | let get_state_spec (p: parser)
: Tot
(repr_spec (Ghost.erased (Parser?.t p))
p
p
(fun _ -> True)
(fun x y z -> x == Ghost.reveal y /\ x == z)
(fun _ -> False)) =
| fun x -> Correct (Ghost.hide x, x) | false |
LowParseWriters.fsti | LowParseWriters.wfailwith | val wfailwith (#a: Type) (#inv: memory_invariant) (#rin #rout: parser) (s: string)
: EWrite a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True) inv | val wfailwith (#a: Type) (#inv: memory_invariant) (#rin #rout: parser) (s: string)
: EWrite a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True) inv | let wfailwith
(#a: Type)
(#inv: memory_invariant)
(#rin #rout: parser)
(s: string)
: EWrite a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True) inv
= EWrite?.reflect (Repr _ (wfailwith_impl a inv rin rout s)) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 1285,
"start_col": 0,
"start_line": 1279
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | s: Prims.string -> LowParseWriters.EWrite a | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.parser",
"Prims.string",
"LowParseWriters.Repr",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_True",
"Prims.l_False",
"LowParseWriters.wfailwith_spec",
"LowParseWriters.wfailwith_impl"
] | [] | false | true | false | false | false | let wfailwith (#a: Type) (#inv: memory_invariant) (#rin #rout: parser) (s: string)
: EWrite a rin rout (fun _ -> True) (fun _ _ _ -> False) (fun _ -> True) inv =
| EWrite?.reflect (Repr _ (wfailwith_impl a inv rin rout s)) | false |
LowParseWriters.fsti | LowParseWriters.elem_writer_spec | val elem_writer_spec (p: parser) (x: Parser?.t p)
: Tot (repr_spec unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) (fun _ -> False)) | val elem_writer_spec (p: parser) (x: Parser?.t p)
: Tot (repr_spec unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) (fun _ -> False)) | let elem_writer_spec
(p: parser)
(x: Parser?.t p)
: Tot (repr_spec unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) (fun _ -> False))
= fun _ -> Correct ((), x) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 1514,
"start_col": 0,
"start_line": 1510
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser -> x: Parser?.t p
-> LowParseWriters.repr_spec Prims.unit
LowParseWriters.LowParse.parse_empty
p
(fun _ -> Prims.l_True)
(fun _ _ y -> y == x)
(fun _ -> Prims.l_False) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.Correct",
"FStar.Pervasives.Native.tuple2",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"LowParseWriters.result",
"LowParseWriters.repr_spec",
"Prim... | [] | false | false | false | false | false | let elem_writer_spec (p: parser) (x: Parser?.t p)
: Tot (repr_spec unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) (fun _ -> False)) =
| fun _ -> Correct ((), x) | false |
LowParseWriters.fsti | LowParseWriters.mk_repr | val mk_repr:
a: Type u#x ->
r_in: parser ->
r_out: parser ->
pre: pre_t r_in ->
post: post_t a r_in r_out pre ->
post_err: post_err_t r_in pre ->
l: memory_invariant ->
spec: repr_spec a r_in r_out pre post post_err ->
impl: repr_impl a r_in r_out pre post post_err l spec ->
Prim... | val mk_repr:
a: Type u#x ->
r_in: parser ->
r_out: parser ->
pre: pre_t r_in ->
post: post_t a r_in r_out pre ->
post_err: post_err_t r_in pre ->
l: memory_invariant ->
spec: repr_spec a r_in r_out pre post post_err ->
impl: repr_impl a r_in r_out pre post post_err l spec ->
Prim... | let mk_repr
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(spec: repr_spec a r_in r_out pre post post_err)
(impl: repr_impl a r_in r_out pre post post_err l spec)
()
: EWrite a r_in r_out pre post p... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 1401,
"start_col": 0,
"start_line": 1389
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
spec: LowParseWriters... | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"LowParseWriters.repr_spec",
"LowParseWriters.repr_impl",
"Prims.unit",
"LowParseWriters.Repr"
] | [] | false | true | false | false | false | let mk_repr
(a: Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(spec: repr_spec a r_in r_out pre post post_err)
(impl: repr_impl a r_in r_out pre post post_err l spec)
... | EWrite?.reflect (Repr spec impl) | false |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.precomp_basepoint_table_lseq_w4 | val precomp_basepoint_table_lseq_w4 : LSeq.lseq uint64 192 | val precomp_basepoint_table_lseq_w4 : LSeq.lseq uint64 192 | let precomp_basepoint_table_lseq_w4 : LSeq.lseq uint64 192 =
normalize_term_spec (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 15);
Seq.seq_of_list precomp_basepoint_table_list_w4 | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 49,
"end_line": 205,
"start_col": 0,
"start_line": 203
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.PrecompTable",
"short_module": "SPTK"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.PrecompBaseTable256",
"short_module": "SPT256"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq Lib.IntTypes.uint64 192 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq_of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Hacl.P256.PrecompTable.precomp_basepoint_table_list_w4",
"Prims.unit",
"FStar.Pervasives.normalize_term_spec",
"Prims.list",
"Lib.IntTypes.uint_t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FSt... | [] | false | false | false | false | false | let precomp_basepoint_table_lseq_w4:LSeq.lseq uint64 192 =
| normalize_term_spec (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 15);
Seq.seq_of_list precomp_basepoint_table_list_w4 | false |
LowParseWriters.fsti | LowParseWriters.get_state | val get_state: #inv: memory_invariant -> #p: parser -> Prims.unit
-> Write (Ghost.erased (Parser?.t p))
p
p
(fun _ -> True)
(fun x y z -> x == Ghost.reveal y /\ x == z)
inv | val get_state: #inv: memory_invariant -> #p: parser -> Prims.unit
-> Write (Ghost.erased (Parser?.t p))
p
p
(fun _ -> True)
(fun x y z -> x == Ghost.reveal y /\ x == z)
inv | let get_state
(#inv: memory_invariant)
(#p: parser)
()
: Write (Ghost.erased (Parser?.t p)) p p (fun _ -> True) (fun x y z -> x == Ghost.reveal y /\ x == z) inv
= EWrite?.reflect (Repr _ (get_state_impl inv p)) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 1420,
"start_col": 0,
"start_line": 1415
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | _: Prims.unit -> LowParseWriters.Write (FStar.Ghost.erased (Parser?.t p)) | LowParseWriters.Write | [] | [] | [
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.parser",
"Prims.unit",
"LowParseWriters.Repr",
"FStar.Ghost.erased",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"FStar.Ghost.reveal",
"Prims.l_False",
"LowParseWriters.get_state_s... | [] | false | true | false | false | false | let get_state (#inv: memory_invariant) (#p: parser) ()
: Write (Ghost.erased (Parser?.t p))
p
p
(fun _ -> True)
(fun x y z -> x == Ghost.reveal y /\ x == z)
inv =
| EWrite?.reflect (Repr _ (get_state_impl inv p)) | false |
LowParseWriters.fsti | LowParseWriters.start | val start (#p: parser) (w: leaf_writer p) (#l: memory_invariant) (x: Parser?.t p)
: Write unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) l | val start (#p: parser) (w: leaf_writer p) (#l: memory_invariant) (x: Parser?.t p)
: Write unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) l | let start
(#p: parser)
(w: leaf_writer p)
(#l: memory_invariant)
(x: Parser?.t p)
: Write unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) l
= mk_repr
unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) (fun _ -> False) l
(elem_writer_spec p x)
(elem_writer_impl w l x)
() | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 6,
"end_line": 1535,
"start_col": 0,
"start_line": 1525
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | w: LowParseWriters.LowParse.leaf_writer p -> x: Parser?.t p -> LowParseWriters.Write Prims.unit | LowParseWriters.Write | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.leaf_writer",
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.mk_repr",
"Prims.unit",
"LowParseWriters.LowParse.parse_empty",
"Prims.l_True",
"Prims.eq2",
"Prims.l_False",
"LowPa... | [] | false | true | false | false | false | let start (#p: parser) (w: leaf_writer p) (#l: memory_invariant) (x: Parser?.t p)
: Write unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) l =
| mk_repr unit parse_empty (p) (fun _ -> True) (fun _ _ y -> y == x) (fun _ -> False) l
(elem_writer_spec p x) (elem_writer_impl w l x) () | false |
LowParseWriters.fsti | LowParseWriters.frame_spec | val frame_spec
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: (unit -> EWrite a parse_empty p pre post post_err l))
: Tot
(repr_spec a
f... | val frame_spec
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: (unit -> EWrite a parse_empty p pre post post_err l))
: Tot
(repr_spec a
f... | let frame_spec
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: unit -> EWrite a parse_empty p pre post post_err l)
: Tot (repr_spec a frame (frame_out a frame p) (frame_pre frame pre) (... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 1467,
"start_col": 0,
"start_line": 1454
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t LowParseWriters.LowParse.parse_empty ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a LowParseWriters.LowParse.parse_empty p pre ->
post_err: LowParseWriters.post_err_t LowParseWriters.LowPars... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.destr_repr_spec",
"LowP... | [] | false | false | false | false | false | let frame_spec
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: (unit -> EWrite a parse_empty p pre post post_err l))
: Tot
(repr_spec a
f... | fun fr ->
match destr_repr_spec a parse_empty p pre post post_err l inner () with
| Correct (v, w) -> Correct (v, (fr, w))
| Error e -> Error e | false |
LowParseWriters.fsti | LowParseWriters.append | val append (#fr #p: parser) (w: leaf_writer p) (#l: memory_invariant) (x: Parser?.t p)
: Write unit fr (fr `parse_pair` p) (fun _ -> True) (fun w _ (w', x') -> w' == w /\ x' == x) l | val append (#fr #p: parser) (w: leaf_writer p) (#l: memory_invariant) (x: Parser?.t p)
: Write unit fr (fr `parse_pair` p) (fun _ -> True) (fun w _ (w', x') -> w' == w /\ x' == x) l | let append
(#fr: parser)
(#p: parser)
(w: leaf_writer p)
(#l: memory_invariant)
(x: Parser?.t p)
: Write unit fr (fr `parse_pair` p) (fun _ -> True) (fun w _ (w', x') -> w' == w /\ x' == x) l
= frame unit fr (fun _ -> True) (p) (fun _ _ x' -> x' == x) (fun _ -> False) l (fun _ -> start w x) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 99,
"end_line": 1549,
"start_col": 0,
"start_line": 1542
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 | w: LowParseWriters.LowParse.leaf_writer p -> x: Parser?.t p -> LowParseWriters.Write Prims.unit | LowParseWriters.Write | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.LowParse.leaf_writer",
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.frame",
"Prims.unit",
"LowParseWriters.LowParse.parse_empty",
"Prims.l_True",
"Prims.eq2",
"Prims.l_False",
"LowPars... | [] | false | true | false | false | false | let append (#fr #p: parser) (w: leaf_writer p) (#l: memory_invariant) (x: Parser?.t p)
: Write unit fr (fr `parse_pair` p) (fun _ -> True) (fun w _ (w', x') -> w' == w /\ x' == x) l =
| frame unit fr (fun _ -> True) (p) (fun _ _ x' -> x' == x) (fun _ -> False) l (fun _ -> start w x) | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_spec | val valid_rewrite_spec
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
: Tot
(repr_spec unit
p1
(p2)
precond
(fun vin _ vout -> precond vin /\ f vin == vout)
(fun _ ... | val valid_rewrite_spec
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
: Tot
(repr_spec unit
p1
(p2)
precond
(fun vin _ vout -> precond vin /\ f vin == vout)
(fun _ ... | let valid_rewrite_spec
(p1: parser)
(p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 { precond x }) -> GTot (Parser?.t p2))
(v: valid_rewrite_t p1 p2 precond f)
: Tot (repr_spec unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) (fun _ -> False))
= fun vin ->
v.valid_rewrite_size v... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 1824,
"start_col": 0,
"start_line": 1815
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
precond: LowParseWriters.pre_t p1 ->
f: (x: Parser?.t p1 {precond x} -> Prims.GTot (Parser?.t p2)) ->
v: LowParseWriters.valid_rewrite_t p1 p2 precond f
-> LowParseWriters.repr_spec Prims.unit
p1
p2
pr... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.valid_rewrite_t",
"LowParseWriters.Correct",
"FStar.Pervasives.Native.tuple2",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"LowParseWriters.__proj__Mkvalid_rewrite_t... | [] | false | false | false | false | false | let valid_rewrite_spec
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
: Tot
(repr_spec unit
p1
(p2)
precond
(fun vin _ vout -> precond vin /\ f vin == vout)
(fun _ ... | fun vin ->
v.valid_rewrite_size vin;
Correct ((), f vin) | false |
LowParseWriters.fsti | LowParseWriters.frame_repr | val frame_repr
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: (unit -> EWrite a parse_empty p pre post post_err l))
: Tot
(unit
-> EWrit... | val frame_repr
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: (unit -> EWrite a parse_empty p pre post post_err l))
: Tot
(unit
-> EWrit... | let frame_repr
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: unit -> EWrite a parse_empty p pre post post_err l)
: Tot (unit -> EWrite a frame (frame_out a frame p) (frame_pre frame p... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 1495,
"start_col": 0,
"start_line": 1482
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t LowParseWriters.LowParse.parse_empty ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a LowParseWriters.LowParse.parse_empty p pre ->
post_err: LowParseWriters.post_err_t LowParseWriters.LowPars... | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.mk_repr",
"LowParseWriters.frame_out",
"LowParseWriters.frame_pre",
"LowP... | [] | false | true | false | false | false | let frame_repr
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
(inner: (unit -> EWrite a parse_empty p pre post post_err l))
: Tot
(unit
-> EWrit... | mk_repr a
frame
(frame_out a frame p)
(frame_pre frame pre)
(frame_post a frame pre p post)
(frame_post_err frame pre post_err)
l
(frame_spec a frame pre p post post_err l inner)
(frame_impl a frame pre p post post_err l inner) | false |
LowParseWriters.fsti | LowParseWriters.frame' | val frame'
(a: Type)
(fr p: parser)
(l: memory_invariant)
(f: (unit -> EWrite a parse_empty p (fun _ -> True) (fun _ _ _ -> True) (fun _ -> True) l))
: EWrite a
fr
(fr `parse_pair` p)
(fun _ -> True)
(fun vin v (vin', vout) ->
vin' == vin /\ destr_repr_spec ... | val frame'
(a: Type)
(fr p: parser)
(l: memory_invariant)
(f: (unit -> EWrite a parse_empty p (fun _ -> True) (fun _ _ _ -> True) (fun _ -> True) l))
: EWrite a
fr
(fr `parse_pair` p)
(fun _ -> True)
(fun vin v (vin', vout) ->
vin' == vin /\ destr_repr_spec ... | let frame'
(a: Type)
(fr: parser)
(p: parser)
(l: memory_invariant)
(f: unit ->
EWrite a parse_empty p (fun _ -> True) (fun _ _ _ -> True) (fun _ -> True) l
)
: EWrite a fr (fr `parse_pair` p)
(fun _ -> True)
(fun vin v (vin', vout) ->
vin' == vin /\
destr_repr_spec _ _ _ _ _ _ _ f (... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 1653,
"start_col": 0,
"start_line": 1634
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
fr: LowParseWriters.LowParse.parser ->
p: LowParseWriters.LowParse.parser ->
l: LowParseWriters.memory_invariant ->
f: (_: Prims.unit -> LowParseWriters.EWrite a)
-> LowParseWriters.EWrite a | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_True",
"LowParseWriters.frame",
"Prims.l_and",
"Prims.eq2",
"LowParseWriters.result",
"FStar.Pervasives.Native... | [] | false | true | false | false | false | let frame'
(a: Type)
(fr p: parser)
(l: memory_invariant)
(f: (unit -> EWrite a parse_empty p (fun _ -> True) (fun _ _ _ -> True) (fun _ -> True) l))
: EWrite a
fr
(fr `parse_pair` p)
(fun _ -> True)
(fun vin v (vin', vout) ->
vin' == vin /\ destr_repr_spec ... | frame _ _ _ _ _ _ _ (fun _ -> recast_writer _ _ _ _ _ _ _ f) | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_parse_pair_assoc_2 | val valid_rewrite_parse_pair_assoc_2 (p1 p2 p3: parser)
: Tot
(valid_rewrite_t (p1 `parse_pair` (p2 `parse_pair` p3))
((p1 `parse_pair` p2) `parse_pair` p3)
(fun _ -> True)
(fun (x1, (x2, x3)) -> ((x1, x2), x3))) | val valid_rewrite_parse_pair_assoc_2 (p1 p2 p3: parser)
: Tot
(valid_rewrite_t (p1 `parse_pair` (p2 `parse_pair` p3))
((p1 `parse_pair` p2) `parse_pair` p3)
(fun _ -> True)
(fun (x1, (x2, x3)) -> ((x1, x2), x3))) | let valid_rewrite_parse_pair_assoc_2
(p1 p2 p3: parser)
: Tot (valid_rewrite_t (p1 `parse_pair` (p2 `parse_pair` p3)) ((p1 `parse_pair` p2) `parse_pair` p3) (fun _ -> True) (fun (x1, (x2, x3)) -> ((x1, x2), x3)))
= {
valid_rewrite_valid = (fun h b pos pos' ->
let pos2 = valid_parse_pair_inv_spec h p1 (p2 `p... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 1895,
"start_col": 0,
"start_line": 1884
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
p3: LowParseWriters.LowParse.parser
-> LowParseWriters.valid_rewrite_t (LowParseWriters.LowParse.parse_pair p1
(LowParseWriters.LowParse.parse_pair p2 p3))
(LowParseWriters.LowParse.parse_pair (LowParseWriters.L... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.Mkvalid_rewrite_t",
"LowParseWriters.LowParse.parse_pair",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_True",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.... | [] | false | false | false | false | false | let valid_rewrite_parse_pair_assoc_2 (p1 p2 p3: parser)
: Tot
(valid_rewrite_t (p1 `parse_pair` (p2 `parse_pair` p3))
((p1 `parse_pair` p2) `parse_pair` p3)
(fun _ -> True)
(fun (x1, (x2, x3)) -> ((x1, x2), x3))) =
| {
valid_rewrite_valid
=
(fun h b pos pos' ->
let pos2 = valid_parse_pair_inv_spec h p1 (p2 `parse_pair` p3) b pos pos' in
let pos3 = valid_parse_pair_inv_spec h p2 p3 b pos2 pos' in
valid_parse_pair p1 p2 h b pos pos2 pos3;
valid_parse_pair (p1 `parse_pair` p2) p3 h b pos pos3 pos');
val... | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_repr | val valid_rewrite_repr
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
(inv: memory_invariant)
: Tot
(repr unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) (fun _ -> False) inv
... | val valid_rewrite_repr
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
(inv: memory_invariant)
: Tot
(repr unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) (fun _ -> False) inv
... | let valid_rewrite_repr
(p1: parser)
(p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 { precond x }) -> GTot (Parser?.t p2))
(v: valid_rewrite_t p1 p2 precond f)
(inv: memory_invariant)
: Tot (repr unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) (fun _ -> False) inv)
= Repr _ (vali... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 1845,
"start_col": 0,
"start_line": 1837
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
precond: LowParseWriters.pre_t p1 ->
f: (x: Parser?.t p1 {precond x} -> Prims.GTot (Parser?.t p2)) ->
v: LowParseWriters.valid_rewrite_t p1 p2 precond f ->
inv: LowParseWriters.memory_invariant
-> LowParseWriters.re... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.valid_rewrite_t",
"LowParseWriters.memory_invariant",
"LowParseWriters.Repr",
"Prims.unit",
"Prims.l_and",
"Prims.eq2",
"Prims.l_False",
"LowParseWriters.valid_rewrite... | [] | false | false | false | false | false | let valid_rewrite_repr
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
(inv: memory_invariant)
: Tot
(repr unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) (fun _ -> False) inv
... | Repr _ (valid_rewrite_impl p1 p2 precond f v inv) | false |
LowParseWriters.fsti | LowParseWriters.recast_writer_spec | val recast_writer_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(repr_spec a
r_in
r_out
... | val recast_writer_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(repr_spec a
r_in
r_out
... | let recast_writer_spec
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: unit -> EWrite a r_in r_out pre post post_err l)
: Tot (repr_spec a r_in r_out pre (recast_writer_post a r_in r_out pre post post... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 69,
"end_line": 1591,
"start_col": 0,
"start_line": 1581
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
f: (_: Prims.unit -> ... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.destr_repr_spec",
"LowParseWriters.result",
"FStar.Pervasives.N... | [] | false | false | false | false | false | let recast_writer_spec
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(repr_spec a
r_in
r_out
... | fun v_in -> destr_repr_spec a r_in r_out pre post post_err l f v_in | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_implies | val valid_rewrite_implies
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
(precond': pre_t p1)
(f': (x: Parser?.t p1 {precond' x} -> GTot (Parser?.t p2)))
: Pure (valid_rewrite_t p1 p2 precond' f')... | val valid_rewrite_implies
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
(precond': pre_t p1)
(f': (x: Parser?.t p1 {precond' x} -> GTot (Parser?.t p2)))
: Pure (valid_rewrite_t p1 p2 precond' f')... | let valid_rewrite_implies
(p1: parser)
(p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 { precond x }) -> GTot (Parser?.t p2))
(v: valid_rewrite_t p1 p2 precond f)
(precond' : pre_t p1)
(f' : (x: Parser?.t p1 { precond' x }) -> GTot (Parser?.t p2))
: Pure (valid_rewrite_t p1 p2 precond' f')
(requir... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 1791,
"start_col": 0,
"start_line": 1774
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
precond: LowParseWriters.pre_t p1 ->
f: (x: Parser?.t p1 {precond x} -> Prims.GTot (Parser?.t p2)) ->
v: LowParseWriters.valid_rewrite_t p1 p2 precond f ->
precond': LowParseWriters.pre_t p1 ->
f': (x: Parser?.t p... | Prims.Pure | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.valid_rewrite_t",
"LowParseWriters.Mkvalid_rewrite_t",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.UInt32.t",
"LowParseWriters.__p... | [] | false | false | false | false | false | let valid_rewrite_implies
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(v: valid_rewrite_t p1 p2 precond f)
(precond': pre_t p1)
(f': (x: Parser?.t p1 {precond' x} -> GTot (Parser?.t p2)))
: Pure (valid_rewrite_t p1 p2 precond' f')... | {
valid_rewrite_valid = (fun h b pos pos' -> v.valid_rewrite_valid h b pos pos');
valid_rewrite_size = (fun x -> v.valid_rewrite_size x)
} | false |
LowParseWriters.fsti | LowParseWriters.recast_writer | val recast_writer
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f: (unit -> EWrite a r_in r_out pre post post_err l))
: EWrite a
r_in
r_out
pre
(recast_wri... | val recast_writer
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f: (unit -> EWrite a r_in r_out pre post post_err l))
: EWrite a
r_in
r_out
pre
(recast_wri... | let recast_writer
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f: unit -> EWrite a r_in r_out pre post post_err l)
: EWrite a r_in r_out pre (recast_writer_post a r_in r_out pre post post_err l f) (r... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 1631,
"start_col": 0,
"start_line": 1621
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
$f: (_: Prims.unit ->... | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.recast_writer_repr",
"LowParseWriters.recast_writer_post",
"LowParseWriters.recast_writer_post_err"
] | [] | false | true | false | false | false | let recast_writer
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
($f: (unit -> EWrite a r_in r_out pre post post_err l))
: EWrite a
r_in
r_out
pre
(recast_wri... | recast_writer_repr a r_in r_out pre post post_err l f () | false |
LowParseWriters.fsti | LowParseWriters.check_precond | val check_precond
(p1: parser)
(precond: pre_t p1)
(c: check_precond_t p1 precond)
(inv: memory_invariant)
: EWrite unit
p1
(p1)
precond
(fun vin _ vout -> vin == vout /\ precond vin)
(fun vin -> ~(precond vin))
inv | val check_precond
(p1: parser)
(precond: pre_t p1)
(c: check_precond_t p1 precond)
(inv: memory_invariant)
: EWrite unit
p1
(p1)
precond
(fun vin _ vout -> vin == vout /\ precond vin)
(fun vin -> ~(precond vin))
inv | let check_precond
(p1: parser)
(precond: pre_t p1)
(c: check_precond_t p1 precond)
(inv: memory_invariant)
: EWrite unit p1 (p1) precond (fun vin _ vout -> vin == vout /\ precond vin) (fun vin -> ~ (precond vin)) inv
= EWrite?.reflect (check_precond_repr p1 precond c inv) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 55,
"end_line": 1968,
"start_col": 0,
"start_line": 1962
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
precond: LowParseWriters.pre_t p1 ->
c: LowParseWriters.check_precond_t p1 precond ->
inv: LowParseWriters.memory_invariant
-> LowParseWriters.EWrite Prims.unit | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.check_precond_t",
"LowParseWriters.memory_invariant",
"LowParseWriters.check_precond_repr",
"Prims.unit",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_and",
"Prims.eq2",
"Prims.l_not"
] | [] | false | true | false | false | false | let check_precond
(p1: parser)
(precond: pre_t p1)
(c: check_precond_t p1 precond)
(inv: memory_invariant)
: EWrite unit
p1
(p1)
precond
(fun vin _ vout -> vin == vout /\ precond vin)
(fun vin -> ~(precond vin))
inv =
| EWrite?.reflect (check_precond_repr p1 precond c inv) | false |
LowParseWriters.fsti | LowParseWriters.cat | val cat (#inv: memory_invariant) (#p: parser) (x: ptr p inv)
: Write unit parse_empty p (fun _ -> True) (fun _ _ vout -> vout == deref_spec x) inv | val cat (#inv: memory_invariant) (#p: parser) (x: ptr p inv)
: Write unit parse_empty p (fun _ -> True) (fun _ _ vout -> vout == deref_spec x) inv | let cat
(#inv: memory_invariant)
(#p: parser)
(x: ptr p inv)
: Write unit parse_empty p (fun _ -> True) (fun _ _ vout -> vout == deref_spec x) inv
= EWrite?.reflect (Repr _ (cat_impl x)) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 1990,
"start_col": 0,
"start_line": 1985
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.ptr p inv -> LowParseWriters.Write Prims.unit | LowParseWriters.Write | [] | [] | [
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.parser",
"LowParseWriters.ptr",
"LowParseWriters.Repr",
"Prims.unit",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_True",
"Prims.eq2",
"LowParseWriters.deref_spec",
"Prims.l_Fals... | [] | false | true | false | false | false | let cat (#inv: memory_invariant) (#p: parser) (x: ptr p inv)
: Write unit parse_empty p (fun _ -> True) (fun _ _ vout -> vout == deref_spec x) inv =
| EWrite?.reflect (Repr _ (cat_impl x)) | false |
LowParseWriters.fsti | LowParseWriters.frame | val frame
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
($inner: (unit -> EWrite a parse_empty p pre post post_err l))
: EWrite a
frame
(frame_... | val frame
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
($inner: (unit -> EWrite a parse_empty p pre post post_err l))
: EWrite a
frame
(frame_... | let frame
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
($inner: unit -> EWrite a parse_empty p pre post post_err l)
: EWrite a frame (frame_out a frame p) (frame_pre frame pre) (frame_post a... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 1508,
"start_col": 0,
"start_line": 1498
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t LowParseWriters.LowParse.parse_empty ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a LowParseWriters.LowParse.parse_empty p pre ->
post_err: LowParseWriters.post_err_t LowParseWriters.LowPars... | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.frame_repr",
"LowParseWriters.frame_out",
"LowParseWriters.frame_pre",
"L... | [] | false | true | false | false | false | let frame
(a: Type)
(frame: parser)
(pre: pre_t parse_empty)
(p: parser)
(post: post_t a parse_empty p pre)
(post_err: post_err_t parse_empty pre)
(l: memory_invariant)
($inner: (unit -> EWrite a parse_empty p pre post post_err l))
: EWrite a
frame
(frame_... | frame_repr a frame pre p post post_err l inner () | false |
Steel.Effect.Atomic.fst | Steel.Effect.Atomic.bind_opaque | val bind_opaque (a:Type) (b:Type)
(opened_invariants:inames)
(o1:eqtype_as_type observability)
(o2:eqtype_as_type observability)
(#framed_f:eqtype_as_type bool)
(#framed_g:eqtype_as_type bool)
(#pre_f:pre_t) (#post_f:post_t a)
(#req_f:req_t pre_f) (#ens_f:ens_t pre_f a post_f)
(#pre_g:a -> pre_t) (#post... | val bind_opaque (a:Type) (b:Type)
(opened_invariants:inames)
(o1:eqtype_as_type observability)
(o2:eqtype_as_type observability)
(#framed_f:eqtype_as_type bool)
(#framed_g:eqtype_as_type bool)
(#pre_f:pre_t) (#post_f:post_t a)
(#req_f:req_t pre_f) (#ens_f:ens_t pre_f a post_f)
(#pre_g:a -> pre_t) (#post... | let bind_opaque a b opened o1 o2 #framed_f #framed_g #pre_f #post_f #req_f #ens_f #pre_g #post_g #req_g #ens_g #frame_f #frame_g #post #_ #_ #p #p2 f g =
fun frame ->
let m0:full_mem = NMSTTotal.get () in
let h0 = mk_rmem (pre_f `star` frame_f) (core_mem m0) in
let x = frame00 f frame_f frame in
l... | {
"file_name": "lib/steel/Steel.Effect.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 271,
"start_col": 0,
"start_line": 196
} | (*
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.Semantics.Hoare.MST.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.fst.checked",
"Steel.Effect.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMSTTotal.fst.che... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.Semantics.Hoare.MST",
"short_module": "Sem"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Type ->
b: Type ->
opened_invariants: Steel.Memory.inames ->
o1: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability ->
o2: FStar.Pervasives.eqtype_as_type Steel.Effect.Common.observability ->
f: Steel.Effect.Atomic.repr a framed_f opened_invariants o1 pre_f post_f req_f ens_f ... | Prims.Pure | [] | [] | [
"Steel.Memory.inames",
"FStar.Pervasives.eqtype_as_type",
"Steel.Effect.Common.observability",
"Prims.bool",
"Steel.Effect.Common.pre_t",
"Steel.Effect.Common.post_t",
"Steel.Effect.Common.req_t",
"Steel.Effect.Common.ens_t",
"Steel.Effect.Common.vprop",
"Prims.squash",
"Steel.Effect.Common.mayb... | [] | false | false | false | false | false | let bind_opaque
a
b
opened
o1
o2
#framed_f
#framed_g
#pre_f
#post_f
#req_f
#ens_f
#pre_g
#post_g
#req_g
#ens_g
#frame_f
#frame_g
#post
#_
#_
#p
#p2
f
g
=
| fun frame ->
let m0:full_mem = NMSTTotal.get () in
let h0 = mk_rmem (pre_f `star` frame_f) (core_mem m0) in
let x = frame00 f frame_f frame in
let m1:full_mem = NMSTTotal.get () in
let h1 = mk_rmem ((post_f x) `star` frame_f) (core_mem m1) in
let h1' = mk_rmem ((pre_g x) `star` (frame_g x)) (core_mem m1) in... | false |
LowParseWriters.fsti | LowParseWriters.frame2_spec | val frame2_spec
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: (unit -> EWrite a ppre p pre post post_err l))
: Tot
(repr_spec a
(frame `parse_pair` ppr... | val frame2_spec
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: (unit -> EWrite a ppre p pre post post_err l))
: Tot
(repr_spec a
(frame `parse_pair` ppr... | let frame2_spec
(a: Type)
(frame: parser)
(ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: unit -> EWrite a ppre p pre post post_err l)
: Tot (repr_spec a (frame `parse_pair` ppre) (frame_out a frame p) (frame2_pre f... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 1697,
"start_col": 0,
"start_line": 1683
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
ppre: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t ppre ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a ppre p pre ->
post_err: LowParseWriters.post_err_t ppre pre ->
l: LowParseWriters.memory_... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.LowParse.parse_pair",
"LowParseWriters.destr_repr_spec",
"LowPa... | [] | false | false | false | false | false | let frame2_spec
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: (unit -> EWrite a ppre p pre post post_err l))
: Tot
(repr_spec a
(frame `parse_pair` ppr... | fun (fr, w_in) ->
match destr_repr_spec a ppre p pre post post_err l inner w_in with
| Correct (v, w) -> Correct (v, (fr, w))
| Error e -> Error e | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.set_snoc | val set_snoc (#t: eqtype) (q: FStar.Set.set t) (a: t)
: Pure (nonempty_set t)
(requires True)
(ensures
(fun s ->
(forall (x: t). {:pattern FStar.Set.mem x s}
FStar.Set.mem x s == (x = a || FStar.Set.mem x q)))) | val set_snoc (#t: eqtype) (q: FStar.Set.set t) (a: t)
: Pure (nonempty_set t)
(requires True)
(ensures
(fun s ->
(forall (x: t). {:pattern FStar.Set.mem x s}
FStar.Set.mem x s == (x = a || FStar.Set.mem x q)))) | let set_snoc // for associativity reasons
(#t: eqtype) (q: FStar.Set.set t) (a: t) : Pure (nonempty_set t)
(requires True)
(ensures (fun s ->
(forall (x: t). {:pattern FStar.Set.mem x s} FStar.Set.mem x s == (x = a || FStar.Set.mem x q))
))
= q `FStar.Set.union` FStar.Set.singleton a | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 43,
"end_line": 29,
"start_col": 0,
"start_line": 23
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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 | q: FStar.Set.set t -> a: t -> Prims.Pure (Pulse.C.Types.UserStruct.nonempty_set t) | Prims.Pure | [] | [] | [
"Prims.eqtype",
"FStar.Set.set",
"FStar.Set.union",
"FStar.Set.singleton",
"Pulse.C.Types.UserStruct.nonempty_set",
"Prims.l_True",
"Prims.l_Forall",
"Prims.eq2",
"Prims.bool",
"FStar.Set.mem",
"Prims.op_BarBar",
"Prims.op_Equality"
] | [] | false | false | false | false | false | let set_snoc (#t: eqtype) (q: FStar.Set.set t) (a: t)
: Pure (nonempty_set t)
(requires True)
(ensures
(fun s ->
(forall (x: t). {:pattern FStar.Set.mem x s}
FStar.Set.mem x s == (x = a || FStar.Set.mem x q)))) =
| q `FStar.Set.union` (FStar.Set.singleton a) | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_compose | val valid_rewrite_compose
(p1 p2: parser)
(precond12: pre_t p1)
(f12: (x: Parser?.t p1 {precond12 x} -> GTot (Parser?.t p2)))
(v12: valid_rewrite_t p1 p2 precond12 f12)
(p3: parser)
(precond23: pre_t p2)
(f23: (x: Parser?.t p2 {precond23 x} -> GTot (Parser?.t p3)))
(v23: ... | val valid_rewrite_compose
(p1 p2: parser)
(precond12: pre_t p1)
(f12: (x: Parser?.t p1 {precond12 x} -> GTot (Parser?.t p2)))
(v12: valid_rewrite_t p1 p2 precond12 f12)
(p3: parser)
(precond23: pre_t p2)
(f23: (x: Parser?.t p2 {precond23 x} -> GTot (Parser?.t p3)))
(v23: ... | let valid_rewrite_compose
(p1: parser)
(p2: parser)
(precond12: pre_t p1)
(f12: (x: Parser?.t p1 { precond12 x }) -> GTot (Parser?.t p2))
(v12: valid_rewrite_t p1 p2 precond12 f12)
(p3: parser)
(precond23: pre_t p2)
(f23: (x: Parser?.t p2 { precond23 x }) -> GTot (Parser?.t p3))
(v23: valid_rewrite_t ... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 1813,
"start_col": 0,
"start_line": 1793
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
precond12: LowParseWriters.pre_t p1 ->
f12: (x: Parser?.t p1 {precond12 x} -> Prims.GTot (Parser?.t p2)) ->
v12: LowParseWriters.valid_rewrite_t p1 p2 precond12 f12 ->
p3: LowParseWriters.LowParse.parser ->
precon... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.valid_rewrite_t",
"LowParseWriters.Mkvalid_rewrite_t",
"Prims.l_and",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.UInt32.t",
"Lo... | [] | false | false | false | false | false | let valid_rewrite_compose
(p1 p2: parser)
(precond12: pre_t p1)
(f12: (x: Parser?.t p1 {precond12 x} -> GTot (Parser?.t p2)))
(v12: valid_rewrite_t p1 p2 precond12 f12)
(p3: parser)
(precond23: pre_t p2)
(f23: (x: Parser?.t p2 {precond23 x} -> GTot (Parser?.t p3)))
(v23: ... | {
valid_rewrite_valid
=
(fun h b pos pos' ->
v12.valid_rewrite_valid h b pos pos';
v23.valid_rewrite_valid h b pos pos');
valid_rewrite_size
=
(fun x ->
v12.valid_rewrite_size x;
v23.valid_rewrite_size (f12 x))
} | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite | val valid_rewrite
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(inv: memory_invariant)
(v: valid_rewrite_t p1 p2 precond f)
: Write unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) inv | val valid_rewrite
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(inv: memory_invariant)
(v: valid_rewrite_t p1 p2 precond f)
: Write unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) inv | let valid_rewrite
(p1: parser)
(p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 { precond x }) -> GTot (Parser?.t p2))
(inv: memory_invariant)
(v: valid_rewrite_t p1 p2 precond f)
: Write unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) inv
= EWrite?.reflect (valid_rewrite_repr p1 ... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 1856,
"start_col": 0,
"start_line": 1848
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
precond: LowParseWriters.pre_t p1 ->
f: (x: Parser?.t p1 {precond x} -> Prims.GTot (Parser?.t p2)) ->
inv: LowParseWriters.memory_invariant ->
v: LowParseWriters.valid_rewrite_t p1 p2 precond f
-> LowParseWriters.Wr... | LowParseWriters.Write | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.memory_invariant",
"LowParseWriters.valid_rewrite_t",
"LowParseWriters.valid_rewrite_repr",
"Prims.unit",
"Prims.l_and",
"Prims.eq2"
] | [] | false | true | false | false | false | let valid_rewrite
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
(inv: memory_invariant)
(v: valid_rewrite_t p1 p2 precond f)
: Write unit p1 (p2) precond (fun vin _ vout -> precond vin /\ f vin == vout) inv =
| EWrite?.reflect (valid_rewrite_repr p1 p2 precond f v inv) | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.nonempty_set_nonempty_type | val nonempty_set_nonempty_type (x: string) (s: Set.set string)
: Lemma (requires (x `Set.mem` s)) (ensures (exists (x: field_t s). True)) | val nonempty_set_nonempty_type (x: string) (s: Set.set string)
: Lemma (requires (x `Set.mem` s)) (ensures (exists (x: field_t s). True)) | let nonempty_set_nonempty_type (x: string) (s: Set.set string) : Lemma
(requires (x `Set.mem` s))
(ensures (exists (x: field_t s) . True))
= Classical.exists_intro (fun (_: field_t s) -> True) x | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 55,
"end_line": 51,
"start_col": 0,
"start_line": 48
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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: Prims.string -> s: FStar.Set.set Prims.string
-> FStar.Pervasives.Lemma (requires FStar.Set.mem x s)
(ensures exists (x: Pulse.C.Types.UserStruct.field_t s). Prims.l_True) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.string",
"FStar.Set.set",
"FStar.Classical.exists_intro",
"Pulse.C.Types.UserStruct.field_t",
"Prims.l_True",
"Prims.unit",
"Prims.b2t",
"FStar.Set.mem",
"Prims.squash",
"Prims.l_Exists",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | true | false | false | let nonempty_set_nonempty_type (x: string) (s: Set.set string)
: Lemma (requires (x `Set.mem` s)) (ensures (exists (x: field_t s). True)) =
| Classical.exists_intro (fun (_: field_t s) -> True) x | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_parse_pair_compat_r | val valid_rewrite_parse_pair_compat_r
(p p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
($v: valid_rewrite_t p1 p2 precond f)
: Tot
(valid_rewrite_t (p1 `parse_pair` p)
(p2 `parse_pair` p)
(fun (x, _) -> precond x)
(fu... | val valid_rewrite_parse_pair_compat_r
(p p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
($v: valid_rewrite_t p1 p2 precond f)
: Tot
(valid_rewrite_t (p1 `parse_pair` p)
(p2 `parse_pair` p)
(fun (x, _) -> precond x)
(fu... | let valid_rewrite_parse_pair_compat_r
(p: parser)
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 { precond x }) -> GTot (Parser?.t p2))
($v: valid_rewrite_t p1 p2 precond f)
: Tot (valid_rewrite_t (p1 `parse_pair` p) (p2 `parse_pair` p) (fun (x, _) -> precond x) (fun (x, y) -> (f x, y)))
= {
valid... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 1933,
"start_col": 0,
"start_line": 1916
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser ->
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
precond: LowParseWriters.pre_t p1 ->
f: (x: Parser?.t p1 {precond x} -> Prims.GTot (Parser?.t p2)) ->
$v: LowParseWriters.valid_rewrite_t p1 p2 precond f
-> LowParseWriters.vali... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.valid_rewrite_t",
"LowParseWriters.Mkvalid_rewrite_t",
"LowParseWriters.LowParse.parse_pair",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Monotonic.HyperStack.mem",
"LowSta... | [] | false | false | false | false | false | let valid_rewrite_parse_pair_compat_r
(p p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
($v: valid_rewrite_t p1 p2 precond f)
: Tot
(valid_rewrite_t (p1 `parse_pair` p)
(p2 `parse_pair` p)
(fun (x, _) -> precond x)
(fu... | {
valid_rewrite_valid
=
(fun h b pos pos' ->
let posp = valid_parse_pair_inv_spec h p1 p b pos pos' in
v.valid_rewrite_valid h b pos posp;
valid_parse_pair p2 p h b pos posp pos');
valid_rewrite_size
=
(fun xy ->
let x, _ = (xy <: Parser?.t (p1 `parse_pair` p)) in
v.valid_rewri... | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_parse_pair_compat_l | val valid_rewrite_parse_pair_compat_l
(p p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
($v: valid_rewrite_t p1 p2 precond f)
: Tot
(valid_rewrite_t (p `parse_pair` p1)
(p `parse_pair` p2)
(fun (_, x) -> precond x)
(fu... | val valid_rewrite_parse_pair_compat_l
(p p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
($v: valid_rewrite_t p1 p2 precond f)
: Tot
(valid_rewrite_t (p `parse_pair` p1)
(p `parse_pair` p2)
(fun (_, x) -> precond x)
(fu... | let valid_rewrite_parse_pair_compat_l
(p: parser)
(p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 { precond x }) -> GTot (Parser?.t p2))
($v: valid_rewrite_t p1 p2 precond f)
: Tot (valid_rewrite_t (p `parse_pair` p1) (p `parse_pair` p2) (fun (_, x) -> precond x) (fun (x, y) -> (x, f y)))
= {
valid... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 1914,
"start_col": 0,
"start_line": 1897
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.LowParse.parser ->
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
precond: LowParseWriters.pre_t p1 ->
f: (x: Parser?.t p1 {precond x} -> Prims.GTot (Parser?.t p2)) ->
$v: LowParseWriters.valid_rewrite_t p1 p2 precond f
-> LowParseWriters.vali... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.valid_rewrite_t",
"LowParseWriters.Mkvalid_rewrite_t",
"LowParseWriters.LowParse.parse_pair",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Monotonic.HyperStack.mem",
"LowSta... | [] | false | false | false | false | false | let valid_rewrite_parse_pair_compat_l
(p p1 p2: parser)
(precond: pre_t p1)
(f: (x: Parser?.t p1 {precond x} -> GTot (Parser?.t p2)))
($v: valid_rewrite_t p1 p2 precond f)
: Tot
(valid_rewrite_t (p `parse_pair` p1)
(p `parse_pair` p2)
(fun (_, x) -> precond x)
(fu... | {
valid_rewrite_valid
=
(fun h b pos pos' ->
let posq = valid_parse_pair_inv_spec h p p1 b pos pos' in
v.valid_rewrite_valid h b posq pos';
valid_parse_pair p p2 h b pos posq pos');
valid_rewrite_size
=
(fun xy ->
let _, x = (xy <: Parser?.t (p `parse_pair` p1)) in
v.valid_rewr... | false |
LowParseWriters.fsti | LowParseWriters.frame2 | val frame2
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
($inner: (unit -> EWrite a ppre p pre post post_err l))
: EWrite a
(frame `parse_pair` ppre)
(frame_ou... | val frame2
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
($inner: (unit -> EWrite a ppre p pre post post_err l))
: EWrite a
(frame `parse_pair` ppre)
(frame_ou... | let frame2
(a: Type)
(frame: parser)
(ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
($inner: unit -> EWrite a ppre p pre post post_err l)
: EWrite a (frame `parse_pair` ppre) (frame_out a frame p) (frame2_pre frame ppre pr... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 57,
"end_line": 1741,
"start_col": 0,
"start_line": 1730
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
ppre: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t ppre ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a ppre p pre ->
post_err: LowParseWriters.post_err_t ppre pre ->
l: LowParseWriters.memory_... | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.frame2_repr",
"LowParseWriters.LowParse.parse_pair",
"LowParseWriters.frame_out",
"LowParseWriters.frame2_pre",
"... | [] | false | true | false | false | false | let frame2
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
($inner: (unit -> EWrite a ppre p pre post post_err l))
: EWrite a
(frame `parse_pair` ppre)
(frame_ou... | frame2_repr a frame ppre pre p post post_err l inner () | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.set_aux | val set_aux
(#t: Type)
(sd: struct_def t)
(x: t)
(f: field_t sd.fields)
(v: sd.field_desc.fd_type f)
(f': field_t sd.fields)
: Tot (sd.field_desc.fd_type f') | val set_aux
(#t: Type)
(sd: struct_def t)
(x: t)
(f: field_t sd.fields)
(v: sd.field_desc.fd_type f)
(f': field_t sd.fields)
: Tot (sd.field_desc.fd_type f') | let set_aux
(#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f) (f': field_t sd.fields)
: Tot (sd.field_desc.fd_type f')
= if f = f' then v else sd.get x f' | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 35,
"end_line": 57,
"start_col": 0,
"start_line": 54
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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 |
sd: Pulse.C.Types.UserStruct.struct_def t ->
x: t ->
f: Pulse.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd) ->
v: Mkfield_description_gen_t?.fd_type (Mkstruct_def?.field_desc sd) f ->
f': Pulse.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd)
-> Mkfield_description_gen_t?.fd_type (Mkst... | Prims.Tot | [
"total"
] | [] | [
"Pulse.C.Types.UserStruct.struct_def",
"Pulse.C.Types.UserStruct.field_t",
"Pulse.C.Types.UserStruct.__proj__Mkstruct_def__item__fields",
"Pulse.C.Types.Struct.Aux.__proj__Mkfield_description_gen_t__item__fd_type",
"Pulse.C.Types.UserStruct.__proj__Mkstruct_def__item__field_desc",
"Prims.op_Equality",
"... | [] | false | false | false | false | false | let set_aux
(#t: Type)
(sd: struct_def t)
(x: t)
(f: field_t sd.fields)
(v: sd.field_desc.fd_type f)
(f': field_t sd.fields)
: Tot (sd.field_desc.fd_type f') =
| if f = f' then v else sd.get x f' | false |
LowParseWriters.fsti | LowParseWriters.frame2_repr | val frame2_repr
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: (unit -> EWrite a ppre p pre post post_err l))
: Tot
(unit
-> EWrite a
(frame... | val frame2_repr
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: (unit -> EWrite a ppre p pre post post_err l))
: Tot
(unit
-> EWrite a
(frame... | let frame2_repr
(a: Type)
(frame: parser)
(ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: unit -> EWrite a ppre p pre post post_err l)
: Tot (unit -> EWrite a (frame `parse_pair` ppre) (frame_out a frame p) (frame2_... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 1727,
"start_col": 0,
"start_line": 1713
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
frame: LowParseWriters.LowParse.parser ->
ppre: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t ppre ->
p: LowParseWriters.LowParse.parser ->
post: LowParseWriters.post_t a ppre p pre ->
post_err: LowParseWriters.post_err_t ppre pre ->
l: LowParseWriters.memory_... | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.mk_repr",
"LowParseWriters.LowParse.parse_pair",
"LowParseWriters.frame_out",
"LowParseWriters.frame2_pre",
"LowP... | [] | false | true | false | false | false | let frame2_repr
(a: Type)
(frame ppre: parser)
(pre: pre_t ppre)
(p: parser)
(post: post_t a ppre p pre)
(post_err: post_err_t ppre pre)
(l: memory_invariant)
(inner: (unit -> EWrite a ppre p pre post post_err l))
: Tot
(unit
-> EWrite a
(frame... | mk_repr a
(frame `parse_pair` ppre)
(frame_out a frame p)
(frame2_pre frame ppre pre)
(frame2_post a frame ppre pre p post)
(frame2_post_err frame ppre pre post_err)
l
(frame2_spec a frame ppre pre p post post_err l inner)
(frame2_impl a frame ppre pre p post post_err l inner) | false |
LowParseWriters.fsti | LowParseWriters.valid_rewrite_parse_pair_assoc_1 | val valid_rewrite_parse_pair_assoc_1 (p1 p2 p3: parser)
: Tot
(valid_rewrite_t ((p1 `parse_pair` p2) `parse_pair` p3)
(p1 `parse_pair` (p2 `parse_pair` p3))
(fun _ -> True)
(fun ((x1, x2), x3) -> (x1, (x2, x3)))) | val valid_rewrite_parse_pair_assoc_1 (p1 p2 p3: parser)
: Tot
(valid_rewrite_t ((p1 `parse_pair` p2) `parse_pair` p3)
(p1 `parse_pair` (p2 `parse_pair` p3))
(fun _ -> True)
(fun ((x1, x2), x3) -> (x1, (x2, x3)))) | let valid_rewrite_parse_pair_assoc_1
(p1 p2 p3: parser)
: Tot (valid_rewrite_t ((p1 `parse_pair` p2) `parse_pair` p3) (p1 `parse_pair` (p2 `parse_pair` p3)) (fun _ -> True) (fun ((x1, x2), x3) -> (x1, (x2, x3))))
= {
valid_rewrite_valid = (fun h b pos pos' ->
let pos3 = valid_parse_pair_inv_spec h (p1 `pars... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 1882,
"start_col": 0,
"start_line": 1871
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 |
p1: LowParseWriters.LowParse.parser ->
p2: LowParseWriters.LowParse.parser ->
p3: LowParseWriters.LowParse.parser
-> LowParseWriters.valid_rewrite_t (LowParseWriters.LowParse.parse_pair (LowParseWriters.LowParse.parse_pair
p1
p2)
p3)
(LowParseWriters.LowParse.p... | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.Mkvalid_rewrite_t",
"LowParseWriters.LowParse.parse_pair",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Prims.l_True",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.... | [] | false | false | false | false | false | let valid_rewrite_parse_pair_assoc_1 (p1 p2 p3: parser)
: Tot
(valid_rewrite_t ((p1 `parse_pair` p2) `parse_pair` p3)
(p1 `parse_pair` (p2 `parse_pair` p3))
(fun _ -> True)
(fun ((x1, x2), x3) -> (x1, (x2, x3)))) =
| {
valid_rewrite_valid
=
(fun h b pos pos' ->
let pos3 = valid_parse_pair_inv_spec h (p1 `parse_pair` p2) p3 b pos pos' in
let pos2 = valid_parse_pair_inv_spec h p1 p2 b pos pos3 in
valid_parse_pair p2 p3 h b pos2 pos3 pos';
valid_parse_pair p1 (p2 `parse_pair` p3) h b pos pos2 pos');
val... | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.struct_field | val struct_field
(#t: Type)
(#sd: struct_def t)
(#v: Ghost.erased t)
(r: ref (struct_typedef sd))
(field: field_t sd.fields)
: stt (ref #(norm norm_field_steps (sd.field_desc.fd_type field))
(sd.field_desc.fd_typedef field))
(pts_to r v)
(fun r' ->
(has_... | val struct_field
(#t: Type)
(#sd: struct_def t)
(#v: Ghost.erased t)
(r: ref (struct_typedef sd))
(field: field_t sd.fields)
: stt (ref #(norm norm_field_steps (sd.field_desc.fd_type field))
(sd.field_desc.fd_typedef field))
(pts_to r v)
(fun r' ->
(has_... | let struct_field
(#t: Type)
(#sd: struct_def t)
(#v: Ghost.erased t)
(r: ref (struct_typedef sd))
(field: field_t sd.fields)
: stt (ref #(norm norm_field_steps (sd.field_desc.fd_type field)) (sd.field_desc.fd_typedef field))
(pts_to r v)
(fun r' -> has_struct_field r field r' ** pts_to r (set sd v fie... | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 36,
"end_line": 174,
"start_col": 0,
"start_line": 161
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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 |
r: Pulse.C.Types.Base.ref (Pulse.C.Types.UserStruct.struct_typedef sd) ->
field: Pulse.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd)
-> Pulse.Lib.Core.stt (Pulse.C.Types.Base.ref (Mkfield_description_gen_t?.fd_typedef (Mkstruct_def?.field_desc
sd)
field))
(Pulse.C... | Prims.Tot | [
"total"
] | [] | [
"Pulse.C.Types.UserStruct.struct_def",
"FStar.Ghost.erased",
"Pulse.C.Types.Base.ref",
"Pulse.C.Types.UserStruct.struct_typedef",
"Pulse.C.Types.UserStruct.field_t",
"Pulse.C.Types.UserStruct.__proj__Mkstruct_def__item__fields",
"Pulse.C.Types.UserStruct.struct_field0",
"FStar.Pervasives.norm",
"Pul... | [] | false | false | false | false | false | let struct_field
(#t: Type)
(#sd: struct_def t)
(#v: Ghost.erased t)
(r: ref (struct_typedef sd))
(field: field_t sd.fields)
: stt (ref #(norm norm_field_steps (sd.field_desc.fd_type field))
(sd.field_desc.fd_typedef field))
(pts_to r v)
(fun r' ->
(has_... | struct_field0 (norm norm_field_steps (sd.field_desc.fd_type field))
r
field
(sd.field_desc.fd_typedef field) | false |
Pulse.C.Types.UserStruct.fsti | Pulse.C.Types.UserStruct.get_set | val get_set
(#t: Type)
(sd: struct_def t)
(x: t)
(f: field_t sd.fields)
(v: sd.field_desc.fd_type f)
(f': field_t sd.fields)
: Lemma (sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f'))
[SMTPat (sd.get (set sd x f v) f')] | val get_set
(#t: Type)
(sd: struct_def t)
(x: t)
(f: field_t sd.fields)
(v: sd.field_desc.fd_type f)
(f': field_t sd.fields)
: Lemma (sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f'))
[SMTPat (sd.get (set sd x f v) f')] | let get_set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f) (f' : field_t sd.fields) : Lemma
(sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f'))
[SMTPat (sd.get (set sd x f v) f')]
= sd.get_mk (set_aux sd x f v) f' | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.UserStruct.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 66,
"start_col": 0,
"start_line": 63
} | module Pulse.C.Types.UserStruct
open Pulse.Lib.Pervasives
open Pulse.C.Types.Struct.Aux
module Set = FStar.Set
(* This library allows the user to define their own struct type, with
a constructor from field values, and a destructor to field values for
each field. This may be necessary for recursive structs *)
let set... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Struct.Aux.fsti.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,... | [
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "Set"
},
{
"abbrev": false,
"full_module": "Pulse.C.Types.Struct.Aux",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"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 |
sd: Pulse.C.Types.UserStruct.struct_def t ->
x: t ->
f: Pulse.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd) ->
v: Mkfield_description_gen_t?.fd_type (Mkstruct_def?.field_desc sd) f ->
f': Pulse.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd)
-> FStar.Pervasives.Lemma
(ensures
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Pulse.C.Types.UserStruct.struct_def",
"Pulse.C.Types.UserStruct.field_t",
"Pulse.C.Types.UserStruct.__proj__Mkstruct_def__item__fields",
"Pulse.C.Types.Struct.Aux.__proj__Mkfield_description_gen_t__item__fd_type",
"Pulse.C.Types.UserStruct.__proj__Mkstruct_def__item__field_desc",
"Pulse.C.Types.UserStruc... | [] | true | false | true | false | false | let get_set
(#t: Type)
(sd: struct_def t)
(x: t)
(f: field_t sd.fields)
(v: sd.field_desc.fd_type f)
(f': field_t sd.fields)
: Lemma (sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f'))
[SMTPat (sd.get (set sd x f v) f')] =
| sd.get_mk (set_aux sd x f v) f' | false |
LowParseWriters.fsti | LowParseWriters.recast_writer_repr | val recast_writer_repr
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(unit
-> EWrite a
r_in
... | val recast_writer_repr
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(unit
-> EWrite a
r_in
... | let recast_writer_repr
(a:Type u#x)
(r_in: parser)
(r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: unit -> EWrite a r_in r_out pre post post_err l)
: Tot (unit -> EWrite a r_in r_out pre (recast_writer_post a r_in r_out pre post... | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 1618,
"start_col": 0,
"start_line": 1606
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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 ->
r_in: LowParseWriters.LowParse.parser ->
r_out: LowParseWriters.LowParse.parser ->
pre: LowParseWriters.pre_t r_in ->
post: LowParseWriters.post_t a r_in r_out pre ->
post_err: LowParseWriters.post_err_t r_in pre ->
l: LowParseWriters.memory_invariant ->
f: (_: Prims.unit -> ... | LowParseWriters.EWrite | [] | [] | [
"LowParseWriters.LowParse.parser",
"LowParseWriters.pre_t",
"LowParseWriters.post_t",
"LowParseWriters.post_err_t",
"LowParseWriters.memory_invariant",
"Prims.unit",
"LowParseWriters.mk_repr",
"LowParseWriters.recast_writer_post",
"LowParseWriters.recast_writer_post_err",
"LowParseWriters.recast_w... | [] | false | true | false | false | false | let recast_writer_repr
(a: Type u#x)
(r_in r_out: parser)
(pre: pre_t r_in)
(post: post_t a r_in r_out pre)
(post_err: post_err_t r_in pre)
(l: memory_invariant)
(f: (unit -> EWrite a r_in r_out pre post post_err l))
: Tot
(unit
-> EWrite a
r_in
... | mk_repr a
r_in
r_out
pre
(recast_writer_post a r_in r_out pre post post_err l f)
(recast_writer_post_err a r_in r_out pre post post_err l f)
l
(recast_writer_spec a r_in r_out pre post post_err l f)
(recast_writer_impl a r_in r_out pre post post_err l f) | false |
CanonDeep.fst | CanonDeep.pack_fv' | val pack_fv' (n: name) : term | val pack_fv' (n: name) : term | let pack_fv' (n:name) : term = pack_ln (Tv_FVar (pack_fv n)) | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 142,
"start_col": 0,
"start_line": 142
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"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 | n: FStar.Stubs.Reflection.Types.name -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.name",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_FVar",
"FStar.Stubs.Reflection.V2.Builtins.pack_fv",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let pack_fv' (n: name) : term =
| pack_ln (Tv_FVar (pack_fv n)) | false |
CanonDeep.fst | CanonDeep.canon_expr' | val canon_expr' (e: expr) : Tot expr | val canon_expr' (e: expr) : Tot expr | let canon_expr' (e:expr) : Tot expr = e | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 140,
"start_col": 0,
"start_line": 140
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"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 | e: FStar.Reflection.V2.Arith.expr -> FStar.Reflection.V2.Arith.expr | Prims.Tot | [
"total"
] | [] | [
"FStar.Reflection.V2.Arith.expr"
] | [] | false | false | false | true | false | let canon_expr' (e: expr) : Tot expr =
| e | false |
LowParseWriters.fsti | LowParseWriters.cat_spec | val cat_spec (#inv: memory_invariant) (#p: parser) (x: ptr p inv)
: Tot
(repr_spec unit
parse_empty
p
(fun _ -> True)
(fun _ _ vout -> vout == deref_spec x)
(fun _ -> False)) | val cat_spec (#inv: memory_invariant) (#p: parser) (x: ptr p inv)
: Tot
(repr_spec unit
parse_empty
p
(fun _ -> True)
(fun _ _ vout -> vout == deref_spec x)
(fun _ -> False)) | let cat_spec
(#inv: memory_invariant)
(#p: parser)
(x: ptr p inv)
: Tot (repr_spec unit parse_empty p (fun _ -> True) (fun _ _ vout -> vout == deref_spec x) (fun _ -> False))
= fun _ -> Correct ((), deref_spec x) | {
"file_name": "examples/layeredeffects/LowParseWriters.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 1975,
"start_col": 0,
"start_line": 1970
} | (*
Copyright 2019 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": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParseWriters.LowParse.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"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: LowParseWriters.ptr p inv
-> LowParseWriters.repr_spec Prims.unit
LowParseWriters.LowParse.parse_empty
p
(fun _ -> Prims.l_True)
(fun _ _ vout -> vout == LowParseWriters.deref_spec x)
(fun _ -> Prims.l_False) | Prims.Tot | [
"total"
] | [] | [
"LowParseWriters.memory_invariant",
"LowParseWriters.LowParse.parser",
"LowParseWriters.ptr",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"LowParseWriters.LowParse.parse_empty",
"LowParseWriters.Correct",
"FStar.Pervasives.Native.tuple2",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"... | [] | false | false | false | false | false | let cat_spec (#inv: memory_invariant) (#p: parser) (x: ptr p inv)
: Tot
(repr_spec unit
parse_empty
p
(fun _ -> True)
(fun _ _ vout -> vout == deref_spec x)
(fun _ -> False)) =
| fun _ -> Correct ((), deref_spec x) | false |
Steel.Effect.Atomic.fst | Steel.Effect.Atomic.intro_vrewrite | val intro_vrewrite (#opened:inames)
(v: vprop) (#t: Type) (f: (normal (t_of v) -> GTot t))
: SteelGhost unit opened v (fun _ -> vrewrite v f)
(fun _ -> True) (fun h _ h' -> h' (vrewrite v f) == f (h v)) | val intro_vrewrite (#opened:inames)
(v: vprop) (#t: Type) (f: (normal (t_of v) -> GTot t))
: SteelGhost unit opened v (fun _ -> vrewrite v f)
(fun _ -> True) (fun h _ h' -> h' (vrewrite v f) == f (h v)) | let intro_vrewrite
v #t f
= let x : Ghost.erased (t_of v) = gget v in
let x' : Ghost.erased t = Ghost.hide (f (Ghost.reveal x)) in
change_slprop
v
(vrewrite v f)
x
x'
(fun m ->
vrewrite_sel_eq v f m
) | {
"file_name": "lib/steel/Steel.Effect.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 853,
"start_col": 0,
"start_line": 842
} | (*
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.Semantics.Hoare.MST.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.fst.checked",
"Steel.Effect.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMSTTotal.fst.che... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Steel.Effect.Common.vprop ->
f: (_: Steel.Effect.Common.normal (Steel.Effect.Common.t_of v) -> Prims.GTot t)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Steel.Effect.Atomic.change_slprop",
"Steel.Effect.Common.vrewrite",
"Steel.Memory.mem",
"Steel.Effect.Common.vrewrite_sel_eq",
"Prims.unit",
"FStar.Ghost.erased",
"FStar.Ghost.hide",
... | [] | false | true | false | false | false | let intro_vrewrite v #t f =
| let x:Ghost.erased (t_of v) = gget v in
let x':Ghost.erased t = Ghost.hide (f (Ghost.reveal x)) in
change_slprop v (vrewrite v f) x x' (fun m -> vrewrite_sel_eq v f m) | false |
CanonDeep.fst | CanonDeep.canon_point | val canon_point (e: expr) : Dv expr | val canon_point (e: expr) : Dv expr | let rec canon_point (e:expr) : Dv expr =
match e with
// Evaluate constants
| Plus (Lit a) (Lit b) -> Lit (a + b)
| Mult (Lit a) (Lit b) -> Lit (a * b)
// Forget about negations
| Neg e -> canon_point (Mult (Lit (-1)) e)
// Distribute
| Mult a (Plus b c) ->
let l = canon_point (Mult a b) in
... | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 10,
"end_line": 115,
"start_col": 0,
"start_line": 44
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"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 | e: FStar.Reflection.V2.Arith.expr -> FStar.Pervasives.Dv FStar.Reflection.V2.Arith.expr | FStar.Pervasives.Dv | [] | [] | [
"FStar.Reflection.V2.Arith.expr",
"Prims.int",
"FStar.Reflection.V2.Arith.Lit",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"CanonDeep.canon_point",
"FStar.Reflection.V2.Arith.Mult",
"Prims.op_Minus",
"FStar.Reflection.V2.Arith.Plus",
"FStar.Order.gt",
"FStar.Reflection.V2.Arith.compare_expr",
"... | [
"recursion"
] | false | true | false | false | false | let rec canon_point (e: expr) : Dv expr =
| match e with
| Plus (Lit a) (Lit b) -> Lit (a + b)
| Mult (Lit a) (Lit b) -> Lit (a * b)
| Neg e -> canon_point (Mult (Lit (- 1)) e)
| Mult a (Plus b c) ->
let l = canon_point (Mult a b) in
let r = canon_point (Mult a c) in
canon_point (Plus l r)
| Mult (Plus a b) c ->
let l = canon_point (Mult a c) in
let r ... | false |
CanonDeep.fst | CanonDeep.check_canon_deep | val check_canon_deep : _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | let check_canon_deep () =
canon_deep ();
or_else qed
(fun () -> dump "`canon deep` left the following goals";
fail "") | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 203,
"start_col": 0,
"start_line": 199
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.Tactics.V2.Derived.or_else",
"FStar.Tactics.V2.Derived.qed",
"FStar.Tactics.V2.Derived.fail",
"FStar.Stubs.Tactics.V2.Builtins.dump",
"CanonDeep.canon_deep"
] | [] | false | true | false | false | false | let check_canon_deep () =
| canon_deep ();
or_else qed
(fun () ->
dump "`canon deep` left the following goals";
fail "") | false | |
CanonDeep.fst | CanonDeep.canon_term | val canon_term (t: term) : Tac expr | val canon_term (t: term) : Tac expr | let canon_term (t:term) : Tac expr = canon_expr' (term_to_expr t) | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 177,
"start_col": 0,
"start_line": 177
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"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 | t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac FStar.Reflection.V2.Arith.expr | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"CanonDeep.canon_expr'",
"FStar.Reflection.V2.Arith.expr",
"CanonDeep.term_to_expr"
] | [] | false | true | false | false | false | let canon_term (t: term) : Tac expr =
| canon_expr' (term_to_expr t) | false |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents_precond' | val copy_buffer_contents_precond' (#t: typ) (a b: buffer t) (h: HS.mem) : GTot Type0 | val copy_buffer_contents_precond' (#t: typ) (a b: buffer t) (h: HS.mem) : GTot Type0 | let copy_buffer_contents_precond'
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(h: HS.mem)
: GTot Type0
= buffer_live h b /\
buffer_readable h a /\
buffer_length b == buffer_length a /\
loc_disjoint (loc_buffer a) (loc_buffer b) | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 32,
"start_col": 0,
"start_line": 23
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
b: FStar.Pointer.Base.buffer t ->
h: FStar.Monotonic.HyperStack.mem
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Pointer.Base.buffer_live",
"FStar.Pointer.Base.buffer_readable",
"Prims.eq2",
"FStar.UInt32.t",
"FStar.Pointer.Base.buffer_length",
"FStar.Pointer.Base.loc_disjoint",
"FStar.Pointer.Bas... | [] | false | false | false | false | true | let copy_buffer_contents_precond' (#t: typ) (a b: buffer t) (h: HS.mem) : GTot Type0 =
| buffer_live h b /\ buffer_readable h a /\ buffer_length b == buffer_length a /\
loc_disjoint (loc_buffer a) (loc_buffer b) | false |
CanonDeep.fst | CanonDeep.canon_deep | val canon_deep: Prims.unit -> Tac unit | val canon_deep: Prims.unit -> Tac unit | let canon_deep () : Tac unit =
norm [];
let g = cur_goal () in
match term_as_formula g with
| Comp c l r -> let el = term_to_expr l in
let er = term_to_expr r in
grewrite l (expr_to_term (canon_expr' el));
grewrite r (expr_to_term (canon_expr' er));
... | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 190,
"start_col": 0,
"start_line": 179
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.Reflection.V2.Formula.comparison",
"FStar.Tactics.NamedView.term",
"FStar.Tactics.V2.Derived.admit1",
"FStar.Stubs.Tactics.V2.Builtins.dump",
"FStar.Tactics.V2.Derived.simpl",
"FStar.Tactics.V2.Derived.grewrite",
"CanonDeep.expr_to_term",
"CanonDeep.canon_expr'",
"FStar.Reflec... | [] | false | true | false | false | false | let canon_deep () : Tac unit =
| norm [];
let g = cur_goal () in
match term_as_formula g with
| Comp c l r ->
let el = term_to_expr l in
let er = term_to_expr r in
grewrite l (expr_to_term (canon_expr' el));
grewrite r (expr_to_term (canon_expr' er));
simpl ();
dump "here I am";
admit1 ();
admit1 ();
admit1 ()
| _ -> idtac () | false |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents_postcond' | val copy_buffer_contents_postcond' (#t: typ) (a b: buffer t) (h h': HS.mem) : GTot Type0 | val copy_buffer_contents_postcond' (#t: typ) (a b: buffer t) (h h': HS.mem) : GTot Type0 | let copy_buffer_contents_postcond'
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(h: HS.mem)
(h' : HS.mem)
: GTot Type0
= copy_buffer_contents_precond' a b h /\
modifies (loc_buffer b) h h' /\
buffer_readable h' b /\
buffer_as_seq h' b == buffer_as_seq h a | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 45,
"start_col": 0,
"start_line": 35
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
b: FStar.Pointer.Base.buffer t ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Pointer.Derived2.copy_buffer_contents_precond'",
"FStar.Pointer.Base.modifies",
"FStar.Pointer.Base.loc_buffer",
"FStar.Pointer.Base.buffer_readable",
"Prims.eq2",
"FStar.Seq.Base.seq",
... | [] | false | false | false | false | true | let copy_buffer_contents_postcond' (#t: typ) (a b: buffer t) (h h': HS.mem) : GTot Type0 =
| copy_buffer_contents_precond' a b h /\ modifies (loc_buffer b) h h' /\ buffer_readable h' b /\
buffer_as_seq h' b == buffer_as_seq h a | false |
CanonDeep.fst | CanonDeep.lem0 | val lem0 : Prims.unit | let lem0 = assert (x * (y * z) == (x * y) * z) by check_canon_deep () | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 70,
"end_line": 205,
"start_col": 0,
"start_line": 205
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"short_module": null
},
{
"abbrev": false,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.unit | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.Effect.assert_by_tactic",
"Prims.eq2",
"Prims.int",
"FStar.Mul.op_Star",
"CanonDeep.x",
"CanonDeep.y",
"CanonDeep.z",
"Prims.unit",
"CanonDeep.check_canon_deep"
] | [] | false | false | false | true | false | let lem0 =
| FStar.Tactics.Effect.assert_by_tactic (x * (y * z) == (x * y) * z)
(fun _ ->
();
check_canon_deep ()) | false | |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents | val copy_buffer_contents
(#t: typ)
(a: buffer t) (* source *)
(idx_a: UInt32.t)
(b: buffer t) (* destination *)
(idx_b: UInt32.t)
(len: UInt32.t)
: HST.Stack unit
(requires (fun h ->
copy_buffer_contents_precond a idx_a b idx_b len h
))
(ensures (fun h0 _ h1 ->
copy_buffer_contents_postcond a ... | val copy_buffer_contents
(#t: typ)
(a: buffer t) (* source *)
(idx_a: UInt32.t)
(b: buffer t) (* destination *)
(idx_b: UInt32.t)
(len: UInt32.t)
: HST.Stack unit
(requires (fun h ->
copy_buffer_contents_precond a idx_a b idx_b len h
))
(ensures (fun h0 _ h1 ->
copy_buffer_contents_postcond a ... | let copy_buffer_contents = copy_buffer_contents' | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 174,
"start_col": 0,
"start_line": 174
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
idx_a: FStar.UInt32.t ->
b: FStar.Pointer.Base.buffer t ->
idx_b: FStar.UInt32.t ->
len: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Pointer.Derived2.copy_buffer_contents'"
] | [] | false | true | false | false | false | let copy_buffer_contents =
| copy_buffer_contents' | false |
CanonDeep.fst | CanonDeep.expr_to_term | val expr_to_term (e: expr) : Tot term | val expr_to_term (e: expr) : Tot term | let rec expr_to_term (e:expr) : Tot term =
match e with
| Atom i t -> t
| Lit i -> pack_ln (Tv_Const (C_Int i))
| Plus l r -> mk_e_app (pack_fv' add_qn) [expr_to_term l; expr_to_term r]
| Minus l r -> mk_e_app (pack_fv' minus_qn) [expr_to_term l; expr_to_term r]
| Mult l r -> mk_e_app (pack_fv' mult_qn) [ex... | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 166,
"start_col": 0,
"start_line": 144
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"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 | e: FStar.Reflection.V2.Arith.expr -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Reflection.V2.Arith.expr",
"Prims.nat",
"FStar.Stubs.Reflection.Types.term",
"Prims.int",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_Const",
"FStar.Stubs.Reflection.V2.Data.C_Int",
"FStar.Reflection.V2.Derived.mk_e_app",
"CanonDeep.pack_fv'",
"FStar.Ref... | [
"recursion"
] | false | false | false | true | false | let rec expr_to_term (e: expr) : Tot term =
| match e with
| Atom i t -> t
| Lit i -> pack_ln (Tv_Const (C_Int i))
| Plus l r -> mk_e_app (pack_fv' add_qn) [expr_to_term l; expr_to_term r]
| Minus l r -> mk_e_app (pack_fv' minus_qn) [expr_to_term l; expr_to_term r]
| Mult l r -> mk_e_app (pack_fv' mult_qn) [expr_to_term l; expr_to_term r]
| Neg l -> mk_e_app (pack... | false |
CanonDeep.fst | CanonDeep.canon_expr | val canon_expr (e: expr) : Dv expr | val canon_expr (e: expr) : Dv expr | let rec canon_expr (e:expr) : Dv expr =
match e with
| Atom _ _ | Lit _ -> e
| Plus l r -> canon_point (Plus (canon_expr l) (canon_expr r))
| Minus l r -> canon_point (Minus (canon_expr l) (canon_expr r))
| Mult l r -> canon_point (Mult (canon_expr l) (canon_expr r))
| Neg l -> canon_point (Neg (canon_expr ... | {
"file_name": "examples/native_tactics/CanonDeep.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 135,
"start_col": 0,
"start_line": 118
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Arith.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.ch... | [
{
"abbrev": true,
"full_module": "FStar.Order",
"short_module": "O"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Arith",
"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 | e: FStar.Reflection.V2.Arith.expr -> FStar.Pervasives.Dv FStar.Reflection.V2.Arith.expr | FStar.Pervasives.Dv | [] | [] | [
"FStar.Reflection.V2.Arith.expr",
"Prims.nat",
"FStar.Stubs.Reflection.Types.term",
"Prims.int",
"CanonDeep.canon_point",
"FStar.Reflection.V2.Arith.Plus",
"CanonDeep.canon_expr",
"FStar.Reflection.V2.Arith.Minus",
"FStar.Reflection.V2.Arith.Mult",
"FStar.Reflection.V2.Arith.Neg",
"FStar.Reflect... | [
"recursion"
] | false | true | false | false | false | let rec canon_expr (e: expr) : Dv expr =
| match e with
| Atom _ _ | Lit _ -> e
| Plus l r -> canon_point (Plus (canon_expr l) (canon_expr r))
| Minus l r -> canon_point (Minus (canon_expr l) (canon_expr r))
| Mult l r -> canon_point (Mult (canon_expr l) (canon_expr r))
| Neg l -> canon_point (Neg (canon_expr l))
| Land l r -> canon_point (Land (canon_expr l) (... | false |
Steel.Effect.Atomic.fst | Steel.Effect.Atomic.elim_vdep0 | val elim_vdep0 (#opened: inames) (v: vprop) (p: (t_of v -> Tot vprop)) (q: vprop)
: SteelGhost unit
opened
(vdep v p)
(fun _ -> v `star` q)
(requires (fun h -> q == p (dfst (h (vdep v p)))))
(ensures
(fun h _ h' ->
let fs = h' v in
let sn = h' q in
... | val elim_vdep0 (#opened: inames) (v: vprop) (p: (t_of v -> Tot vprop)) (q: vprop)
: SteelGhost unit
opened
(vdep v p)
(fun _ -> v `star` q)
(requires (fun h -> q == p (dfst (h (vdep v p)))))
(ensures
(fun h _ h' ->
let fs = h' v in
let sn = h' q in
... | let elim_vdep0
(#opened:inames)
(v: vprop)
(p: (t_of v -> Tot vprop))
(q: vprop)
: SteelGhost unit opened
(vdep v p)
(fun _ -> v `star` q)
(requires (fun h -> q == p (dfst (h (vdep v p)))))
(ensures (fun h _ h' ->
let fs = h' v in
let sn = h' q in
let x2 = h (vdep v p) in
q == p ... | {
"file_name": "lib/steel/Steel.Effect.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 833,
"start_col": 0,
"start_line": 810
} | (*
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.Semantics.Hoare.MST.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.fst.checked",
"Steel.Effect.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMSTTotal.fst.che... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Steel.Effect.Common.vprop ->
p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) ->
q: Steel.Effect.Common.vprop
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.t_of",
"Steel.Effect.Atomic.reveal_star",
"Prims.unit",
"Steel.Effect.Atomic.change_slprop_rel_with_cond",
"Steel.Effect.Common.vdep",
"Steel.Effect.Common.star",
"Steel.Effect.Atomic.vdep_cond_recip",
"Steel.Effect.Atomic.vd... | [] | false | true | false | false | false | let elim_vdep0 (#opened: inames) (v: vprop) (p: (t_of v -> Tot vprop)) (q: vprop)
: SteelGhost unit
opened
(vdep v p)
(fun _ -> v `star` q)
(requires (fun h -> q == p (dfst (h (vdep v p)))))
(ensures
(fun h _ h' ->
let fs = h' v in
let sn = h' q in
... | change_slprop_rel_with_cond (vdep v p)
(v `star` q)
(vdep_cond_recip v p q)
(vdep_rel_recip v q p)
(fun m -> elim_vdep_lemma v q p m);
reveal_star v q | false |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents_inv | val copy_buffer_contents_inv (#t: typ) (a b: buffer t) (len': UInt32.t) (h h': HS.mem) : GTot Type0 | val copy_buffer_contents_inv (#t: typ) (a b: buffer t) (len': UInt32.t) (h h': HS.mem) : GTot Type0 | let copy_buffer_contents_inv
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(len' : UInt32.t)
(h: HS.mem)
(h' : HS.mem)
: GTot Type0
= copy_buffer_contents_precond' a b h /\
modifies (loc_buffer b) h h' /\
UInt32.v len' <= UInt32.v (buffer_length a) /\
buffer_readable h' (gsub_bu... | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 87,
"end_line": 60,
"start_col": 0,
"start_line": 48
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
b: FStar.Pointer.Base.buffer t ->
len': FStar.UInt32.t ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.buffer",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Pointer.Derived2.copy_buffer_contents_precond'",
"FStar.Pointer.Base.modifies",
"FStar.Pointer.Base.loc_buffer",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32... | [] | false | false | false | false | true | let copy_buffer_contents_inv (#t: typ) (a b: buffer t) (len': UInt32.t) (h h': HS.mem) : GTot Type0 =
| copy_buffer_contents_precond' a b h /\ modifies (loc_buffer b) h h' /\
UInt32.v len' <= UInt32.v (buffer_length a) /\ buffer_readable h' (gsub_buffer b 0ul len') /\
buffer_as_seq h' (gsub_buffer b 0ul len') == buffer_as_seq h (gsub_buffer a 0ul len') | false |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents_init | val copy_buffer_contents_init
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(h: HS.mem)
: Lemma
(requires (copy_buffer_contents_precond' a b h))
(ensures (copy_buffer_contents_inv a b 0ul h h)) | val copy_buffer_contents_init
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(h: HS.mem)
: Lemma
(requires (copy_buffer_contents_precond' a b h))
(ensures (copy_buffer_contents_inv a b 0ul h h)) | let copy_buffer_contents_init #t a b h =
buffer_readable_intro_empty h (gsub_buffer b 0ul 0ul);
Seq.lemma_eq_intro (buffer_as_seq h (gsub_buffer b 0ul 0ul)) (buffer_as_seq h (gsub_buffer a 0ul 0ul)) | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 104,
"end_line": 74,
"start_col": 0,
"start_line": 72
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
b: FStar.Pointer.Base.buffer t ->
h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma (requires FStar.Pointer.Derived2.copy_buffer_contents_precond' a b h)
(ensures FStar.Pointer.Derived2.copy_buffer_contents_inv a b 0ul h h) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.buffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.Seq.Base.lemma_eq_intro",
"FStar.Pointer.Base.type_of_typ",
"FStar.Pointer.Base.buffer_as_seq",
"FStar.Pointer.Base.gsub_buffer",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"FStar.Pointer.Derived1.buffer... | [] | true | false | true | false | false | let copy_buffer_contents_init #t a b h =
| buffer_readable_intro_empty h (gsub_buffer b 0ul 0ul);
Seq.lemma_eq_intro (buffer_as_seq h (gsub_buffer b 0ul 0ul))
(buffer_as_seq h (gsub_buffer a 0ul 0ul)) | false |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents' | val copy_buffer_contents'
(#t: typ)
(a: buffer t)
(idx_a: UInt32.t)
(b: buffer t)
(idx_b len: UInt32.t)
: HST.Stack unit
(requires (fun h -> copy_buffer_contents_precond a idx_a b idx_b len h))
(ensures (fun h0 _ h1 -> copy_buffer_contents_postcond a idx_a b idx_b len h0 h1... | val copy_buffer_contents'
(#t: typ)
(a: buffer t)
(idx_a: UInt32.t)
(b: buffer t)
(idx_b len: UInt32.t)
: HST.Stack unit
(requires (fun h -> copy_buffer_contents_precond a idx_a b idx_b len h))
(ensures (fun h0 _ h1 -> copy_buffer_contents_postcond a idx_a b idx_b len h0 h1... | let copy_buffer_contents'
(#t: typ)
(a: buffer t) (* source *)
(idx_a: UInt32.t)
(b: buffer t) (* destination *)
(idx_b: UInt32.t)
(len: UInt32.t)
: HST.Stack unit
(requires (fun h ->
copy_buffer_contents_precond a idx_a b idx_b len h
))
(ensures (fun h0 _ h1 ->
copy_buffer_contents_postcond a... | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 172,
"start_col": 0,
"start_line": 152
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
idx_a: FStar.UInt32.t ->
b: FStar.Pointer.Base.buffer t ->
idx_b: FStar.UInt32.t ->
len: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.buffer",
"FStar.UInt32.t",
"FStar.Pointer.Derived2.copy_buffer_contents_fin",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"FStar.Pointer.Derived2.copy_buffer_contents_aux",
"FStar.UInt32.__uint_to_t",
"FStar.Ghost.hide",
... | [] | false | true | false | false | false | let copy_buffer_contents'
(#t: typ)
(a: buffer t)
(idx_a: UInt32.t)
(b: buffer t)
(idx_b len: UInt32.t)
: HST.Stack unit
(requires (fun h -> copy_buffer_contents_precond a idx_a b idx_b len h))
(ensures (fun h0 _ h1 -> copy_buffer_contents_postcond a idx_a b idx_b len h0 h1... | let h0 = HST.get () in
let a' = sub_buffer a idx_a len in
let b' = sub_buffer b idx_b len in
copy_buffer_contents_init a' b' h0;
copy_buffer_contents_aux a' b' len 0ul (Ghost.hide h0);
let h1 = HST.get () in
copy_buffer_contents_fin a idx_a b idx_b len h0 h1 | false |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents_aux | val copy_buffer_contents_aux
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(len: UInt32.t)
(len': UInt32.t)
(h: Ghost.erased HS.mem)
: HST.Stack unit
(requires (fun h0 ->
copy_buffer_contents_inv a b len' (Ghost.reveal h) h0 /\
len == buffer_length a
))
(ensures (fun h0... | val copy_buffer_contents_aux
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(len: UInt32.t)
(len': UInt32.t)
(h: Ghost.erased HS.mem)
: HST.Stack unit
(requires (fun h0 ->
copy_buffer_contents_inv a b len' (Ghost.reveal h) h0 /\
len == buffer_length a
))
(ensures (fun h0... | let rec copy_buffer_contents_aux #t a b len len' h =
if len = len'
then ()
else begin
copy_buffer_contents_advance a b len' h;
copy_buffer_contents_aux a b len (UInt32.add len' 1ul) h
end | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 126,
"start_col": 0,
"start_line": 120
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
b: FStar.Pointer.Base.buffer t ->
len: FStar.UInt32.t ->
len': FStar.UInt32.t ->
h: FStar.Ghost.erased FStar.Monotonic.HyperStack.mem
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [
""
] | [] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.buffer",
"FStar.UInt32.t",
"FStar.Ghost.erased",
"FStar.Monotonic.HyperStack.mem",
"Prims.op_Equality",
"Prims.unit",
"Prims.bool",
"FStar.Pointer.Derived2.copy_buffer_contents_aux",
"FStar.UInt32.add",
"FStar.UInt32.__uint_to_t",
"FStar.Pointer.De... | [
"recursion"
] | false | true | false | false | false | let rec copy_buffer_contents_aux #t a b len len' h =
| if len = len'
then ()
else
(copy_buffer_contents_advance a b len' h;
copy_buffer_contents_aux a b len (UInt32.add len' 1ul) h) | false |
FStar.Pointer.Derived2.fst | FStar.Pointer.Derived2.copy_buffer_contents_advance | val copy_buffer_contents_advance
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(len' : UInt32.t)
(h: Ghost.erased HS.mem)
: HST.Stack unit
(requires (fun h0 ->
copy_buffer_contents_inv a b len' (Ghost.reveal h) h0 /\
UInt32.v len' < UInt32.v (buffer_length a)
))
(ensures (... | val copy_buffer_contents_advance
(#t: typ)
(a: buffer t) (* source *)
(b: buffer t) (* destination *)
(len' : UInt32.t)
(h: Ghost.erased HS.mem)
: HST.Stack unit
(requires (fun h0 ->
copy_buffer_contents_inv a b len' (Ghost.reveal h) h0 /\
UInt32.v len' < UInt32.v (buffer_length a)
))
(ensures (... | let copy_buffer_contents_advance #t a b len' h =
let v = read_buffer a len' in
buffer_snoc b 0ul len' v;
buffer_as_seq_gsub_buffer_snoc (Ghost.reveal h) a 0ul len' | {
"file_name": "ulib/legacy/FStar.Pointer.Derived2.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 99,
"start_col": 0,
"start_line": 96
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_fil... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HH"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Pointer.Base.buffer t ->
b: FStar.Pointer.Base.buffer t ->
len': FStar.UInt32.t ->
h: FStar.Ghost.erased FStar.Monotonic.HyperStack.mem
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Pointer.Base.typ",
"FStar.Pointer.Base.buffer",
"FStar.UInt32.t",
"FStar.Ghost.erased",
"FStar.Monotonic.HyperStack.mem",
"FStar.Pointer.Derived1.buffer_as_seq_gsub_buffer_snoc",
"FStar.Ghost.reveal",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"FStar.Pointer.Derived1.buffer_snoc",
"FStar.P... | [] | false | true | false | false | false | let copy_buffer_contents_advance #t a b len' h =
| let v = read_buffer a len' in
buffer_snoc b 0ul len' v;
buffer_as_seq_gsub_buffer_snoc (Ghost.reveal h) a 0ul len' | false |
Steel.Effect.Atomic.fst | Steel.Effect.Atomic.intro_vrefine | val intro_vrefine (#opened:inames)
(v: vprop) (p: (normal (t_of v) -> Tot prop))
: SteelGhost unit opened v (fun _ -> vrefine v p)
(requires fun h -> p (h v))
(ensures fun h _ h' -> h' (vrefine v p) == h v) | val intro_vrefine (#opened:inames)
(v: vprop) (p: (normal (t_of v) -> Tot prop))
: SteelGhost unit opened v (fun _ -> vrefine v p)
(requires fun h -> p (h v))
(ensures fun h _ h' -> h' (vrefine v p) == h v) | let intro_vrefine v p =
let m = get () in
let x : Ghost.erased (t_of v) = gget v in
let x' : Ghost.erased (vrefine_t v p) = Ghost.hide (Ghost.reveal x) in
change_slprop
v
(vrefine v p)
x
x'
(fun m ->
interp_vrefine_hp v p m;
vrefine_sel_eq v p m
) | {
"file_name": "lib/steel/Steel.Effect.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 705,
"start_col": 0,
"start_line": 693
} | (*
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.Semantics.Hoare.MST.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.fst.checked",
"Steel.Effect.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMSTTotal.fst.che... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Steel.Effect.Common.vprop ->
p: (_: Steel.Effect.Common.normal (Steel.Effect.Common.t_of v) -> Prims.prop)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Prims.prop",
"Steel.Effect.Atomic.change_slprop",
"Steel.Effect.Common.vrefine",
"Steel.Memory.mem",
"Steel.Effect.Common.vrefine_sel_eq",
"Prims.unit",
"Steel.Effect.Common.interp_vref... | [] | false | true | false | false | false | let intro_vrefine v p =
| let m = get () in
let x:Ghost.erased (t_of v) = gget v in
let x':Ghost.erased (vrefine_t v p) = Ghost.hide (Ghost.reveal x) in
change_slprop v
(vrefine v p)
x
x'
(fun m ->
interp_vrefine_hp v p m;
vrefine_sel_eq v p m) | false |
Steel.Effect.Atomic.fst | Steel.Effect.Atomic.elim_vrefine | val elim_vrefine (#opened:inames)
(v: vprop) (p: (normal (t_of v) -> Tot prop))
: SteelGhost unit opened (vrefine v p) (fun _ -> v)
(requires fun _ -> True)
(ensures fun h _ h' -> h' v == h (vrefine v p) /\ p (h' v)) | val elim_vrefine (#opened:inames)
(v: vprop) (p: (normal (t_of v) -> Tot prop))
: SteelGhost unit opened (vrefine v p) (fun _ -> v)
(requires fun _ -> True)
(ensures fun h _ h' -> h' v == h (vrefine v p) /\ p (h' v)) | let elim_vrefine v p =
let h = get() in
let x : Ghost.erased (vrefine_t v p) = gget (vrefine v p) in
let x' : Ghost.erased (t_of v) = Ghost.hide (Ghost.reveal x) in
change_slprop
(vrefine v p)
v
x
x'
(fun m ->
interp_vrefine_hp v p m;
vrefine_sel_eq v p m
) | {
"file_name": "lib/steel/Steel.Effect.Atomic.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 719,
"start_col": 0,
"start_line": 707
} | (*
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.Semantics.Hoare.MST.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.fst.checked",
"Steel.Effect.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.NMSTTotal.fst.che... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: Steel.Effect.Common.vprop ->
p: (_: Steel.Effect.Common.normal (Steel.Effect.Common.t_of v) -> Prims.prop)
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Prims.prop",
"Steel.Effect.Atomic.change_slprop",
"Steel.Effect.Common.vrefine",
"Steel.Memory.mem",
"Steel.Effect.Common.vrefine_sel_eq",
"Prims.unit",
"Steel.Effect.Common.interp_vref... | [] | false | true | false | false | false | let elim_vrefine v p =
| let h = get () in
let x:Ghost.erased (vrefine_t v p) = gget (vrefine v p) in
let x':Ghost.erased (t_of v) = Ghost.hide (Ghost.reveal x) in
change_slprop (vrefine v p)
v
x
x'
(fun m ->
interp_vrefine_hp v p m;
vrefine_sel_eq v p m) | false |
Vale.X64.Print_Inline_s.fst | Vale.X64.Print_Inline_s.print_rettype | val print_rettype : ret_val: FStar.Pervasives.Native.option Prims.string -> Prims.string | let print_rettype (ret_val:option string) = match ret_val with
| None -> "void"
| Some _ -> "uint64_t" | {
"file_name": "vale/specs/hardware/Vale.X64.Print_Inline_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 16,
"start_col": 0,
"start_line": 14
} | module Vale.X64.Print_Inline_s
open FStar.Mul
open FStar.List.Tot
open Vale.X64.Machine_s
open Vale.X64.Bytes_Code_s
open Vale.X64.Machine_Semantics_s
open Vale.X64.Instruction_s
open FStar.IO
open Vale.Interop.Base
open Vale.Interop.X64
module P = Vale.X64.Print_s | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Print_s.fst.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Bytes_Code_s.fst.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.check... | [
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Vale.Interop.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ret_val: FStar.Pervasives.Native.option Prims.string -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.option",
"Prims.string"
] | [] | false | false | false | true | false | let print_rettype (ret_val: option string) =
| match ret_val with
| None -> "void"
| Some _ -> "uint64_t" | false | |
Vale.X64.Print_Inline_s.fst | Vale.X64.Print_Inline_s.print_explicit_register_arg | val print_explicit_register_arg : n: Prims.nat ->
a: Vale.Interop.Base.td ->
i: Prims.nat{i < n} ->
of_arg: (_: Vale.Interop.X64.reg_nat n -> Vale.X64.Machine_s.reg_64) ->
reserved: (_: Vale.X64.Machine_s.reg_64 -> Prims.bool) ->
names: (_: Prims.nat -> Prims.string)
-> Prims.bool * Prims.string | let print_explicit_register_arg (n:nat) (a:td) (i:nat{i < n}) (of_arg:reg_nat n -> reg_64) (reserved:reg_64 -> bool) (names:nat -> string) =
let ty = match a with
| TD_Base _ -> "uint64_t "
| _ -> "uint64_t *"
in
if reserved (of_arg i) then
// If the associated register is reserved, we really this arg... | {
"file_name": "vale/specs/hardware/Vale.X64.Print_Inline_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 215,
"start_col": 0,
"start_line": 207
} | module Vale.X64.Print_Inline_s
open FStar.Mul
open FStar.List.Tot
open Vale.X64.Machine_s
open Vale.X64.Bytes_Code_s
open Vale.X64.Machine_Semantics_s
open Vale.X64.Instruction_s
open FStar.IO
open Vale.Interop.Base
open Vale.Interop.X64
module P = Vale.X64.Print_s
let print_rettype (ret_val:option string) = match re... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Print_s.fst.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Bytes_Code_s.fst.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.check... | [
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Vale.Interop.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: Prims.nat ->
a: Vale.Interop.Base.td ->
i: Prims.nat{i < n} ->
of_arg: (_: Vale.Interop.X64.reg_nat n -> Vale.X64.Machine_s.reg_64) ->
reserved: (_: Vale.X64.Machine_s.reg_64 -> Prims.bool) ->
names: (_: Prims.nat -> Prims.string)
-> Prims.bool * Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.Interop.Base.td",
"Prims.b2t",
"Prims.op_LessThan",
"Vale.Interop.X64.reg_nat",
"Vale.X64.Machine_s.reg_64",
"Prims.bool",
"Prims.string",
"FStar.Pervasives.Native.Mktuple2",
"Prims.op_Hat",
"Vale.X64.Print_s.print_reg_name",
"FStar.Pervasives.Native.tuple2",
"Vale.Interop... | [] | false | false | false | false | false | let print_explicit_register_arg
(n: nat)
(a: td)
(i: nat{i < n})
(of_arg: (reg_nat n -> reg_64))
(reserved: (reg_64 -> bool))
(names: (nat -> string))
=
| let ty =
match a with
| TD_Base _ -> "uint64_t "
| _ -> "uint64_t *"
in
if reserved (of_arg i)
then
true,
" register " ^
ty ^ names i ^ "_r __asm__(\"" ^ P.print_reg_name (of_arg i) ^ "\") = " ^ names i ^ ";\n"
else false, "" | false | |
Vale.X64.Print_Inline_s.fst | Vale.X64.Print_Inline_s.print_arg | val print_arg : a: Vale.Interop.Base.td -> i: Prims.nat -> names: (_: Prims.nat -> Prims.string) -> Prims.string | let print_arg (a:td) (i:nat) (names:nat -> string) = match a with
| TD_Base src -> print_basetype src ^ " " ^ names i
| TD_Buffer src _ _ | TD_ImmBuffer src _ _ -> print_basetype src ^ " *" ^ names i | {
"file_name": "vale/specs/hardware/Vale.X64.Print_Inline_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 83,
"end_line": 28,
"start_col": 0,
"start_line": 26
} | module Vale.X64.Print_Inline_s
open FStar.Mul
open FStar.List.Tot
open Vale.X64.Machine_s
open Vale.X64.Bytes_Code_s
open Vale.X64.Machine_Semantics_s
open Vale.X64.Instruction_s
open FStar.IO
open Vale.Interop.Base
open Vale.Interop.X64
module P = Vale.X64.Print_s
let print_rettype (ret_val:option string) = match re... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Print_s.fst.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Bytes_Code_s.fst.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.check... | [
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Vale.Interop.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Vale.Interop.Base.td -> i: Prims.nat -> names: (_: Prims.nat -> Prims.string) -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.td",
"Prims.nat",
"Prims.string",
"Vale.Interop.Base.valid_base_type",
"Prims.op_Hat",
"Vale.X64.Print_Inline_s.print_basetype",
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.buffer_qualifiers"
] | [] | false | false | false | true | false | let print_arg (a: td) (i: nat) (names: (nat -> string)) =
| match a with
| TD_Base src -> print_basetype src ^ " " ^ names i
| TD_Buffer src _ _ | TD_ImmBuffer src _ _ -> print_basetype src ^ " *" ^ names i | false | |
Vale.X64.Print_Inline_s.fst | Vale.X64.Print_Inline_s.print_args | val print_args : args: Prims.list Vale.Interop.Base.td -> i: Prims.nat -> names: (_: Prims.nat -> Prims.string)
-> Prims.string | let rec print_args (args:list td) (i:nat) (names:nat -> string) = match args with
| [] -> ""
| [a] -> print_arg a i names
| a::q -> print_arg a i names ^ ", " ^ print_args q (i+1) names | {
"file_name": "vale/specs/hardware/Vale.X64.Print_Inline_s.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 34,
"start_col": 0,
"start_line": 31
} | module Vale.X64.Print_Inline_s
open FStar.Mul
open FStar.List.Tot
open Vale.X64.Machine_s
open Vale.X64.Bytes_Code_s
open Vale.X64.Machine_Semantics_s
open Vale.X64.Instruction_s
open FStar.IO
open Vale.Interop.Base
open Vale.Interop.X64
module P = Vale.X64.Print_s
let print_rettype (ret_val:option string) = match re... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Print_s.fst.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Bytes_Code_s.fst.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.check... | [
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Vale.Interop.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | args: Prims.list Vale.Interop.Base.td -> i: Prims.nat -> names: (_: Prims.nat -> Prims.string)
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Vale.Interop.Base.td",
"Prims.nat",
"Prims.string",
"Vale.X64.Print_Inline_s.print_arg",
"Prims.op_Hat",
"Vale.X64.Print_Inline_s.print_args",
"Prims.op_Addition"
] | [
"recursion"
] | false | false | false | true | false | let rec print_args (args: list td) (i: nat) (names: (nat -> string)) =
| match args with
| [] -> ""
| [a] -> print_arg a i names
| a :: q -> print_arg a i names ^ ", " ^ print_args q (i + 1) names | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.