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
Hacl.HMAC_DRBG.fst
Hacl.HMAC_DRBG.mk_instantiate
val mk_instantiate: #a:supported_alg -> hmac:HMAC.compute_st a -> instantiate_st a
val mk_instantiate: #a:supported_alg -> hmac:HMAC.compute_st a -> instantiate_st a
let mk_instantiate #a hmac st entropy_input_len entropy_input nonce_len nonce personalization_string_len personalization_string = let h0 = ST.get () in push_frame(); let seed_material = create (entropy_input_len +! nonce_len +! personalization_string_len) (u8 0) in copy (sub seed_material 0ul entropy_inpu...
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 188, "start_col": 0, "start_line": 165 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST module ST = FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG friend Spec.HMAC_DRBG unfold let hash_len...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fst.checked", "Spec.HMAC_DRBG.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hmac: Hacl.HMAC.compute_st a -> Hacl.HMAC_DRBG.instantiate_st a
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "Hacl.HMAC.compute_st", "Hacl.HMAC_DRBG.state", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.HMAC_DRBG.hash_len", "FStar.UInt32.__uint_to_t", "Prims.l_and", "Lib.Buffer.disjoint", "Lib.Buffer.MUT", "FStar.HyperStack.ST.pop_frame", "...
[]
false
false
false
false
false
let mk_instantiate #a hmac st entropy_input_len entropy_input nonce_len nonce personalization_string_len personalization_string =
let h0 = ST.get () in push_frame (); let seed_material = create (entropy_input_len +! nonce_len +! personalization_string_len) (u8 0) in copy (sub seed_material 0ul entropy_input_len) entropy_input; copy (sub seed_material entropy_input_len nonce_len) nonce; copy (sub seed_material (entropy_input_len +! nonce_len) pers...
false
Pulse.Checker.Prover.Match.fst
Pulse.Checker.Prover.Match.unify
val unify (g: env) (uvs: env{disjoint uvs g}) (p q: term) : T.Tac (ss: PS.ss_t{(PS.dom ss) `Set.subset` (freevars q)} & option (RT.equiv (elab_env g) (elab_term p) (elab_term ss.(q))))
val unify (g: env) (uvs: env{disjoint uvs g}) (p q: term) : T.Tac (ss: PS.ss_t{(PS.dom ss) `Set.subset` (freevars q)} & option (RT.equiv (elab_env g) (elab_term p) (elab_term ss.(q))))
let unify (g:env) (uvs:env { disjoint uvs g}) (p q:term) : T.Tac (ss:PS.ss_t { PS.dom ss `Set.subset` freevars q } & option (RT.equiv (elab_env g) (elab_term p) (elab_term ss.(q)))) = let ss = try_solve_uvars g uvs p q in let q_ss = readback_ty (elab_term ss.(q)) in match q_ss with | None -> (| ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.Match.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 286, "start_col": 0, "start_line": 266 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Util.fsti.checked", "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", ...
[ { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "full_module": "Pulse.Typing.Metatheory", "short_module": "Metatheory" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Substs", "short_module": "PS" }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> uvs: Pulse.Typing.Env.env{Pulse.Typing.Env.disjoint uvs g} -> p: Pulse.Syntax.Base.term -> q: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac (Prims.dtuple2 (ss: Pulse.Checker.Prover.Substs.ss_t {FStar.Set.subset (Pulse.Checker.Prover.Substs.dom...
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Typing.Env.disjoint", "Pulse.Syntax.Base.term", "Prims.Mkdtuple2", "Pulse.Checker.Prover.Substs.ss_t", "FStar.Set.subset", "Pulse.Syntax.Base.var", "Pulse.Checker.Prover.Substs.dom", "Pulse.Syntax.Naming.freevars", "FStar.Pervasives.Native.option", "FStar.Reflectio...
[]
false
true
false
false
false
let unify (g: env) (uvs: env{disjoint uvs g}) (p q: term) : T.Tac (ss: PS.ss_t{(PS.dom ss) `Set.subset` (freevars q)} & option (RT.equiv (elab_env g) (elab_term p) (elab_term ss.(q)))) =
let ss = try_solve_uvars g uvs p q in let q_ss = readback_ty (elab_term ss.(q)) in match q_ss with | None -> (| ss, None |) | Some q -> if eq_tm p q then (| ss, Some (RT.Rel_refl _ _ _) |) else if contains_uvar q uvs g then (| ss, None |) else if eligible_for_smt_equality g p q then ...
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.pa
val pa : x: Type -> a: (_: Type -> Type0) -> Prims.logical
let pa (x:Type u#1) (a:(Type u#1 -> Type u#0)) = i a == x /\ ~(a x)
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 19, "start_col": 0, "start_line": 18 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Type -> a: (_: Type -> Type0) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.l_and", "Prims.eq2", "InjectiveTypeFormers.Explicit.i", "Prims.l_not", "Prims.logical" ]
[]
false
false
false
true
true
let pa (x: Type u#1) (a: (Type u#1 -> Type u#0)) =
i a == x /\ ~(a x)
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.coerce
val coerce (x: 'a{'a == 'b}) : 'b
val coerce (x: 'a{'a == 'b}) : 'b
let coerce (x:'a{'a == 'b}) : 'b = x
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 3, "start_col": 0, "start_line": 3 }
module InjectiveTypeFormers.Explicit
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: 'a{'a == 'b} -> 'b
Prims.Tot
[ "total" ]
[]
[ "Prims.eq2" ]
[]
false
false
false
false
false
let coerce (x: 'a{'a == 'b}) : 'b =
x
false
Hacl.Impl.Ed25519.Group.fst
Hacl.Impl.Ed25519.Group.mk_ed25519_concrete_ops
val mk_ed25519_concrete_ops:BE.concrete_ops U64 20ul 0ul
val mk_ed25519_concrete_ops:BE.concrete_ops U64 20ul 0ul
let mk_ed25519_concrete_ops : BE.concrete_ops U64 20ul 0ul = { BE.to = mk_to_ed25519_comm_monoid; BE.lone = point_zero; BE.lmul = point_add; BE.lsqr = point_double; }
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Group.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 68, "start_col": 0, "start_line": 63 }
module Hacl.Impl.Ed25519.Group module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 open Hacl.Impl.Ed25519.PointConstants module LSeq = Lib.Sequence module F51 = Hacl.Impl.Ed25519.Field51 module BE = Hacl.Impl.Exponentiation.Definitions mod...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Exponentiation.Definitions.fst.checked", "Hacl.Impl.Ed25519.Po...
[ { "abbrev": true, "full_module": "Spec.Ed25519", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Exponentiation.Definitions", "short_module": "BE" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.Definitions.concrete_ops Lib.IntTypes.U64 (20ul <: FStar.UInt32.t) (0ul <: FStar.UInt32.t)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.Mkconcrete_ops", "Lib.IntTypes.U64", "FStar.UInt32.uint_to_t", "FStar.Ghost.hide", "Hacl.Impl.Exponentiation.Definitions.to_comm_monoid", "Hacl.Impl.Ed25519.Group.mk_to_ed25519_comm_monoid", "Hacl.Impl.Ed25519.Group.point_zero", "Hacl.Impl.Ed25519.Group.point_add"...
[]
false
false
false
false
false
let mk_ed25519_concrete_ops:BE.concrete_ops U64 20ul 0ul =
{ BE.to = mk_to_ed25519_comm_monoid; BE.lone = point_zero; BE.lmul = point_add; BE.lsqr = point_double }
false
Hacl.Impl.Ed25519.Group.fst
Hacl.Impl.Ed25519.Group.refl
val refl (a: LSeq.lseq uint64 20 {F51.linv a}) : GTot a_spec
val refl (a: LSeq.lseq uint64 20 {F51.linv a}) : GTot a_spec
let refl (a:LSeq.lseq uint64 20{F51.linv a}) : GTot a_spec = S.to_aff_point (F51.refl_ext_point a)
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Group.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 25, "start_col": 0, "start_line": 24 }
module Hacl.Impl.Ed25519.Group module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 open Hacl.Impl.Ed25519.PointConstants module LSeq = Lib.Sequence module F51 = Hacl.Impl.Ed25519.Field51 module BE = Hacl.Impl.Exponentiation.Definitions mod...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Exponentiation.Definitions.fst.checked", "Hacl.Impl.Ed25519.Po...
[ { "abbrev": true, "full_module": "Spec.Ed25519", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Exponentiation.Definitions", "short_module": "BE" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Lib.Sequence.lseq Lib.IntTypes.uint64 20 {Hacl.Impl.Ed25519.Field51.linv a} -> Prims.GTot Hacl.Impl.Ed25519.Group.a_spec
Prims.GTot
[ "sometrivial" ]
[]
[ "Lib.Sequence.lseq", "Lib.IntTypes.uint64", "Hacl.Impl.Ed25519.Field51.linv", "Spec.Ed25519.PointOps.to_aff_point", "Hacl.Impl.Ed25519.Field51.refl_ext_point", "Hacl.Impl.Ed25519.Group.a_spec" ]
[]
false
false
false
false
false
let refl (a: LSeq.lseq uint64 20 {F51.linv a}) : GTot a_spec =
S.to_aff_point (F51.refl_ext_point a)
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.p
val p (x: Type u#1) : Type u#0
val p (x: Type u#1) : Type u#0
let p (x : Type u#1) : Type u#0 = exists a. pa x a
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 22, "start_col": 0, "start_line": 21 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Type -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.l_Exists", "InjectiveTypeFormers.Explicit.pa" ]
[]
false
false
false
true
true
let p (x: Type u#1) : Type u#0 =
exists a. pa x a
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.w
val w:i p
val w:i p
let w : i p = Mkinj
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 24, "start_col": 0, "start_line": 24 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
InjectiveTypeFormers.Explicit.i InjectiveTypeFormers.Explicit.p
Prims.Tot
[ "total" ]
[]
[ "InjectiveTypeFormers.Explicit.Mkinj", "InjectiveTypeFormers.Explicit.p" ]
[]
false
false
false
true
false
let w:i p =
Mkinj
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.q
val q : Type
let q = i p
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 26, "start_col": 0, "start_line": 26 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type
Prims.Tot
[ "total" ]
[]
[ "InjectiveTypeFormers.Explicit.i", "InjectiveTypeFormers.Explicit.p" ]
[]
false
false
false
true
true
let q =
i p
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.false_of_pq_squash
val false_of_pq_squash (pq: p q) : GTot False
val false_of_pq_squash (pq: p q) : GTot False
let false_of_pq_squash (pq: p q) : GTot False = false_of_pq pq; coerce (FStar.Squash.return_squash #Prims.empty (match () with))
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 66, "end_line": 43, "start_col": 0, "start_line": 41 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pq: InjectiveTypeFormers.Explicit.p InjectiveTypeFormers.Explicit.q -> Prims.GTot Prims.l_False
Prims.GTot
[ "sometrivial" ]
[]
[ "InjectiveTypeFormers.Explicit.p", "InjectiveTypeFormers.Explicit.q", "InjectiveTypeFormers.Explicit.coerce", "Prims.squash", "Prims.empty", "Prims.l_False", "FStar.Squash.return_squash", "Prims.unit", "InjectiveTypeFormers.Explicit.false_of_pq" ]
[]
false
false
false
false
false
let false_of_pq_squash (pq: p q) : GTot False =
false_of_pq pq; coerce (FStar.Squash.return_squash #Prims.empty (match () with ))
false
Hacl.Impl.Ed25519.Group.fst
Hacl.Impl.Ed25519.Group.mk_to_ed25519_comm_monoid
val mk_to_ed25519_comm_monoid:BE.to_comm_monoid U64 20ul 0ul
val mk_to_ed25519_comm_monoid:BE.to_comm_monoid U64 20ul 0ul
let mk_to_ed25519_comm_monoid : BE.to_comm_monoid U64 20ul 0ul = { BE.a_spec = a_spec; BE.comm_monoid = S.mk_ed25519_comm_monoid; BE.linv_ctx = linv_ctx; BE.linv = F51.linv; BE.refl = refl; }
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Group.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 37, "start_col": 0, "start_line": 31 }
module Hacl.Impl.Ed25519.Group module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 open Hacl.Impl.Ed25519.PointConstants module LSeq = Lib.Sequence module F51 = Hacl.Impl.Ed25519.Field51 module BE = Hacl.Impl.Exponentiation.Definitions mod...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Exponentiation.Definitions.fst.checked", "Hacl.Impl.Ed25519.Po...
[ { "abbrev": true, "full_module": "Spec.Ed25519", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Exponentiation.Definitions", "short_module": "BE" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.Definitions.to_comm_monoid Lib.IntTypes.U64 (20ul <: FStar.UInt32.t) (0ul <: FStar.UInt32.t)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.Mkto_comm_monoid", "Lib.IntTypes.U64", "FStar.UInt32.uint_to_t", "Hacl.Impl.Ed25519.Group.a_spec", "Spec.Ed25519.mk_ed25519_comm_monoid", "Hacl.Impl.Ed25519.Group.linv_ctx", "Hacl.Impl.Ed25519.Field51.linv", "Hacl.Impl.Ed25519.Group.refl" ]
[]
false
false
false
false
false
let mk_to_ed25519_comm_monoid:BE.to_comm_monoid U64 20ul 0ul =
{ BE.a_spec = a_spec; BE.comm_monoid = S.mk_ed25519_comm_monoid; BE.linv_ctx = linv_ctx; BE.linv = F51.linv; BE.refl = refl }
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.falso
val falso: Prims.unit -> Lemma False
val falso: Prims.unit -> Lemma False
let falso () : Lemma False = false_of_pq pq
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 56, "start_col": 0, "start_line": 56 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Prims.l_False)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "InjectiveTypeFormers.Explicit.false_of_pq", "InjectiveTypeFormers.Explicit.pq", "Prims.l_True", "Prims.squash", "Prims.l_False", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let falso () : Lemma False =
false_of_pq pq
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.pq
val pq:p q
val pq:p q
let pq : p q = FStar.Classical.( lemma_of_squash (not_pq); exists_intro (pa q) p)
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 54, "start_col": 0, "start_line": 51 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
InjectiveTypeFormers.Explicit.p InjectiveTypeFormers.Explicit.q
Prims.Tot
[ "total" ]
[]
[ "FStar.Classical.exists_intro", "InjectiveTypeFormers.Explicit.pa", "InjectiveTypeFormers.Explicit.q", "InjectiveTypeFormers.Explicit.p", "Prims.unit", "InjectiveTypeFormers.Explicit.lemma_of_squash", "Prims.l_False", "InjectiveTypeFormers.Explicit.not_pq" ]
[]
false
false
false
true
false
let pq:p q =
let open FStar.Classical in lemma_of_squash (not_pq); exists_intro (pa q) p
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.not_pq
val not_pq:~(p q)
val not_pq:~(p q)
let not_pq : ~ (p q) = FStar.Classical.give_witness #(p q -> GTot False) false_of_pq_squash
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 47, "start_col": 0, "start_line": 45 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
~(InjectiveTypeFormers.Explicit.p InjectiveTypeFormers.Explicit.q)
Prims.Tot
[ "total" ]
[]
[ "FStar.Classical.give_witness", "InjectiveTypeFormers.Explicit.p", "InjectiveTypeFormers.Explicit.q", "Prims.l_False", "InjectiveTypeFormers.Explicit.false_of_pq_squash" ]
[]
false
false
false
true
false
let not_pq:~(p q) =
FStar.Classical.give_witness #(p q -> GTot False) false_of_pq_squash
false
InjectiveTypeFormers.Explicit.fst
InjectiveTypeFormers.Explicit.false_of_pq
val false_of_pq : p q -> Lemma False
val false_of_pq : p q -> Lemma False
let false_of_pq pq = FStar.Classical.( exists_elim Prims.empty (give_witness pq) (fun (a:(Type u#1 -> Type u#0){i a == q /\ ~(a q)}) -> isInj_admit p a w))
{ "file_name": "examples/paradoxes/InjectiveTypeFormers.Explicit.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 38, "start_col": 0, "start_line": 32 }
module InjectiveTypeFormers.Explicit let coerce (x:'a{'a == 'b}) : 'b = x let lemma_of_squash (x:squash 'a) : Lemma 'a = () type i (f : Type u#1 -> Type u#0) : Type u#1 = | Mkinj : i f [@@(expect_failure [19])] let isInj (x:_) (y:_) (w:i x) : Lemma (i x == i y ==> x == y) = () assume val isInj_admit (x:_) (y:...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "InjectiveTypeFormers.Explicit.fst" }
[ { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "InjectiveTypeFormers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pq: InjectiveTypeFormers.Explicit.p InjectiveTypeFormers.Explicit.q -> FStar.Pervasives.Lemma (ensures Prims.l_False)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "InjectiveTypeFormers.Explicit.p", "InjectiveTypeFormers.Explicit.q", "FStar.Classical.exists_elim", "Prims.empty", "Prims.l_and", "Prims.eq2", "InjectiveTypeFormers.Explicit.i", "Prims.l_not", "FStar.Classical.give_witness", "InjectiveTypeFormers.Explicit.isInj_admit", "InjectiveTypeFormers.Exp...
[]
false
false
true
false
false
let false_of_pq pq =
let open FStar.Classical in exists_elim Prims.empty (give_witness pq) (fun (a: (Type u#1 -> Type u#0){i a == q /\ ~(a q)}) -> isInj_admit p a w)
false
CQueue.Cell.fst
CQueue.Cell.alloc_cell
val alloc_cell (#a: Type0) (data: a) (next: ccell_ptrvalue a) : Steel (ccell_lvalue a) emp (fun res -> ccell res) (requires (fun _ -> True)) (ensures (fun _ res h' -> h' (ccell res) == ({ vcell_data = data; vcell_next = next; }) ))
val alloc_cell (#a: Type0) (data: a) (next: ccell_ptrvalue a) : Steel (ccell_lvalue a) emp (fun res -> ccell res) (requires (fun _ -> True)) (ensures (fun _ res h' -> h' (ccell res) == ({ vcell_data = data; vcell_next = next; }) ))
let alloc_cell #a data next = let rdata = ralloc data in let rnext = ralloc next in let res : ccell_lvalue a = ({ data = rdata; next = rnext; all_or_none_null = () }) in change_equal_slprop (vptr rdata) (vptr (ccell_data res)); change_equal_slprop (vptr rnext) (vptr (ccell_next res)); intro_ccell res; r...
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 202, "start_col": 0, "start_line": 193 }
module CQueue.Cell (* A Steel model of C cell structs *) #push-options "--__no_positivity" noeq type mcell (a: Type0) = { data: ref a; next: ref (mcell a); all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "CQueue.Cell.fst" }
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
data: a -> next: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Steel (CQueue.Cell.ccell_lvalue a)
Steel.Effect.Steel
[]
[]
[ "CQueue.Cell.ccell_ptrvalue", "Steel.Effect.Atomic.return", "CQueue.Cell.ccell_lvalue", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "CQueue.Cell.ccell", "Steel.Effect.Common.vprop", "Prims.unit", "CQueue.Cell.intro_ccell", "Steel.Effect.Atomic.change_equal_slp...
[]
false
true
false
false
false
let alloc_cell #a data next =
let rdata = ralloc data in let rnext = ralloc next in let res:ccell_lvalue a = ({ data = rdata; next = rnext; all_or_none_null = () }) in change_equal_slprop (vptr rdata) (vptr (ccell_data res)); change_equal_slprop (vptr rnext) (vptr (ccell_next res)); intro_ccell res; return res
false
Pulse.Lib.Reference.fsti
Pulse.Lib.Reference.cond
val cond : b: Prims.bool -> p: Pulse.Lib.Core.vprop -> q: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop
let cond b (p q:vprop) = if b then p else q
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Reference.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 84, "start_col": 0, "start_line": 84 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "PulseCore.Observability.fst.checked", "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.Core.fsti.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fs...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Prims.bool -> p: Pulse.Lib.Core.vprop -> q: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Pulse.Lib.Core.vprop" ]
[]
false
false
false
true
false
let cond b (p: vprop) (q: vprop) =
if b then p else q
false
Hacl.Impl.Ed25519.Group.fst
Hacl.Impl.Ed25519.Group.point_zero
val point_zero : BE.lone_st U64 20ul 0ul mk_to_ed25519_comm_monoid
val point_zero : BE.lone_st U64 20ul 0ul mk_to_ed25519_comm_monoid
let point_zero ctx one = make_point_inf one
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Group.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 59, "start_col": 0, "start_line": 59 }
module Hacl.Impl.Ed25519.Group module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 open Hacl.Impl.Ed25519.PointConstants module LSeq = Lib.Sequence module F51 = Hacl.Impl.Ed25519.Field51 module BE = Hacl.Impl.Exponentiation.Definitions mod...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Exponentiation.Definitions.fst.checked", "Hacl.Impl.Ed25519.Po...
[ { "abbrev": true, "full_module": "Spec.Ed25519", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Exponentiation.Definitions", "short_module": "BE" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.Definitions.lone_st Lib.IntTypes.U64 20ul 0ul Hacl.Impl.Ed25519.Group.mk_to_ed25519_comm_monoid
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Ed25519.PointConstants.make_point_inf", "Prims.unit" ]
[]
false
false
false
false
false
let point_zero ctx one =
make_point_inf one
false
Hacl.Impl.Ed25519.Group.fst
Hacl.Impl.Ed25519.Group.point_double
val point_double : BE.lsqr_st U64 20ul 0ul mk_to_ed25519_comm_monoid
val point_double : BE.lsqr_st U64 20ul 0ul mk_to_ed25519_comm_monoid
let point_double ctx x xx = let h0 = ST.get () in Spec.Ed25519.Lemmas.to_aff_point_double_lemma (F51.refl_ext_point (as_seq h0 x)); Hacl.Impl.Ed25519.PointDouble.point_double xx x
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Group.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 54, "start_col": 0, "start_line": 51 }
module Hacl.Impl.Ed25519.Group module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 open Hacl.Impl.Ed25519.PointConstants module LSeq = Lib.Sequence module F51 = Hacl.Impl.Ed25519.Field51 module BE = Hacl.Impl.Exponentiation.Definitions mod...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Exponentiation.Definitions.fst.checked", "Hacl.Impl.Ed25519.Po...
[ { "abbrev": true, "full_module": "Spec.Ed25519", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Exponentiation.Definitions", "short_module": "BE" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.Definitions.lsqr_st Lib.IntTypes.U64 20ul 0ul Hacl.Impl.Ed25519.Group.mk_to_ed25519_comm_monoid
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Ed25519.PointDouble.point_double", "Prims.unit", "Spec.Ed25519.Lemmas.to_aff_point_double_lemma", "Hacl.Impl.Ed25519.Field51.refl_ext_point", "Lib.Buffer.as_seq", "Lib.Buff...
[]
false
false
false
false
false
let point_double ctx x xx =
let h0 = ST.get () in Spec.Ed25519.Lemmas.to_aff_point_double_lemma (F51.refl_ext_point (as_seq h0 x)); Hacl.Impl.Ed25519.PointDouble.point_double xx x
false
CDDLExtractionTest.Bytes.fst
CDDLExtractionTest.Bytes.impl_mytype
val impl_mytype : CDDL.Pulse.impl_typ CDDL.Spec.bytes
let impl_mytype = impl_bytes ()
{ "file_name": "share/steel/examples/pulse/dice/cbor/CDDLExtractionTest.Bytes.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 25, "start_col": 0, "start_line": 25 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "CDDL.Spec.fsti.checked", "CDDL.Pulse.fst.checked", "CBOR.Spec.fsti.checked", "CBOR.Pulse.fst.checked" ], "interface_file": false, "source_file": "CDDL...
[ { "abbrev": false, "full_module": "CDDL.Pulse", "short_module": null }, { "abbrev": false, "full_module": "CBOR.Pulse", "short_module": null }, { "abbrev": false, "full_module": "CDDL.Spec", "short_module": null }, { "abbrev": false, "full_module": "CBOR.Spec"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
CDDL.Pulse.impl_typ CDDL.Spec.bytes
Prims.Tot
[ "total" ]
[]
[ "CDDL.Pulse.impl_bytes" ]
[]
false
false
false
true
false
let impl_mytype =
impl_bytes ()
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.sum_repr_type
val sum_repr_type (t: sum) : Tot eqtype
val sum_repr_type (t: sum) : Tot eqtype
let sum_repr_type (t: sum) : Tot eqtype = match t with (Sum _ repr _ _ _ _ _ _ _ _) -> repr
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 48, "start_col": 0, "start_line": 47 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.synth_case_recip'", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
false
true
false
let sum_repr_type (t: sum) : Tot eqtype =
match t with | Sum _ repr _ _ _ _ _ _ _ _ -> repr
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.sum_key_type
val sum_key_type (t: sum) : Tot eqtype
val sum_key_type (t: sum) : Tot eqtype
let sum_key_type (t: sum) : Tot eqtype = match t with (Sum key _ _ _ _ _ _ _ _ _) -> key
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 49, "end_line": 44, "start_col": 0, "start_line": 43 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.synth_case_recip'", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
false
true
false
let sum_key_type (t: sum) : Tot eqtype =
match t with | Sum key _ _ _ _ _ _ _ _ _ -> key
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_case_recip'
val synth_case_recip' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: (k: enum_key e -> x: refine_with_tag tag_of_data k -> Tot (type_of_tag k))) (x: data) : GTot (typ...
val synth_case_recip' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: (k: enum_key e -> x: refine_with_tag tag_of_data k -> Tot (type_of_tag k))) (x: data) : GTot (typ...
let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refine_with_tag tag_of_data k) -> Tot (type_of_tag k))) (x: data) : GTot (typ...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 36, "end_line": 16, "start_col": 0, "start_line": 6 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> tag_of_data: (_: data -> LowParse.Spec.Enum.enum_key e) -> type_of_tag: (_: LowParse.Spec.Enum.enum_key e -> Type) -> synth_case_recip: (k: LowParse.Spec.Enum.enum_key e -> x: LowParse.Spec.Base.refine_with_tag tag_of_data k -> type_of_tag k) -> ...
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag" ]
[]
false
false
false
false
false
let synth_case_recip' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: (k: enum_key e -> x: refine_with_tag tag_of_data k -> Tot (type_of_tag k))) (x: data) : GTot (typ...
synth_case_recip (tag_of_data x) x
false
Wasm11.fst
Wasm11.test2
val test2: Prims.unit -> SteelT bool emp (fun _ -> emp)
val test2: Prims.unit -> SteelT bool emp (fun _ -> emp)
let test2 () : SteelT bool emp (fun _ -> emp) = let r = malloc def_t 8sz in ghost_split r 4sz; let r1 = split_l r 4sz in let r2 = split_r r 4sz in change_equal_slprop (varray (split_l r 4sz)) (varray r1); change_equal_slprop (varray (split_r r 4sz)) (varray r2); let _ = mk 4s in let b = ptrdiff r2 r1 in...
{ "file_name": "share/steel/tests/krml/Wasm11.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 49, "start_col": 0, "start_line": 34 }
module Wasm11 open FStar.SizeT open FStar.PtrdiffT open FStar.UInt64 open Steel.Effect.Atomic open Steel.Effect open Steel.Array (* WASM tests for pointer subtraction *) let test1 () : SteelT bool emp (fun _ -> emp) = let r = malloc 0uL 8sz in ghost_split r 4sz; let r1 = split_l r 4sz in let r2 = split_r r 4...
{ "checked_file": "/", "dependencies": [ "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "Steel.Array.fsti.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Ptr...
[ { "abbrev": false, "full_module": "Steel.Array", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.Effect.SteelT Prims.bool
Steel.Effect.SteelT
[]
[]
[ "Prims.unit", "Steel.Effect.Atomic.return", "Prims.bool", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__mult", "Steel.Effect.Common.vprop", "Steel.Effect.Common.req", "Steel.Effect.Common.rm", "FStar.Algebra.Comm...
[]
false
true
false
false
false
let test2 () : SteelT bool emp (fun _ -> emp) =
let r = malloc def_t 8sz in ghost_split r 4sz; let r1 = split_l r 4sz in let r2 = split_r r 4sz in change_equal_slprop (varray (split_l r 4sz)) (varray r1); change_equal_slprop (varray (split_r r 4sz)) (varray r2); let _ = mk 4s in let b = ptrdiff r2 r1 in ghost_join r1 r2 (); change_equal_slprop (varray (merge r1 r2))...
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_cases'
val parse_sum_cases' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) : Tot (parser (dfst (f x)) (sum_cases s x))
val parse_sum_cases' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) : Tot (parser (dfst (f x)) (sum_cases s x))
let parse_sum_cases' (s: sum) (f: (x: sum_key s) -> Tot (k: parser_kind & parser k (sum_type_of_tag s x))) (x: sum_key s) : Tot (parser (dfst (f x)) (sum_cases s x)) = synth_sum_case_injective s x; dsnd (f x) `parse_synth` synth_sum_case s x
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 45, "end_line": 131, "start_col": 0, "start_line": 124 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> f: (x: LowParse.Spec.Sum.sum_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag s x))) -> x: LowParse.Spec.Sum.sum_key s -> LowParse.Spec.Base.parser (FStar.Pervasives.dfs...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Spec.Combinators.parse_synth", "Prims.__proj__Mkdtuple2__item___1", "LowParse.Spec.Sum.sum_cases", "FStar.Pervasives....
[]
false
false
false
false
false
let parse_sum_cases' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) : Tot (parser (dfst (f x)) (sum_cases s x)) =
synth_sum_case_injective s x; (dsnd (f x)) `parse_synth` (synth_sum_case s x)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum
val parse_sum (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot (parser (parse_sum_kind kt t pc) (sum_type t))
val parse_sum (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot (parser (parse_sum_kind kt t pc) (sum_type t))
let parse_sum (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot (parser (parse_sum_kind kt t pc) (sum_type t)) = parse_sum' t p (parse_sum_cases t pc)
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 39, "end_line": 174, "start_col": 0, "start_line": 168 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) -> pc: (x: LowParse.Spec.Sum.sum_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) -> LowParse....
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Spec.Sum.parse_sum'", "LowParse.Spec.Sum.weaken_parse_cases_kind", "LowParse.Spec....
[]
false
false
false
false
false
let parse_sum (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot (parser (parse_sum_kind kt t pc) (sum_type t)) =
parse_sum' t p (parse_sum_cases t pc)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum'
val parse_sum' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (#k: parser_kind) (pc: (x: sum_key t -> Tot (parser k (sum_cases t x)))) : Tot (parser (and_then_kind (parse_filter_kind kt) k) (sum_type t))
val parse_sum' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (#k: parser_kind) (pc: (x: sum_key t -> Tot (parser k (sum_cases t x)))) : Tot (parser (and_then_kind (parse_filter_kind kt) k) (sum_type t))
let parse_sum' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (#k: parser_kind) (pc: ((x: sum_key t) -> Tot (parser k (sum_cases t x)))) : Tot (parser (and_then_kind (parse_filter_kind kt) k) (sum_type t)) = parse_tagged_union #(parse_filter_kind kt) #(sum_key t) (parse_enum_key p (s...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 158, "start_col": 0, "start_line": 144 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) -> pc: (x: LowParse.Spec.Sum.sum_key t -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_cases t x)) -> LowParse.Spec.Base.parser (LowParse.Spec.Combinators.and_then_kind (LowParse.Spec.Com...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Sum.sum_key", "LowParse.Spec.Sum.sum_cases", "LowParse.Spec.Combinators.parse_tagged_union", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Enum.pa...
[]
false
false
false
false
false
let parse_sum' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (#k: parser_kind) (pc: (x: sum_key t -> Tot (parser k (sum_cases t x)))) : Tot (parser (and_then_kind (parse_filter_kind kt) k) (sum_type t)) =
parse_tagged_union #(parse_filter_kind kt) #(sum_key t) (parse_enum_key p (sum_enum t)) #(sum_type t) (sum_tag_of_data t) #k pc
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_kind
val parse_sum_kind (kt: parser_kind) (t: sum) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot parser_kind
val parse_sum_kind (kt: parser_kind) (t: sum) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot parser_kind
let parse_sum_kind (kt: parser_kind) (t: sum) (pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot parser_kind = and_then_kind (parse_filter_kind kt) (weaken_parse_cases_kind t pc)
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 69, "end_line": 166, "start_col": 0, "start_line": 161 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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
kt: LowParse.Spec.Base.parser_kind -> t: LowParse.Spec.Sum.sum -> pc: (x: LowParse.Spec.Sum.sum_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) -> LowParse.Spec.Base.parser_kind
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Spec.Combinators.and_then_kind", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Sum.weaken_parse_cases_k...
[]
false
false
false
false
false
let parse_sum_kind (kt: parser_kind) (t: sum) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) : Tot parser_kind =
and_then_kind (parse_filter_kind kt) (weaken_parse_cases_kind t pc)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_dsum_case_recip'
val synth_dsum_case_recip' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case_recip: (k: maybe_enum_key e -> (refine_with_tag tag_...
val synth_dsum_case_recip' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case_recip: (k: maybe_enum_key e -> (refine_with_tag tag_...
let synth_dsum_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case_recip: ((k: maybe_enum_key e) -> (refine_with_tag tag_of_data k) -> Tot (dsum_...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 33, "end_line": 459, "start_col": 0, "start_line": 447 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> tag_of_data: (_: data -> Prims.GTot (LowParse.Spec.Enum.maybe_enum_key e)) -> type_of_known_tag: (_: LowParse.Spec.Enum.enum_key e -> Type) -> type_of_unknown_tag: Type -> synth_case_recip: (k: LowParse.Spec.Enum.maybe_enum_key e -> _: LowParse.Spec.Base...
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "LowParse.Spec.Sum.dsum_type_of_tag'", "Prims.Mkdtuple2", "Prims.dtuple2" ]
[]
false
false
false
false
false
let synth_dsum_case_recip' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case_recip: (k: maybe_enum_key e -> (refine_with_tag tag_...
let tg = tag_of_data y in (| tg, synth_case_recip tg y |)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.sum_tag_of_data
val sum_tag_of_data (t: sum) : Tot (x: sum_type t -> Tot (sum_key t))
val sum_tag_of_data (t: sum) : Tot (x: sum_type t -> Tot (sum_key t))
let sum_tag_of_data (t: sum) : Tot ((x: sum_type t) -> Tot (sum_key t)) = match t with | Sum _ _ _ _ tag_of_data _ _ _ _ _ -> tag_of_data
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 72, "start_col": 0, "start_line": 70 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> x: LowParse.Spec.Sum.sum_type t -> LowParse.Spec.Sum.sum_key t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.synth_case_recip'", "Prims.Nil", "FStar.Pervasives.pattern", "LowParse.Spec.S...
[]
false
false
false
false
false
let sum_tag_of_data (t: sum) : Tot (x: sum_type t -> Tot (sum_key t)) =
match t with | Sum _ _ _ _ tag_of_data _ _ _ _ _ -> tag_of_data
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.dsum_repr_type
val dsum_repr_type (t: dsum) : Tot eqtype
val dsum_repr_type (t: dsum) : Tot eqtype
let dsum_repr_type (t: dsum) : Tot eqtype = match t with (DSum _ repr _ _ _ _ _ _ _ _ _) -> repr
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 54, "end_line": 494, "start_col": 0, "start_line": 493 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Base.refine_with_tag", "Prims.squash", "Prims.eq2" ]
[]
false
false
false
true
false
let dsum_repr_type (t: dsum) : Tot eqtype =
match t with | DSum _ repr _ _ _ _ _ _ _ _ _ -> repr
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.dsum_key_type
val dsum_key_type (t: dsum) : Tot eqtype
val dsum_key_type (t: dsum) : Tot eqtype
let dsum_key_type (t: dsum) : Tot eqtype = match t with (DSum key _ _ _ _ _ _ _ _ _ _) -> key
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 490, "start_col": 0, "start_line": 489 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Base.refine_with_tag", "Prims.squash", "Prims.eq2" ]
[]
false
false
false
true
false
let dsum_key_type (t: dsum) : Tot eqtype =
match t with | DSum key _ _ _ _ _ _ _ _ _ _ -> key
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.sum_enum
val sum_enum (t: sum) : Tot (enum (sum_key_type t) (sum_repr_type t))
val sum_enum (t: sum) : Tot (enum (sum_key_type t) (sum_repr_type t))
let sum_enum (t: sum) : Tot (enum (sum_key_type t) (sum_repr_type t)) = match t with (Sum _ _ e _ _ _ _ _ _ _) -> e
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 45, "end_line": 52, "start_col": 0, "start_line": 51 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> LowParse.Spec.Enum.enum (LowParse.Spec.Sum.sum_key_type t) (LowParse.Spec.Sum.sum_repr_type t)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.synth_case_recip'", "Prims.Nil", "FStar.Pervasives.pattern", "LowParse.Spec.S...
[]
false
false
false
false
false
let sum_enum (t: sum) : Tot (enum (sum_key_type t) (sum_repr_type t)) =
match t with | Sum _ _ e _ _ _ _ _ _ _ -> e
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_cases
val parse_sum_cases (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) : Tot (parser (weaken_parse_cases_kind s f) (sum_cases s x))
val parse_sum_cases (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) : Tot (parser (weaken_parse_cases_kind s f) (sum_cases s x))
let parse_sum_cases (s: sum) (f: (x: sum_key s) -> Tot (k: parser_kind & parser k (sum_type_of_tag s x))) (x: sum_key s) : Tot (parser (weaken_parse_cases_kind s f) (sum_cases s x)) = synth_sum_case_injective s x; weaken (weaken_parse_cases_kind s f) (dsnd (f x)) `parse_synth` (synth_sum_case s x)
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 86, "end_line": 109, "start_col": 0, "start_line": 103 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> f: (x: LowParse.Spec.Sum.sum_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag s x))) -> x: LowParse.Spec.Sum.sum_key s -> LowParse.Spec.Base.parser (LowParse.Spec.Sum.we...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.Sum.weaken_parse_cases_kind", "LowParse.Spec.Sum.sum_cases", "LowParse....
[]
false
false
false
false
false
let parse_sum_cases (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) : Tot (parser (weaken_parse_cases_kind s f) (sum_cases s x)) =
synth_sum_case_injective s x; (weaken (weaken_parse_cases_kind s f) (dsnd (f x))) `parse_synth` (synth_sum_case s x)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_sum_case
val synth_sum_case (s: sum) (k: sum_key s) (x: sum_type_of_tag s k) : Tot (sum_cases s k)
val synth_sum_case (s: sum) (k: sum_key s) (x: sum_type_of_tag s k) : Tot (sum_cases s k)
let synth_sum_case (s: sum) : (k: sum_key s) -> (x: sum_type_of_tag s k) -> Tot (sum_cases s k) = match s with | Sum _ _ _ _ _ _ synth_case _ _ _ -> synth_case
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 50, "end_line": 97, "start_col": 0, "start_line": 95 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> k: LowParse.Spec.Sum.sum_key s -> x: LowParse.Spec.Sum.sum_type_of_tag s k -> LowParse.Spec.Sum.sum_cases s k
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.synth_case_recip'", "Prims.Nil", "FStar.Pervasives.pattern", "LowParse.Spec.S...
[]
false
false
false
false
false
let synth_sum_case (s: sum) (k: sum_key s) (x: sum_type_of_tag s k) : Tot (sum_cases s k) =
match s with | Sum _ _ _ _ _ _ synth_case _ _ _ -> synth_case
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.weaken_parse_cases_kind
val weaken_parse_cases_kind (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) : Tot parser_kind
val weaken_parse_cases_kind (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) : Tot parser_kind
let weaken_parse_cases_kind (s: sum) (f: (x: sum_key s) -> Tot (k: parser_kind & parser k (sum_type_of_tag s x))) : Tot parser_kind = let keys : list (sum_key_type s) = List.Tot.map fst (sum_enum s) in glb_list_of #(sum_key_type s) (fun (x: sum_key_type s) -> if List.Tot.mem x keys then let (| k, _ |) = f...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 35, "end_line": 92, "start_col": 0, "start_line": 83 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> f: (x: LowParse.Spec.Sum.sum_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag s x))) -> LowParse.Spec.Base.parser_kind
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Spec.Base.glb_list_of", "LowParse.Spec.Sum.sum_key_type", "FStar.List.Tot.Base.mem", "Prims.bool", "LowParse.Spec.B...
[]
false
false
false
false
false
let weaken_parse_cases_kind (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) : Tot parser_kind =
let keys:list (sum_key_type s) = List.Tot.map fst (sum_enum s) in glb_list_of #(sum_key_type s) (fun (x: sum_key_type s) -> if List.Tot.mem x keys then let (| k , _ |) = f x in k else default_parser_kind) (List.Tot.map fst (sum_enum s))
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.sum_key_type_of_sum_key
val sum_key_type_of_sum_key (t: sum) (k: sum_key t) : Pure (sum_key_type t) (requires True) (ensures (fun k' -> k' == (k <: sum_key_type t)))
val sum_key_type_of_sum_key (t: sum) (k: sum_key t) : Pure (sum_key_type t) (requires True) (ensures (fun k' -> k' == (k <: sum_key_type t)))
let sum_key_type_of_sum_key (t: sum) (k: sum_key t) : Pure (sum_key_type t) (requires True) (ensures (fun k' -> k' == (k <: sum_key_type t))) = k
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 62, "start_col": 0, "start_line": 59 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> k: LowParse.Spec.Sum.sum_key t -> Prims.Pure (LowParse.Spec.Sum.sum_key_type t)
Prims.Pure
[]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "LowParse.Spec.Sum.sum_key_type", "Prims.l_True", "Prims.eq2" ]
[]
false
false
false
false
false
let sum_key_type_of_sum_key (t: sum) (k: sum_key t) : Pure (sum_key_type t) (requires True) (ensures (fun k' -> k' == (k <: sum_key_type t))) =
k
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_cases_eq'
val parse_sum_cases_eq' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == parse (parse_sum_cases' s f x) input)
val parse_sum_cases_eq' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == parse (parse_sum_cases' s f x) input)
let parse_sum_cases_eq' (s: sum) (f: (x: sum_key s) -> Tot (k: parser_kind & parser k (sum_type_of_tag s x))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == parse (parse_sum_cases' s f x) input) = synth_sum_case_injective s x; parse_synth_eq (weaken (weaken_parse_cases_kind s ...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 142, "start_col": 0, "start_line": 133 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> f: (x: LowParse.Spec.Sum.sum_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag s x))) -> x: LowParse.Spec.Sum.sum_key s -> input: LowParse.Bytes.bytes -> FStar.Pervas...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Bytes.bytes", "LowParse.Spec.Combinators.parse_synth_eq", "Prims.__proj__Mkdtuple2__item___1", "LowParse.Spec.Sum.sum...
[]
false
false
true
false
false
let parse_sum_cases_eq' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == parse (parse_sum_cases' s f x) input) =
synth_sum_case_injective s x; parse_synth_eq (weaken (weaken_parse_cases_kind s f) (dsnd (f x))) (synth_sum_case s x) input; parse_synth_eq (dsnd (f x)) (synth_sum_case s x) input
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.dsum_type_of_tag
val dsum_type_of_tag : t: LowParse.Spec.Sum.dsum -> k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.dsum_enum t) -> Type
let dsum_type_of_tag (t: dsum) = dsum_type_of_tag' (dsum_enum t) (dsum_type_of_known_tag t) (dsum_type_of_unknown_tag t)
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 89, "end_line": 540, "start_col": 0, "start_line": 539 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.dsum_enum t) -> Type
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Sum.dsum_key_type", "LowParse.Spec.Sum.dsum_repr_type", "LowParse.Spec.Sum.dsum_enum", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Enum.maybe_enum_key" ]
[]
false
false
false
false
true
let dsum_type_of_tag (t: dsum) =
dsum_type_of_tag' (dsum_enum t) (dsum_type_of_known_tag t) (dsum_type_of_unknown_tag t)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.weaken_parse_dsum_cases_kind'
val weaken_parse_dsum_cases_kind' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k': parser_kind) (p: parser k' (dsum_type_of_unknown_tag s)) : Tot parser_kind
val weaken_parse_dsum_cases_kind' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k': parser_kind) (p: parser k' (dsum_type_of_unknown_tag s)) : Tot parser_kind
let weaken_parse_dsum_cases_kind' (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (#k' : parser_kind) (p: parser k' (dsum_type_of_unknown_tag s)) : Tot parser_kind = weaken_parse_dsum_cases_kind s f k'
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 560, "start_col": 0, "start_line": 554 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> p: LowParse.Spec.Base.parser k' (LowParse.Spec.Sum.dsum_type_of_unkn...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.weaken_parse_dsum_cases_kind" ]
[]
false
false
false
false
false
let weaken_parse_dsum_cases_kind' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k': parser_kind) (p: parser k' (dsum_type_of_unknown_tag s)) : Tot parser_kind =
weaken_parse_dsum_cases_kind s f k'
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_cases_kind
val parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot parser_kind
val parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot parser_kind
let parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot parser_kind = match x with | Known k -> dfst (f k) | _ -> k
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 10, "end_line": 634, "start_col": 0, "start_line": 625 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> g: LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_unkno...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Enum.enum_key", "LowP...
[]
false
false
false
false
false
let parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot parser_kind =
match x with | Known k -> dfst (f k) | _ -> k
false
CQueue.Cell.fst
CQueue.Cell.ccell_not_null
val ccell_not_null (#opened: _) (#a: Type0) (c: ccell_ptrvalue a) : SteelGhost (squash (ccell_ptrvalue_is_null c == false)) opened (ccell c) (fun _ -> ccell c) (fun _ -> True) (fun h _ h' -> h' (ccell c) == h (ccell c) )
val ccell_not_null (#opened: _) (#a: Type0) (c: ccell_ptrvalue a) : SteelGhost (squash (ccell_ptrvalue_is_null c == false)) opened (ccell c) (fun _ -> ccell c) (fun _ -> True) (fun h _ h' -> h' (ccell c) == h (ccell c) )
let ccell_not_null #opened #a c = let c1 = elim_ccell_ghost c in let c2 : ccell_lvalue a = c in change_equal_slprop (vptr (ccell_data c1)) (vptr (ccell_data c2)); change_equal_slprop (vptr (ccell_next c1)) (vptr (ccell_next c2)); intro_ccell c2; change_equal_slprop (ccell c2) (ccell c); ()
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 4, "end_line": 184, "start_col": 0, "start_line": 175 }
module CQueue.Cell (* A Steel model of C cell structs *) #push-options "--__no_positivity" noeq type mcell (a: Type0) = { data: ref a; next: ref (mcell a); all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "CQueue.Cell.fst" }
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Atomic.SteelGhost (Prims.squash (CQueue.Cell.ccell_ptrvalue_is_null c == false))
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "CQueue.Cell.ccell_ptrvalue", "Prims.squash", "Prims.eq2", "Prims.bool", "CQueue.Cell.ccell_ptrvalue_is_null", "Prims.unit", "Steel.Effect.Atomic.change_equal_slprop", "CQueue.Cell.ccell", "CQueue.Cell.intro_ccell", "Steel.Reference.vptr", "CQueue.Cell.ccell_next", "FS...
[]
false
true
true
false
false
let ccell_not_null #opened #a c =
let c1 = elim_ccell_ghost c in let c2:ccell_lvalue a = c in change_equal_slprop (vptr (ccell_data c1)) (vptr (ccell_data c2)); change_equal_slprop (vptr (ccell_next c1)) (vptr (ccell_next c2)); intro_ccell c2; change_equal_slprop (ccell c2) (ccell c); ()
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.serialize_sum_cases'
val serialize_sum_cases' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (sr: (x: sum_key s -> Tot (serializer (dsnd (f x))))) (x: sum_key s) : Tot (serializer (parse_sum_cases' s f x))
val serialize_sum_cases' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (sr: (x: sum_key s -> Tot (serializer (dsnd (f x))))) (x: sum_key s) : Tot (serializer (parse_sum_cases' s f x))
let serialize_sum_cases' (s: sum) (f: (x: sum_key s) -> Tot (k: parser_kind & parser k (sum_type_of_tag s x))) (sr: (x: sum_key s) -> Tot (serializer (dsnd (f x)))) (x: sum_key s) : Tot (serializer (parse_sum_cases' s f x)) = synth_sum_case_injective s x; synth_sum_case_inverse s x; (serialize_synth ...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 280, "start_col": 0, "start_line": 266 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> f: (x: LowParse.Spec.Sum.sum_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag s x))) -> sr: (x: LowParse.Spec.Sum.sum_key s -> LowParse.Spec.Base.serializer (FStar.P...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Spec.Base.serializer", "Prims.__proj__Mkdtuple2__item___1", "FStar.Pervasives.dsnd", "LowParse.Spec.Combinators.seria...
[]
false
false
false
false
false
let serialize_sum_cases' (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (sr: (x: sum_key s -> Tot (serializer (dsnd (f x))))) (x: sum_key s) : Tot (serializer (parse_sum_cases' s f x)) =
synth_sum_case_injective s x; synth_sum_case_inverse s x; (serialize_synth _ (synth_sum_case s x) (sr x) (synth_sum_case_recip s x) ())
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_sum_case_inverse
val synth_sum_case_inverse (s: sum) (k: sum_key s) : Lemma (synth_inverse (synth_sum_case s k) (synth_sum_case_recip s k))
val synth_sum_case_inverse (s: sum) (k: sum_key s) : Lemma (synth_inverse (synth_sum_case s k) (synth_sum_case_recip s k))
let synth_sum_case_inverse (s: sum) (k: sum_key s) : Lemma (synth_inverse (synth_sum_case s k) (synth_sum_case_recip s k)) = Classical.forall_intro (Sum?.synth_case_synth_case_recip s)
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 61, "end_line": 264, "start_col": 0, "start_line": 262 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> k: LowParse.Spec.Sum.sum_key s -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_inverse (LowParse.Spec.Sum.synth_sum_case s k) (LowParse.Spec.Sum.synth_sum_case_recip s k))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "FStar.Classical.forall_intro", "LowParse.Spec.Sum.__proj__Sum__item__data", "Prims.eq2", "LowParse.Spec.Sum.__proj__Sum__item__synth_case", "LowParse.Spec.Sum.__proj__Sum__item__tag_of_data", "LowParse.Spec.Sum.synth_case_recip'", "LowParse.Spec...
[]
false
false
true
false
false
let synth_sum_case_inverse (s: sum) (k: sum_key s) : Lemma (synth_inverse (synth_sum_case s k) (synth_sum_case_recip s k)) =
Classical.forall_intro (Sum?.synth_case_synth_case_recip s)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_cases_eq
val parse_sum_cases_eq (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == (match parse (dsnd (f x)) input with | None -> None | Some (y, consumed) -> Som...
val parse_sum_cases_eq (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == (match parse (dsnd (f x)) input with | None -> None | Some (y, consumed) -> Som...
let parse_sum_cases_eq (s: sum) (f: (x: sum_key s) -> Tot (k: parser_kind & parser k (sum_type_of_tag s x))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == (match parse (dsnd (f x)) input with | None -> None | Some (y, consumed) -> Some (synth_sum_case s x y, consumed) )) ...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 95, "end_line": 122, "start_col": 0, "start_line": 111 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> f: (x: LowParse.Spec.Sum.sum_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag s x))) -> x: LowParse.Spec.Sum.sum_key s -> input: LowParse.Bytes.bytes -> FStar.Pervas...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Bytes.bytes", "LowParse.Spec.Combinators.parse_synth_eq", "LowParse.Spec.Sum.weaken_parse_cases_kind", "LowParse.Spec...
[]
false
false
true
false
false
let parse_sum_cases_eq (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (x: sum_key s) (input: bytes) : Lemma (parse (parse_sum_cases s f x) input == (match parse (dsnd (f x)) input with | None -> None | Some (y, consumed) -> Som...
synth_sum_case_injective s x; parse_synth_eq (weaken (weaken_parse_cases_kind s f) (dsnd (f x))) (synth_sum_case s x) input
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_sum_case_injective
val synth_sum_case_injective (s: sum) (k: sum_key s) : Lemma (synth_injective (synth_sum_case s k))
val synth_sum_case_injective (s: sum) (k: sum_key s) : Lemma (synth_injective (synth_sum_case s k))
let synth_sum_case_injective (s: sum) (k: sum_key s) : Lemma (synth_injective (synth_sum_case s k)) = Classical.forall_intro (Sum?.synth_case_recip_synth_case s k)
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 63, "end_line": 101, "start_col": 0, "start_line": 99 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> k: LowParse.Spec.Sum.sum_key s -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_injective (LowParse.Spec.Sum.synth_sum_case s k))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "FStar.Classical.forall_intro", "LowParse.Spec.Sum.__proj__Sum__item__type_of_tag", "Prims.eq2", "LowParse.Spec.Sum.__proj__Sum__item__tag_of_data", "LowParse.Spec.Sum.__proj__Sum__item__synth_case", "LowParse.Spec.Sum.synth_case_recip'", "LowPar...
[]
false
false
true
false
false
let synth_sum_case_injective (s: sum) (k: sum_key s) : Lemma (synth_injective (synth_sum_case s k)) =
Classical.forall_intro (Sum?.synth_case_recip_synth_case s k)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.dsum_enum
val dsum_enum (t: dsum) : Tot (enum (dsum_key_type t) (dsum_repr_type t))
val dsum_enum (t: dsum) : Tot (enum (dsum_key_type t) (dsum_repr_type t))
let dsum_enum (t: dsum) : Tot (enum (dsum_key_type t) (dsum_repr_type t)) = match t with (DSum _ _ e _ _ _ _ _ _ _ _) -> e
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 498, "start_col": 0, "start_line": 497 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> LowParse.Spec.Enum.enum (LowParse.Spec.Sum.dsum_key_type t) (LowParse.Spec.Sum.dsum_repr_type t)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Base.refine_with_tag", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.dsum_key_type", "LowParse.Spec.Sum...
[]
false
false
false
false
false
let dsum_enum (t: dsum) : Tot (enum (dsum_key_type t) (dsum_repr_type t)) =
match t with | DSum _ _ e _ _ _ _ _ _ _ _ -> e
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.serialize_sum_cases
val serialize_sum_cases (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (sr: (x: sum_key s -> Tot (serializer (dsnd (f x))))) (x: sum_key s) : Tot (serializer (parse_sum_cases s f x))
val serialize_sum_cases (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (sr: (x: sum_key s -> Tot (serializer (dsnd (f x))))) (x: sum_key s) : Tot (serializer (parse_sum_cases s f x))
let serialize_sum_cases (s: sum) (f: (x: sum_key s) -> Tot (k: parser_kind & parser k (sum_type_of_tag s x))) (sr: (x: sum_key s) -> Tot (serializer (dsnd (f x)))) (x: sum_key s) : Tot (serializer (parse_sum_cases s f x)) = Classical.forall_intro (parse_sum_cases_eq' s f x); serialize_ext (parse_sum_cases...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 292, "start_col": 0, "start_line": 282 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> f: (x: LowParse.Spec.Sum.sum_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag s x))) -> sr: (x: LowParse.Spec.Sum.sum_key s -> LowParse.Spec.Base.serializer (FStar.P...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Spec.Base.serializer", "Prims.__proj__Mkdtuple2__item___1", "FStar.Pervasives.dsnd", "LowParse.Spec.Base.serialize_ex...
[]
false
false
false
false
false
let serialize_sum_cases (s: sum) (f: (x: sum_key s -> Tot (k: parser_kind & parser k (sum_type_of_tag s x)))) (sr: (x: sum_key s -> Tot (serializer (dsnd (f x))))) (x: sum_key s) : Tot (serializer (parse_sum_cases s f x)) =
Classical.forall_intro (parse_sum_cases_eq' s f x); serialize_ext (parse_sum_cases' s f x) (serialize_sum_cases' s f sr x) (parse_sum_cases s f x)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum'
val parse_dsum' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (#k: parser_kind) (pc: (x: dsum_key t -> Tot (parser k (dsum_cases t x)))) : Tot (parser (and_then_kind kt k) (dsum_type t))
val parse_dsum' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (#k: parser_kind) (pc: (x: dsum_key t -> Tot (parser k (dsum_cases t x)))) : Tot (parser (and_then_kind kt k) (dsum_type t))
let parse_dsum' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (#k: parser_kind) (pc: ((x: dsum_key t) -> Tot (parser k (dsum_cases t x)))) : Tot (parser (and_then_kind kt k) (dsum_type t)) = parse_tagged_union #kt #(dsum_key t) (parse_maybe_enum_key p (dsum_enum t)) #(dsum_typ...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 691, "start_col": 0, "start_line": 677 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) -> pc: (x: LowParse.Spec.Sum.dsum_key t -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_cases t x)) -> LowParse.Spec.Base.parser (LowParse.Spec.Combinators.and_then_kind kt k) (L...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.dsum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_repr_type", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Sum.dsum_cases", "LowParse.Spec.Combinators.parse_tagged_union", "LowParse.Spec.Enum.parse_maybe_enum_key", "LowParse.Spec.Sum.dsu...
[]
false
false
false
false
false
let parse_dsum' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (#k: parser_kind) (pc: (x: dsum_key t -> Tot (parser k (dsum_cases t x)))) : Tot (parser (and_then_kind kt k) (dsum_type t)) =
parse_tagged_union #kt #(dsum_key t) (parse_maybe_enum_key p (dsum_enum t)) #(dsum_type t) (dsum_tag_of_data t) #k pc
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_kind
val parse_dsum_kind (kt: parser_kind) (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (k: parser_kind) : Tot parser_kind
val parse_dsum_kind (kt: parser_kind) (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (k: parser_kind) : Tot parser_kind
let parse_dsum_kind (kt: parser_kind) (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (k: parser_kind) : Tot parser_kind = and_then_kind kt (weaken_parse_dsum_cases_kind s f k)
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 700, "start_col": 0, "start_line": 694 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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
kt: LowParse.Spec.Base.parser_kind -> s: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> k: LowParse.Spec.Base.pars...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Combinators.and_then_kind", "LowParse.Spec.Sum.weaken_parse_dsum_cases_kind" ]
[]
false
false
false
false
false
let parse_dsum_kind (kt: parser_kind) (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (k: parser_kind) : Tot parser_kind =
and_then_kind kt (weaken_parse_dsum_cases_kind s f k)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.serialize_sum_eq
val serialize_sum_eq (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: (x: sum_key t -> Tot (serializer (dsnd (pc x))))) (x: sum_type t) : Lemma (requires (kt.p...
val serialize_sum_eq (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: (x: sum_key t -> Tot (serializer (dsnd (pc x))))) (x: sum_type t) : Lemma (requires (kt.p...
let serialize_sum_eq (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: ((x: sum_key t) -> Tot (serializer (dsnd (pc x))))) (x: sum_type t) : Lemma (requires (kt.parser_kind_subkind == Some...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 99, "end_line": 348, "start_col": 0, "start_line": 329 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> s: LowParse.Spec.Base.serializer p -> sc: (x: LowParse.Spec.Sum.sum_key t -> LowParse.Spec.Base.serializer (FStar.Pervasives.dsnd (pc x))) -> x: LowParse.Spec.Sum.sum_type t -> FStar.Pervasives.Lemma (requires Mkparser_kind'?.parser_kind_subki...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Base.serializer", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Sum.sum_type_of_tag", "Prims.__proj__Mkdtuple2__item___1", "FStar.Pervasives.dsnd...
[]
false
false
true
false
false
let serialize_sum_eq (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: (x: sum_key t -> Tot (serializer (dsnd (pc x))))) (x: sum_type t) : Lemma (requires (kt.p...
let tg = sum_tag_of_data t x in synth_sum_case_injective t tg; synth_sum_case_inverse t tg; serialize_synth_eq (dsnd (pc tg)) (synth_sum_case t tg) (sc tg) (synth_sum_case_recip t tg) () x
false
Vale.AES.GCM.fsti
Vale.AES.GCM.set_to_one_LE
val set_to_one_LE (q: quad32) : quad32
val set_to_one_LE (q: quad32) : quad32
let set_to_one_LE (q:quad32) : quad32 = four_insert q 1 0
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 20, "start_col": 0, "start_line": 20 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "ful...
{ "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
q: Vale.Def.Types_s.quad32 -> Vale.Def.Types_s.quad32
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.Def.Words.Four_s.four_insert", "Vale.Def.Types_s.nat32" ]
[]
false
false
false
true
false
let set_to_one_LE (q: quad32) : quad32 =
four_insert q 1 0
false
Wasm11.fst
Wasm11.test1
val test1: Prims.unit -> SteelT bool emp (fun _ -> emp)
val test1: Prims.unit -> SteelT bool emp (fun _ -> emp)
let test1 () : SteelT bool emp (fun _ -> emp) = let r = malloc 0uL 8sz in ghost_split r 4sz; let r1 = split_l r 4sz in let r2 = split_r r 4sz in change_equal_slprop (varray (split_l r 4sz)) (varray r1); change_equal_slprop (varray (split_r r 4sz)) (varray r2); let _ = mk 4s in let b = ptrdiff r2 r1 in ...
{ "file_name": "share/steel/tests/krml/Wasm11.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 27, "start_col": 0, "start_line": 12 }
module Wasm11 open FStar.SizeT open FStar.PtrdiffT open FStar.UInt64 open Steel.Effect.Atomic open Steel.Effect open Steel.Array (* WASM tests for pointer subtraction *)
{ "checked_file": "/", "dependencies": [ "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "Steel.Array.fsti.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Ptr...
[ { "abbrev": false, "full_module": "Steel.Array", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.Effect.SteelT Prims.bool
Steel.Effect.SteelT
[]
[]
[ "Prims.unit", "Steel.Effect.Atomic.return", "Prims.bool", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__mult", "Steel.Effect.Common.vprop", "Steel.Effect.Common.req", "Steel.Effect.Common.rm", "FStar.Algebra.Comm...
[]
false
true
false
false
false
let test1 () : SteelT bool emp (fun _ -> emp) =
let r = malloc 0uL 8sz in ghost_split r 4sz; let r1 = split_l r 4sz in let r2 = split_r r 4sz in change_equal_slprop (varray (split_l r 4sz)) (varray r1); change_equal_slprop (varray (split_r r 4sz)) (varray r2); let _ = mk 4s in let b = ptrdiff r2 r1 in ghost_join r1 r2 (); change_equal_slprop (varray (merge r1 r2)) (...
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum
val parse_dsum (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag t)) : Tot (parser (parse_dsum_kind kt t f k) (dsum_typ...
val parse_dsum (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag t)) : Tot (parser (parse_dsum_kind kt t f k) (dsum_typ...
let parse_dsum (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag t)) : Tot (parser (parse_dsum_kind kt t f k) (dsum_type t)) = parse_dsum' t p (par...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 42, "end_line": 710, "start_col": 0, "start_line": 702 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) -> f: (x: LowParse.Spec.Sum.dsum_known_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.dsum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_repr_type", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.parse_dsum'",...
[]
false
false
false
false
false
let parse_dsum (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag t)) : Tot (parser (parse_dsum_kind kt t f k) (dsum_typ...
parse_dsum' t p (parse_dsum_cases t f g)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_eq'
val parse_sum_eq' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with ...
val parse_sum_eq' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with ...
let parse_sum_eq' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with | None -> None | Some (k, consu...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 9, "end_line": 207, "start_col": 0, "start_line": 176 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) -> pc: (x: LowParse.Spec.Sum.sum_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) -> input: ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Bytes.bytes", "LowParse.Spec.Combinators.parse_tagged_union_eq_gen", "LowParse.Spe...
[]
false
false
true
false
false
let parse_sum_eq' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with ...
parse_tagged_union_eq_gen #(parse_filter_kind kt) #(sum_key t) (parse_enum_key p (sum_enum t)) #(sum_type t) (sum_tag_of_data t) (parse_sum_cases t pc) (parse_enum_key p (sum_enum t)) (fun input -> ()) (fun k -> dfst (pc k)) (parse_sum_cases' t pc) (fun k input -> parse_sum_cases_eq' t pc k input) input
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_eq''
val parse_sum_eq'' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse p input with | None -> None | S...
val parse_sum_eq'' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse p input with | None -> None | S...
let parse_sum_eq'' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse p input with | None -> None | Some (k', consumed_k) -> let input_k = ...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 40, "end_line": 255, "start_col": 0, "start_line": 233 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) -> pc: (x: LowParse.Spec.Sum.sum_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) -> input: ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Bytes.bytes", "LowParse.Spec.Enum.parse_enum_key_eq", "LowParse.Spec.Sum.sum_key_t...
[]
true
false
true
false
false
let parse_sum_eq'' (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse p input with | None -> None | S...
parse_sum_eq t p pc input; parse_enum_key_eq p (sum_enum t) input
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_case_recip_synth_case_post
val synth_case_recip_synth_case_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case: (x: enum_key e -> y: type_of_tag x -> Tot (refine_with_tag tag_of_data x))) (synth_case_reci...
val synth_case_recip_synth_case_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case: (x: enum_key e -> y: type_of_tag x -> Tot (refine_with_tag tag_of_data x))) (synth_case_reci...
let synth_case_recip_synth_case_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case: ((x: enum_key e) -> (y: type_of_tag x) -> Tot (refine_with_tag tag_of_data x))) (synth_case_recip: ((k: enum_key e) -> (...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 388, "start_col": 0, "start_line": 374 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> tag_of_data: (_: data -> LowParse.Spec.Enum.enum_key e) -> type_of_tag: (_: LowParse.Spec.Enum.enum_key e -> Type) -> synth_case: (x: LowParse.Spec.Enum.enum_key e -> y: type_of_tag x -> LowParse.Spec.Base.refine_with_tag tag_of_data x) -> synt...
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "Prims.l_imp", "Prims.b2t", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.fst", "Prims.l_Forall", "Prims.eq...
[]
false
false
false
false
true
let synth_case_recip_synth_case_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case: (x: enum_key e -> y: type_of_tag x -> Tot (refine_with_tag tag_of_data x))) (synth_case_reci...
list_mem x (list_map fst e) ==> (forall (y: type_of_tag x). {:pattern (synth_case_recip' e tag_of_data type_of_tag synth_case_recip (synth_case x y))} synth_case_recip' e tag_of_data type_of_tag synth_case_recip (synth_case x y) == y)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_dsum_case'
val synth_dsum_case' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_known_case: (x: enum_key e -> y: type_of_known_tag x -> Tot (re...
val synth_dsum_case' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_known_case: (x: enum_key e -> y: type_of_known_tag x -> Tot (re...
let synth_dsum_case' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_known_case: ((x: enum_key e) -> (y: type_of_known_tag x) -> Tot (refine_with_tag tag_of_d...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 35, "end_line": 445, "start_col": 0, "start_line": 430 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> tag_of_data: (_: data -> Prims.GTot (LowParse.Spec.Enum.maybe_enum_key e)) -> type_of_known_tag: (_: LowParse.Spec.Enum.enum_key e -> Type) -> type_of_unknown_tag: Type -> synth_known_case: (x: LowParse.Spec.Enum.enum_key e -> y: type_of_known_tag x ...
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "LowParse.Spec.Enum.Known", "LowParse.Spec.Enum.unknown_enum_repr", "LowParse.Spec.Enum.Unknown", "Prims.dtuple2", "LowParse.Spec.Sum.dsum_type_of_ta...
[]
false
false
false
false
false
let synth_dsum_case' (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> GTot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_known_case: (x: enum_key e -> y: type_of_known_tag x -> Tot (re...
let (| x , y |) = xy in match x with | Unknown x -> synth_unknown_case x y | Known x -> synth_known_case x y
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_sum_case_recip
val synth_sum_case_recip (s: sum) (k: sum_key s) (x: sum_cases s k) : Tot (sum_type_of_tag s k)
val synth_sum_case_recip (s: sum) (k: sum_key s) (x: sum_cases s k) : Tot (sum_type_of_tag s k)
let synth_sum_case_recip (s: sum) (k: sum_key s) (x: sum_cases s k) : Tot (sum_type_of_tag s k) = match s with (Sum _ _ _ _ _ _ _ synth_case_recip _ _) -> synth_case_recip k x
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 22, "end_line": 260, "start_col": 0, "start_line": 258 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.sum -> k: LowParse.Spec.Sum.sum_key s -> x: LowParse.Spec.Sum.sum_cases s k -> LowParse.Spec.Sum.sum_type_of_tag s k
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.sum", "LowParse.Spec.Sum.sum_key", "LowParse.Spec.Sum.sum_cases", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Base.refine_with_tag", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.synth_case_recip'",...
[]
false
false
false
false
false
let synth_sum_case_recip (s: sum) (k: sum_key s) (x: sum_cases s k) : Tot (sum_type_of_tag s k) =
match s with | Sum _ _ _ _ _ _ _ synth_case_recip _ _ -> synth_case_recip k x
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.serialize_sum
val serialize_sum (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: (x: sum_key t -> Tot (serializer (dsnd (pc x))))) : Pure (serializer (parse_sum t p pc)) (re...
val serialize_sum (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: (x: sum_key t -> Tot (serializer (dsnd (pc x))))) : Pure (serializer (parse_sum t p pc)) (re...
let serialize_sum (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: ((x: sum_key t) -> Tot (serializer (dsnd (pc x))))) : Pure (serializer (parse_sum t p pc)) (requires (kt.parser_kind_subki...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 77, "end_line": 327, "start_col": 0, "start_line": 316 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> s: LowParse.Spec.Base.serializer p -> sc: (x: LowParse.Spec.Sum.sum_key t -> LowParse.Spec.Base.serializer (FStar.Pervasives.dsnd (pc x))) -> Prims.Pure (LowParse.Spec.Base.serializer (LowParse.Spec.Sum.parse_sum t p pc))
Prims.Pure
[]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Base.serializer", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Sum.sum_type_of_tag", "Prims.__proj__Mkdtuple2__item___1", "FStar.Pervasives.dsnd...
[]
false
false
false
false
false
let serialize_sum (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (sc: (x: sum_key t -> Tot (serializer (dsnd (pc x))))) : Pure (serializer (parse_sum t p pc)) (re...
serialize_sum' t s #_ #(parse_sum_cases t pc) (serialize_sum_cases t pc sc)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.dsum_tag_of_data
val dsum_tag_of_data (t: dsum) : Tot (x: dsum_type t -> Tot (dsum_key t))
val dsum_tag_of_data (t: dsum) : Tot (x: dsum_type t -> Tot (dsum_key t))
let dsum_tag_of_data (t: dsum) : Tot ((x: dsum_type t) -> Tot (dsum_key t)) = match t with (DSum _ _ _ _ tag_of_data _ _ _ _ _ _) -> tag_of_data
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 68, "end_line": 522, "start_col": 0, "start_line": 521 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> x: LowParse.Spec.Sum.dsum_type t -> LowParse.Spec.Sum.dsum_key t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Base.refine_with_tag", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.dsum_type", "LowParse.Spec.Sum.dsu...
[]
false
false
false
false
false
let dsum_tag_of_data (t: dsum) : Tot (x: dsum_type t -> Tot (dsum_key t)) =
match t with | DSum _ _ _ _ tag_of_data _ _ _ _ _ _ -> tag_of_data
false
LowParse.Spec.Tac.Combinators.fst
LowParse.Spec.Tac.Combinators.synth_pairs_to_struct_to_pairs_tac'
val synth_pairs_to_struct_to_pairs_tac' (n: nat) : Tac unit
val synth_pairs_to_struct_to_pairs_tac' (n: nat) : Tac unit
let synth_pairs_to_struct_to_pairs_tac' (n: nat) : Tac unit = norm [delta]; // _only [(`%synth_inverse); (`%t8')]]; let x = forall_intro () in destruct_lhs_pairs (binder_to_term x) n
{ "file_name": "src/lowparse/LowParse.Spec.Tac.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 41, "end_line": 23, "start_col": 0, "start_line": 20 }
module LowParse.Spec.Tac.Combinators include LowParse.Spec.Combinators open LowParse.TacLib (* for structs *) let rec destruct_lhs_pairs (t: FStar.Tactics.term) (n: nat) : FStar.Tactics.Tac unit = if n = 0 then trefl () else begin destruct t; let a = intro () in let b = intro () in let abeq = i...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.TacLib.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "LowParse.Spec.Tac.Combinators.fst" }
[ { "abbrev": false, "full_module": "LowParse.TacLib", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Tac", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.nat", "LowParse.Spec.Tac.Combinators.destruct_lhs_pairs", "Prims.unit", "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.V1.Derived.binder_to_term", "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.V1.Logic.forall_intro", "FStar.Stubs.Tactics.V1.Builtins.norm", "Prims.Cons", "FStar....
[]
false
true
false
false
false
let synth_pairs_to_struct_to_pairs_tac' (n: nat) : Tac unit =
norm [delta]; let x = forall_intro () in destruct_lhs_pairs (binder_to_term x) n
false
LowParse.Spec.Tac.Combinators.fst
LowParse.Spec.Tac.Combinators.synth_pairs_to_struct_to_pairs_tac
val synth_pairs_to_struct_to_pairs_tac (#struct_t #pairs_t: Type) (recip: (struct_t -> GTot pairs_t)) (n: nat) : Tac unit
val synth_pairs_to_struct_to_pairs_tac (#struct_t #pairs_t: Type) (recip: (struct_t -> GTot pairs_t)) (n: nat) : Tac unit
let synth_pairs_to_struct_to_pairs_tac (#struct_t: Type) (#pairs_t: Type) (recip: struct_t -> GTot pairs_t) (n: nat) : Tac unit = apply (quote (synth_inverse_synth_injective' recip)); synth_pairs_to_struct_to_pairs_tac' n
{ "file_name": "src/lowparse/LowParse.Spec.Tac.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 39, "end_line": 27, "start_col": 0, "start_line": 25 }
module LowParse.Spec.Tac.Combinators include LowParse.Spec.Combinators open LowParse.TacLib (* for structs *) let rec destruct_lhs_pairs (t: FStar.Tactics.term) (n: nat) : FStar.Tactics.Tac unit = if n = 0 then trefl () else begin destruct t; let a = intro () in let b = intro () in let abeq = i...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.TacLib.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "LowParse.Spec.Tac.Combinators.fst" }
[ { "abbrev": false, "full_module": "LowParse.TacLib", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec.Tac", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
recip: (_: struct_t -> Prims.GTot pairs_t) -> n: Prims.nat -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.nat", "LowParse.Spec.Tac.Combinators.synth_pairs_to_struct_to_pairs_tac'", "Prims.unit", "FStar.Tactics.V1.Derived.apply", "FStar.Stubs.Reflection.Types.term", "LowParse.Spec.Combinators.synth_inverse_synth_injective'" ]
[]
false
true
false
false
false
let synth_pairs_to_struct_to_pairs_tac (#struct_t #pairs_t: Type) (recip: (struct_t -> GTot pairs_t)) (n: nat) : Tac unit =
apply (quote (synth_inverse_synth_injective' recip)); synth_pairs_to_struct_to_pairs_tac' n
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_sum_eq
val parse_sum_eq (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with ...
val parse_sum_eq (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with ...
let parse_sum_eq (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with | None -> None | Some (k, consum...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 61, "end_line": 231, "start_col": 0, "start_line": 209 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) -> pc: (x: LowParse.Spec.Sum.sum_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) -> input: ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Sum.sum_key", "Prims.dtuple2", "LowParse.Spec.Sum.sum_type_of_tag", "LowParse.Bytes.bytes", "LowParse.Spec.Base.parse", "LowParse.Spec.Enum.enum_key", "LowPar...
[]
false
false
true
false
false
let parse_sum_eq (#kt: parser_kind) (t: sum) (p: parser kt (sum_repr_type t)) (pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x)))) (input: bytes) : Lemma (parse (parse_sum t p pc) input == (match parse (parse_enum_key p (sum_enum t)) input with ...
parse_sum_eq' t p pc input; match parse (parse_enum_key p (sum_enum t)) input with | None -> () | Some (k, consumed_k) -> let input_k = Seq.slice input consumed_k (Seq.length input) in synth_sum_case_injective t k; parse_synth_eq (dsnd (pc k)) (synth_sum_case t k) input_k
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.serialize_sum'
val serialize_sum' (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: (x: sum_key t -> Tot (parser k (sum_cases t x)))) (sc: (x: sum_key t -> Tot (serializer (pc x)))) : Pure (serializer (parse_sum' t p pc)) (requir...
val serialize_sum' (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: (x: sum_key t -> Tot (parser k (sum_cases t x)))) (sc: (x: sum_key t -> Tot (serializer (pc x)))) : Pure (serializer (parse_sum' t p pc)) (requir...
let serialize_sum' (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: ((x: sum_key t) -> Tot (parser k (sum_cases t x)))) (sc: ((x: sum_key t) -> Tot (serializer (pc x)))) : Pure (serializer (parse_sum' t p pc)) (requires (kt.parser_kind_subkind == So...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 314, "start_col": 0, "start_line": 294 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.sum -> s: LowParse.Spec.Base.serializer p -> sc: (x: LowParse.Spec.Sum.sum_key t -> LowParse.Spec.Base.serializer (pc x)) -> Prims.Pure (LowParse.Spec.Base.serializer (LowParse.Spec.Sum.parse_sum' t p pc))
Prims.Pure
[]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.sum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.sum_repr_type", "LowParse.Spec.Base.serializer", "LowParse.Spec.Sum.sum_key", "LowParse.Spec.Sum.sum_cases", "LowParse.Spec.Combinators.serialize_tagged_union", "LowParse.Spec.Combinators.parse...
[]
false
false
false
false
false
let serialize_sum' (#kt: parser_kind) (t: sum) (#p: parser kt (sum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: (x: sum_key t -> Tot (parser k (sum_cases t x)))) (sc: (x: sum_key t -> Tot (serializer (pc x)))) : Pure (serializer (parse_sum' t p pc)) (requir...
serialize_tagged_union #(parse_filter_kind kt) #(sum_key t) #(parse_enum_key p (sum_enum t)) (serialize_enum_key p s (sum_enum t)) #(sum_type t) (sum_tag_of_data t) #k #pc sc
false
Vale.AES.GCM.fsti
Vale.AES.GCM.lower3_equal
val lower3_equal (q0 q1: quad32) : bool
val lower3_equal (q0 q1: quad32) : bool
let lower3_equal (q0 q1:quad32) : bool = q0.lo0 = q1.lo0 && q0.lo1 = q1.lo1 && q0.hi2 = q1.hi2
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 30, "start_col": 0, "start_line": 27 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "ful...
{ "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
q0: Vale.Def.Types_s.quad32 -> q1: Vale.Def.Types_s.quad32 -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Prims.op_AmpAmp", "Prims.op_Equality", "Vale.Def.Types_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Prims.bool" ]
[]
false
false
false
true
false
let lower3_equal (q0 q1: quad32) : bool =
q0.lo0 = q1.lo0 && q0.lo1 = q1.lo1 && q0.hi2 = q1.hi2
false
Hacl.Impl.Ed25519.Group.fst
Hacl.Impl.Ed25519.Group.point_add
val point_add : BE.lmul_st U64 20ul 0ul mk_to_ed25519_comm_monoid
val point_add : BE.lmul_st U64 20ul 0ul mk_to_ed25519_comm_monoid
let point_add ctx x y xy = let h0 = ST.get () in Spec.Ed25519.Lemmas.to_aff_point_add_lemma (F51.refl_ext_point (as_seq h0 x)) (F51.refl_ext_point (as_seq h0 y)); Hacl.Impl.Ed25519.PointAdd.point_add xy x y
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Group.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 46, "start_col": 0, "start_line": 42 }
module Hacl.Impl.Ed25519.Group module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 open Hacl.Impl.Ed25519.PointConstants module LSeq = Lib.Sequence module F51 = Hacl.Impl.Ed25519.Field51 module BE = Hacl.Impl.Exponentiation.Definitions mod...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Exponentiation.Definitions.fst.checked", "Hacl.Impl.Ed25519.Po...
[ { "abbrev": true, "full_module": "Spec.Ed25519", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.Impl.Exponentiation.Definitions", "short_module": "BE" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.Definitions.lmul_st Lib.IntTypes.U64 20ul 0ul Hacl.Impl.Ed25519.Group.mk_to_ed25519_comm_monoid
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Ed25519.PointAdd.point_add", "Prims.unit", "Spec.Ed25519.Lemmas.to_aff_point_add_lemma", "Hacl.Impl.Ed25519.Field51.refl_ext_point", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", ...
[]
false
false
false
false
false
let point_add ctx x y xy =
let h0 = ST.get () in Spec.Ed25519.Lemmas.to_aff_point_add_lemma (F51.refl_ext_point (as_seq h0 x)) (F51.refl_ext_point (as_seq h0 y)); Hacl.Impl.Ed25519.PointAdd.point_add xy x y
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_dsum_case
val synth_dsum_case (s: dsum) : Tot (x: dsum_key s -> dsum_type_of_tag s x -> Tot (refine_with_tag (dsum_tag_of_data s) x))
val synth_dsum_case (s: dsum) : Tot (x: dsum_key s -> dsum_type_of_tag s x -> Tot (refine_with_tag (dsum_tag_of_data s) x))
let synth_dsum_case (s: dsum) : Tot ((x: dsum_key s) -> dsum_type_of_tag s x -> Tot (refine_with_tag (dsum_tag_of_data s) x)) = match s with DSum _ _ _ _ _ _ _ synth_case _ _ _ -> synth_case
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 64, "end_line": 566, "start_col": 0, "start_line": 563 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> x: LowParse.Spec.Sum.dsum_key s -> _: LowParse.Spec.Sum.dsum_type_of_tag s x -> LowParse.Spec.Base.refine_with_tag (LowParse.Spec.Sum.dsum_tag_of_data s) x
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Base.refine_with_tag", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Sum.dsum...
[]
false
false
false
false
false
let synth_dsum_case (s: dsum) : Tot (x: dsum_key s -> dsum_type_of_tag s x -> Tot (refine_with_tag (dsum_tag_of_data s) x)) =
match s with | DSum _ _ _ _ _ _ _ synth_case _ _ _ -> synth_case
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_dsum_case_injective
val synth_dsum_case_injective (s: dsum) (x: dsum_key s) : Lemma (synth_injective (synth_dsum_case s x))
val synth_dsum_case_injective (s: dsum) (x: dsum_key s) : Lemma (synth_injective (synth_dsum_case s x))
let synth_dsum_case_injective (s: dsum) (x: dsum_key s) : Lemma (synth_injective (synth_dsum_case s x)) = let f (y1: dsum_type_of_tag s x) (y2: dsum_type_of_tag s x) : Lemma (requires (synth_dsum_case s x y1 == synth_dsum_case s x y2)) (ensures (y1 == y2)) = let k1 : squash (synth_dsum_case_re...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 602, "start_col": 0, "start_line": 574 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> x: LowParse.Spec.Sum.dsum_key s -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_injective (LowParse.Spec.Sum.synth_dsum_case s x))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_key", "FStar.Classical.forall_intro_2", "LowParse.Spec.Sum.dsum_type_of_tag", "Prims.l_imp", "Prims.eq2", "LowParse.Spec.Base.refine_with_tag", "LowParse.Spec.Sum.dsum_type", "LowParse.Spec.Sum.dsum_tag_of_data", "LowParse.Spec.Sum.synth_dsum_case"...
[]
false
false
true
false
false
let synth_dsum_case_injective (s: dsum) (x: dsum_key s) : Lemma (synth_injective (synth_dsum_case s x)) =
let f (y1 y2: dsum_type_of_tag s x) : Lemma (requires (synth_dsum_case s x y1 == synth_dsum_case s x y2)) (ensures (y1 == y2)) = let k1:squash (synth_dsum_case_recip s x (synth_dsum_case s x y1) == y1) = DSum?.synth_case_recip_synth_case s x y1 in let k2:squash (synth_dsum_case_recip s x (synth_dsum_case ...
false
Vale.AES.GCM.fsti
Vale.AES.GCM.upper3_equal
val upper3_equal (q0 q1: quad32) : bool
val upper3_equal (q0 q1: quad32) : bool
let upper3_equal (q0 q1:quad32) : bool = q0.lo1 = q1.lo1 && q0.hi2 = q1.hi2 && q0.hi3 = q1.hi3
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 25, "start_col": 0, "start_line": 22 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "ful...
{ "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
q0: Vale.Def.Types_s.quad32 -> q1: Vale.Def.Types_s.quad32 -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Vale.Def.Types_s.quad32", "Prims.op_AmpAmp", "Prims.op_Equality", "Vale.Def.Types_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Prims.bool" ]
[]
false
false
false
true
false
let upper3_equal (q0 q1: quad32) : bool =
q0.lo1 = q1.lo1 && q0.hi2 = q1.hi2 && q0.hi3 = q1.hi3
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_type_of_tag
val parse_dsum_type_of_tag (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_type_of_tag s x))
val parse_dsum_type_of_tag (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_type_of_tag s x))
let parse_dsum_type_of_tag (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_type_of_tag s x)) = match x with | Known x' ...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 135, "end_line": 613, "start_col": 0, "start_line": 604 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> g: LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_unkno...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Enum.enum_key", "LowP...
[]
false
false
false
false
false
let parse_dsum_type_of_tag (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_type_of_tag s x)) =
match x with | Known x' -> coerce (parser (weaken_parse_dsum_cases_kind s f k) (dsum_type_of_tag s x)) (weaken (weaken_parse_dsum_cases_kind s f k) (dsnd (f x'))) | Unknown x' -> weaken (weaken_parse_dsum_cases_kind s f k) g <: parser (weaken_parse_dsum_cases_kind s f k) (dsum_type_of_tag s x)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.weaken_parse_dsum_cases_kind
val weaken_parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (k': parser_kind) : Tot parser_kind
val weaken_parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (k': parser_kind) : Tot parser_kind
let weaken_parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (k' : parser_kind) : Tot parser_kind = let keys : list (dsum_key_type s) = List.Tot.map fst (dsum_enum s) in glb_list_of #(dsum_key_type s) (fun (x: dsum_key_type s) -> if Li...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 45, "end_line": 552, "start_col": 0, "start_line": 542 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> k': LowParse.Spec.Base.parser_kind -> LowParse.Spec.Base.parser_ki...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Base.glb", "LowParse.Spec.Base.glb_list_of", "LowParse.Spec.Sum.dsum_key_type", "FStar.List.Tot.B...
[]
false
false
false
false
false
let weaken_parse_dsum_cases_kind (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (k': parser_kind) : Tot parser_kind =
let keys:list (dsum_key_type s) = List.Tot.map fst (dsum_enum s) in (glb_list_of #(dsum_key_type s) (fun (x: dsum_key_type s) -> if List.Tot.mem x keys then let (| k , _ |) = f x in k else k') (List.Tot.map fst (dsum_enum s))) `glb` k'
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_type_of_tag'
val parse_dsum_type_of_tag' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_type_of_tag s x))
val parse_dsum_type_of_tag' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_type_of_tag s x))
let parse_dsum_type_of_tag' (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_type_of_tag s x)) = match x with | Known x' -> c...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 86, "end_line": 645, "start_col": 0, "start_line": 636 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> g: LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_unkno...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Enum.enum_key", "LowP...
[]
false
false
false
false
false
let parse_dsum_type_of_tag' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_type_of_tag s x)) =
match x with | Known x' -> coerce (parser (parse_dsum_cases_kind s f g x) (dsum_type_of_tag s x)) (dsnd (f x')) | Unknown x' -> g <: parser (parse_dsum_cases_kind s f g x) (dsum_type_of_tag s x)
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_cases'
val parse_dsum_cases' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_cases s x))
val parse_dsum_cases' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_cases s x))
let parse_dsum_cases' (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_cases s x)) = synth_dsum_case_injective s x; match x wit...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 124, "end_line": 657, "start_col": 0, "start_line": 647 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> g: LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_unkno...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Enum.enum_key", "LowP...
[]
false
false
false
false
false
let parse_dsum_cases' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (parse_dsum_cases_kind s f g x) (dsum_cases s x)) =
synth_dsum_case_injective s x; match x with | Known x' -> ((dsnd (f x')) `parse_synth` (synth_dsum_case s (Known x'))) <: parser (parse_dsum_cases_kind s f g x) (dsum_cases s x) | Unknown x' -> g `parse_synth` (synth_dsum_case s (Unknown x')) <: parser (parse_dsum_cases_kind s f g x) (dsum_cases s x)
false
Vale.AES.GCM.fsti
Vale.AES.GCM.gcm_decrypt_LE_tag
val gcm_decrypt_LE_tag (alg: algorithm) (key: seq nat8) (iv: supported_iv_LE) (cipher auth: seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32) (ensures fun t -> True)
val gcm_decrypt_LE_tag (alg: algorithm) (key: seq nat8) (iv: supported_iv_LE) (cipher auth: seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32) (ensures fun t -> True)
let gcm_decrypt_LE_tag (alg:algorithm) (key:seq nat8) (iv:supported_iv_LE) (cipher:seq nat8) (auth:seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32 ) (ensures fun t -> True) = let key_LE = seq_nat8_to_seq_nat32_LE key in l...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 228, "start_col": 0, "start_line": 206 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.AES.GHash_s.fst.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> iv: Vale.AES.GCM_s.supported_iv_LE -> cipher: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> auth: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 -> Prims.Pure (FStar.Seq.Base.seq Vale.Def.Words_s.nat8)
Prims.Pure
[]
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat8", "Vale.AES.GCM_s.supported_iv_LE", "Vale.AES.GCTR_s.gctr_encrypt_LE", "Vale.Def.Types_s.le_quad32_to_bytes", "Vale.Def.Types_s.quad32", "Vale.AES.GHash_s.ghash_LE", "FStar.Seq.Base.append", "FStar.Seq.Base.create", ...
[]
false
false
false
false
false
let gcm_decrypt_LE_tag (alg: algorithm) (key: seq nat8) (iv: supported_iv_LE) (cipher auth: seq nat8) : Pure (seq nat8) (requires is_aes_key alg key /\ length cipher < pow2_32 /\ length auth < pow2_32) (ensures fun t -> True) =
let key_LE = seq_nat8_to_seq_nat32_LE key in let h_LE = aes_encrypt_LE alg key_LE (Mkfour 0 0 0 0) in let j0_BE = compute_iv_BE h_LE iv in let lengths_BE = insert_nat64 (insert_nat64 (Mkfour 0 0 0 0) (8 * length auth) 1) (8 * length cipher) 0 in let lengths_LE = reverse_bytes_quad32 lengths_BE in let zero_padded_c_LE...
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.serialize_dsum'
val serialize_dsum' (#kt: parser_kind) (t: dsum) (#p: parser kt (dsum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: (x: dsum_key t -> Tot (parser k (dsum_cases t x)))) (sc: (x: dsum_key t -> Tot (serializer (pc x)))) : Pure (serializer (parse_dsum' t p pc)) ...
val serialize_dsum' (#kt: parser_kind) (t: dsum) (#p: parser kt (dsum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: (x: dsum_key t -> Tot (parser k (dsum_cases t x)))) (sc: (x: dsum_key t -> Tot (serializer (pc x)))) : Pure (serializer (parse_dsum' t p pc)) ...
let serialize_dsum' (#kt: parser_kind) (t: dsum) (#p: parser kt (dsum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: ((x: dsum_key t) -> Tot (parser k (dsum_cases t x)))) (sc: ((x: dsum_key t) -> Tot (serializer (pc x)))) : Pure (serializer (parse_dsum' t p pc)) (requires (kt.parser_kind_subkin...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 906, "start_col": 0, "start_line": 886 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> s: LowParse.Spec.Base.serializer p -> sc: (x: LowParse.Spec.Sum.dsum_key t -> LowParse.Spec.Base.serializer (pc x)) -> Prims.Pure (LowParse.Spec.Base.serializer (LowParse.Spec.Sum.parse_dsum' t p pc))
Prims.Pure
[]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.dsum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_repr_type", "LowParse.Spec.Base.serializer", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Sum.dsum_cases", "LowParse.Spec.Combinators.serialize_tagged_union", "LowParse.Spec.Enum.parse_ma...
[]
false
false
false
false
false
let serialize_dsum' (#kt: parser_kind) (t: dsum) (#p: parser kt (dsum_repr_type t)) (s: serializer p) (#k: parser_kind) (#pc: (x: dsum_key t -> Tot (parser k (dsum_cases t x)))) (sc: (x: dsum_key t -> Tot (serializer (pc x)))) : Pure (serializer (parse_dsum' t p pc)) ...
serialize_tagged_union #(kt) #(dsum_key t) #(parse_maybe_enum_key p (dsum_enum t)) (serialize_maybe_enum_key p s (dsum_enum t)) #(dsum_type t) (dsum_tag_of_data t) #k #pc sc
false
CSL.Semantics.fst
CSL.Semantics.commutative
val commutative : equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
let commutative #a (equals: a -> a -> prop) (f: a -> a -> a) = forall x y.{:pattern f x y} f x y `equals` f y x
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 62, "start_col": 0, "start_line": 60 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.l_Forall", "Prims.logical" ]
[]
false
false
false
true
true
let commutative #a (equals: (a -> a -> prop)) (f: (a -> a -> a)) =
forall x y. {:pattern f x y} (f x y) `equals` (f y x)
false
CSL.Semantics.fst
CSL.Semantics.associative
val associative : equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
let associative #a (equals: a -> a -> prop) (f: a -> a -> a)= forall x y z. f x (f y z) `equals` f (f x y) z
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 36, "end_line": 58, "start_col": 0, "start_line": 56 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.l_Forall", "Prims.logical" ]
[]
false
false
false
true
true
let associative #a (equals: (a -> a -> prop)) (f: (a -> a -> a)) =
forall x y z. (f x (f y z)) `equals` (f (f x y) z)
false
CSL.Semantics.fst
CSL.Semantics.symmetry
val symmetry : equals: (_: a -> _: a -> Prims.prop) -> Prims.logical
let symmetry #a (equals: a -> a -> prop) = forall x y. {:pattern (x `equals` y)} x `equals` y ==> y `equals` x
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 33, "end_line": 51, "start_col": 0, "start_line": 49 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
equals: (_: a -> _: a -> Prims.prop) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.l_Forall", "Prims.l_imp", "Prims.logical" ]
[]
false
false
false
true
true
let symmetry #a (equals: (a -> a -> prop)) =
forall x y. {:pattern (x `equals` y)} x `equals` y ==> y `equals` x
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_cases
val parse_dsum_cases (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_cases s x))
val parse_dsum_cases (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_cases s x))
let parse_dsum_cases (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_cases s x)) = synth_dsum_case_injective s x; parse_d...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 66, "end_line": 623, "start_col": 0, "start_line": 615 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> g: LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_unkno...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Combinators.parse_synth...
[]
false
false
false
false
false
let parse_dsum_cases (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) : Tot (parser (weaken_parse_dsum_cases_kind s f k) (dsum_cases s x)) =
synth_dsum_case_injective s x; (parse_dsum_type_of_tag s f g x) `parse_synth` (synth_dsum_case s x)
false
CSL.Semantics.fst
CSL.Semantics.equals_ext
val equals_ext : equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
let equals_ext #a (equals:a -> a -> prop) (f:a -> a -> a) = forall x1 x2 y. x1 `equals` x2 ==> f x1 y `equals` f x2 y
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 59, "end_line": 70, "start_col": 0, "start_line": 69 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.l_Forall", "Prims.l_imp", "Prims.logical" ]
[]
false
false
false
true
true
let equals_ext #a (equals: (a -> a -> prop)) (f: (a -> a -> a)) =
forall x1 x2 y. x1 `equals` x2 ==> (f x1 y) `equals` (f x2 y)
false
CSL.Semantics.fst
CSL.Semantics.transitive
val transitive : equals: (_: a -> _: a -> Prims.prop) -> Prims.logical
let transitive #a (equals:a -> a -> prop) = forall x y z. x `equals` y /\ y `equals` z ==> x `equals` z
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 61, "end_line": 54, "start_col": 0, "start_line": 53 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
equals: (_: a -> _: a -> Prims.prop) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.l_Forall", "Prims.l_imp", "Prims.l_and", "Prims.logical" ]
[]
false
false
false
true
true
let transitive #a (equals: (a -> a -> prop)) =
forall x y z. x `equals` y /\ y `equals` z ==> x `equals` z
false
CSL.Semantics.fst
CSL.Semantics.interp_extensionality
val interp_extensionality : equals: (_: r -> _: r -> Prims.prop) -> f: (_: r -> _: s -> Prims.prop) -> Prims.logical
let interp_extensionality #r #s (equals:r -> r -> prop) (f:r -> s -> prop) = forall x y h. {:pattern equals x y; f x h} equals x y /\ f x h ==> f y h
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 74, "end_line": 92, "start_col": 0, "start_line": 91 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
equals: (_: r -> _: r -> Prims.prop) -> f: (_: r -> _: s -> Prims.prop) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.l_Forall", "Prims.l_imp", "Prims.l_and", "Prims.logical" ]
[]
false
false
false
true
true
let interp_extensionality #r #s (equals: (r -> r -> prop)) (f: (r -> s -> prop)) =
forall x y h. {:pattern equals x y; f x h} equals x y /\ f x h ==> f y h
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_dsum_case_recip
val synth_dsum_case_recip (s: dsum) : Tot (x: dsum_key s -> refine_with_tag (dsum_tag_of_data s) x -> Tot (dsum_type_of_tag s x))
val synth_dsum_case_recip (s: dsum) : Tot (x: dsum_key s -> refine_with_tag (dsum_tag_of_data s) x -> Tot (dsum_type_of_tag s x))
let synth_dsum_case_recip (s: dsum) : Tot ((x: dsum_key s) -> refine_with_tag (dsum_tag_of_data s) x -> Tot (dsum_type_of_tag s x)) = match s with DSum _ _ _ _ _ _ _ _ synth_case_recip _ _ -> synth_case_recip
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 572, "start_col": 0, "start_line": 569 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> x: LowParse.Spec.Sum.dsum_key s -> _: LowParse.Spec.Base.refine_with_tag (LowParse.Spec.Sum.dsum_tag_of_data s) x -> LowParse.Spec.Sum.dsum_type_of_tag s x
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Base.refine_with_tag", "Prims.squash", "Prims.eq2", "LowParse.Spec.Sum.dsum_key", "LowParse.Spec.Sum.dsum...
[]
false
false
false
false
false
let synth_dsum_case_recip (s: dsum) : Tot (x: dsum_key s -> refine_with_tag (dsum_tag_of_data s) x -> Tot (dsum_type_of_tag s x)) =
match s with | DSum _ _ _ _ _ _ _ _ synth_case_recip _ _ -> synth_case_recip
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_dsum_case_inverse
val synth_dsum_case_inverse (s: dsum) (x: dsum_key s) : Lemma (synth_inverse (synth_dsum_case s x) (synth_dsum_case_recip s x))
val synth_dsum_case_inverse (s: dsum) (x: dsum_key s) : Lemma (synth_inverse (synth_dsum_case s x) (synth_dsum_case_recip s x))
let synth_dsum_case_inverse (s: dsum) (x: dsum_key s) : Lemma (synth_inverse (synth_dsum_case s x) (synth_dsum_case_recip s x)) = let f (y: refine_with_tag (dsum_tag_of_data s) (x)) : Lemma (synth_dsum_case s x (synth_dsum_case_recip s x y) == y) = DSum?.synth_case_synth_case_recip s y in Classica...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 26, "end_line": 851, "start_col": 0, "start_line": 840 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> x: LowParse.Spec.Sum.dsum_key s -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_inverse (LowParse.Spec.Sum.synth_dsum_case s x) (LowParse.Spec.Sum.synth_dsum_case_recip s x))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_key", "FStar.Classical.forall_intro", "LowParse.Spec.Base.refine_with_tag", "LowParse.Spec.Sum.dsum_type", "LowParse.Spec.Sum.dsum_tag_of_data", "Prims.eq2", "LowParse.Spec.Sum.synth_dsum_case", "LowParse.Spec.Sum.synth_dsum_case_recip", "Prims.uni...
[]
false
false
true
false
false
let synth_dsum_case_inverse (s: dsum) (x: dsum_key s) : Lemma (synth_inverse (synth_dsum_case s x) (synth_dsum_case_recip s x)) =
let f (y: refine_with_tag (dsum_tag_of_data s) (x)) : Lemma (synth_dsum_case s x (synth_dsum_case_recip s x y) == y) = DSum?.synth_case_synth_case_recip s y in Classical.forall_intro f
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.serialize_dsum_cases
val serialize_dsum_cases (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x))))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (sg: serializer g) (x: dsum_ke...
val serialize_dsum_cases (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x))))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (sg: serializer g) (x: dsum_ke...
let serialize_dsum_cases (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (sr: (x: dsum_known_key s) -> Tot (serializer (dsnd (f x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (sg: serializer g) (x: dsum_key s) : Tot (serializer (pars...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 884, "start_col": 0, "start_line": 868 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> sr: (x: LowParse.Spec.Sum.dsum_known_key s -> LowPar...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Base.serializer", "Prims.__proj__Mkdtuple2__item___1", "FStar.Pervasives.dsnd", "LowParse.Spec.Su...
[]
false
false
false
false
false
let serialize_dsum_cases (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (sr: (x: dsum_known_key s -> Tot (serializer (dsnd (f x))))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (sg: serializer g) (x: dsum_ke...
synth_dsum_case_injective s x; synth_dsum_case_inverse s x; serialize_synth _ (synth_dsum_case s x) (serialize_dsum_type_of_tag s f sr g sg x) (synth_dsum_case_recip s x) ()
false
CSL.Semantics.fst
CSL.Semantics.is_unit
val is_unit : x: a -> equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
let is_unit #a (x:a) (equals: a -> a -> prop) (f:a -> a -> a) = forall y. {:pattern f x y \/ f y x} f x y `equals` y /\ f y x `equals` y
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 67, "start_col": 0, "start_line": 64 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "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 -> equals: (_: a -> _: a -> Prims.prop) -> f: (_: a -> _: a -> a) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.l_Forall", "Prims.l_and", "Prims.logical" ]
[]
false
false
false
true
true
let is_unit #a (x: a) (equals: (a -> a -> prop)) (f: (a -> a -> a)) =
forall y. {:pattern f x y\/f y x} (f x y) `equals` y /\ (f y x) `equals` y
false
CSL.Semantics.fst
CSL.Semantics.action_t
val action_t : pre: Mkst0?.hprop st -> post: CSL.Semantics.post_t st a -> Type0
let action_t (#st:st) (#a:Type) (pre:st.hprop) (post:post_t st a) = unit -> Mst a (requires fun m0 -> st.interp (pre `st.star` st.invariant m0) m0) (ensures fun m0 x m1 -> st.interp ((post x) `st.star` st.invariant m1) m1 /\ preserves_frame pre (post x) m0 m1)
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 39, "end_line": 154, "start_col": 0, "start_line": 144 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pre: Mkst0?.hprop st -> post: CSL.Semantics.post_t st a -> Type0
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st", "CSL.Semantics.__proj__Mkst0__item__hprop", "CSL.Semantics.post_t", "Prims.unit", "CSL.Semantics.__proj__Mkst0__item__mem", "CSL.Semantics.__proj__Mkst0__item__interp", "CSL.Semantics.__proj__Mkst0__item__star", "CSL.Semantics.__proj__Mkst0__item__invariant", "Prims.l_and", "CS...
[]
false
false
false
false
true
let action_t (#st: st) (#a: Type) (pre: st.hprop) (post: post_t st a) =
unit -> Mst a (requires fun m0 -> st.interp (pre `st.star` (st.invariant m0)) m0) (ensures fun m0 x m1 -> st.interp ((post x) `st.star` (st.invariant m1)) m1 /\ preserves_frame pre (post x) m0 m1)
false
CSL.Semantics.fst
CSL.Semantics.st_laws
val st_laws : st: CSL.Semantics.st0 -> Prims.logical
let st_laws (st:st0) = (* standard laws about the equality relation *) symmetry st.equals /\ transitive st.equals /\ interp_extensionality st.equals st.interp /\ (* standard laws for star forming a CM *) associative st.equals st.star /\ commutative st.equals st.star /\ is_unit st.emp st.equals st.star /...
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 11, "end_line": 111, "start_col": 0, "start_line": 100 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: CSL.Semantics.st0 -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st0", "Prims.l_and", "CSL.Semantics.symmetry", "CSL.Semantics.__proj__Mkst0__item__hprop", "CSL.Semantics.__proj__Mkst0__item__equals", "CSL.Semantics.transitive", "CSL.Semantics.interp_extensionality", "CSL.Semantics.__proj__Mkst0__item__mem", "CSL.Semantics.__proj__Mkst0__item__inte...
[]
false
false
false
true
true
let st_laws (st: st0) =
symmetry st.equals /\ transitive st.equals /\ interp_extensionality st.equals st.interp /\ associative st.equals st.star /\ commutative st.equals st.star /\ is_unit st.emp st.equals st.star /\ equals_ext st.equals st.star /\ affine st
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.synth_dsum_case_recip_synth_case_unknown_post
val synth_dsum_case_recip_synth_case_unknown_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case: (x: maybe_enum_key e -> y: ds...
val synth_dsum_case_recip_synth_case_unknown_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case: (x: maybe_enum_key e -> y: ds...
let synth_dsum_case_recip_synth_case_unknown_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case: ((x: maybe_enum_key e) -> (y: dsum_type_of_tag' e type_of_known_tag...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 955, "start_col": 0, "start_line": 940 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> tag_of_data: (_: data -> LowParse.Spec.Enum.maybe_enum_key e) -> type_of_known_tag: (_: LowParse.Spec.Enum.enum_key e -> Type) -> type_of_unknown_tag: Type -> synth_case: ( x: LowParse.Spec.Enum.maybe_enum_key e -> y: LowParse.Spe...
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Sum.dsum_type_of_tag'", "LowParse.Spec.Base.refine_with_tag", "Prims.l_imp", "Prims.eq2", "Prims.bool", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "F...
[]
false
false
false
false
true
let synth_dsum_case_recip_synth_case_unknown_post (#key #repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (maybe_enum_key e))) (type_of_known_tag: (enum_key e -> Tot Type)) (type_of_unknown_tag: Type) (synth_case: (x: maybe_enum_key e -> y: ds...
list_mem x (list_map snd e) == false ==> (forall (y: type_of_unknown_tag). {:pattern (synth_case_recip (Unknown x) (synth_case (Unknown x) y))} synth_case_recip (Unknown x) (synth_case (Unknown x) y) == y)
false
CSL.Semantics.fst
CSL.Semantics.affine
val affine : st: CSL.Semantics.st0 -> Prims.logical
let affine (st:st0) = forall r0 r1 s. {:pattern (st.interp (r0 `st.star` r1) s) } st.interp (r0 `st.star` r1) s ==> st.interp r0 s
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 52, "end_line": 96, "start_col": 0, "start_line": 94 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: CSL.Semantics.st0 -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st0", "Prims.l_Forall", "CSL.Semantics.__proj__Mkst0__item__hprop", "CSL.Semantics.__proj__Mkst0__item__mem", "Prims.l_imp", "CSL.Semantics.__proj__Mkst0__item__interp", "CSL.Semantics.__proj__Mkst0__item__star", "Prims.logical" ]
[]
false
false
false
true
true
let affine (st: st0) =
forall r0 r1 s. {:pattern (st.interp (r0 `st.star` r1) s)} st.interp (r0 `st.star` r1) s ==> st.interp r0 s
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_eq_
val parse_dsum_eq_ (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (par...
val parse_dsum_eq_ (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (par...
let parse_dsum_eq_ (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (parse_dsum t p f g) input == (match p...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 285, "end_line": 752, "start_col": 0, "start_line": 734 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) -> f: (x: LowParse.Spec.Sum.dsum_known_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.dsum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_repr_type", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Bytes.bytes", "LowPa...
[]
false
false
true
false
false
let parse_dsum_eq_ (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (par...
parse_tagged_union_eq_gen (parse_maybe_enum_key p (dsum_enum t)) (dsum_tag_of_data t) (parse_dsum_cases t f g) (parse_maybe_enum_key p (dsum_enum t)) (fun input -> ()) (parse_dsum_cases_kind t f g) (parse_dsum_cases' t f g) (fun tg input -> parse_dsum_cases_eq' t f g tg input) input
false
CSL.Semantics.fst
CSL.Semantics.st
val st : Type
let st = s:st0 { st_laws s }
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 113, "start_col": 0, "start_line": 113 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st0", "CSL.Semantics.st_laws" ]
[]
false
false
false
true
true
let st =
s: st0{st_laws s}
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_cases_eq'
val parse_dsum_cases_eq' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) (input: bytes) : Lemma (parse (parse_dsum_cases s f g x) input == parse (pars...
val parse_dsum_cases_eq' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) (input: bytes) : Lemma (parse (parse_dsum_cases s f g x) input == parse (pars...
let parse_dsum_cases_eq' (s: dsum) (f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) (input: bytes) : Lemma (parse (parse_dsum_cases s f g x) input == parse (parse_dsum_cases' s f g x) inp...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 59, "end_line": 675, "start_col": 0, "start_line": 659 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "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: LowParse.Spec.Sum.dsum -> f: (x: LowParse.Spec.Sum.dsum_known_key s -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) -> g: LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_unkno...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Sum.dsum", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Spec.Sum.dsum_key", "LowParse.Bytes.bytes", "LowParse.Sp...
[]
false
false
true
false
false
let parse_dsum_cases_eq' (s: dsum) (f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))) (#k: parser_kind) (g: parser k (dsum_type_of_unknown_tag s)) (x: dsum_key s) (input: bytes) : Lemma (parse (parse_dsum_cases s f g x) input == parse (pars...
synth_dsum_case_injective s x; match x with | Known x' -> parse_synth_eq (weaken (weaken_parse_dsum_cases_kind s f k) (dsnd (f x'))) (synth_dsum_case s x) input; parse_synth_eq (dsnd (f x')) (synth_dsum_case s (Known x')) input | Unknown x' -> parse_synth_eq (weaken (weaken_parse_dsum_cases_kind s f k) g)...
false
CSL.Semantics.fst
CSL.Semantics.weaker_pre
val weaker_pre : pre: Mkst0?.hprop st -> next_pre: Mkst0?.hprop st -> Prims.logical
let weaker_pre (#st:st) (pre:st.hprop) (next_pre:st.hprop) = forall (h:st.mem) (frame:st.hprop). st.interp (pre `st.star` frame) h ==> st.interp (next_pre `st.star` frame) h
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 164, "start_col": 0, "start_line": 161 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pre: Mkst0?.hprop st -> next_pre: Mkst0?.hprop st -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st", "CSL.Semantics.__proj__Mkst0__item__hprop", "Prims.l_Forall", "CSL.Semantics.__proj__Mkst0__item__mem", "Prims.l_imp", "CSL.Semantics.__proj__Mkst0__item__interp", "CSL.Semantics.__proj__Mkst0__item__star", "Prims.logical" ]
[]
false
false
false
false
true
let weaker_pre (#st: st) (pre next_pre: st.hprop) =
forall (h: st.mem) (frame: st.hprop). st.interp (pre `st.star` frame) h ==> st.interp (next_pre `st.star` frame) h
false
LowParse.Spec.Sum.fst
LowParse.Spec.Sum.parse_dsum_eq'
val parse_dsum_eq' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (par...
val parse_dsum_eq' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (par...
let parse_dsum_eq' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (parse_dsum t p f g) input == (match p...
{ "file_name": "src/lowparse/LowParse.Spec.Sum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 47, "end_line": 774, "start_col": 0, "start_line": 754 }
module LowParse.Spec.Sum include LowParse.Spec.Enum module Seq = FStar.Seq let synth_case_recip' (#key: eqtype) (#repr: eqtype) (e: enum key repr) (#data: Type) (tag_of_data: (data -> Tot (enum_key e))) (type_of_tag: (enum_key e -> Tot Type)) (synth_case_recip: ((k: enum_key e) -> (x: refi...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowParse.Spec.Enum", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: LowParse.Spec.Sum.dsum -> p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.dsum_repr_type t) -> f: (x: LowParse.Spec.Sum.dsum_known_key t -> Prims.dtuple2 LowParse.Spec.Base.parser_kind (fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag t x)))...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Sum.dsum", "LowParse.Spec.Base.parser", "LowParse.Spec.Sum.dsum_repr_type", "LowParse.Spec.Sum.dsum_known_key", "Prims.dtuple2", "LowParse.Spec.Sum.dsum_type_of_known_tag", "LowParse.Spec.Sum.dsum_type_of_unknown_tag", "LowParse.Bytes.bytes", "LowPa...
[]
true
false
true
false
false
let parse_dsum_eq' (#kt: parser_kind) (t: dsum) (p: parser kt (dsum_repr_type t)) (f: (x: dsum_known_key t -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag t x)))) (#k': parser_kind) (g: parser k' (dsum_type_of_unknown_tag t)) (input: bytes) : Lemma (parse (par...
parse_dsum_eq_ t p f g input; parse_maybe_enum_key_eq p (dsum_enum t) input
false
CSL.Semantics.fst
CSL.Semantics.stronger_post
val stronger_post : post: CSL.Semantics.post_t st a -> next_post: CSL.Semantics.post_t st a -> Prims.logical
let stronger_post (#st:st) (#a:Type u#a) (post next_post:post_t st a) = forall (x:a) (h:st.mem) (frame:st.hprop). st.interp (next_post x `st.star` frame) h ==> st.interp (post x `st.star` frame) h
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 40, "end_line": 169, "start_col": 0, "start_line": 166 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
post: CSL.Semantics.post_t st a -> next_post: CSL.Semantics.post_t st a -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st", "CSL.Semantics.post_t", "Prims.l_Forall", "CSL.Semantics.__proj__Mkst0__item__mem", "CSL.Semantics.__proj__Mkst0__item__hprop", "Prims.l_imp", "CSL.Semantics.__proj__Mkst0__item__interp", "CSL.Semantics.__proj__Mkst0__item__star", "Prims.logical" ]
[]
false
false
false
false
true
let stronger_post (#st: st) (#a: Type u#a) (post next_post: post_t st a) =
forall (x: a) (h: st.mem) (frame: st.hprop). st.interp ((next_post x) `st.star` frame) h ==> st.interp ((post x) `st.star` frame) h
false
CSL.Semantics.fst
CSL.Semantics.weakening_ok
val weakening_ok : pre: Mkst0?.hprop st -> post: CSL.Semantics.post_t st a -> wpre: Mkst0?.hprop st -> wpost: CSL.Semantics.post_t st a -> Prims.logical
let weakening_ok (#st:st) (#a:Type u#a) (pre:st.hprop) (post:post_t st a) (wpre:st.hprop) (wpost:post_t st a) = weaker_pre wpre pre /\ stronger_post wpost post
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 49, "end_line": 173, "start_col": 0, "start_line": 171 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pre: Mkst0?.hprop st -> post: CSL.Semantics.post_t st a -> wpre: Mkst0?.hprop st -> wpost: CSL.Semantics.post_t st a -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st", "CSL.Semantics.__proj__Mkst0__item__hprop", "CSL.Semantics.post_t", "Prims.l_and", "CSL.Semantics.weaker_pre", "CSL.Semantics.stronger_post", "Prims.logical" ]
[]
false
false
false
false
true
let weakening_ok (#st: st) (#a: Type u#a) (pre: st.hprop) (post: post_t st a) (wpre: st.hprop) (wpost: post_t st a) =
weaker_pre wpre pre /\ stronger_post wpost post
false
CSL.Semantics.fst
CSL.Semantics.step_ens
val step_ens: #st: st -> #a: Type u#a -> #pre: st.hprop -> #post: post_t st a -> f: m st a pre post -> st.mem -> step_result st a -> st.mem -> Type0
val step_ens: #st: st -> #a: Type u#a -> #pre: st.hprop -> #post: post_t st a -> f: m st a pre post -> st.mem -> step_result st a -> st.mem -> Type0
let step_ens (#st:st) (#a:Type u#a) (#pre:st.hprop) (#post:post_t st a) (f:m st a pre post) : st.mem -> step_result st a -> st.mem -> Type0 = fun m0 r m1 -> let Step #_ #_ #next_pre #next_post _ = r in st.interp (next_pre `st.star` st.invariant m1) m1 /\ stronger_post post next_post /\ preserves_frame pre ne...
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 36, "end_line": 271, "start_col": 0, "start_line": 264 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "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: CSL.Semantics.m st a pre post -> _: Mkst0?.mem st -> _: CSL.Semantics.step_result st a -> _: Mkst0?.mem st -> Type0
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st", "CSL.Semantics.__proj__Mkst0__item__hprop", "CSL.Semantics.post_t", "CSL.Semantics.m", "CSL.Semantics.__proj__Mkst0__item__mem", "CSL.Semantics.step_result", "Prims.l_and", "CSL.Semantics.__proj__Mkst0__item__interp", "CSL.Semantics.__proj__Mkst0__item__star", "CSL.Semantics.__...
[]
false
false
false
false
true
let step_ens (#st: st) (#a: Type u#a) (#pre: st.hprop) (#post: post_t st a) (f: m st a pre post) : st.mem -> step_result st a -> st.mem -> Type0 =
fun m0 r m1 -> let Step #_ #_ #next_pre #next_post _ = r in st.interp (next_pre `st.star` (st.invariant m1)) m1 /\ stronger_post post next_post /\ preserves_frame pre next_pre m0 m1
false
CSL.Semantics.fst
CSL.Semantics.preserves_frame
val preserves_frame : pre: Mkst0?.hprop st -> post: Mkst0?.hprop st -> m0: Mkst0?.mem st -> m1: Mkst0?.mem st -> Prims.logical
let preserves_frame (#st:st) (pre post:st.hprop) (m0 m1:st.mem) = forall (frame:st.hprop). st.interp ((pre `st.star` frame) `st.star` (st.invariant m0)) m0 ==> st.interp ((post `st.star` frame) `st.star` (st.invariant m1)) m1
{ "file_name": "share/steel/examples/steel/CSL.Semantics.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 142, "start_col": 0, "start_line": 139 }
(* 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": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.NMST.fst.checked", "FStar.MST.fst.checked", ...
[ { "abbrev": false, "full_module": "FStar.NMST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": true, "full_module": "FStar.Preorder", "short_module": "P" }, { "abbrev": false, "full_module": "CSL"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pre: Mkst0?.hprop st -> post: Mkst0?.hprop st -> m0: Mkst0?.mem st -> m1: Mkst0?.mem st -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "CSL.Semantics.st", "CSL.Semantics.__proj__Mkst0__item__hprop", "CSL.Semantics.__proj__Mkst0__item__mem", "Prims.l_Forall", "Prims.l_imp", "CSL.Semantics.__proj__Mkst0__item__interp", "CSL.Semantics.__proj__Mkst0__item__star", "CSL.Semantics.__proj__Mkst0__item__invariant", "Prims.logical" ]
[]
false
false
false
false
true
let preserves_frame (#st: st) (pre post: st.hprop) (m0 m1: st.mem) =
forall (frame: st.hprop). st.interp ((pre `st.star` frame) `st.star` (st.invariant m0)) m0 ==> st.interp ((post `st.star` frame) `st.star` (st.invariant m1)) m1
false