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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.contained_non_tip_region | val contained_non_tip_region: mem -> mem -> rid -> Type0 | val contained_non_tip_region: mem -> mem -> rid -> Type0 | let contained_non_tip_region :mem -> mem -> rid -> Type0
= fun m0 m1 r -> r =!= get_tip m0 /\ r =!= get_tip m1 /\ contained_region m0 m1 r | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 83,
"end_line": 132,
"start_col": 15,
"start_line": 131
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m0: FStar.Monotonic.HyperStack.mem ->
m1: FStar.Monotonic.HyperStack.mem ->
r: FStar.Monotonic.HyperHeap.rid
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.l_not",
"Prims.eq2",
"FStar.Monotonic.HyperStack.get_tip",
"FStar.HyperStack.ST.contained_region"
] | [] | false | false | false | true | true | let contained_non_tip_region: mem -> mem -> rid -> Type0 =
| fun m0 m1 r -> r =!= get_tip m0 /\ r =!= get_tip m1 /\ contained_region m0 m1 r | false |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.is_eternal_region | val is_eternal_region (r: rid) : Type0 | val is_eternal_region (r: rid) : Type0 | let is_eternal_region (r:rid) :Type0
= HS.is_eternal_region_hs r /\ (r == HS.root \/ witnessed (region_contains_pred r)) | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 85,
"end_line": 307,
"start_col": 0,
"start_line": 306
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.HyperHeap.rid -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_eternal_region_hs",
"Prims.l_or",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.root",
"FStar.HyperStack.ST.witnessed",
"FStar.HyperStack.ST.region_contains_pred"
] | [] | false | false | false | true | true | let is_eternal_region (r: rid) : Type0 =
| HS.is_eternal_region_hs r /\ (r == HS.root \/ witnessed (region_contains_pred r)) | false |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.new_region_post_common | val new_region_post_common : r0: FStar.Monotonic.HyperHeap.rid ->
r1: FStar.Monotonic.HyperHeap.rid ->
m0: FStar.Monotonic.HyperStack.mem ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let new_region_post_common (r0 r1:rid) (m0 m1:mem) =
r1 `HS.extends` r0 /\
HS.fresh_region r1 m0 m1 /\
get_hmap m1 == Map.upd (get_hmap m0) r1 Heap.emp /\
get_tip m1 == get_tip m0 /\
HS.live_region m0 r0 | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 360,
"start_col": 0,
"start_line": 355
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r0: FStar.Monotonic.HyperHeap.rid ->
r1: FStar.Monotonic.HyperHeap.rid ->
m0: FStar.Monotonic.HyperStack.mem ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperHeap.extends",
"FStar.Monotonic.HyperStack.fresh_region",
"Prims.eq2",
"FStar.Map.t",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.Map.upd",
"FStar... | [] | false | false | false | true | true | let new_region_post_common (r0 r1: rid) (m0 m1: mem) =
| r1 `HS.extends` r0 /\ HS.fresh_region r1 m0 m1 /\ get_hmap m1 == Map.upd (get_hmap m0) r1 Heap.emp /\
get_tip m1 == get_tip m0 /\ HS.live_region m0 r0 | false | |
Steel.MonotonicReference.fst | Steel.MonotonicReference.witnessed | val witnessed (#a:Type u#0) (#p:Preorder.preorder a) (r:ref a p) (fact:property a)
: Type0 | val witnessed (#a:Type u#0) (#p:Preorder.preorder a) (r:ref a p) (fact:property a)
: Type0 | let witnessed (#a:Type u#0)
(#p:Preorder.preorder a)
(r:ref a p)
(fact:property a)
= MHR.witnessed r (lift_property fact) | {
"file_name": "lib/steel/Steel.MonotonicReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 78,
"start_col": 0,
"start_line": 74
} | (*
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.MonotonicHigherReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": true,
"full_module": "Steel.MonotonicHigherReference",
"short_module": "MHR"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.MonotonicReference.ref a p -> fact: Steel.MonotonicReference.property a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"Steel.MonotonicReference.ref",
"Steel.MonotonicReference.property",
"Steel.MonotonicHigherReference.witnessed",
"FStar.Universe.raise_t",
"Steel.MonotonicReference.raise_preorder",
"Steel.MonotonicReference.lift_property"
] | [] | false | false | false | false | true | let witnessed (#a: Type u#0) (#p: Preorder.preorder a) (r: ref a p) (fact: property a) =
| MHR.witnessed r (lift_property fact) | false |
Steel.MonotonicReference.fst | Steel.MonotonicReference.ref | val ref (a:Type u#0) (p:Preorder.preorder a)
: Type u#0 | val ref (a:Type u#0) (p:Preorder.preorder a)
: Type u#0 | let ref a p = MHR.ref (FStar.Universe.raise_t a) (raise_preorder p) | {
"file_name": "lib/steel/Steel.MonotonicReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 67,
"end_line": 36,
"start_col": 0,
"start_line": 36
} | (*
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.MonotonicHigherReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": true,
"full_module": "Steel.MonotonicHigherReference",
"short_module": "MHR"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type0 -> p: FStar.Preorder.preorder a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"FStar.Universe.raise_t",
"Steel.MonotonicReference.raise_preorder"
] | [] | false | false | false | true | true | let ref a p =
| MHR.ref (FStar.Universe.raise_t a) (raise_preorder p) | false |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.deref_post | val deref_post : r: FStar.HyperStack.ST.mreference a rel ->
m0: FStar.Monotonic.HyperStack.mem ->
x: a ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let deref_post (#a:Type) (#rel:preorder a) (r:mreference a rel) (m0:mem) (x:a) (m1:mem) =
m1 == m0 /\ m0 `contains` r /\ x == HyperStack.sel m0 r | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 57,
"end_line": 423,
"start_col": 7,
"start_line": 422
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: FStar.HyperStack.ST.mreference a rel ->
m0: FStar.Monotonic.HyperStack.mem ->
x: a ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.HyperStack.ST.mreference",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperStack.contains",
"FStar.Monotonic.HyperStack.sel",
"Prims.logical"
] | [] | false | false | false | false | true | let deref_post (#a: Type) (#rel: preorder a) (r: mreference a rel) (m0: mem) (x: a) (m1: mem) =
| m1 == m0 /\ m0 `contains` r /\ x == HyperStack.sel m0 r | false | |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.modifies_none | val modifies_none : h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> Prims.logical | let modifies_none (h0:mem) (h1:mem) = modifies Set.empty h0 h1 | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 433,
"start_col": 0,
"start_line": 433
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperStack.modifies",
"FStar.Set.empty",
"FStar.Monotonic.HyperHeap.rid",
"Prims.logical"
] | [] | false | false | false | true | true | let modifies_none (h0 h1: mem) =
| modifies Set.empty h0 h1 | false | |
Steel.MonotonicReference.fst | Steel.MonotonicReference.pts_to_sl | val pts_to_sl (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:a)
: slprop u#1 | val pts_to_sl (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:a)
: slprop u#1 | let pts_to_sl (#a:Type) (#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:a)
= MHR.pts_to_sl r f (hide (U.raise_val v)) | {
"file_name": "lib/steel/Steel.MonotonicReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 46,
"end_line": 43,
"start_col": 0,
"start_line": 39
} | (*
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.MonotonicHigherReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": true,
"full_module": "Steel.MonotonicHigherReference",
"short_module": "MHR"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.MonotonicReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a
-> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"Steel.MonotonicReference.ref",
"Steel.FractionalPermission.perm",
"Steel.MonotonicHigherReference.pts_to_sl",
"FStar.Universe.raise_t",
"Steel.MonotonicReference.raise_preorder",
"FStar.Ghost.hide",
"FStar.Universe.raise_val",
"Steel.Memory.slprop"
] | [] | false | false | false | false | false | let pts_to_sl (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: a) =
| MHR.pts_to_sl r f (hide (U.raise_val v)) | false |
Vale.X64.Memory_Sems.fsti | Vale.X64.Memory_Sems.coerce | val coerce (#b #a: Type) (x: a{a == b}) : b | val coerce (#b #a: Type) (x: a{a == b}) : b | let coerce (#b #a:Type) (x:a{a == b}) : b = x | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 33,
"start_col": 7,
"start_line": 33
} | module Vale.X64.Memory_Sems
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Arch.MachineHeap_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.Lib.Seqs
module S = Vale.X64.Machine_Semantics_s
module Map16 = Vale.Lib.Map16
val ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arc... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a{a == b} -> b | Prims.Tot | [
"total"
] | [] | [
"Prims.eq2"
] | [] | false | false | false | false | false | let coerce (#b #a: Type) (x: a{a == b}) : b =
| x | false |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.is_live_for_rw_in | val is_live_for_rw_in (#a: Type) (#rel: preorder a) (r: mreference a rel) (m: mem) : Type0 | val is_live_for_rw_in (#a: Type) (#rel: preorder a) (r: mreference a rel) (m: mem) : Type0 | let is_live_for_rw_in (#a:Type) (#rel:preorder a) (r:mreference a rel) (m:mem) :Type0 =
(m `contains` r) \/
(let i = HS.frameOf r in
(is_eternal_region i \/ i `HS.is_above` get_tip m) /\
(not (is_mm r) \/ m `HS.contains_ref_in_its_region` r)) | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 405,
"start_col": 0,
"start_line": 401
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.HyperStack.ST.mreference a rel -> m: FStar.Monotonic.HyperStack.mem -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.HyperStack.ST.mreference",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_or",
"FStar.Monotonic.HyperStack.contains",
"Prims.l_and",
"FStar.HyperStack.ST.is_eternal_region",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_above",
"FStar.Monotonic.HyperStack.get_tip",
"P... | [] | false | false | false | false | true | let is_live_for_rw_in (#a: Type) (#rel: preorder a) (r: mreference a rel) (m: mem) : Type0 =
| (m `contains` r) \/
(let i = HS.frameOf r in
(is_eternal_region i \/ i `HS.is_above` (get_tip m)) /\
(not (is_mm r) \/ m `HS.contains_ref_in_its_region` r)) | false |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.is_freeable_heap_region | val is_freeable_heap_region (r: rid) : Type0 | val is_freeable_heap_region (r: rid) : Type0 | let is_freeable_heap_region (r:rid) : Type0 =
HS.is_heap_color (color r) /\ HS.rid_freeable r /\ witnessed (region_contains_pred r) | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 87,
"end_line": 564,
"start_col": 0,
"start_line": 563
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.HyperHeap.rid -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_heap_color",
"FStar.Monotonic.HyperHeap.color",
"FStar.Monotonic.HyperHeap.rid_freeable",
"FStar.HyperStack.ST.witnessed",
"FStar.HyperStack.ST.region_contains_pred"
] | [] | false | false | false | true | true | let is_freeable_heap_region (r: rid) : Type0 =
| HS.is_heap_color (color r) /\ HS.rid_freeable r /\ witnessed (region_contains_pred r) | false |
Steel.MonotonicReference.fst | Steel.MonotonicReference.lift_property | val lift_property (#a: Type u#0) (p: property a) : MHR.property (U.raise_t a) | val lift_property (#a: Type u#0) (p: property a) : MHR.property (U.raise_t a) | let lift_property (#a:Type u#0) (p:property a)
: MHR.property (U.raise_t a)
= fun x -> p (U.downgrade_val x) | {
"file_name": "lib/steel/Steel.MonotonicReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 34,
"end_line": 72,
"start_col": 0,
"start_line": 70
} | (*
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.MonotonicHigherReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": true,
"full_module": "Steel.MonotonicHigherReference",
"short_module": "MHR"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.MonotonicReference.property a
-> Steel.MonotonicHigherReference.property (FStar.Universe.raise_t a) | Prims.Tot | [
"total"
] | [] | [
"Steel.MonotonicReference.property",
"FStar.Universe.raise_t",
"FStar.Universe.downgrade_val",
"Prims.prop",
"Steel.MonotonicHigherReference.property"
] | [] | false | false | false | true | false | let lift_property (#a: Type u#0) (p: property a) : MHR.property (U.raise_t a) =
| fun x -> p (U.downgrade_val x) | false |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.salloc_post | val salloc_post : init: a ->
m0: FStar.Monotonic.HyperStack.mem ->
s:
FStar.HyperStack.ST.mreference a rel
{FStar.Monotonic.HyperStack.is_stack_region (FStar.Monotonic.HyperStack.frameOf s)} ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let salloc_post (#a:Type) (#rel:preorder a) (init:a) (m0:mem)
(s:mreference a rel{is_stack_region (frameOf s)}) (m1:mem)
= is_stack_region (get_tip m0) /\
Map.domain (get_hmap m0) == Map.domain (get_hmap m1) /\
get_tip m0 == get_tip m1 /\
... | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 332,
"start_col": 0,
"start_line": 325
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
init: a ->
m0: FStar.Monotonic.HyperStack.mem ->
s:
FStar.HyperStack.ST.mreference a rel
{FStar.Monotonic.HyperStack.is_stack_region (FStar.Monotonic.HyperStack.frameOf s)} ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.mreference",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_stack_region",
"FStar.Monotonic.HyperStack.frameOf",
"Prims.l_and",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.eq2",
"FStar.Set.set",
"FStar.Monotonic.Hype... | [] | false | false | false | false | true | let salloc_post
(#a: Type)
(#rel: preorder a)
(init: a)
(m0: mem)
(s: mreference a rel {is_stack_region (frameOf s)})
(m1: mem)
=
| is_stack_region (get_tip m0) /\ Map.domain (get_hmap m0) == Map.domain (get_hmap m1) /\
get_tip m0 == get_tip m1 /\ frameOf s = get_tip m1 /\ HS.fresh_ref s m0 m1 /\
m1 == HyperStack.upd m0 s init | false | |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.assign_post | val assign_post : r: FStar.HyperStack.ST.mreference a rel ->
v: a ->
m0: FStar.Monotonic.HyperStack.mem ->
_: Prims.unit ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let assign_post (#a:Type) (#rel:preorder a) (r:mreference a rel) (v:a) (m0:mem) (_:unit) (m1:mem) =
m0 `contains` r /\ m1 == HyperStack.upd m0 r v | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 412,
"start_col": 7,
"start_line": 411
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: FStar.HyperStack.ST.mreference a rel ->
v: a ->
m0: FStar.Monotonic.HyperStack.mem ->
_: Prims.unit ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.HyperStack.ST.mreference",
"FStar.Monotonic.HyperStack.mem",
"Prims.unit",
"Prims.l_and",
"FStar.Monotonic.HyperStack.contains",
"Prims.eq2",
"FStar.Monotonic.HyperStack.upd",
"Prims.logical"
] | [] | false | false | false | false | true | let assign_post
(#a: Type)
(#rel: preorder a)
(r: mreference a rel)
(v: a)
(m0: mem)
(_: unit)
(m1: mem)
=
| m0 `contains` r /\ m1 == HyperStack.upd m0 r v | false | |
Vale.X64.Memory_Sems.fsti | Vale.X64.Memory_Sems.is_full_update | val is_full_update : vfh: Vale.X64.Memory.vale_full_heap ->
h': Vale.X64.Memory.vale_heap ->
hid: Vale.X64.Memory.heaplet_id ->
mh': Vale.Arch.MachineHeap_s.machine_heap ->
mt': Vale.X64.Memory.memtaint
-> Prims.logical | let is_full_update (vfh:vale_full_heap) (h':vale_heap) (hid:heaplet_id) (mh':machine_heap) (mt':memtaint) =
is_machine_heap_update (heap_get (coerce vfh)) mh' /\ (
let vfh' = coerce (heap_upd (coerce vfh) mh' mt') in
mem_inv vfh' /\
vfh'.vf_layout == vfh.vf_layout /\
vfh'.vf_heaplets == Map16.upd vfh.... | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 56,
"start_col": 0,
"start_line": 50
} | module Vale.X64.Memory_Sems
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Arch.MachineHeap_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.Lib.Seqs
module S = Vale.X64.Machine_Semantics_s
module Map16 = Vale.Lib.Map16
val ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Arc... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
vfh: Vale.X64.Memory.vale_full_heap ->
h': Vale.X64.Memory.vale_heap ->
hid: Vale.X64.Memory.heaplet_id ->
mh': Vale.Arch.MachineHeap_s.machine_heap ->
mt': Vale.X64.Memory.memtaint
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.vale_full_heap",
"Vale.X64.Memory.vale_heap",
"Vale.X64.Memory.heaplet_id",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.X64.Memory.memtaint",
"Prims.l_and",
"Vale.Arch.MachineHeap_s.is_machine_heap_update",
"Vale.Arch.Heap.heap_get",
"Vale.X64.Memory_Sems.coerce",
"Vale.Arch.Hea... | [] | false | false | false | true | true | let is_full_update
(vfh: vale_full_heap)
(h': vale_heap)
(hid: heaplet_id)
(mh': machine_heap)
(mt': memtaint)
=
| is_machine_heap_update (heap_get (coerce vfh)) mh' /\
(let vfh' = coerce (heap_upd (coerce vfh) mh' mt') in
mem_inv vfh' /\ vfh'.vf_layout == vfh.vf_layout /\
vfh'.vf_heaplets == Map16.upd vfh.vf_heaplets hid h') | false | |
FStar.HyperStack.ST.fsti | FStar.HyperStack.ST.ralloc_post | val ralloc_post : i: FStar.Monotonic.HyperHeap.rid ->
init: a ->
m0: FStar.Monotonic.HyperStack.mem ->
x: FStar.HyperStack.ST.mreference a rel ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let ralloc_post (#a:Type) (#rel:preorder a) (i:rid) (init:a) (m0:mem)
(x:mreference a rel) (m1:mem) =
let region_i = get_hmap m0 `Map.sel` i in
as_ref x `Heap.unused_in` region_i /\
i `is_in` get_hmap m0 /\
i = frameOf x /\
m1 == upd m0 x init | {
"file_name": "ulib/FStar.HyperStack.ST.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 386,
"start_col": 0,
"start_line": 380
} | (*
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.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Map.fsti.checked",
"FStar.HyperStack.fst.checked",
"FStar.Heap.fst.checked"
],
"int... | [
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.Monotonic.Witnessed",
"short_module": "W"
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
i: FStar.Monotonic.HyperHeap.rid ->
init: a ->
m0: FStar.Monotonic.HyperStack.mem ->
x: FStar.HyperStack.ST.mreference a rel ->
m1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.mreference",
"Prims.l_and",
"FStar.Monotonic.Heap.unused_in",
"FStar.Monotonic.HyperStack.as_ref",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_in",
"FStar.Monotonic.HyperStack.get_hma... | [] | false | false | false | false | true | let ralloc_post
(#a: Type)
(#rel: preorder a)
(i: rid)
(init: a)
(m0: mem)
(x: mreference a rel)
(m1: mem)
=
| let region_i = (get_hmap m0) `Map.sel` i in
(as_ref x) `Heap.unused_in` region_i /\ i `is_in` (get_hmap m0) /\ i = frameOf x /\
m1 == upd m0 x init | false | |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.indexable | val indexable : s: FStar.Seq.Base.seq a -> j: Prims.int -> Prims.logical | let indexable (#a:Type) (s:Seq.seq a) (j:int) = 0 <= j /\ j < Seq.length s | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a -> j: Prims.int -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Prims.logical"
] | [] | false | false | false | true | true | let indexable (#a: Type) (s: Seq.seq a) (j: int) =
| 0 <= j /\ j < Seq.length s | false | |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.mem | val mem (#a: eqtype) (x: a) (l: seq a) : Tot bool | val mem (#a: eqtype) (x: a) (l: seq a) : Tot bool | let mem (#a:eqtype) (x:a) (l:seq a) : Tot bool = count x l > 0 | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 77,
"start_col": 0,
"start_line": 77
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> l: FStar.Seq.Base.seq a -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.Seq.Base.seq",
"Prims.op_GreaterThan",
"FStar.Seq.Properties.count",
"Prims.bool"
] | [] | false | false | false | false | false | let mem (#a: eqtype) (x: a) (l: seq a) : Tot bool =
| count x l > 0 | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.snoc | val snoc (#a: Type) (s: seq a) (x: a) : Tot (seq a) | val snoc (#a: Type) (s: seq a) (x: a) : Tot (seq a) | let snoc (#a:Type) (s:seq a) (x:a) : Tot (seq a) = Seq.append s (Seq.create 1 x) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 316,
"start_col": 0,
"start_line": 316
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a -> x: a -> FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"FStar.Seq.Base.append",
"FStar.Seq.Base.create"
] | [] | false | false | false | true | false | let snoc (#a: Type) (s: seq a) (x: a) : Tot (seq a) =
| Seq.append s (Seq.create 1 x) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.sortWith | val sortWith (#a: eqtype) (f: (a -> a -> Tot int)) (s: seq a) : Tot (seq a) | val sortWith (#a: eqtype) (f: (a -> a -> Tot int)) (s: seq a) : Tot (seq a) | let sortWith (#a:eqtype) (f:a -> a -> Tot int) (s:seq a) :Tot (seq a)
= seq_of_list (List.Tot.Base.sortWith f (seq_to_list s)) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 712,
"start_col": 0,
"start_line": 711
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> _: a -> Prims.int) -> s: FStar.Seq.Base.seq a -> FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Prims.int",
"FStar.Seq.Base.seq",
"FStar.Seq.Base.seq_of_list",
"FStar.List.Tot.Base.sortWith",
"FStar.Seq.Base.seq_to_list"
] | [] | false | false | false | false | false | let sortWith (#a: eqtype) (f: (a -> a -> Tot int)) (s: seq a) : Tot (seq a) =
| seq_of_list (List.Tot.Base.sortWith f (seq_to_list s)) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.suffix_of | val suffix_of : s_suff: FStar.Seq.Base.seq a -> s: FStar.Seq.Base.seq a -> Prims.logical | let suffix_of
(#a: Type)
(s_suff s: seq a)
= exists s_pref . (s == append s_pref s_suff) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 520,
"start_col": 0,
"start_line": 517
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"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 | s_suff: FStar.Seq.Base.seq a -> s: FStar.Seq.Base.seq a -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.l_Exists",
"Prims.eq2",
"FStar.Seq.Base.append",
"Prims.logical"
] | [] | false | false | false | true | true | let suffix_of (#a: Type) (s_suff s: seq a) =
| exists s_pref. (s == append s_pref s_suff) | false | |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.of_list | val of_list (#a: Type) (l: list a) : seq a | val of_list (#a: Type) (l: list a) : seq a | let of_list (#a:Type) (l:list a) :seq a = seq_of_list l | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 55,
"end_line": 637,
"start_col": 0,
"start_line": 637
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list a -> FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Seq.Base.seq_of_list",
"FStar.Seq.Base.seq"
] | [] | false | false | false | true | false | let of_list (#a: Type) (l: list a) : seq a =
| seq_of_list l | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.head | val head (#a: Type) (s: seq a {length s > 0}) : Tot a | val head (#a: Type) (s: seq a {length s > 0}) : Tot a | let head (#a:Type) (s:seq a{length s > 0}) : Tot a = index s 0 | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 40,
"start_col": 0,
"start_line": 40
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a {FStar.Seq.Base.length s > 0} -> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.b2t",
"Prims.op_GreaterThan",
"FStar.Seq.Base.length",
"FStar.Seq.Base.index"
] | [] | false | false | false | false | false | let head (#a: Type) (s: seq a {length s > 0}) : Tot a =
| index s 0 | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.split_eq | val split_eq (#a: Type) (s: seq a) (i: nat{(0 <= i /\ i <= length s)})
: Pure (seq a * seq a) (requires True) (ensures (fun x -> (append (fst x) (snd x) == s))) | val split_eq (#a: Type) (s: seq a) (i: nat{(0 <= i /\ i <= length s)})
: Pure (seq a * seq a) (requires True) (ensures (fun x -> (append (fst x) (snd x) == s))) | let split_eq (#a:Type) (s:seq a) (i:nat{(0 <= i /\ i <= length s)})
: Pure
(seq a * seq a)
(requires True)
(ensures (fun x -> (append (fst x) (snd x) == s)))
= let x = split s i in
lemma_split s i;
x | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 69,
"start_col": 0,
"start_line": 62
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a -> i: Prims.nat{0 <= i /\ i <= FStar.Seq.Base.length s}
-> Prims.Pure (FStar.Seq.Base.seq a * FStar.Seq.Base.seq a) | Prims.Pure | [] | [] | [
"FStar.Seq.Base.seq",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.unit",
"FStar.Seq.Properties.lemma_split",
"FStar.Pervasives.Native.tuple2",
"FStar.Seq.Properties.split",
"Prims.l_True",
"Prims.eq2",
"FStar.Seq.Base.append",
"FStar... | [] | false | false | false | false | false | let split_eq (#a: Type) (s: seq a) (i: nat{(0 <= i /\ i <= length s)})
: Pure (seq a * seq a) (requires True) (ensures (fun x -> (append (fst x) (snd x) == s))) =
| let x = split s i in
lemma_split s i;
x | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.tail | val tail (#a: Type) (s: seq a {length s > 0}) : Tot (seq a) | val tail (#a: Type) (s: seq a {length s > 0}) : Tot (seq a) | let tail (#a:Type) (s:seq a{length s > 0}) : Tot (seq a) = slice s 1 (length s) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 79,
"end_line": 42,
"start_col": 0,
"start_line": 42
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a {FStar.Seq.Base.length s > 0} -> FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.b2t",
"Prims.op_GreaterThan",
"FStar.Seq.Base.length",
"FStar.Seq.Base.slice"
] | [] | false | false | false | false | false | let tail (#a: Type) (s: seq a {length s > 0}) : Tot (seq a) =
| slice s 1 (length s) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.split | val split (#a: Type) (s: seq a) (i: nat{(0 <= i /\ i <= length s)}) : Tot (seq a * seq a) | val split (#a: Type) (s: seq a) (i: nat{(0 <= i /\ i <= length s)}) : Tot (seq a * seq a) | let split (#a:Type) (s:seq a) (i:nat{(0 <= i /\ i <= length s)}) : Tot (seq a * seq a)
= slice s 0 i, slice s i (length s) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 57,
"start_col": 0,
"start_line": 56
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a -> i: Prims.nat{0 <= i /\ i <= FStar.Seq.Base.length s}
-> FStar.Seq.Base.seq a * FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Seq.Base.slice",
"FStar.Pervasives.Native.tuple2"
] | [] | false | false | false | false | false | let split (#a: Type) (s: seq a) (i: nat{(0 <= i /\ i <= length s)}) : Tot (seq a * seq a) =
| slice s 0 i, slice s i (length s) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.pointwise_and | val pointwise_and : s: FStar.Seq.Base.seq _ {0 <= FStar.Seq.Base.length s} ->
l: Prims.list _ {FStar.List.Tot.Base.length l + 0 = FStar.Seq.Base.length s}
-> Type0 | let pointwise_and s l =
norm [ iota; zeta; primops; delta_only [ `%(explode_and) ] ] (explode_and 0 s l) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 82,
"end_line": 670,
"start_col": 0,
"start_line": 669
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"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 |
s: FStar.Seq.Base.seq _ {0 <= FStar.Seq.Base.length s} ->
l: Prims.list _ {FStar.List.Tot.Base.length l + 0 = FStar.Seq.Base.length s}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.list",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Addition",
"FStar.List.Tot.Base.length",
"FStar.Pervasives.norm",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.iota",
"FStar.Pe... | [] | false | false | false | false | true | let pointwise_and s l =
| norm [iota; zeta; primops; delta_only [`%(explode_and)]] (explode_and 0 s l) | false | |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.last | val last (#a: Type) (s: seq a {length s > 0}) : Tot a | val last (#a: Type) (s: seq a {length s > 0}) : Tot a | let last (#a:Type) (s:seq a{length s > 0}) : Tot a = index s (length s - 1) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 75,
"end_line": 50,
"start_col": 0,
"start_line": 50
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a {FStar.Seq.Base.length s > 0} -> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.b2t",
"Prims.op_GreaterThan",
"FStar.Seq.Base.length",
"FStar.Seq.Base.index",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let last (#a: Type) (s: seq a {length s > 0}) : Tot a =
| index s (length s - 1) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.count | val count (#a: eqtype) (x: a) (s: seq a) : Tot nat (decreases (length s)) | val count (#a: eqtype) (x: a) (s: seq a) : Tot nat (decreases (length s)) | let rec count (#a:eqtype) (x:a) (s:seq a) : Tot nat (decreases (length s))
= if length s = 0 then 0
else if head s = x
then 1 + count x (tail s)
else count x (tail s) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 75,
"start_col": 0,
"start_line": 71
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> s: FStar.Seq.Base.seq a -> Prims.Tot Prims.nat | Prims.Tot | [
"total",
""
] | [] | [
"Prims.eqtype",
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Seq.Properties.head",
"Prims.op_Addition",
"FStar.Seq.Properties.count",
"FStar.Seq.Properties.tail",
"Prims.nat"
] | [
"recursion"
] | false | false | false | false | false | let rec count (#a: eqtype) (x: a) (s: seq a) : Tot nat (decreases (length s)) =
| if length s = 0 then 0 else if head s = x then 1 + count x (tail s) else count x (tail s) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.replace_subseq | val replace_subseq
(#a: Type0)
(s: Seq.seq a)
(i: nat)
(j: nat{i <= j /\ j <= length s})
(sub: Seq.seq a {length sub == j - i})
: Tot (Seq.seq a) | val replace_subseq
(#a: Type0)
(s: Seq.seq a)
(i: nat)
(j: nat{i <= j /\ j <= length s})
(sub: Seq.seq a {length sub == j - i})
: Tot (Seq.seq a) | let replace_subseq (#a:Type0) (s:Seq.seq a) (i:nat) (j:nat{i <= j /\ j <= length s}) (sub:Seq.seq a{length sub == j - i}) :Tot (Seq.seq a)
= Seq.append (Seq.slice s 0 i) (Seq.append sub (Seq.slice s j (Seq.length s))) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 256,
"start_col": 0,
"start_line": 255
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: FStar.Seq.Base.seq a ->
i: Prims.nat ->
j: Prims.nat{i <= j /\ j <= FStar.Seq.Base.length s} ->
sub: FStar.Seq.Base.seq a {FStar.Seq.Base.length sub == j - i}
-> FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.eq2",
"Prims.int",
"Prims.op_Subtraction",
"FStar.Seq.Base.append",
"FStar.Seq.Base.slice"
] | [] | false | false | false | false | false | let replace_subseq
(#a: Type0)
(s: Seq.seq a)
(i: nat)
(j: nat{i <= j /\ j <= length s})
(sub: Seq.seq a {length sub == j - i})
: Tot (Seq.seq a) =
| Seq.append (Seq.slice s 0 i) (Seq.append sub (Seq.slice s j (Seq.length s))) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.index_mem | val index_mem (#a: eqtype) (x: a) (s: seq a)
: Pure nat
(requires (mem x s))
(ensures (fun i -> i < length s /\ index s i == x))
(decreases (length s)) | val index_mem (#a: eqtype) (x: a) (s: seq a)
: Pure nat
(requires (mem x s))
(ensures (fun i -> i < length s /\ index s i == x))
(decreases (length s)) | let rec index_mem (#a:eqtype) (x:a) (s:seq a)
: Pure nat
(requires (mem x s))
(ensures (fun i -> i < length s /\ index s i == x))
(decreases (length s))
= if head s = x then 0
else 1 + index_mem x (tail s) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 92,
"start_col": 0,
"start_line": 86
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> s: FStar.Seq.Base.seq a -> Prims.Pure Prims.nat | Prims.Pure | [
""
] | [] | [
"Prims.eqtype",
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"FStar.Seq.Properties.head",
"Prims.bool",
"Prims.op_Addition",
"FStar.Seq.Properties.index_mem",
"FStar.Seq.Properties.tail",
"Prims.nat",
"Prims.b2t",
"FStar.Seq.Properties.mem",
"Prims.l_and",
"Prims.op_LessThan",
"FStar.Seq.Bas... | [
"recursion"
] | false | false | false | false | false | let rec index_mem (#a: eqtype) (x: a) (s: seq a)
: Pure nat
(requires (mem x s))
(ensures (fun i -> i < length s /\ index s i == x))
(decreases (length s)) =
| if head s = x then 0 else 1 + index_mem x (tail s) | false |
Steel.MonotonicReference.fst | Steel.MonotonicReference.raise_preorder | val raise_preorder (#a: Type0) (p: Preorder.preorder a) : Preorder.preorder (U.raise_t a) | val raise_preorder (#a: Type0) (p: Preorder.preorder a) : Preorder.preorder (U.raise_t a) | let raise_preorder (#a:Type0) (p:Preorder.preorder a)
: Preorder.preorder (U.raise_t a)
= fun (x0 x1:U.raise_t a) ->
p (U.downgrade_val x0) (U.downgrade_val x1) | {
"file_name": "lib/steel/Steel.MonotonicReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 50,
"end_line": 34,
"start_col": 0,
"start_line": 31
} | (*
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.MonotonicHigherReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Universe.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "FStar.Universe",
"short_module": "U"
},
{
"abbrev": true,
"full_module": "Steel.MonotonicHigherReference",
"short_module": "MHR"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.Preorder.preorder a -> FStar.Preorder.preorder (FStar.Universe.raise_t a) | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Universe.raise_t",
"FStar.Universe.downgrade_val"
] | [] | false | false | false | true | false | let raise_preorder (#a: Type0) (p: Preorder.preorder a) : Preorder.preorder (U.raise_t a) =
| fun (x0: U.raise_t a) (x1: U.raise_t a) -> p (U.downgrade_val x0) (U.downgrade_val x1) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.find_l | val find_l (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Tot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) | val find_l (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Tot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) | let rec find_l (#a:Type) (f:a -> Tot bool) (l:seq a)
: Tot (o:option a{Some? o ==> f (Some?.v o)})
(decreases (Seq.length l))
= if Seq.length l = 0 then None
else if f (head l) then Some (head l)
else find_l f (tail l) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 338,
"start_col": 0,
"start_line": 333
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Prims.bool) -> l: FStar.Seq.Base.seq a
-> Prims.Tot (o: FStar.Pervasives.Native.option a {Some? o ==> f (Some?.v o)}) | Prims.Tot | [
"total",
""
] | [] | [
"Prims.bool",
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"FStar.Pervasives.Native.None",
"FStar.Seq.Properties.head",
"FStar.Pervasives.Native.Some",
"FStar.Seq.Properties.find_l",
"FStar.Seq.Properties.tail",
"FStar.Pervasives.Native.option",
"Prims.l_imp... | [
"recursion"
] | false | false | false | false | false | let rec find_l (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Tot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) =
| if Seq.length l = 0 then None else if f (head l) then Some (head l) else find_l f (tail l) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.sorted | val sorted (#a: Type) (f: (a -> a -> Tot bool)) (s: seq a) : Tot bool (decreases (length s)) | val sorted (#a: Type) (f: (a -> a -> Tot bool)) (s: seq a) : Tot bool (decreases (length s)) | let rec sorted (#a:Type) (f:a -> a -> Tot bool) (s:seq a)
: Tot bool (decreases (length s))
= if length s <= 1
then true
else let hd = head s in
f hd (index s 1) && sorted f (tail s) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 128,
"start_col": 0,
"start_line": 123
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> _: a -> Prims.bool) -> s: FStar.Seq.Base.seq a -> Prims.Tot Prims.bool | Prims.Tot | [
"total",
""
] | [] | [
"Prims.bool",
"FStar.Seq.Base.seq",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.op_AmpAmp",
"FStar.Seq.Base.index",
"FStar.Seq.Properties.sorted",
"FStar.Seq.Properties.tail",
"FStar.Seq.Properties.head"
] | [
"recursion"
] | false | false | false | true | false | let rec sorted (#a: Type) (f: (a -> a -> Tot bool)) (s: seq a) : Tot bool (decreases (length s)) =
| if length s <= 1
then true
else
let hd = head s in
f hd (index s 1) && sorted f (tail s) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.swap | val swap (#a: Type) (s: seq a) (i: nat{i < length s}) (j: nat{j < length s}) : Tot (seq a) | val swap (#a: Type) (s: seq a) (i: nat{i < length s}) (j: nat{j < length s}) : Tot (seq a) | let swap (#a:Type) (s:seq a) (i:nat{i<length s}) (j:nat{j<length s}) : Tot (seq a)
= upd (upd s j (index s i)) i (index s j) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 95,
"start_col": 0,
"start_line": 94
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: FStar.Seq.Base.seq a ->
i: Prims.nat{i < FStar.Seq.Base.length s} ->
j: Prims.nat{j < FStar.Seq.Base.length s}
-> FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"FStar.Seq.Base.upd",
"FStar.Seq.Base.index"
] | [] | false | false | false | false | false | let swap (#a: Type) (s: seq a) (i: nat{i < length s}) (j: nat{j < length s}) : Tot (seq a) =
| upd (upd s j (index s i)) i (index s j) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.splice | val splice
(#a: Type)
(s1: seq a)
(i: nat)
(s2: seq a {length s1 = length s2})
(j: nat{i <= j /\ j <= (length s2)})
: Tot (seq a) | val splice
(#a: Type)
(s1: seq a)
(i: nat)
(s2: seq a {length s1 = length s2})
(j: nat{i <= j /\ j <= (length s2)})
: Tot (seq a) | let splice (#a:Type) (s1:seq a) (i:nat) (s2:seq a{length s1=length s2}) (j:nat{i <= j /\ j <= (length s2)})
: Tot (seq a)
= Seq.append (slice s1 0 i) (Seq.append (slice s2 i j) (slice s1 j (length s1))) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 252,
"start_col": 0,
"start_line": 250
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s1: FStar.Seq.Base.seq a ->
i: Prims.nat ->
s2: FStar.Seq.Base.seq a {FStar.Seq.Base.length s1 = FStar.Seq.Base.length s2} ->
j: Prims.nat{i <= j /\ j <= FStar.Seq.Base.length s2}
-> FStar.Seq.Base.seq a | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.l_and",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.append",
"FStar.Seq.Base.slice"
] | [] | false | false | false | false | false | let splice
(#a: Type)
(s1: seq a)
(i: nat)
(s2: seq a {length s1 = length s2})
(j: nat{i <= j /\ j <= (length s2)})
: Tot (seq a) =
| Seq.append (slice s1 0 i) (Seq.append (slice s2 i j) (slice s1 j (length s1))) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.ghost_find_l | val ghost_find_l (#a: Type) (f: (a -> GTot bool)) (l: seq a)
: GTot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) | val ghost_find_l (#a: Type) (f: (a -> GTot bool)) (l: seq a)
: GTot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) | let rec ghost_find_l (#a:Type) (f:a -> GTot bool) (l:seq a)
: GTot (o:option a{Some? o ==> f (Some?.v o)})
(decreases (Seq.length l))
= if Seq.length l = 0 then None
else if f (head l) then Some (head l)
else ghost_find_l f (tail l) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 345,
"start_col": 0,
"start_line": 340
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Prims.GTot Prims.bool) -> l: FStar.Seq.Base.seq a
-> Prims.GTot (o: FStar.Pervasives.Native.option a {Some? o ==> f (Some?.v o)}) | Prims.GTot | [
"sometrivial",
""
] | [] | [
"Prims.bool",
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"FStar.Pervasives.Native.None",
"FStar.Seq.Properties.head",
"FStar.Pervasives.Native.Some",
"FStar.Seq.Properties.ghost_find_l",
"FStar.Seq.Properties.tail",
"FStar.Pervasives.Native.option",
"Prims... | [
"recursion"
] | false | false | false | false | false | let rec ghost_find_l (#a: Type) (f: (a -> GTot bool)) (l: seq a)
: GTot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) =
| if Seq.length l = 0 then None else if f (head l) then Some (head l) else ghost_find_l f (tail l) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.for_all | val for_all (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Pure bool
(requires True)
(ensures
(fun b -> (b == true <==> (forall (i: nat{i < Seq.length l}). f (index l i) == true)))) | val for_all (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Pure bool
(requires True)
(ensures
(fun b -> (b == true <==> (forall (i: nat{i < Seq.length l}). f (index l i) == true)))) | let for_all
(#a: Type)
(f: (a -> Tot bool))
(l: seq a)
: Pure bool
(requires True)
(ensures (fun b -> (b == true <==> (forall (i: nat {i < Seq.length l} ) . f (index l i) == true))))
= None? (seq_find (fun i -> not (f i)) l) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 419,
"start_col": 0,
"start_line": 412
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Prims.bool) -> l: FStar.Seq.Base.seq a -> Prims.Pure Prims.bool | Prims.Pure | [] | [] | [
"Prims.bool",
"FStar.Seq.Base.seq",
"FStar.Pervasives.Native.uu___is_None",
"FStar.Seq.Properties.seq_find",
"Prims.op_Negation",
"Prims.l_True",
"Prims.l_iff",
"Prims.eq2",
"Prims.l_Forall",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"FStar.Seq.Base.index"
] | [] | false | false | false | false | false | let for_all (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Pure bool
(requires True)
(ensures
(fun b -> (b == true <==> (forall (i: nat{i < Seq.length l}). f (index l i) == true)))) =
| None? (seq_find (fun i -> not (f i)) l) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.seq_find | val seq_find (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Pure (option a)
(requires True)
(ensures
(function
| None -> forall (i: nat{i < Seq.length l}). not (f (Seq.index l i))
| Some x ->
f x /\
(exists (i: nat{i < Seq.length l}). {:pattern (found i)... | val seq_find (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Pure (option a)
(requires True)
(ensures
(function
| None -> forall (i: nat{i < Seq.length l}). not (f (Seq.index l i))
| Some x ->
f x /\
(exists (i: nat{i < Seq.length l}). {:pattern (found i)... | let seq_find (#a:Type) (f:a -> Tot bool) (l:seq a)
: Pure (option a)
(requires True)
(ensures (function
| None -> forall (i:nat{i < Seq.length l}). not (f (Seq.index l i))
| Some x -> f x /\ (exists (i:nat{i < Seq.length l}).{:pattern (found i)}
found i /\ x ... | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 406,
"start_col": 0,
"start_line": 399
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Prims.bool) -> l: FStar.Seq.Base.seq a -> Prims.Pure (FStar.Pervasives.Native.option a) | Prims.Pure | [] | [] | [
"Prims.bool",
"FStar.Seq.Base.seq",
"FStar.Seq.Properties.seq_find_aux",
"FStar.Seq.Base.length",
"FStar.Pervasives.Native.option",
"Prims.l_True",
"Prims.l_Forall",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Negation",
"FStar.Seq.Base.index",
"Prims.l_and",
"Prims.l_Exists",... | [] | false | false | false | false | false | let seq_find (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Pure (option a)
(requires True)
(ensures
(function
| None -> forall (i: nat{i < Seq.length l}). not (f (Seq.index l i))
| Some x ->
f x /\
(exists (i: nat{i < Seq.length l}). {:pattern (found i)... | seq_find_aux f l (Seq.length l) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.un_snoc | val un_snoc (#a: Type) (s: seq a {length s <> 0}) : Tot (r: (seq a * a){s == snoc (fst r) (snd r)}) | val un_snoc (#a: Type) (s: seq a {length s <> 0}) : Tot (r: (seq a * a){s == snoc (fst r) (snd r)}) | let un_snoc (#a:Type) (s:seq a{length s <> 0}) : Tot (r:(seq a * a){s == snoc (fst r) (snd r)}) =
let s', a = split s (length s - 1) in
assert (Seq.equal (snoc s' (Seq.index a 0)) s);
s', Seq.index a 0 | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 368,
"start_col": 0,
"start_line": 365
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq a {FStar.Seq.Base.length s <> 0}
-> r:
(FStar.Seq.Base.seq a * a)
{ s ==
FStar.Seq.Properties.snoc (FStar.Pervasives.Native.fst r) (FStar.Pervasives.Native.snd r) } | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.b2t",
"Prims.op_disEquality",
"Prims.int",
"FStar.Seq.Base.length",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Seq.Base.index",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Seq.Properties.snoc",
"FStar.Pervasives.Native.tuple2",
"Prims.eq2",
"F... | [] | false | false | false | false | false | let un_snoc (#a: Type) (s: seq a {length s <> 0}) : Tot (r: (seq a * a){s == snoc (fst r) (snd r)}) =
| let s', a = split s (length s - 1) in
assert (Seq.equal (snoc s' (Seq.index a 0)) s);
s', Seq.index a 0 | false |
Steel.ST.PCMReference.fst | Steel.ST.PCMReference.witness' | val witness':
#inames: _ ->
#a: Type ->
#pcm: pcm a ->
r: ref a pcm ->
fact: stable_property pcm ->
v: erased a ->
fact_valid_compat fact v ->
Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v) (fun _ -> pts_to r v) | val witness':
#inames: _ ->
#a: Type ->
#pcm: pcm a ->
r: ref a pcm ->
fact: stable_property pcm ->
v: erased a ->
fact_valid_compat fact v ->
Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v) (fun _ -> pts_to r v) | let witness' (#inames: _) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(fact:stable_property pcm)
(v:erased a)
(_:fact_valid_compat fact v)
()
: Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v)
(fun _ -> pts_to r v)
= P.witness... | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 26,
"start_col": 0,
"start_line": 18
} | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMReference.fst"
} | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: Steel.Memory.ref a pcm ->
fact: Steel.Memory.stable_property pcm ->
v: FStar.Ghost.erased a ->
_: Steel.ST.PCMReference.fact_valid_compat fact v ->
_: Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (Steel.Memory.witnessed r fact) | Steel.Effect.Atomic.SteelAtomicUT | [] | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.ref",
"Steel.Memory.stable_property",
"FStar.Ghost.erased",
"Steel.ST.PCMReference.fact_valid_compat",
"Prims.unit",
"Steel.PCMReference.witness",
"FStar.Ghost.hide",
"Steel.Memory.witnessed",
"FStar.Ghost.reveal",
"Steel.ST.PCMReference.pt... | [] | false | true | false | false | false | let witness'
(#inames: _)
(#a: Type)
(#pcm: pcm a)
(r: ref a pcm)
(fact: stable_property pcm)
(v: erased a)
(_: fact_valid_compat fact v)
()
: Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v) (fun _ -> pts_to r v) =
| P.witness r fact v () | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.foldr | val foldr (#a #b: Type) (f: (b -> a -> Tot a)) (s: seq b) (init: a) : Tot a (decreases (length s)) | val foldr (#a #b: Type) (f: (b -> a -> Tot a)) (s: seq b) (init: a) : Tot a (decreases (length s)) | let rec foldr (#a #b:Type) (f:b -> a -> Tot a) (s:seq b) (init:a)
: Tot a (decreases (length s))
= if length s = 0 then init
else f (head s) (foldr f (tail s) init) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 742,
"start_col": 0,
"start_line": 739
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: b -> _: a -> a) -> s: FStar.Seq.Base.seq b -> init: a -> Prims.Tot a | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Seq.Properties.head",
"FStar.Seq.Properties.foldr",
"FStar.Seq.Properties.tail"
] | [
"recursion"
] | false | false | false | true | false | let rec foldr (#a #b: Type) (f: (b -> a -> Tot a)) (s: seq b) (init: a)
: Tot a (decreases (length s)) =
| if length s = 0 then init else f (head s) (foldr f (tail s) init) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.createL | val createL (#a: Type0) (l: list a)
: Pure (seq a) (requires True) (ensures (fun s -> createL_post #a l s)) | val createL (#a: Type0) (l: list a)
: Pure (seq a) (requires True) (ensures (fun s -> createL_post #a l s)) | let createL (#a:Type0) (l:list a)
: Pure (seq a)
(requires True)
(ensures (fun s -> createL_post #a l s))
= let s = seq_of_list l in
lemma_list_seq_bij l;
s | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 453,
"start_col": 0,
"start_line": 447
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list a -> Prims.Pure (FStar.Seq.Base.seq a) | Prims.Pure | [] | [] | [
"Prims.list",
"Prims.unit",
"FStar.Seq.Properties.lemma_list_seq_bij",
"FStar.Seq.Base.seq",
"Prims.eq2",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.Seq.Base.length",
"FStar.Seq.Base.seq_of_list",
"Prims.l_True",
"FStar.Seq.Properties.createL_post"
] | [] | false | false | false | false | false | let createL (#a: Type0) (l: list a)
: Pure (seq a) (requires True) (ensures (fun s -> createL_post #a l s)) =
| let s = seq_of_list l in
lemma_list_seq_bij l;
s | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.foldr_snoc | val foldr_snoc (#a #b: Type) (f: (b -> a -> Tot a)) (s: seq b) (init: a)
: Tot a (decreases (length s)) | val foldr_snoc (#a #b: Type) (f: (b -> a -> Tot a)) (s: seq b) (init: a)
: Tot a (decreases (length s)) | let rec foldr_snoc (#a #b:Type) (f:b -> a -> Tot a) (s:seq b) (init:a)
: Tot a (decreases (length s))
= if length s = 0 then init
else let s, last = un_snoc s in
f last (foldr_snoc f s init) | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 748,
"start_col": 0,
"start_line": 744
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: b -> _: a -> a) -> s: FStar.Seq.Base.seq b -> init: a -> Prims.Tot a | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Seq.Properties.foldr_snoc",
"FStar.Pervasives.Native.tuple2",
"Prims.eq2",
"FStar.Seq.Properties.snoc",
"FStar.Pervasives.Native.fst",
"FStar.Pervasives.Native.snd",
"FStar.Seq.Properties.un_s... | [
"recursion"
] | false | false | false | true | false | let rec foldr_snoc (#a #b: Type) (f: (b -> a -> Tot a)) (s: seq b) (init: a)
: Tot a (decreases (length s)) =
| if length s = 0
then init
else
let s, last = un_snoc s in
f last (foldr_snoc f s init) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.createL_post | val createL_post (#a: Type0) (l: list a) (s: seq a) : GTot Type0 | val createL_post (#a: Type0) (l: list a) (s: seq a) : GTot Type0 | let createL_post (#a:Type0) (l:list a) (s:seq a) : GTot Type0 =
normalize (L.length l = length s) /\ seq_to_list s == l /\ seq_of_list l == s | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 79,
"end_line": 445,
"start_col": 7,
"start_line": 444
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list a -> s: FStar.Seq.Base.seq a -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.list",
"FStar.Seq.Base.seq",
"Prims.l_and",
"FStar.Pervasives.normalize",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.Seq.Base.length",
"Prims.eq2",
"FStar.Seq.Base.seq_to_list",
"FStar.Seq.Base.seq_of_list"
] | [] | false | false | false | false | true | let createL_post (#a: Type0) (l: list a) (s: seq a) : GTot Type0 =
| normalize (L.length l = length s) /\ seq_to_list s == l /\ seq_of_list l == s | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid' | val valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: GTot Type0 | val valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: GTot Type0 | let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: GTot Type0
= U32.v pos <= U32.v s.len /\
live_slice h s /\
Some? (parse p (bytes_of_slice_from h s pos)) | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 47,
"end_line": 23,
"start_col": 0,
"start_line": 12
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"LowParse.Slice.__proj__Mkslice__it... | [] | false | false | false | false | true | let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: GTot Type0 =
| U32.v pos <= U32.v s.len /\ live_slice h s /\ Some? (parse p (bytes_of_slice_from h s pos)) | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.find_r | val find_r (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Tot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) | val find_r (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Tot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) | let rec find_r (#a:Type) (f:a -> Tot bool) (l:seq a)
: Tot (o:option a{Some? o ==> f (Some?.v o)})
(decreases (Seq.length l))
= if Seq.length l = 0 then None
else let prefix, last = un_snoc l in
if f last then Some last
else find_r f prefix | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 378,
"start_col": 0,
"start_line": 372
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Prims.bool) -> l: FStar.Seq.Base.seq a
-> Prims.Tot (o: FStar.Pervasives.Native.option a {Some? o ==> f (Some?.v o)}) | Prims.Tot | [
"total",
""
] | [] | [
"Prims.bool",
"FStar.Seq.Base.seq",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.Some",
"FStar.Seq.Properties.find_r",
"FStar.Pervasives.Native.option",
"Prims.l_imp",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
... | [
"recursion"
] | false | false | false | false | false | let rec find_r (#a: Type) (f: (a -> Tot bool)) (l: seq a)
: Tot (o: option a {Some? o ==> f (Some?.v o)}) (decreases (Seq.length l)) =
| if Seq.length l = 0
then None
else
let prefix, last = un_snoc l in
if f last then Some last else find_r f prefix | false |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.seq_find_aux | val seq_find_aux (#a: Type) (f: (a -> Tot bool)) (l: seq a) (ctr: nat{ctr <= Seq.length l})
: Pure (option a)
(requires (forall (i: nat{i < Seq.length l /\ i >= ctr}). not (f (Seq.index l i))))
(ensures
(function
| None -> forall (i: nat{i < Seq.length l}). not (f (Seq.index l i))
... | val seq_find_aux (#a: Type) (f: (a -> Tot bool)) (l: seq a) (ctr: nat{ctr <= Seq.length l})
: Pure (option a)
(requires (forall (i: nat{i < Seq.length l /\ i >= ctr}). not (f (Seq.index l i))))
(ensures
(function
| None -> forall (i: nat{i < Seq.length l}). not (f (Seq.index l i))
... | let rec seq_find_aux (#a:Type) (f:a -> Tot bool) (l:seq a) (ctr:nat{ctr <= Seq.length l})
: Pure (option a)
(requires (forall (i:nat{ i < Seq.length l /\ i >= ctr}).
not (f (Seq.index l i) )))
(ensures (function
| None -> forall (i:nat{i < Seq.length l}). not (f (Seq.index l i))
... | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 397,
"start_col": 0,
"start_line": 382
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Prims.bool) -> l: FStar.Seq.Base.seq a -> ctr: Prims.nat{ctr <= FStar.Seq.Base.length l}
-> Prims.Pure (FStar.Pervasives.Native.option a) | Prims.Pure | [] | [] | [
"Prims.bool",
"FStar.Seq.Base.seq",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"FStar.Pervasives.Native.None",
"Prims.int",
"FStar.Seq.Base.index",
"FStar.Pervasives.Native.Some",
"Prims.unit",
"Prims.cut",
"FStar.Seq.Properties.found",
"FStar.Seq.Proper... | [
"recursion"
] | false | false | false | false | false | let rec seq_find_aux (#a: Type) (f: (a -> Tot bool)) (l: seq a) (ctr: nat{ctr <= Seq.length l})
: Pure (option a)
(requires (forall (i: nat{i < Seq.length l /\ i >= ctr}). not (f (Seq.index l i))))
(ensures
(function
| None -> forall (i: nat{i < Seq.length l}). not (f (Seq.index l i))
... | match ctr with
| 0 -> None
| _ ->
let i = ctr - 1 in
if f (Seq.index l i)
then
(cut (found i);
Some (Seq.index l i))
else seq_find_aux f l i | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_pos | val valid_pos : p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> Prims.logical | let valid_pos
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
= valid p h sl pos /\
U32.v pos + content_length p h sl pos == U32.v pos' | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 53,
"end_line": 260,
"start_col": 0,
"start_line": 250
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid",
"Prims.eq2",
"Prims.int",
"Prims.op_Addition",
"FStar.UInt32... | [] | false | false | false | false | true | let valid_pos
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
=
| valid p h sl pos /\ U32.v pos + content_length p h sl pos == U32.v pos' | false | |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_content | val valid_content : p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
x: t
-> Prims.logical | let valid_content
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(x: t)
= valid p h sl pos /\
contents p h sl pos == x | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 335,
"start_col": 0,
"start_line": 325
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
x: t
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid",
"Prims.eq2",
"LowParse.Low.Base.Spec.contents",
"Prims.logical... | [] | false | false | false | false | true | let valid_content
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(x: t)
=
| valid p h sl pos /\ contents p h sl pos == x | false | |
FStar.Seq.Properties.fsti | FStar.Seq.Properties.sort_lseq | val sort_lseq (#a: eqtype) (#n: _) (f: tot_ord a) (s: lseq a n)
: s': lseq a n {sorted f s' /\ permutation a s s'} | val sort_lseq (#a: eqtype) (#n: _) (f: tot_ord a) (s: lseq a n)
: s': lseq a n {sorted f s' /\ permutation a s s'} | let sort_lseq (#a:eqtype) #n (f:tot_ord a) (s:lseq a n)
: s':lseq a n{sorted f s' /\ permutation a s s'} =
lemma_seq_sortwith_correctness (L.compare_of_bool f) s;
let s' = sortWith (L.compare_of_bool f) s in
perm_len s s';
sorted_feq f (L.bool_of_compare (L.compare_of_bool f)) s';
s' | {
"file_name": "ulib/FStar.Seq.Properties.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 4,
"end_line": 737,
"start_col": 0,
"start_line": 731
} | (*
Copyright 2008-2014 Nikhil Swamy and 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 appli... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.Properties.fst.checked",
"FStar.List.Tot.Base.fst.checked",
"FStar.List.Tot.fst.checked"
],
"interface_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Seq.Base",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "FStar.Seq.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: FStar.Seq.Properties.tot_ord a -> s: FStar.Seq.Properties.lseq a n
-> s':
FStar.Seq.Properties.lseq a n
{FStar.Seq.Properties.sorted f s' /\ FStar.Seq.Properties.permutation a s s'} | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Prims.nat",
"FStar.Seq.Properties.tot_ord",
"FStar.Seq.Properties.lseq",
"Prims.unit",
"FStar.Seq.Properties.sorted_feq",
"FStar.List.Tot.Base.bool_of_compare",
"FStar.List.Tot.Base.compare_of_bool",
"FStar.Seq.Properties.perm_len",
"FStar.Seq.Base.seq",
"FStar.Seq.Properties.so... | [] | false | false | false | false | false | let sort_lseq (#a: eqtype) #n (f: tot_ord a) (s: lseq a n)
: s': lseq a n {sorted f s' /\ permutation a s s'} =
| lemma_seq_sortwith_correctness (L.compare_of_bool f) s;
let s' = sortWith (L.compare_of_bool f) s in
perm_len s s';
sorted_feq f (L.bool_of_compare (L.compare_of_bool f)) s';
s' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_content_pos | val valid_content_pos : p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
x: t ->
pos': FStar.UInt32.t
-> Prims.logical | let valid_content_pos
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(x: t)
(pos' : U32.t)
= valid_pos p h sl pos pos' /\
valid_content p h sl pos x | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 348,
"start_col": 0,
"start_line": 337
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
x: t ->
pos': FStar.UInt32.t
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid_pos",
"LowParse.Low.Base.Spec.valid_content",
"Prims.logical"
] | [] | false | false | false | false | true | let valid_content_pos
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(x: t)
(pos': U32.t)
=
| valid_pos p h sl pos pos' /\ valid_content p h sl pos x | false | |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_id | val clens_id (t: Type) : Tot (clens t t) | val clens_id (t: Type) : Tot (clens t t) | let clens_id (t: Type) : Tot (clens t t) = {
clens_cond = (fun _ -> True);
clens_get = (fun x -> x);
} | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 957,
"start_col": 0,
"start_line": 954
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Type -> LowParse.Low.Base.Spec.clens t t | Prims.Tot | [
"total"
] | [] | [
"LowParse.Low.Base.Spec.Mkclens",
"Prims.l_True",
"LowParse.Low.Base.Spec.clens"
] | [] | false | false | false | true | false | let clens_id (t: Type) : Tot (clens t t) =
| { clens_cond = (fun _ -> True); clens_get = (fun x -> x) } | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_compose_strong_pre | val clens_compose_strong_pre (#t1 #t2 #t3: Type) (l12: clens t1 t2) (l23: clens t2 t3) : GTot Type0 | val clens_compose_strong_pre (#t1 #t2 #t3: Type) (l12: clens t1 t2) (l23: clens t2 t3) : GTot Type0 | let clens_compose_strong_pre
(#t1: Type)
(#t2: Type)
(#t3: Type)
(l12: clens t1 t2)
(l23: clens t2 t3)
: GTot Type0
= forall (x: t1) . {:pattern (l12.clens_cond x) \/ (l23.clens_cond (l12.clens_get x))} l12.clens_cond x ==> l23.clens_cond (l12.clens_get x) | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 140,
"end_line": 1140,
"start_col": 0,
"start_line": 1133
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l12: LowParse.Low.Base.Spec.clens t1 t2 -> l23: LowParse.Low.Base.Spec.clens t2 t3
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Low.Base.Spec.clens",
"Prims.l_Forall",
"Prims.l_imp",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_get"
] | [] | false | false | false | false | true | let clens_compose_strong_pre (#t1 #t2 #t3: Type) (l12: clens t1 t2) (l23: clens t2 t3) : GTot Type0 =
| forall (x: t1). {:pattern (l12.clens_cond x)\/(l23.clens_cond (l12.clens_get x))}
l12.clens_cond x ==> l23.clens_cond (l12.clens_get x) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_elim | val valid_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos)) (ensures (valid' p h s pos)) | val valid_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos)) (ensures (valid' p h s pos)) | let valid_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (valid p h s pos))
(ensures (valid' p h s pos))
// [SMTPat (valid p h s pos)]
= valid_equiv p h s pos | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 72,
"start_col": 0,
"start_line": 60
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid p h s pos)
(ensures LowParse.Low.Base.Spec.valid' p h s pos) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_equiv",
"Prims.unit",
"LowParse.Low.Base.Spec.valid",
"Prims.squash",
"LowParse... | [] | true | false | true | false | false | let valid_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos)) (ensures (valid' p h s pos)) =
| valid_equiv p h s pos | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_no_lookahead | val gaccessor_no_lookahead : f: LowParse.Low.Base.Spec.gaccessor' p1 p2 cl -> Prims.logical | let gaccessor_no_lookahead
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
= (k1.parser_kind_subkind == Some ParserStrong ==> (forall (sl sl' : bytes) . {:pattern (f sl); (f sl')} (gaccessor_pre p1 p2 cl sl... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 219,
"end_line": 1251,
"start_col": 0,
"start_line": 1242
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: LowParse.Low.Base.Spec.gaccessor' p1 p2 cl -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor'",
"Prims.l_imp",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind... | [] | false | false | false | false | true | let gaccessor_no_lookahead
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
=
| (k1.parser_kind_subkind == Some ParserStrong ==>
(forall (sl: bytes) (sl': bytes). {:pattern (f sl); (f sl')}
(gaccessor_pre p1 p2 cl sl /\ gaccessor_pre p1 p2 cl sl' /\ no_lookahead_on_precond p1 sl sl') ==>
f sl == f sl')) | false | |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_pos_consumes_all | val valid_pos_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h sl pos /\ k.parser_kind_subkind == Some ParserConsumesAll))
(ensures (valid_pos p h sl pos sl.len)) | val valid_pos_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h sl pos /\ k.parser_kind_subkind == Some ParserConsumesAll))
(ensures (valid_pos p h sl pos sl.len)) | let valid_pos_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (
valid p h sl pos /\
k.parser_kind_subkind == Some ParserConsumesAll
))
(ensures (
valid_pos p h sl pos sl.len
))
= parser_kind_prop_... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 24,
"end_line": 323,
"start_col": 0,
"start_line": 306
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.Spec.valid p h sl pos /\
Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Nati... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_facts",
"Prims.unit",
"LowParse.Spec.Base.parser_kind_prop_equiv",
"Prims.l_and",... | [] | true | false | true | false | false | let valid_pos_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h sl pos /\ k.parser_kind_subkind == Some ParserConsumesAll))
(ensures (valid_pos p h sl pos sl.len)) =
| parser_kind_prop_equiv k p;
valid_facts p h sl pos | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_pre | val gaccessor_pre
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
: GTot Type0 | val gaccessor_pre
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
: GTot Type0 | let gaccessor_pre
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
: GTot Type0
= match parse p1 sl with
| Some (x1, _) -> cl.clens_cond x1
| _ -> False | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 14,
"end_line": 1185,
"start_col": 0,
"start_line": 1173
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p1: LowParse.Spec.Base.parser k1 t1 ->
p2: LowParse.Spec.Base.parser k2 t2 ->
cl: LowParse.Low.Base.Spec.clens t1 t2 ->
sl: LowParse.Bytes.bytes
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.parse",
"LowParse.Spec.Base.consumed_length",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Nat... | [] | false | false | false | false | true | let gaccessor_pre
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
: GTot Type0 =
| match parse p1 sl with
| Some (x1, _) -> cl.clens_cond x1
| _ -> False | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_compose_cond | val clens_compose_cond (#t1 #t2: Type) (l12: clens t1 t2) (clens_cond2: (t2 -> GTot Type0)) (x1: t1)
: GTot Type0 | val clens_compose_cond (#t1 #t2: Type) (l12: clens t1 t2) (clens_cond2: (t2 -> GTot Type0)) (x1: t1)
: GTot Type0 | let clens_compose_cond
(#t1: Type)
(#t2: Type)
(l12: clens t1 t2)
(clens_cond2: t2 -> GTot Type0)
(x1: t1)
: GTot Type0
= l12.clens_cond x1 /\
clens_cond2 (l12.clens_get x1) | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 32,
"end_line": 1109,
"start_col": 0,
"start_line": 1101
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l12: LowParse.Low.Base.Spec.clens t1 t2 -> clens_cond2: (_: t2 -> Prims.GTot Type0) -> x1: t1
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Low.Base.Spec.clens",
"Prims.l_and",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_get"
] | [] | false | false | false | false | true | let clens_compose_cond (#t1 #t2: Type) (l12: clens t1 t2) (clens_cond2: (t2 -> GTot Type0)) (x1: t1)
: GTot Type0 =
| l12.clens_cond x1 /\ clens_cond2 (l12.clens_get x1) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_elim | val valid_exact_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos')) (ensures (valid_exact' p h s pos pos')) | val valid_exact_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos')) (ensures (valid_exact' p h s pos pos')) | let valid_exact_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (valid_exact p h s pos pos'))
(ensures (valid_exact' p h s pos pos'))
// [SMTPat (valid_exact p h s pos pos')]
= valid_exact_equiv p h s po... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 449,
"start_col": 0,
"start_line": 436
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid_exact p h s pos pos')
(ensures LowParse.Low.Base.Spec.valid_exact' p h s ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_exact_equiv",
"Prims.unit",
"LowParse.Low.Base.Spec.valid_exact",
"Prims.squash",... | [] | true | false | true | false | false | let valid_exact_elim
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos')) (ensures (valid_exact' p h s pos pos')) =
| valid_exact_equiv p h s pos pos' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_elim' | val valid_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos))
(ensures (U32.v pos + k.parser_kind_low <= U32.v s.len /\ live_slice h s))
[SMTPat (valid p h s pos)] | val valid_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos))
(ensures (U32.v pos + k.parser_kind_low <= U32.v s.len /\ live_slice h s))
[SMTPat (valid p h s pos)] | let valid_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (valid p h s pos))
(ensures (U32.v pos + k.parser_kind_low <= U32.v s.len /\
live_slice h s))
[SMTPat (valid p h s pos)]
= parser_kind_prop_equiv k p;
valid... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 88,
"start_col": 0,
"start_line": 74
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid p h s pos)
(ensures
FStar.UInt32.v pos + Mkparser_kind'?.parser_kind_low k <= FStar.UInt32.v ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_equiv",
"Prims.unit",
"LowParse.Spec.Base.parser_kind_prop_equiv",
"LowParse.Low.... | [] | true | false | true | false | false | let valid_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos))
(ensures (U32.v pos + k.parser_kind_low <= U32.v s.len /\ live_slice h s))
[SMTPat (valid p h s pos)] =... | parser_kind_prop_equiv k p;
valid_equiv p h s pos | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact' | val valid_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: GTot Type0 | val valid_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: GTot Type0 | let valid_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: GTot Type0
= U32.v pos <= U32.v pos' /\
U32.v pos' <= U32.v s.len /\
live_slice h s /\ (
let len' = pos' `U32.sub` pos in
match parse p (bytes_of_slice_from... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 411,
"start_col": 0,
"start_line": 394
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"LowParse.Slice.__proj__Mkslice__it... | [] | false | false | false | false | true | let valid_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: GTot Type0 =
| U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.len /\ live_slice h s /\
(let len' = pos' `U32.sub` pos in
match parse p (bytes_of_slice_from_to h s pos pos') with
| None -> False
| Some (_, consumed) -> (consumed <: nat) == U32.v len') | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.contents' | val contents'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Ghost t (requires (valid' p h s pos)) (ensures (fun _ -> True)) | val contents'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Ghost t (requires (valid' p h s pos)) (ensures (fun _ -> True)) | let contents'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Ghost t
(requires (valid' p h s pos))
(ensures (fun _ -> True))
= let Some (v, _) = parse p (bytes_of_slice_from h s pos) in
v | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 102,
"start_col": 0,
"start_line": 90
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> Prims.Ghost t | Prims.Ghost | [] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Spec.Base.consumed_length",
"LowParse.Slice.bytes_of_slice_from",
"FStar.Pervasives.Native.option",
"... | [] | false | false | false | false | false | let contents'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Ghost t (requires (valid' p h s pos)) (ensures (fun _ -> True)) =
| let Some (v, _) = parse p (bytes_of_slice_from h s pos) in
v | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_post' | val gaccessor_post'
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
(res: nat)
: GTot Type0 | val gaccessor_post'
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
(res: nat)
: GTot Type0 | let gaccessor_post'
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl : bytes)
(res: nat)
: GTot Type0
=
res <= Seq.length sl /\
(gaccessor_pre p1 p2 cl sl ==> gaccessor_post p1 p2 cl sl res) | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 66,
"end_line": 1224,
"start_col": 0,
"start_line": 1211
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p1: LowParse.Spec.Base.parser k1 t1 ->
p2: LowParse.Spec.Base.parser k2 t2 ->
cl: LowParse.Low.Base.Spec.clens t1 t2 ->
sl: LowParse.Bytes.bytes ->
res: Prims.nat
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Bytes.bytes",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"Prims.l_imp",
"LowParse.Low.Base.Spec.gaccessor_pre",
"... | [] | false | false | false | false | true | let gaccessor_post'
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
(res: nat)
: GTot Type0 =
| res <= Seq.length sl /\ (gaccessor_pre p1 p2 cl sl ==> gaccessor_post p1 p2 cl sl res) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.contents_exact' | val contents_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Ghost t (requires (valid_exact' p h s pos pos')) (ensures (fun _ -> True)) | val contents_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Ghost t (requires (valid_exact' p h s pos pos')) (ensures (fun _ -> True)) | let contents_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Ghost t
(requires (valid_exact' p h s pos pos'))
(ensures (fun _ -> True))
= let (Some (v, _)) = parse p (bytes_of_slice_from_to h s pos pos') in
v | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 489,
"start_col": 0,
"start_line": 476
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> Prims.Ghost t | Prims.Ghost | [] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Spec.Base.consumed_length",
"LowParse.Low.Base.Spec.bytes_of_slice_from_to",
"FStar.Pervasives.Native.o... | [] | false | false | false | false | false | let contents_exact'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Ghost t (requires (valid_exact' p h s pos pos')) (ensures (fun _ -> True)) =
| let Some (v, _) = parse p (bytes_of_slice_from_to h s pos pos') in
v | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.content_length_post | val content_length_post
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h sl pos))
(ensures
(let res = content_length p h sl pos in
U32.v pos + res <= U32.v sl.len ... | val content_length_post
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h sl pos))
(ensures
(let res = content_length p h sl pos in
U32.v pos + res <= U32.v sl.len ... | let content_length_post
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (valid p h sl pos))
(ensures (
let res = content_length p h sl pos in
U32.v pos + res <= U32.v sl.len /\
k.parser_kind_low <= res /\ (
ma... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 216,
"start_col": 0,
"start_line": 197
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid p h sl pos)
(ensures
(let res = LowParse.Low.Base.Spec.content_length p h sl pos in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.content_length_eq_gen",
"Prims.unit",
"LowParse.Low.Base.Spec.valid",
"Prims.squash",
... | [] | true | false | true | false | false | let content_length_post
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h sl pos))
(ensures
(let res = content_length p h sl pos in
U32.v pos + res <= U32.v sl.len ... | content_length_eq_gen p h sl pos | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.content_length' | val content_length'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Ghost nat
(requires (valid' p h sl pos))
(ensures
(fun res ->
U32.v pos + res <= U32.v sl.len /\ k.parser_kind_lo... | val content_length'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Ghost nat
(requires (valid' p h sl pos))
(ensures
(fun res ->
U32.v pos + res <= U32.v sl.len /\ k.parser_kind_lo... | let content_length'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Ghost nat
(requires (valid' p h sl pos))
(ensures (fun res ->
U32.v pos + res <= U32.v sl.len /\
k.parser_kind_low <= res /\ (
match k.parser_kind_high with
... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 10,
"end_line": 147,
"start_col": 0,
"start_line": 128
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> Prims.Ghost Prims.nat | Prims.Ghost | [] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Spec.Base.consumed_length",
"LowParse.Slice.bytes_of_slice_from",
"Prims.unit",
"LowParse.Spec.Base.p... | [] | false | false | false | false | false | let content_length'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Ghost nat
(requires (valid' p h sl pos))
(ensures
(fun res ->
U32.v pos + res <= U32.v sl.len /\ k.parser_kind_lo... | let Some (_, consumed) = parse p (bytes_of_slice_from h sl pos) in
parser_kind_prop_equiv k p;
consumed | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_facts | val valid_facts
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma
((valid p h sl pos <==> valid' p h sl pos) /\
(valid p h sl pos ==>
(contents p h sl pos == contents' p h sl pos /\
... | val valid_facts
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma
((valid p h sl pos <==> valid' p h sl pos) /\
(valid p h sl pos ==>
(contents p h sl pos == contents' p h sl pos /\
... | let valid_facts
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma
((valid p h sl pos <==> valid' p h sl pos) /\
(valid p h sl pos ==> (
contents p h sl pos == contents' p h sl pos /\
content_length p h sl pos == content_length... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 60,
"end_line": 234,
"start_col": 0,
"start_line": 218
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(ensures
(LowParse.Low.Base.Spec.valid p h sl pos <==> LowParse.Low.Base.Spec.valid' p h sl pos) /\
(LowParse.Low.Base.Spec.valid... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Classical.move_requires",
"LowParse.Low.Base.Spec.valid",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid'"... | [] | false | false | true | false | false | let valid_facts
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
: Lemma
((valid p h sl pos <==> valid' p h sl pos) /\
(valid p h sl pos ==>
(contents p h sl pos == contents' p h sl pos /\
... | valid_equiv p h sl pos;
Classical.move_requires (contents_eq p h sl) pos;
Classical.move_requires (content_length_eq_gen p h sl) pos | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_pos_frame_strong | val valid_pos_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ B.modifies l h h' /\ B.loc_disjoint (loc_slice_... | val valid_pos_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ B.modifies l h h' /\ B.loc_disjoint (loc_slice_... | let valid_pos_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (
live_slice h sl /\
B.modifies l h h' /\ B.loc_disjoint (loc_slice_from_to sl pos pos') l /\ k.par... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 73,
"end_line": 786,
"start_col": 0,
"start_line": 765
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Sli... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.loc",
"FStar.Classical.move_requires",
"Prims.l_and",
"LowParse.Slice.live_slice",
... | [] | false | false | true | false | false | let valid_pos_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ B.modifies l h h' /\ B.loc_disjoint (loc_slice_... | Classical.move_requires (valid_pos_frame_strong_1 p h sl pos pos' l) h';
Classical.move_requires (valid_pos_frame_strong_2 p h sl pos pos' l) h' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.bytes_of_slice_from_to | val bytes_of_slice_from_to (#rrel #rel: _) (h: HS.mem) (s: slice rrel rel) (pos pos': U32.t)
: Ghost bytes
(requires (U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.len))
(ensures (fun _ -> True)) | val bytes_of_slice_from_to (#rrel #rel: _) (h: HS.mem) (s: slice rrel rel) (pos pos': U32.t)
: Ghost bytes
(requires (U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.len))
(ensures (fun _ -> True)) | let bytes_of_slice_from_to (#rrel #rel: _)
(h: HS.mem) (s: slice rrel rel) (pos pos': U32.t) : Ghost bytes (requires (U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.len)) (ensures (fun _ -> True)) =
Seq.slice (B.as_seq h s.base) (U32.v pos) (U32.v pos') | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 56,
"end_line": 392,
"start_col": 0,
"start_line": 390
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> Prims.Ghost LowParse.Bytes.bytes | Prims.Ghost | [] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Seq.Base.slice",
"LowStar.Monotonic.Buffer.as_seq",
"LowParse.Slice.buffer_srel_of_srel",
"LowParse.Slice.__proj__Mkslice__item__base",
"FStar.UInt32.v",
"LowParse.Byt... | [] | false | false | false | false | false | let bytes_of_slice_from_to (#rrel #rel: _) (h: HS.mem) (s: slice rrel rel) (pos pos': U32.t)
: Ghost bytes
(requires (U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.len))
(ensures (fun _ -> True)) =
| Seq.slice (B.as_seq h s.base) (U32.v pos) (U32.v pos') | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_injective | val gaccessor_injective : f: LowParse.Low.Base.Spec.gaccessor' p1 p2 cl -> Prims.logical | let gaccessor_injective
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
= (forall (sl sl' : bytes) . {:pattern (f sl); (f sl')} (gaccessor_pre p1 p2 cl sl /\ gaccessor_pre p1 p2 cl sl' /\ injective_precond ... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 163,
"end_line": 1281,
"start_col": 0,
"start_line": 1272
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: LowParse.Low.Base.Spec.gaccessor' p1 p2 cl -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor'",
"Prims.l_Forall",
"LowParse.Bytes.bytes",
"Prims.l_imp",
"Prims.l_and",
"LowParse.Low.Base.Spec.gaccessor_pre",
"LowParse.Spec.Base.injective_precond",
"Prims.eq2",... | [] | false | false | false | false | true | let gaccessor_injective
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
=
| (forall (sl: bytes) (sl': bytes). {:pattern (f sl); (f sl')}
(gaccessor_pre p1 p2 cl sl /\ gaccessor_pre p1 p2 cl sl' /\ injective_precond p1 sl sl') ==>
f sl == f sl') | false | |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_pos_valid_exact_pat | val valid_pos_valid_exact_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_exact p h s pos pos... | val valid_pos_valid_exact_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_exact p h s pos pos... | let valid_pos_valid_exact_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (
valid_exact p h s pos pos' /\
contents... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 38,
"end_line": 681,
"start_col": 0,
"start_line": 665
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.Spec.valid_pos p h s pos pos' /\
Mkparser_kind'?.parser_kind_subkind... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_pos_valid_exact",
"Prims.unit",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid_pos"... | [] | true | false | true | false | false | let valid_pos_valid_exact_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_exact p h s pos pos... | valid_pos_valid_exact p h s pos pos' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_elim' | val valid_exact_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos'))
(ensures
(live_slice h s /\ U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.le... | val valid_exact_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos'))
(ensures
(live_slice h s /\ U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.le... | let valid_exact_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (valid_exact p h s pos pos'))
(ensures (
live_slice h s /\
U32.v pos <= U32.v pos' /\
U32.v pos' <= U32.v s.len /\ (
let le... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 474,
"start_col": 0,
"start_line": 451
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid_exact p h s pos pos')
(ensures
LowParse.Slice.live_slice h s /\ F... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_exact_equiv",
"Prims.unit",
"LowParse.Spec.Base.parser_kind_prop_equiv",
"LowPars... | [] | true | false | true | false | false | let valid_exact_elim'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos'))
(ensures
(live_slice h s /\ U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.le... | parser_kind_prop_equiv k p;
valid_exact_equiv p h s pos pos' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_prop' | val gaccessor_prop'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
: GTot Type0 | val gaccessor_prop'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
: GTot Type0 | let gaccessor_prop'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
: GTot Type0
= gaccessor_no_lookahead f /\ gaccessor_injective f | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 51,
"end_line": 1293,
"start_col": 0,
"start_line": 1283
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: LowParse.Low.Base.Spec.gaccessor' p1 p2 cl -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor'",
"Prims.l_and",
"LowParse.Low.Base.Spec.gaccessor_no_lookahead",
"LowParse.Low.Base.Spec.gaccessor_injective"
] | [] | false | false | false | false | true | let gaccessor_prop'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
: GTot Type0 =
| gaccessor_no_lookahead f /\ gaccessor_injective f | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_serialize | val valid_exact_serialize
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h sl pos pos'))
(ensures
(serialize s (contents_exact p h sl pos... | val valid_exact_serialize
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h sl pos pos'))
(ensures
(serialize s (contents_exact p h sl pos... | let valid_exact_serialize
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (valid_exact p h sl pos pos'))
(ensures (
serialize s (contents_exact p h sl pos pos') == bytes_of_slice_from... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 4,
"end_line": 535,
"start_col": 0,
"start_line": 517
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: LowParse.Spec.Base.serializer p ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid_exact p h sl pos pos')
(ensures
LowParse.Spec.Base.serialize s... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.unit",
"LowParse.Spec.Base.serializer_correct_implies_complete",
"LowPa... | [] | true | false | true | false | false | let valid_exact_serialize
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h sl pos pos'))
(ensures
(serialize s (contents_exact p h sl pos... | valid_exact_equiv p h sl pos pos';
contents_exact_eq p h sl pos pos';
serializer_correct_implies_complete p s;
() | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.get_gaccessor_clens | val get_gaccessor_clens
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
: Tot (clens t1 t2) | val get_gaccessor_clens
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
: Tot (clens t1 t2) | let get_gaccessor_clens
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
: Tot (clens t1 t2)
= cl | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 4,
"end_line": 1340,
"start_col": 0,
"start_line": 1330
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: LowParse.Low.Base.Spec.gaccessor p1 p2 cl -> LowParse.Low.Base.Spec.clens t1 t2 | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor"
] | [] | false | false | false | false | false | let get_gaccessor_clens
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
: Tot (clens t1 t2) =
| cl | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_valid | val valid_exact_valid
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_content_pos p h s pos (co... | val valid_exact_valid
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_content_pos p h s pos (co... | let valid_exact_valid
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (
valid_content_pos p h s pos (contents_exact p h ... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 91,
"end_line": 700,
"start_col": 0,
"start_line": 683
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.Spec.valid_exact p h s pos pos' /\
Mkparser_kind'?.parser_kind_subki... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Spec.Base.parse_strong_prefix",
"LowParse.Low.Base.Spec.bytes_of_slice_from_to",
"LowParse.Slice.bytes_... | [] | true | false | true | false | false | let valid_exact_valid
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_content_pos p h s pos (co... | valid_exact_equiv p h s pos pos';
contents_exact_eq p h s pos pos';
valid_facts p h s pos;
parse_strong_prefix p (bytes_of_slice_from_to h s pos pos') (bytes_of_slice_from h s pos) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_valid_pat | val valid_exact_valid_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_content_pos p h s pos... | val valid_exact_valid_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_content_pos p h s pos... | let valid_exact_valid_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (
valid_content_pos p h s pos (contents_exact ... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 717,
"start_col": 0,
"start_line": 702
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.Spec.valid_exact p h s pos pos' /\
Mkparser_kind'?.parser_kind_subki... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_exact_valid",
"Prims.unit",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid_exact",
... | [] | true | false | true | false | false | let valid_exact_valid_pat
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_exact p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_content_pos p h s pos... | valid_exact_valid p h s pos pos' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_frame | val valid_exact_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h s /\ B.modifies l h h' /\ B.loc_disjoint l (loc_slice_from_... | val valid_exact_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h s /\ B.modifies l h h' /\ B.loc_disjoint l (loc_slice_from_... | let valid_exact_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
(l: B.loc)
(h' : HS.mem)
: Lemma
(requires (live_slice h s /\ B.modifies l h h' /\ B.loc_disjoint l (loc_slice_from_to s pos pos')))
(ensures (
(vali... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 30,
"end_line": 602,
"start_col": 0,
"start_line": 563
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Slic... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.loc",
"FStar.Classical.move_requires",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
... | [] | false | false | true | false | false | let valid_exact_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h s /\ B.modifies l h h' /\ B.loc_disjoint l (loc_slice_from_... | let f ()
: Lemma
(requires
(U32.v pos <= U32.v pos' /\ U32.v pos' <= U32.v s.len /\
(valid_exact p h s pos pos' \/ valid_exact p h' s pos pos')))
(ensures
(valid_exact p h s pos pos' /\ valid_exact p h' s pos pos' /\
contents_exact p h' s pos pos' == contents_exact p ... | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_valid_exact_consumes_all | val valid_valid_exact_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (k.parser_kind_subkind == Some ParserConsumesAll))
(ensures
((valid p h s pos \/ valid_exact p h s po... | val valid_valid_exact_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (k.parser_kind_subkind == Some ParserConsumesAll))
(ensures
((valid p h s pos \/ valid_exact p h s po... | let valid_valid_exact_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (k.parser_kind_subkind == Some ParserConsumesAll))
(ensures (
(valid p h s pos \/ valid_exact p h s pos s.len) ==>
(valid_exact p h s p... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 61,
"end_line": 622,
"start_col": 0,
"start_line": 604
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Classical.move_requires",
"LowParse.Low.Base.Spec.valid_exact",
"Prims.l_and",
"LowParse.Low.Base.Spec.v... | [] | false | false | true | false | false | let valid_valid_exact_consumes_all
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (k.parser_kind_subkind == Some ParserConsumesAll))
(ensures
((valid p h s pos \/ valid_exact p h s po... | parser_kind_prop_equiv k p;
valid_facts p h s pos;
valid_exact_equiv p h s pos s.len;
Classical.move_requires (contents_exact_eq p h s pos) s.len | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_pos_valid_exact | val valid_pos_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_exact p h s pos pos' /\... | val valid_pos_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_exact p h s pos pos' /\... | let valid_pos_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (
valid_exact p h s pos pos' /\
contents_exa... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 663,
"start_col": 0,
"start_line": 648
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.Spec.valid_pos p h s pos pos' /\
Mkparser_kind'?.parser_kind_subkind... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_valid_exact",
"Prims.unit",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid_pos",
... | [] | true | false | true | false | false | let valid_pos_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos pos': U32.t)
: Lemma (requires (valid_pos p h s pos pos' /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (valid_exact p h s pos pos' /\... | valid_valid_exact p h s pos | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_compose_strong | val clens_compose_strong
(#t1 #t2 #t3: Type)
(l12: clens t1 t2)
(l23: clens t2 t3 {clens_compose_strong_pre l12 l23})
: Tot (clens t1 t3) | val clens_compose_strong
(#t1 #t2 #t3: Type)
(l12: clens t1 t2)
(l23: clens t2 t3 {clens_compose_strong_pre l12 l23})
: Tot (clens t1 t3) | let clens_compose_strong
(#t1: Type)
(#t2: Type)
(#t3: Type)
(l12: clens t1 t2)
(l23: clens t2 t3 { clens_compose_strong_pre l12 l23 })
: Tot (clens t1 t3)
= {
clens_cond = l12.clens_cond;
clens_get = (fun x1 -> l23.clens_get (l12.clens_get x1));
} | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1152,
"start_col": 0,
"start_line": 1142
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l12: LowParse.Low.Base.Spec.clens t1 t2 ->
l23:
LowParse.Low.Base.Spec.clens t2 t3 {LowParse.Low.Base.Spec.clens_compose_strong_pre l12 l23}
-> LowParse.Low.Base.Spec.clens t1 t3 | Prims.Tot | [
"total"
] | [] | [
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.clens_compose_strong_pre",
"LowParse.Low.Base.Spec.Mkclens",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_get"
] | [] | false | false | false | false | false | let clens_compose_strong
(#t1 #t2 #t3: Type)
(l12: clens t1 t2)
(l23: clens t2 t3 {clens_compose_strong_pre l12 l23})
: Tot (clens t1 t3) =
| { clens_cond = l12.clens_cond; clens_get = (fun x1 -> l23.clens_get (l12.clens_get x1)) } | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_pos_frame_strong_1 | val valid_pos_frame_strong_1
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(valid_pos p h sl pos pos' /\ B.modifies l h h' /\
B.lo... | val valid_pos_frame_strong_1
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(valid_pos p h sl pos pos' /\ B.modifies l h h' /\
B.lo... | let valid_pos_frame_strong_1
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (
valid_pos p h sl pos pos' /\
B.modifies l h h' /\ B.loc_disjoint (loc_slice_from_to sl pos pos'... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 36,
"end_line": 739,
"start_col": 0,
"start_line": 719
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Low... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.loc",
"LowParse.Low.Base.Spec.valid_exact_valid",
"Prims.unit",
"LowParse.Low.Base.Sp... | [] | true | false | true | false | false | let valid_pos_frame_strong_1
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(valid_pos p h sl pos pos' /\ B.modifies l h h' /\
B.lo... | valid_pos_valid_exact p h sl pos pos';
valid_exact_valid p h' sl pos pos' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_ext_elim | val valid_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires
(valid p h1 s1 pos... | val valid_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires
(valid p h1 s1 pos... | let valid_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires (
valid p h1 s1 pos1 /\
valid p h2 s2 pos2 /\
k.parser_kind_subkin... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 58,
"end_line": 937,
"start_col": 0,
"start_line": 908
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h1: FStar.Monotonic.HyperStack.mem ->
s1: LowParse.Slice.slice rrel1 rel1 ->
pos1: FStar.UInt32.t ->
h2: FStar.Monotonic.HyperStack.mem ->
s2: LowParse.Slice.slice rrel2 rel2 ->
pos2: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowP... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_exact_ext_elim",
"Prims.unit",
"LowParse.Low.Base.Spec.valid_valid_exact",
"LowPa... | [] | true | false | true | false | false | let valid_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires
(valid p h1 s1 pos... | let pos1' = get_valid_pos p h1 s1 pos1 in
let pos2' = get_valid_pos p h2 s2 pos2 in
valid_valid_exact p h1 s1 pos1;
valid_valid_exact p h2 s2 pos2;
valid_exact_ext_elim p h1 s1 pos1 pos1' h2 s2 pos2 pos2' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_frame_strong | val valid_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ valid p h sl pos /\ B.modifies l h h' /\
B.loc... | val valid_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ valid p h sl pos /\ B.modifies l h h' /\
B.loc... | let valid_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (
live_slice h sl /\
valid p h sl pos /\
B.modifies l h h' /\ B.loc_disjoint (loc_slice_from_to sl pos (get_valid_po... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 67,
"end_line": 812,
"start_col": 0,
"start_line": 788
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Slice.live_slice h sl /\ LowPar... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.loc",
"LowParse.Low.Base.Spec.valid_pos_frame_strong",
"LowParse.Low.Base.Spec.get_vali... | [] | true | false | true | false | false | let valid_frame_strong
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ valid p h sl pos /\ B.modifies l h h' /\
B.loc... | valid_pos_frame_strong p h sl pos (get_valid_pos p h sl pos) l h' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.serialize_valid_exact | val serialize_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(x: t)
(pos pos': U32.t)
: Lemma
(requires
(live_slice h sl /\ U32.v pos + Seq.length (serialize s x) == U32.... | val serialize_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(x: t)
(pos pos': U32.t)
: Lemma
(requires
(live_slice h sl /\ U32.v pos + Seq.length (serialize s x) == U32.... | let serialize_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(x: t)
(pos: U32.t)
(pos' : U32.t)
: Lemma
(requires (
live_slice h sl /\
U32.v pos + Seq.length (serialize s x) == U32.v pos' /\
U32.v pos' <= U32... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 35,
"end_line": 561,
"start_col": 0,
"start_line": 537
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: LowParse.Spec.Base.serializer p ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
x: t ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowParse.Slice.live_slice h sl /\
FStar.UInt32.v pos + FStar.Seq.Base.l... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.contents_exact_eq",
"Prims.unit",
"LowParse.Low.Base.S... | [] | true | false | true | false | false | let serialize_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(h: HS.mem)
(sl: slice rrel rel)
(x: t)
(pos pos': U32.t)
: Lemma
(requires
(live_slice h sl /\ U32.v pos + Seq.length (serialize s x) == U32.... | serializer_correct_implies_complete p s;
valid_exact_equiv p h sl pos pos';
contents_exact_eq p h sl pos pos' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_frame | val valid_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (live_slice h sl /\ B.modifies l h h' /\ B.loc_disjoint (loc_slice_from sl pos) l))
(... | val valid_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (live_slice h sl /\ B.modifies l h h' /\ B.loc_disjoint (loc_slice_from sl pos) l))
(... | let valid_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (live_slice h sl /\ B.modifies l h h' /\ B.loc_disjoint (loc_slice_from sl pos) l))
(ensures (
(valid p h sl pos \/ valid p h' sl... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 30,
"end_line": 386,
"start_col": 0,
"start_line": 350
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Slice.live_slice h sl /\ LowSta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.loc",
"FStar.Classical.move_requires",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
... | [] | false | false | true | false | false | let valid_frame
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (live_slice h sl /\ B.modifies l h h' /\ B.loc_disjoint (loc_slice_from sl pos) l))
(... | let f ()
: Lemma (requires (U32.v pos <= U32.v sl.len /\ (valid p h sl pos \/ valid p h' sl pos)))
(ensures
(valid p h sl pos /\
valid_content_pos p h' sl pos (contents p h sl pos) (get_valid_pos p h sl pos))) =
B.modifies_buffer_from_to_elim sl.base pos sl.len l h h';
valid_facts p h sl... | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_compose | val clens_compose (#t1 #t2 #t3: Type) (l12: clens t1 t2) (l23: clens t2 t3) : Tot (clens t1 t3) | val clens_compose (#t1 #t2 #t3: Type) (l12: clens t1 t2) (l23: clens t2 t3) : Tot (clens t1 t3) | let clens_compose
(#t1: Type)
(#t2: Type)
(#t3: Type)
(l12: clens t1 t2)
(l23: clens t2 t3)
: Tot (clens t1 t3)
= {
clens_cond = (clens_compose_cond l12 l23.clens_cond);
clens_get = (fun x1 -> l23.clens_get (l12.clens_get x1));
(*
clens_put = (fun x1 x3 ->
let x2' = l23.clens_put (l12.clens_get x1... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1131,
"start_col": 0,
"start_line": 1111
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l12: LowParse.Low.Base.Spec.clens t1 t2 -> l23: LowParse.Low.Base.Spec.clens t2 t3
-> LowParse.Low.Base.Spec.clens t1 t3 | Prims.Tot | [
"total"
] | [] | [
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.Mkclens",
"LowParse.Low.Base.Spec.clens_compose_cond",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_get"
] | [] | false | false | false | true | false | let clens_compose (#t1 #t2 #t3: Type) (l12: clens t1 t2) (l23: clens t2 t3) : Tot (clens t1 t3) =
| {
clens_cond = (clens_compose_cond l12 l23.clens_cond);
clens_get = (fun x1 -> l23.clens_get (l12.clens_get x1))
} | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_eq | val clens_eq (#t #t': Type) (cl1 cl2: clens t t') : GTot Type0 | val clens_eq (#t #t': Type) (cl1 cl2: clens t t') : GTot Type0 | let clens_eq (#t: Type) (#t': Type) (cl1: clens t t') (cl2: clens t t') : GTot Type0 =
(forall (x: t) . {:pattern (cl1.clens_cond x) \/ (cl2.clens_cond x)} cl1.clens_cond x <==> cl2.clens_cond x) /\
(forall (x: t) . {:pattern (cl1.clens_get x) \/ (cl2.clens_get x)} (cl1.clens_cond x \/ cl2.clens_cond x) ==> (cl1.cl... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 149,
"end_line": 961,
"start_col": 0,
"start_line": 959
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | cl1: LowParse.Low.Base.Spec.clens t t' -> cl2: LowParse.Low.Base.Spec.clens t t' -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Low.Base.Spec.clens",
"Prims.l_and",
"Prims.l_Forall",
"Prims.l_iff",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"Prims.l_imp",
"Prims.l_or",
"Prims.eq2",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_get"
] | [] | false | false | false | false | true | let clens_eq (#t #t': Type) (cl1 cl2: clens t t') : GTot Type0 =
| (forall (x: t). {:pattern (cl1.clens_cond x)\/(cl2.clens_cond x)}
cl1.clens_cond x <==> cl2.clens_cond x) /\
(forall (x: t). {:pattern (cl1.clens_get x)\/(cl2.clens_get x)}
(cl1.clens_cond x \/ cl2.clens_cond x) ==> (cl1.clens_get x == cl2.clens_get x)) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_no_lookahead_weaken | val gaccessor_no_lookahead_weaken
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
(sl sl': bytes)
: Lemma
(requires
(k1.parser_kind_subkind == Some Pa... | val gaccessor_no_lookahead_weaken
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
(sl sl': bytes)
: Lemma
(requires
(k1.parser_kind_subkind == Some Pa... | let gaccessor_no_lookahead_weaken
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
(sl sl' : bytes)
: Lemma
(requires (
k1.parser_kind_subkind == Some ParserStrong /\
gaccessor_pre p1 p2 cl sl /\... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 31,
"end_line": 1270,
"start_col": 0,
"start_line": 1253
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: LowParse.Low.Base.Spec.gaccessor' p1 p2 cl ->
sl: LowParse.Bytes.bytes ->
sl': LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(requires
Mkparser_kind'?.parser_kind_subkind k1 ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
LowParse.Low.Base.Spec.gaccess... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor'",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.parse_strong_prefix",
"Prims.unit",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.pa... | [] | true | false | true | false | false | let gaccessor_no_lookahead_weaken
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(f: gaccessor' p1 p2 cl)
(sl sl': bytes)
: Lemma
(requires
(k1.parser_kind_subkind == Some Pa... | parse_strong_prefix p1 sl sl' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_ext_elim | val valid_exact_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1 pos1': U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2 pos2': U32.t)
: Lemma
(requires
... | val valid_exact_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1 pos1': U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2 pos2': U32.t)
: Lemma
(requires
... | let valid_exact_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(pos1' : U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
(pos2' : U32.t)
: Lemma
(requires (
valid_exact p h1 s1 pos1 pos1'... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 115,
"end_line": 875,
"start_col": 0,
"start_line": 845
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h1: FStar.Monotonic.HyperStack.mem ->
s1: LowParse.Slice.slice rrel1 rel1 ->
pos1: FStar.UInt32.t ->
pos1': FStar.UInt32.t ->
h2: FStar.Monotonic.HyperStack.mem ->
s2: LowParse.Slice.slice rrel2 rel2 ->
pos2: FStar.UInt32.t ->
pos2': FStar.UInt32.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims._assert",
"LowParse.Spec.Base.injective_postcond",
"LowParse.Low.Base.Spec.bytes_of_slice_from_to",
"Pri... | [] | true | false | true | false | false | let valid_exact_ext_elim
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1 pos1': U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2 pos2': U32.t)
: Lemma
(requires
... | valid_exact_equiv p h1 s1 pos1 pos1';
valid_exact_equiv p h2 s2 pos2 pos2';
contents_exact_eq p h1 s1 pos1 pos1';
contents_exact_eq p h2 s2 pos2 pos2';
parser_kind_prop_equiv k p;
assert (injective_precond p
(bytes_of_slice_from_to h1 s1 pos1 pos1')
(bytes_of_slice_from_to h2 s2 pos2 pos2'));
assert (inject... | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_eq_intro' | val clens_eq_intro'
(#t #t': Type)
(cl1 cl2: clens t t')
(cond: (x: t -> Tot (squash (cl1.clens_cond x <==> cl2.clens_cond x))))
(get:
(x: t -> sq: squash (cl1.clens_cond x /\ cl2.clens_cond x)
-> Tot
(squash (cl1.clens_cond x /\ cl2.clens_cond x /\ cl1.cl... | val clens_eq_intro'
(#t #t': Type)
(cl1 cl2: clens t t')
(cond: (x: t -> Tot (squash (cl1.clens_cond x <==> cl2.clens_cond x))))
(get:
(x: t -> sq: squash (cl1.clens_cond x /\ cl2.clens_cond x)
-> Tot
(squash (cl1.clens_cond x /\ cl2.clens_cond x /\ cl1.cl... | let clens_eq_intro'
(#t: Type) (#t': Type) (cl1: clens t t') (cl2: clens t t')
(cond: (
(x: t) ->
Tot (squash (cl1.clens_cond x <==> cl2.clens_cond x))
))
(get: (
(x: t) ->
(sq: squash (cl1.clens_cond x /\ cl2.clens_cond x)) ->
Tot (squash (cl1.clens_cond x /\ cl2.clens_cond x /\ cl1.clens_g... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 62,
"end_line": 993,
"start_col": 0,
"start_line": 981
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cl1: LowParse.Low.Base.Spec.clens t t' ->
cl2: LowParse.Low.Base.Spec.clens t t' ->
cond: (x: t -> Prims.squash (Mkclens?.clens_cond cl1 x <==> Mkclens?.clens_cond cl2 x)) ->
get:
(x: t -> sq: Prims.squash (Mkclens?.clens_cond cl1 x /\ Mkclens?.clens_cond cl2 x)
-> Prims.squash (Mkclens... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Low.Base.Spec.clens",
"Prims.squash",
"Prims.l_iff",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"Prims.l_and",
"Prims.eq2",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_get",
"LowParse.Low.Base.Spec.clens_eq_intro",
"Prims.unit",
"LowParse.Low.Base.Spec.clens_eq"... | [] | false | false | true | false | false | let clens_eq_intro'
(#t #t': Type)
(cl1 cl2: clens t t')
(cond: (x: t -> Tot (squash (cl1.clens_cond x <==> cl2.clens_cond x))))
(get:
(x: t -> sq: squash (cl1.clens_cond x /\ cl2.clens_cond x)
-> Tot
(squash (cl1.clens_cond x /\ cl2.clens_cond x /\ cl1.cl... | clens_eq_intro cl1 cl2 (fun x -> cond x) (fun x -> get x ()) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_post | val gaccessor_post
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
(res: nat)
: GTot Type0 | val gaccessor_post
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
(res: nat)
: GTot Type0 | let gaccessor_post
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
(res : nat)
: GTot Type0
= res <= Seq.length sl /\
begin match parse p1 sl with
| Some (x1, consumed1) ->
begin match parse p2 (Seq.slice sl res ... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 1209,
"start_col": 0,
"start_line": 1187
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p1: LowParse.Spec.Base.parser k1 t1 ->
p2: LowParse.Spec.Base.parser k2 t2 ->
cl: LowParse.Low.Base.Spec.clens t1 t2 ->
sl: LowParse.Bytes.bytes ->
res: Prims.nat
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Bytes.bytes",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parse",
"LowParse.Spec.Base.consumed_l... | [] | false | false | false | false | true | let gaccessor_post
(#k1: parser_kind)
(#t1: Type)
(p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(p2: parser k2 t2)
(cl: clens t1 t2)
(sl: bytes)
(res: nat)
: GTot Type0 =
| res <= Seq.length sl /\
(match parse p1 sl with
| Some (x1, consumed1) ->
(match parse p2 (Seq.slice sl res (Seq.length sl)) with
| Some (x2, consumed2) ->
cl.clens_cond x1 /\ x2 == cl.clens_get x1 /\ res + consumed2 <= consumed1
| _ -> False)
| _ -> False) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_pos_frame_strong_2 | val valid_pos_frame_strong_2
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ valid_pos p h' sl pos pos' /\ B.modifies l h ... | val valid_pos_frame_strong_2
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ valid_pos p h' sl pos pos' /\ B.modifies l h ... | let valid_pos_frame_strong_2
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos: U32.t)
(pos' : U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires (
live_slice h sl /\
valid_pos p h' sl pos pos' /\
B.modifies l h h' /\ B.loc_disjoint (loc_s... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 35,
"end_line": 763,
"start_col": 0,
"start_line": 741
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Sli... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.loc",
"LowParse.Low.Base.Spec.valid_exact_valid",
"Prims.unit",
"LowParse.Low.Base.Sp... | [] | true | false | true | false | false | let valid_pos_frame_strong_2
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(sl: slice rrel rel)
(pos pos': U32.t)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(live_slice h sl /\ valid_pos p h' sl pos pos' /\ B.modifies l h ... | valid_pos_valid_exact p h' sl pos pos';
valid_exact_valid p h sl pos pos' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.clens_eq_intro | val clens_eq_intro
(#t #t': Type)
(cl1 cl2: clens t t')
(cond: (x: t -> Lemma (cl1.clens_cond x <==> cl2.clens_cond x)))
(get:
(x: t
-> Lemma (requires (cl1.clens_cond x /\ cl2.clens_cond x))
(ensures
(cl1.clens_cond x /\ cl2.clens_co... | val clens_eq_intro
(#t #t': Type)
(cl1 cl2: clens t t')
(cond: (x: t -> Lemma (cl1.clens_cond x <==> cl2.clens_cond x)))
(get:
(x: t
-> Lemma (requires (cl1.clens_cond x /\ cl2.clens_cond x))
(ensures
(cl1.clens_cond x /\ cl2.clens_co... | let clens_eq_intro
(#t: Type) (#t': Type) (cl1: clens t t') (cl2: clens t t')
(cond: (
(x: t) ->
Lemma
(cl1.clens_cond x <==> cl2.clens_cond x)
))
(get: (
(x: t) ->
Lemma
(requires (cl1.clens_cond x /\ cl2.clens_cond x))
(ensures (cl1.clens_cond x /\ cl2.clens_cond x /\ cl1.clens_get... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 54,
"end_line": 979,
"start_col": 0,
"start_line": 963
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cl1: LowParse.Low.Base.Spec.clens t t' ->
cl2: LowParse.Low.Base.Spec.clens t t' ->
cond:
(x: t
-> FStar.Pervasives.Lemma
(ensures Mkclens?.clens_cond cl1 x <==> Mkclens?.clens_cond cl2 x)) ->
get:
(x: t
-> FStar.Pervasives.Lemma
(requires Mkcle... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Low.Base.Spec.clens",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_iff",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"Prims.Nil",
"FStar.Pervasives.pattern",
"Prims.l_and",
"Prims.eq2",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_get",
"FStar.Classi... | [] | false | false | true | false | false | let clens_eq_intro
(#t #t': Type)
(cl1 cl2: clens t t')
(cond: (x: t -> Lemma (cl1.clens_cond x <==> cl2.clens_cond x)))
(get:
(x: t
-> Lemma (requires (cl1.clens_cond x /\ cl2.clens_cond x))
(ensures
(cl1.clens_cond x /\ cl2.clens_co... | Classical.forall_intro cond;
Classical.forall_intro (Classical.move_requires get) | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_exact_ext_intro | val valid_exact_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1 pos1': U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2 pos2': U32.t)
: Lemma
(requires
... | val valid_exact_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1 pos1': U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2 pos2': U32.t)
: Lemma
(requires
... | let valid_exact_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(pos1' : U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
(pos2' : U32.t)
: Lemma
(requires (
valid_exact p h1 s1 pos1 pos1... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 38,
"end_line": 843,
"start_col": 0,
"start_line": 814
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h1: FStar.Monotonic.HyperStack.mem ->
s1: LowParse.Slice.slice rrel1 rel1 ->
pos1: FStar.UInt32.t ->
pos1': FStar.UInt32.t ->
h2: FStar.Monotonic.HyperStack.mem ->
s2: LowParse.Slice.slice rrel2 rel2 ->
pos2: FStar.UInt32.t ->
pos2': FStar.UInt32.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.contents_exact_eq",
"Prims.unit",
"LowParse.Low.Base.Spec.valid_exact_equiv",
"Prims.l_... | [] | true | false | true | false | false | let valid_exact_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1 pos1': U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2 pos2': U32.t)
: Lemma
(requires
... | valid_exact_equiv p h1 s1 pos1 pos1';
valid_exact_equiv p h2 s2 pos2 pos2';
contents_exact_eq p h1 s1 pos1 pos1';
contents_exact_eq p h2 s2 pos2 pos2' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_valid_exact | val valid_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos /\ k.parser_kind_subkind == Some ParserStrong))
(ensures
(let npos' = U32.v pos + content_length ... | val valid_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos /\ k.parser_kind_subkind == Some ParserStrong))
(ensures
(let npos' = U32.v pos + content_length ... | let valid_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma
(requires (valid p h s pos /\ k.parser_kind_subkind == Some ParserStrong))
(ensures (
let npos' = U32.v pos + content_length p h s pos in
npos' <= U32.v s.len... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 91,
"end_line": 646,
"start_col": 0,
"start_line": 624
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h: FStar.Monotonic.HyperStack.mem ->
s: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.Spec.valid p h s pos /\
Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Spec.Base.parse_strong_prefix",
"LowParse.Slice.bytes_of_slice_from",
"LowParse.Low.Base.Spec.bytes_of_... | [] | false | false | true | false | false | let valid_valid_exact
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h: HS.mem)
(s: slice rrel rel)
(pos: U32.t)
: Lemma (requires (valid p h s pos /\ k.parser_kind_subkind == Some ParserStrong))
(ensures
(let npos' = U32.v pos + content_length ... | valid_facts p h s pos;
let npos' = U32.v pos + content_length p h s pos in
let pos' = U32.uint_to_t npos' in
valid_exact_equiv p h s pos pos';
Classical.move_requires (contents_exact_eq p h s pos) pos';
parse_strong_prefix p (bytes_of_slice_from h s pos) (bytes_of_slice_from_to h s pos pos') | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.valid_ext_intro | val valid_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires
(valid p h1 s1 po... | val valid_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires
(valid p h1 s1 po... | let valid_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires (
valid p h1 s1 pos1 /\
k.parser_kind_subkind == Some ParserStrong /\... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 38,
"end_line": 906,
"start_col": 0,
"start_line": 877
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.Base.parser k t ->
h1: FStar.Monotonic.HyperStack.mem ->
s1: LowParse.Slice.slice rrel1 rel1 ->
pos1: FStar.UInt32.t ->
h2: FStar.Monotonic.HyperStack.mem ->
s2: LowParse.Slice.slice rrel2 rel2 ->
pos2: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
LowP... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.valid_exact_valid",
"Prims.unit",
"LowParse.Low.Base.Spec.valid_exact_ext_intro",
"LowP... | [] | true | false | true | false | false | let valid_ext_intro
(#rrel1 #rel1: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(h1: HS.mem)
(s1: slice rrel1 rel1)
(pos1: U32.t)
(h2: HS.mem)
(#rrel2 #rel2: _)
(s2: slice rrel2 rel2)
(pos2: U32.t)
: Lemma
(requires
(valid p h1 s1 po... | let pos1' = get_valid_pos p h1 s1 pos1 in
let pos2' = pos2 `U32.add` (pos1' `U32.sub` pos1) in
valid_pos_valid_exact p h1 s1 pos1 pos1';
valid_exact_ext_intro p h1 s1 pos1 pos1' h2 s2 pos2 pos2';
valid_exact_valid p h2 s2 pos2 pos2' | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_id' | val gaccessor_id' (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes)
: Ghost (nat) (requires True) (ensures (fun res -> gaccessor_post' p p (clens_id _) input res)) | val gaccessor_id' (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes)
: Ghost (nat) (requires True) (ensures (fun res -> gaccessor_post' p p (clens_id _) input res)) | let gaccessor_id'
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(input: bytes)
: Ghost (nat)
(requires True)
(ensures (fun res -> gaccessor_post' p p (clens_id _) input res))
= 0 | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1486,
"start_col": 0,
"start_line": 1478
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Spec.Base.parser k t -> input: LowParse.Bytes.bytes -> Prims.Ghost Prims.nat | Prims.Ghost | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Bytes.bytes",
"Prims.nat",
"Prims.l_True",
"LowParse.Low.Base.Spec.gaccessor_post'",
"LowParse.Low.Base.Spec.clens_id"
] | [] | false | false | false | false | false | let gaccessor_id' (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes)
: Ghost (nat) (requires True) (ensures (fun res -> gaccessor_post' p p (clens_id _) input res)) =
| 0 | false |
LowParse.Low.Base.Spec.fsti | LowParse.Low.Base.Spec.gaccessor_ext' | val gaccessor_ext'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
(cl': clens t1 t2)
(sq: squash (clens_eq cl cl'))
(input: bytes)
: Ghost (nat) (requir... | val gaccessor_ext'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
(cl': clens t1 t2)
(sq: squash (clens_eq cl cl'))
(input: bytes)
: Ghost (nat) (requir... | let gaccessor_ext'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
(cl': clens t1 t2)
(sq: squash (clens_eq cl cl'))
(input: bytes)
: Ghost (nat) (requires True) (ensures (fun res -> gaccessor_post' p1... | {
"file_name": "src/lowparse/LowParse.Low.Base.Spec.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 1515,
"start_col": 0,
"start_line": 1502
} | module LowParse.Low.Base.Spec
include LowParse.Spec.Base
include LowParse.Slice
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
let valid'
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.Slice.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
g: LowParse.Low.Base.Spec.gaccessor p1 p2 cl ->
cl': LowParse.Low.Base.Spec.clens t1 t2 ->
sq: Prims.squash (LowParse.Low.Base.Spec.clens_eq cl cl') ->
input: LowParse.Bytes.bytes
-> Prims.Ghost Prims.nat | Prims.Ghost | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor",
"Prims.squash",
"LowParse.Low.Base.Spec.clens_eq",
"LowParse.Bytes.bytes",
"Prims.nat",
"Prims.l_True",
"LowParse.Low.Base.Spec.gaccessor_post'"
] | [] | false | false | false | false | false | let gaccessor_ext'
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(g: gaccessor p1 p2 cl)
(cl': clens t1 t2)
(sq: squash (clens_eq cl cl'))
(input: bytes)
: Ghost (nat) (requir... | g input | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.