fact
stringlengths
1
182k
statement
stringlengths
1
8.57k
proof
stringlengths
0
182k
type
stringclasses
13 values
symbolic_name
stringlengths
0
89
library
stringclasses
73 values
filename
stringlengths
14
95
imports
listlengths
0
0
deps
listlengths
0
64
docstring
stringclasses
0 values
line_start
int64
2
5.85k
line_end
int64
2
5.85k
has_proof
bool
2 classes
source_url
stringclasses
1 value
commit
stringclasses
1 value
info_doc_env (g:env) (r:option range) (msg:list Pprint.document) : T.Tac unit
info_doc_env (g:env) (r:option range) (msg:list Pprint.document) : T.Tac unit
val
info_doc_env
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "env", "list", "msg", "option", "range", "unit" ]
null
233
234
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
fail (#a:Type) (g:env) (r:option range) (msg:string) : T.TacH a (requires True) (ensures fun _ -> False)
fail (#a:Type) (g:env) (r:option range) (msg:string) : T.TacH a (requires True) (ensures fun _ -> False)
val
fail
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "env", "msg", "option", "range", "string" ]
null
236
237
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
warn (g:env) (r:option range) (msg:string) : T.Tac unit
warn (g:env) (r:option range) (msg:string) : T.Tac unit
val
warn
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "env", "msg", "option", "range", "string", "unit" ]
null
239
240
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
info (g:env) (r:option range) (msg:string) : T.Tac unit
info (g:env) (r:option range) (msg:string) : T.Tac unit
val
info
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "env", "msg", "option", "range", "string", "unit" ]
null
242
243
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
fail_doc_with_subissues #a (g:env) (ro : option range) (sub : list Issue.issue) (msg : list Pprint.document) : T.TacH a (requires True) (ensures fun _ -> False)
fail_doc_with_subissues #a (g:env) (ro : option range) (sub : list Issue.issue) (msg : list Pprint.document) : T.TacH a (requires True) (ensures fun _ -> False)
val
fail_doc_with_subissues
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "env", "list", "msg", "option", "range", "sub" ]
null
245
248
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
info_doc_with_subissues (g:env) (r:option range) (sub : list Issue.issue) (msg : list Pprint.document) : T.Tac unit
info_doc_with_subissues (g:env) (r:option range) (sub : list Issue.issue) (msg : list Pprint.document) : T.Tac unit
val
info_doc_with_subissues
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "env", "list", "msg", "option", "range", "sub", "unit" ]
null
250
253
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
has_stt_bindings (f:RT.fstar_top_env) : prop
has_stt_bindings (f:RT.fstar_top_env) : prop
val
has_stt_bindings
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "prop" ]
null
255
255
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
stt_env = e:env { has_stt_bindings (fstar_env e) }
stt_env
= e:env { has_stt_bindings (fstar_env e) }
let
stt_env
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "env", "fstar_env", "has_stt_bindings" ]
null
256
256
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
check_top_level_environment (f:RT.fstar_top_env) : option (g:stt_env{fstar_env g == f /\ bindings g == []})
check_top_level_environment (f:RT.fstar_top_env) : option (g:stt_env{fstar_env g == f /\ bindings g == []})
val
check_top_level_environment
pulse.src.checker
pulse/src/checker/Pulse.Typing.Env.fsti
[]
[ "bindings", "fstar_env", "option", "stt_env" ]
null
257
258
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
debug_log (level:string) (g:env) (f: unit -> T.Tac string) : T.Tac unit = if RU.debug_at_level (fstar_env g) level then T.print (Printf.sprintf "Debug@%s:{ %s }\n" level (f ()))
debug_log (level:string) (g:env) (f: unit -> T.Tac string) : T.Tac unit
= if RU.debug_at_level (fstar_env g) level then T.print (Printf.sprintf "Debug@%s:{ %s }\n" level (f ()))
let
debug_log
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "env", "fstar_env", "level", "string", "unit" ]
null
33
35
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_unit = tm_fvar (as_fv unit_lid)
tm_unit
= tm_fvar (as_fv unit_lid)
let
tm_unit
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "tm_fvar", "unit_lid" ]
null
37
37
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
unit_const = tm_constant R.C_Unit
unit_const
= tm_constant R.C_Unit
let
unit_const
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "tm_constant" ]
null
38
38
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_bool = RT.bool_ty
tm_bool
= RT.bool_ty
let
tm_bool
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[]
null
39
39
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_int = tm_fvar (as_fv int_lid)
tm_int
= tm_fvar (as_fv int_lid)
let
tm_int
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "int_lid", "tm_fvar" ]
null
40
40
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_nat = tm_fvar (as_fv nat_lid)
tm_nat
= tm_fvar (as_fv nat_lid)
let
tm_nat
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "nat_lid", "tm_fvar" ]
null
41
41
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_szt = szt_tm
tm_szt
= szt_tm
let
tm_szt
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "szt_tm" ]
null
42
42
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_true = tm_constant R.C_True
tm_true
= tm_constant R.C_True
let
tm_true
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "tm_constant" ]
null
43
43
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_false = tm_constant R.C_False
tm_false
= tm_constant R.C_False
let
tm_false
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "tm_constant" ]
null
44
44
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_l_false = tm_fvar (as_fv R.false_qn)
tm_l_false
= tm_fvar (as_fv R.false_qn)
let
tm_l_false
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "tm_fvar" ]
null
45
45
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_prop = RU.set_range FStar.Reflection.Typing.tm_prop Range.range_0
tm_prop
= RU.set_range FStar.Reflection.Typing.tm_prop Range.range_0
let
tm_prop
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[]
null
48
48
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_erased (u:universe) (t:term) : term = let hd = tm_uinst (as_fv erased_lid) [u] in tm_pureapp hd None t
mk_erased (u:universe) (t:term) : term
= let hd = tm_uinst (as_fv erased_lid) [u] in tm_pureapp hd None t
let
mk_erased
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "erased_lid", "hd", "term", "tm_pureapp", "tm_uinst", "universe" ]
null
50
52
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_reveal (u:universe) (t:term) (e:term) : term = let hd = tm_uinst (as_fv reveal_lid) [u] in let hd = tm_pureapp hd (Some Implicit) t in tm_pureapp hd None e
mk_reveal (u:universe) (t:term) (e:term) : term
= let hd = tm_uinst (as_fv reveal_lid) [u] in let hd = tm_pureapp hd (Some Implicit) t in tm_pureapp hd None e
let
mk_reveal
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "hd", "reveal_lid", "term", "tm_pureapp", "tm_uinst", "universe" ]
null
54
57
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_hide (u:universe) (t:term) (e:term) : term = let hd = tm_uinst (as_fv hide_lid) [u] in let hd = tm_pureapp hd (Some Implicit) t in tm_pureapp hd None e
mk_hide (u:universe) (t:term) (e:term) : term
= let hd = tm_uinst (as_fv hide_lid) [u] in let hd = tm_pureapp hd (Some Implicit) t in tm_pureapp hd None e
let
mk_hide
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "hd", "hide_lid", "term", "tm_pureapp", "tm_uinst", "universe" ]
null
59
62
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_eq2 (u:universe) (t:term) (e0 e1:term) : term = tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv R.eq2_qn) [u]) (Some Implicit) t) None e0) None e1
mk_eq2 (u:universe) (t:term) (e0 e1:term) : term
= tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv R.eq2_qn) [u]) (Some Implicit) t) None e0) None e1
let
mk_eq2
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "term", "tm_pureapp", "tm_uinst", "universe" ]
null
64
70
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_sq_eq2 (u:universe) (t:term) (e0 e1:term) : term = let eq = mk_eq2 u t e0 e1 in (tm_pureapp (tm_fvar (as_fv R.squash_qn)) None eq)
mk_sq_eq2 (u:universe) (t:term) (e0 e1:term) : term
= let eq = mk_eq2 u t e0 e1 in (tm_pureapp (tm_fvar (as_fv R.squash_qn)) None eq)
let
mk_sq_eq2
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "eq", "mk_eq2", "term", "tm_fvar", "tm_pureapp", "universe" ]
null
72
77
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_slprop_eq (e0 e1:term) : term = mk_eq2 u2 tm_slprop e0 e1
mk_slprop_eq (e0 e1:term) : term
= mk_eq2 u2 tm_slprop e0 e1
let
mk_slprop_eq
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "mk_eq2", "term", "tm_slprop", "u2" ]
null
79
80
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rewrites_to_p_lid = Pulse.Reflection.Util.mk_pulse_lib_core_lid "rewrites_to_p"
rewrites_to_p_lid
= Pulse.Reflection.Util.mk_pulse_lib_core_lid "rewrites_to_p"
let
rewrites_to_p_lid
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "rewrites_to_p" ]
null
82
82
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_sq_rewrites_to_p u t x y = let open R in let hd = pack_fv rewrites_to_p_lid in let hd = pack_ln (Tv_UInst hd [u]) in let args = [(t, Q_Implicit); (x, Q_Explicit); (y, Q_Explicit)] in mk_squash (R.mk_app hd args)
mk_sq_rewrites_to_p u t x y
= let open R in let hd = pack_fv rewrites_to_p_lid in let hd = pack_ln (Tv_UInst hd [u]) in let args = [(t, Q_Implicit); (x, Q_Explicit); (y, Q_Explicit)] in mk_squash (R.mk_app hd args)
let
mk_sq_rewrites_to_p
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "hd", "mk_squash", "pack_fv", "pack_ln", "rewrites_to_p_lid" ]
null
84
89
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_ref (t:term) : term = tm_pureapp (tm_uinst (as_fv ref_lid) [u0]) None t
mk_ref (t:term) : term
= tm_pureapp (tm_uinst (as_fv ref_lid) [u0]) None t
let
mk_ref
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "ref_lid", "term", "tm_pureapp", "tm_uinst", "u0" ]
null
92
92
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_pts_to (ty:term) (r:term) (v:term) : term = let t = tm_uinst (as_fv pts_to_lid) [u0] in let t = tm_pureapp t (Some Implicit) ty in let t = tm_pureapp t None r in let t = tm_pureapp t (Some Implicit) tm_full_perm in tm_pureapp t None v
mk_pts_to (ty:term) (r:term) (v:term) : term
= let t = tm_uinst (as_fv pts_to_lid) [u0] in let t = tm_pureapp t (Some Implicit) ty in let t = tm_pureapp t None r in let t = tm_pureapp t (Some Implicit) tm_full_perm in tm_pureapp t None v
let
mk_pts_to
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "pts_to_lid", "term", "tm_full_perm", "tm_pureapp", "tm_uinst", "ty", "u0" ]
null
94
99
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_pts_to_uninit (ty:term) (r:term) : term = let t = tm_uinst (as_fv pts_to_uninit_lid) [u0] in let t = tm_pureapp t (Some Implicit) ty in let t = tm_pureapp t None r in t
mk_pts_to_uninit (ty:term) (r:term) : term
= let t = tm_uinst (as_fv pts_to_uninit_lid) [u0] in let t = tm_pureapp t (Some Implicit) ty in let t = tm_pureapp t None r in t
let
mk_pts_to_uninit
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "pts_to_uninit_lid", "term", "tm_pureapp", "tm_uinst", "ty", "u0" ]
null
101
105
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_return (c:ctag) (use_eq:bool) (u:universe) (t:term) (e:term) (post:term) (x:var) : comp = let post_maybe_eq = if use_eq then let post = open_term' post (null_var x) 0 in let post = tm_star post (tm_pure (mk_eq2 u t (null_var x) e)) in close_term post x else post in match c wit...
comp_return (c:ctag) (use_eq:bool) (u:universe) (t:term) (e:term) (post:term) (x:var) : comp
= let post_maybe_eq = if use_eq then let post = open_term' post (null_var x) 0 in let post = tm_star post (tm_pure (mk_eq2 u t (null_var x) e)) in close_term post x else post in match c with | STT -> C_ST { u; res = t; pre = open_term' post e 0; post = post_maybe_eq } | STT_A...
let
comp_return
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "bool", "close_term", "comp", "ctag", "mk_eq2", "null_var", "open_term'", "post", "pre", "res", "term", "tm_emp_inames", "tm_pure", "tm_star", "universe", "var" ]
null
107
126
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rec all_fresh (g:env) (xs:list var_binding) : Tot prop (decreases xs) = match xs with | [] -> True | x::xs -> freshv g x.x /\ all_fresh (push g (BindingVar x)) xs
rec all_fresh (g:env) (xs:list var_binding) : Tot prop (decreases xs)
= match xs with | [] -> True | x::xs -> freshv g x.x /\ all_fresh (push g (BindingVar x)) xs
let
all_fresh
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "Tot", "env", "freshv", "list", "prop", "push", "var_binding" ]
null
128
131
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rec push_bindings (g:env) (bs:list var_binding {all_fresh g bs}) : Tot (g':env{env_extends g' g}) (decreases bs) = match bs with | [] -> g | x::bs -> push_bindings (push g (BindingVar x)) bs
rec push_bindings (g:env) (bs:list var_binding {all_fresh g bs}) : Tot (g':env{env_extends g' g}) (decreases bs)
= match bs with | [] -> g | x::bs -> push_bindings (push g (BindingVar x)) bs
let
push_bindings
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "Tot", "all_fresh", "env", "env_extends", "g'", "list", "push", "var_binding" ]
null
133
136
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
elab_push_binding (g:env) (x:var { ~ (Set.mem x (dom g)) }) (t:typ) : Lemma (elab_env (push_binding g x ppname_default t) == RT.extend_env (elab_env g) x t) = ()
elab_push_binding (g:env) (x:var { ~ (Set.mem x (dom g)) }) (t:typ) : Lemma (elab_env (push_binding g x ppname_default t) == RT.extend_env (elab_env g) x t)
= ()
let
elab_push_binding
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "Lemma", "dom", "elab_env", "env", "ppname_default", "push_binding", "typ", "var" ]
null
138
140
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
add_frame (s:comp_st) (frame:term) : comp_st = let add_frame_s (s:st_comp) : st_comp = { s with pre = tm_star s.pre frame; post = tm_star s.post frame } in match s with | C_ST s -> C_ST (add_frame_s s) | C_STAtomic inames obs s -> C_STAtomic inames obs (add_frame_s s) | ...
add_frame (s:comp_st) (frame:term) : comp_st
= let add_frame_s (s:st_comp) : st_comp = { s with pre = tm_star s.pre frame; post = tm_star s.post frame } in match s with | C_ST s -> C_ST (add_frame_s s) | C_STAtomic inames obs s -> C_STAtomic inames obs (add_frame_s s) | C_STGhost inames s -> C_STGhost inames (add_frame...
let
add_frame
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp_st", "frame", "inames", "post", "pre", "st_comp", "term", "tm_star" ]
null
144
153
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
add_frame_l (s:comp_st) (frame:term) : comp_st = let add_frame_s (s:st_comp) : st_comp = { s with pre = tm_star frame s.pre; post = tm_star frame s.post } in match s with | C_ST s -> C_ST (add_frame_s s) | C_STAtomic inames obs s -> C_STAtomic inames obs (add_frame_s s) ...
add_frame_l (s:comp_st) (frame:term) : comp_st
= let add_frame_s (s:st_comp) : st_comp = { s with pre = tm_star frame s.pre; post = tm_star frame s.post } in match s with | C_ST s -> C_ST (add_frame_s s) | C_STAtomic inames obs s -> C_STAtomic inames obs (add_frame_s s) | C_STGhost inames s -> C_STGhost inames (add_frame...
let
add_frame_l
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp_st", "frame", "inames", "post", "pre", "st_comp", "term", "tm_star" ]
null
155
164
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
add_frame_later_l (s:comp_st) (frame:term) : comp_st = add_frame_l s (tm_later frame)
add_frame_later_l (s:comp_st) (frame:term) : comp_st
= add_frame_l s (tm_later frame)
let
add_frame_later_l
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "add_frame_l", "comp_st", "frame", "term", "tm_later" ]
null
166
168
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
add_inv (s:comp_st) (v:slprop) : comp_st = add_frame s v
add_inv (s:comp_st) (v:slprop) : comp_st
= add_frame s v
let
add_inv
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "add_frame", "comp_st", "slprop" ]
null
170
172
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
at_most_one_observable o1 o2 = match o1, o2 with | Observable, Observable -> false | _ -> true
at_most_one_observable o1 o2
= match o1, o2 with | Observable, Observable -> false | _ -> true
let
at_most_one_observable
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[]
null
174
177
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
join_obs (o1 o2:observability) : observability = if o1 = o2 then o1 else Observable
join_obs (o1 o2:observability) : observability
= if o1 = o2 then o1 else Observable
let
join_obs
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "observability" ]
null
179
181
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_with_inv (s:comp_st {C_STAtomic? s || C_STGhost? s}) (i p:term) = let add_inv inames = tm_add_inv inames i in let add_inv_st_comp (s:st_comp) = let frame = tm_inv i p in { s with pre = tm_star frame s.pre; post = tm_star frame s.post} in match s with | C_STAtomic inames obs s -> C_...
comp_with_inv (s:comp_st {C_STAtomic? s || C_STGhost? s}) (i p:term)
= let add_inv inames = tm_add_inv inames i in let add_inv_st_comp (s:st_comp) = let frame = tm_inv i p in { s with pre = tm_star frame s.pre; post = tm_star frame s.post} in match s with | C_STAtomic inames obs s -> C_STAtomic (add_inv inames) obs (add_inv_st_comp s) | C_STGhost iname...
let
comp_with_inv
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "add_inv", "comp_st", "frame", "inames", "post", "pre", "st_comp", "term", "tm_add_inv", "tm_inv", "tm_star" ]
null
183
193
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
bind_comp_compatible (c1 c2:comp_st) : prop = match c1, c2 with | C_ST _, C_ST _ -> True | C_STGhost inames1 _, C_STGhost inames2 _ -> inames1 == inames2 | C_STAtomic inames1 obs1 _, C_STAtomic inames2 obs2 _ -> inames1 == inames2 /\ at_most_one_observable obs1 obs2 | _, _ -> False
bind_comp_compatible (c1 c2:comp_st) : prop
= match c1, c2 with | C_ST _, C_ST _ -> True | C_STGhost inames1 _, C_STGhost inames2 _ -> inames1 == inames2 | C_STAtomic inames1 obs1 _, C_STAtomic inames2 obs2 _ -> inames1 == inames2 /\ at_most_one_observable obs1 obs2 | _, _ -> False
let
bind_comp_compatible
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "at_most_one_observable", "c1", "c2", "comp_st", "prop" ]
null
195
202
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
bind_comp_pre (x:var) (c1 c2:comp_st) : prop = open_term (comp_post c1) x == comp_pre c2 /\ (~ (x `Set.mem` freevars (comp_post c2))) /\ //x doesn't escape in the result type bind_comp_compatible c1 c2
bind_comp_pre (x:var) (c1 c2:comp_st) : prop
= open_term (comp_post c1) x == comp_pre c2 /\ (~ (x `Set.mem` freevars (comp_post c2))) /\ //x doesn't escape in the result type bind_comp_compatible c1 c2
let
bind_comp_pre
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "bind_comp_compatible", "c1", "c2", "comp_post", "comp_pre", "comp_st", "freevars", "open_term", "prop", "var" ]
null
204
208
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
bind_comp_out (c1:comp_st) (c2:comp_st{bind_comp_compatible c1 c2}) : comp_st = let s : st_comp = {u=comp_u c2; res=comp_res c2; pre=comp_pre c1; post=comp_post c2} in match c1, c2 with | C_STGhost inames _, C_STGhost _ _ -> C_STGhost inames s | C_STAtomic inames obs1 _, C_STAtomic _ obs2 _ -> C_S...
bind_comp_out (c1:comp_st) (c2:comp_st{bind_comp_compatible c1 c2}) : comp_st
= let s : st_comp = {u=comp_u c2; res=comp_res c2; pre=comp_pre c1; post=comp_post c2} in match c1, c2 with | C_STGhost inames _, C_STGhost _ _ -> C_STGhost inames s | C_STAtomic inames obs1 _, C_STAtomic _ obs2 _ -> C_STAtomic inames (join_obs obs1 obs2) s | C_ST _, C_ST _ -> C_ST s
let
bind_comp_out
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "bind_comp_compatible", "c1", "c2", "comp_post", "comp_pre", "comp_res", "comp_st", "comp_u", "inames", "join_obs", "post", "pre", "res", "st_comp" ]
null
211
218
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
st_equiv_pre (c1 c2:comp_st) : prop = comp_u c1 == comp_u c2 /\ (match c1, c2 with | C_ST _, C_ST _ -> True | C_STAtomic inames1 obs1 _, C_STAtomic inames2 obs2 _ -> inames1 == inames2 /\ obs1 == obs2 | C_STGhost inames1 _, C_STGhost inames2 _ -> inames1 == inames2 | _, _ -> False)
st_equiv_pre (c1 c2:comp_st) : prop
= comp_u c1 == comp_u c2 /\ (match c1, c2 with | C_ST _, C_ST _ -> True | C_STAtomic inames1 obs1 _, C_STAtomic inames2 obs2 _ -> inames1 == inames2 /\ obs1 == obs2 | C_STGhost inames1 _, C_STGhost inames2 _ -> inames1 == inames2 | _, _ -> False)
let
st_equiv_pre
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "c1", "c2", "comp_st", "comp_u", "prop" ]
null
220
228
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
non_informative_class (u:universe) (t:term) : term = tm_pureapp (tm_uinst (as_fv non_informative_lid) [u]) None t
non_informative_class (u:universe) (t:term) : term
= tm_pureapp (tm_uinst (as_fv non_informative_lid) [u]) None t
let
non_informative_class
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "non_informative_lid", "term", "tm_pureapp", "tm_uinst", "universe" ]
null
230
234
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
elim_exists_post (u:universe) (t:term) (p:term) (x:nvar) : term = let x_tm = term_of_nvar x in let p = open_term' p (mk_reveal u t x_tm) 0 in close_term p (snd x)
elim_exists_post (u:universe) (t:term) (p:term) (x:nvar) : term
= let x_tm = term_of_nvar x in let p = open_term' p (mk_reveal u t x_tm) 0 in close_term p (snd x)
let
elim_exists_post
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "close_term", "mk_reveal", "nvar", "open_term'", "snd", "term", "term_of_nvar", "universe" ]
null
236
240
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_elim_exists (u:universe) (t:term) (p:term) (x:nvar) : comp = C_STGhost tm_emp_inames { u=u; res=mk_erased u t; pre=tm_exists_sl u (as_binder t) p; post=elim_exists_post u t p x }
comp_elim_exists (u:universe) (t:term) (p:term) (x:nvar) : comp
= C_STGhost tm_emp_inames { u=u; res=mk_erased u t; pre=tm_exists_sl u (as_binder t) p; post=elim_exists_post u t p x }
let
comp_elim_exists
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_binder", "comp", "elim_exists_post", "mk_erased", "nvar", "post", "pre", "res", "term", "tm_emp_inames", "tm_exists_sl", "universe" ]
null
242
250
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_intro_pure (p:term) = C_STGhost tm_emp_inames { u=u_zero; res=tm_unit; pre=tm_emp; post=tm_pure p }
comp_intro_pure (p:term)
= C_STGhost tm_emp_inames { u=u_zero; res=tm_unit; pre=tm_emp; post=tm_pure p }
let
comp_intro_pure
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "post", "pre", "res", "term", "tm_emp", "tm_emp_inames", "tm_pure", "tm_unit", "u_zero" ]
null
252
259
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
named_binder (x:ppname) (t:term) = mk_binder_ppname t x
named_binder (x:ppname) (t:term)
= mk_binder_ppname t x
let
named_binder
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "mk_binder_ppname", "ppname", "term" ]
null
261
261
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_intro_exists (u:universe) (b:binder) (p:term) (e:term) : comp = C_STGhost tm_emp_inames { u=u0; res=tm_unit; pre=open_term' p e 0; post=tm_exists_sl u b p }
comp_intro_exists (u:universe) (b:binder) (p:term) (e:term) : comp
= C_STGhost tm_emp_inames { u=u0; res=tm_unit; pre=open_term' p e 0; post=tm_exists_sl u b p }
let
comp_intro_exists
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "binder", "comp", "open_term'", "post", "pre", "res", "term", "tm_emp_inames", "tm_exists_sl", "tm_unit", "u0", "universe" ]
null
263
271
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_intro_exists_erased (u:universe) (b:binder) (p:term) (e:term) : comp = C_STGhost tm_emp_inames { u=u0; res=tm_unit; pre=open_term' p (mk_reveal u b.binder_ty e) 0; post=tm_exists_sl u b p }
comp_intro_exists_erased (u:universe) (b:binder) (p:term) (e:term) : comp
= C_STGhost tm_emp_inames { u=u0; res=tm_unit; pre=open_term' p (mk_reveal u b.binder_ty e) 0; post=tm_exists_sl u b p }
let
comp_intro_exists_erased
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "binder", "comp", "mk_reveal", "open_term'", "post", "pre", "res", "term", "tm_emp_inames", "tm_exists_sl", "tm_unit", "u0", "universe" ]
null
273
281
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_while_cond (inv:term) (post_cond:term) : comp = C_ST { u=u0; res=tm_bool; pre=inv; post=post_cond }
comp_while_cond (inv:term) (post_cond:term) : comp
= C_ST { u=u0; res=tm_bool; pre=inv; post=post_cond }
let
comp_while_cond
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp", "inv", "post", "pre", "res", "term", "tm_bool", "u0" ]
null
283
290
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_precedes u ty a b = R.mk_app (R.pack_ln <| R.Tv_UInst (R.pack_fv ["Prims"; "precedes"]) [u; u]) [ ty, R.Q_Implicit; ty, R.Q_Implicit; a, R.Q_Explicit; b, R.Q_Explicit; ]
mk_precedes u ty a b
= R.mk_app (R.pack_ln <| R.Tv_UInst (R.pack_fv ["Prims"; "precedes"]) [u; u]) [ ty, R.Q_Implicit; ty, R.Q_Implicit; a, R.Q_Explicit; b, R.Q_Explicit; ]
let
mk_precedes
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "precedes", "ty" ]
null
292
298
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_while_body u_meas ty_meas is_tot (dec_formula:term) x (inv:term) (post_cond:term) : comp = C_ST { u=u0; res=tm_unit; pre=open_term' post_cond tm_true 0; post= tm_exists_sl u_meas (as_binder ty_meas) (if is_tot then close_term...
comp_while_body u_meas ty_meas is_tot (dec_formula:term) x (inv:term) (post_cond:term) : comp
= C_ST { u=u0; res=tm_unit; pre=open_term' post_cond tm_true 0; post= tm_exists_sl u_meas (as_binder ty_meas) (if is_tot then close_term inv (snd x) `tm_star` tm_pure dec_formula else close_term inv (snd ...
let
comp_while_body
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_binder", "close_term", "comp", "inv", "open_term'", "post", "pre", "res", "snd", "term", "tm_exists_sl", "tm_pure", "tm_star", "tm_true", "tm_unit", "u0" ]
null
300
312
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_while u_meas ty_meas (x:nvar) (inv:term) (post_cond:term) : comp = C_ST { u=u0; res=tm_unit; pre=tm_exists_sl u_meas (as_binder ty_meas) (close_term inv (snd x)); post=tm_exists_sl u_meas (as_binder ty_meas) (close_term (open_term' post_cond tm_false 0) (snd x)); ...
comp_while u_meas ty_meas (x:nvar) (inv:term) (post_cond:term) : comp
= C_ST { u=u0; res=tm_unit; pre=tm_exists_sl u_meas (as_binder ty_meas) (close_term inv (snd x)); post=tm_exists_sl u_meas (as_binder ty_meas) (close_term (open_term' post_cond tm_false 0) (snd x)); }
let
comp_while
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_binder", "close_term", "comp", "inv", "nvar", "open_term'", "post", "pre", "res", "snd", "term", "tm_exists_sl", "tm_false", "tm_unit", "u0" ]
null
314
321
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_tuple2 (u1 u2:universe) (t1 t2:term) : term = tm_pureapp (tm_pureapp (tm_uinst (as_fv tuple2_lid) [u1; u2]) None t1) None t2
mk_tuple2 (u1 u2:universe) (t1 t2:term) : term
= tm_pureapp (tm_pureapp (tm_uinst (as_fv tuple2_lid) [u1; u2]) None t1) None t2
let
mk_tuple2
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "t1", "t2", "term", "tm_pureapp", "tm_uinst", "tuple2_lid", "u1", "u2", "universe" ]
null
324
328
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_fst (u1 u2:universe) (a1 a2 e:term) : term = tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv fst_lid) [u1; u2]) (Some Implicit) a1) (Some Implicit) a2) None e
mk_fst (u1 u2:universe) (a1 a2 e:term) : term
= tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv fst_lid) [u1; u2]) (Some Implicit) a1) (Some Implicit) a2) None e
let
mk_fst
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "fst_lid", "term", "tm_pureapp", "tm_uinst", "u1", "u2", "universe" ]
null
330
334
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_snd (u1 u2:universe) (a1 a2 e:term) : term = tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv snd_lid) [u1; u2]) (Some Implicit) a1) (Some Implicit) a2) None e
mk_snd (u1 u2:universe) (a1 a2 e:term) : term
= tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv snd_lid) [u1; u2]) (Some Implicit) a1) (Some Implicit) a2) None e
let
mk_snd
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "snd_lid", "term", "tm_pureapp", "tm_uinst", "u1", "u2", "universe" ]
null
336
340
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_mktuple2 (u1 u2:universe) (a1 a2 v1 v2:term) : term = tm_pureapp (tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv mktuple2_lid) [u1; u2]) (Some Implicit) a1) (Some Implicit) a2) None v1) ...
mk_mktuple2 (u1 u2:universe) (a1 a2 v1 v2:term) : term
= tm_pureapp (tm_pureapp (tm_pureapp (tm_pureapp (tm_uinst (as_fv mktuple2_lid) [u1; u2]) (Some Implicit) a1) (Some Implicit) a2) None v1) None v2
let
mk_mktuple2
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "mktuple2_lid", "term", "tm_pureapp", "tm_uinst", "u1", "u2", "universe" ]
null
342
347
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
par_post (uL uR:universe) (aL aR postL postR:term) (x:var) : term = let x_tm = term_of_no_name_var x in let postL = open_term' postL (mk_fst uL uR aL aR x_tm) 0 in let postR = open_term' postR (mk_snd uL uR aL aR x_tm) 0 in let post = tm_star postL postR in close_term post x
par_post (uL uR:universe) (aL aR postL postR:term) (x:var) : term
= let x_tm = term_of_no_name_var x in let postL = open_term' postL (mk_fst uL uR aL aR x_tm) 0 in let postR = open_term' postR (mk_snd uL uR aL aR x_tm) 0 in let post = tm_star postL postR in close_term post x
let
par_post
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "close_term", "mk_fst", "mk_snd", "open_term'", "post", "term", "term_of_no_name_var", "tm_star", "universe", "var" ]
null
349
355
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_par (cL:comp{C_ST? cL}) (cR:comp{C_ST? cR}) (x:var) : comp = let uL = comp_u cL in let uR = comp_u cR in let aL = comp_res cL in let aR = comp_res cR in let post = par_post uL uR aL aR (comp_post cL) (comp_post cR) x in C_ST { u = uL; res = mk_tuple2 uL uR aL aR; pre = tm_star (comp_pre c...
comp_par (cL:comp{C_ST? cL}) (cR:comp{C_ST? cR}) (x:var) : comp
= let uL = comp_u cL in let uR = comp_u cR in let aL = comp_res cL in let aR = comp_res cR in let post = par_post uL uR aL aR (comp_post cL) (comp_post cR) x in C_ST { u = uL; res = mk_tuple2 uL uR aL aR; pre = tm_star (comp_pre cL) (comp_pre cR); post }
let
comp_par
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "cL", "cR", "comp", "comp_post", "comp_pre", "comp_res", "comp_u", "mk_tuple2", "par_post", "post", "pre", "res", "tm_star", "var" ]
null
357
370
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_withlocal_body_pre (pre:slprop) (init_t:term) (r:term) (init:option term) : slprop = tm_star pre (match init with | Some init -> mk_pts_to init_t r init | None -> mk_pts_to_uninit init_t r)
comp_withlocal_body_pre (pre:slprop) (init_t:term) (r:term) (init:option term) : slprop
= tm_star pre (match init with | Some init -> mk_pts_to init_t r init | None -> mk_pts_to_uninit init_t r)
let
comp_withlocal_body_pre
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "init", "mk_pts_to", "mk_pts_to_uninit", "option", "pre", "slprop", "term", "tm_star" ]
null
372
373
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
withlocal_post (init_t: term) (r: term) : term = mk_pts_to_uninit init_t r
withlocal_post (init_t: term) (r: term) : term
= mk_pts_to_uninit init_t r
let
withlocal_post
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "mk_pts_to_uninit", "term" ]
null
375
376
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_withlocal_body_post (post:term) (init_t:term) (r:term) : term = tm_star post (withlocal_post init_t r)
comp_withlocal_body_post (post:term) (init_t:term) (r:term) : term
= tm_star post (withlocal_post init_t r)
let
comp_withlocal_body_post
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "post", "term", "tm_star", "withlocal_post" ]
null
378
379
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_withlocal_body (r:var) (init_t:term) (init:option term) (c:comp{C_ST? c}) : comp = let r = null_var r in C_ST { u = comp_u c; res = comp_res c; pre = comp_withlocal_body_pre (comp_pre c) init_t r init; post = comp_withlocal_body_post (comp_post c) init_t r }
comp_withlocal_body (r:var) (init_t:term) (init:option term) (c:comp{C_ST? c}) : comp
= let r = null_var r in C_ST { u = comp_u c; res = comp_res c; pre = comp_withlocal_body_pre (comp_pre c) init_t r init; post = comp_withlocal_body_post (comp_post c) init_t r }
let
comp_withlocal_body
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp", "comp_post", "comp_pre", "comp_res", "comp_u", "comp_withlocal_body_post", "comp_withlocal_body_pre", "init", "null_var", "option", "post", "pre", "res", "term", "var" ]
null
381
388
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_array (a:term) : term = tm_pureapp (tm_uinst (as_fv array_lid) [u0]) None a
mk_array (a:term) : term
= tm_pureapp (tm_uinst (as_fv array_lid) [u0]) None a
let
mk_array
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "array_lid", "as_fv", "term", "tm_pureapp", "tm_uinst", "u0" ]
null
390
391
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_array_length (a:term) (arr:term) : term = let t = tm_uinst (as_fv array_length_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in tm_pureapp t None arr
mk_array_length (a:term) (arr:term) : term
= let t = tm_uinst (as_fv array_length_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in tm_pureapp t None arr
let
mk_array_length
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "array_length_lid", "as_fv", "term", "tm_pureapp", "tm_uinst", "u0" ]
null
393
396
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_array_pts_to (a:term) (arr:term) (v:term) : term = let t = tm_uinst (as_fv array_pts_to_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None arr in let t = tm_pureapp t (Some Implicit) tm_full_perm in tm_pureapp t None v
mk_array_pts_to (a:term) (arr:term) (v:term) : term
= let t = tm_uinst (as_fv array_pts_to_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None arr in let t = tm_pureapp t (Some Implicit) tm_full_perm in tm_pureapp t None v
let
mk_array_pts_to
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "array_pts_to_lid", "as_fv", "term", "tm_full_perm", "tm_pureapp", "tm_uinst", "u0" ]
null
398
403
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_array_pts_to_uninit (a:term) (arr:term) (len:term) : term = let t = tm_uinst (as_fv array_pts_to_uninit_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None arr in tm_pureapp t None len
mk_array_pts_to_uninit (a:term) (arr:term) (len:term) : term
= let t = tm_uinst (as_fv array_pts_to_uninit_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None arr in tm_pureapp t None len
let
mk_array_pts_to_uninit
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "array_pts_to_uninit_lid", "as_fv", "len", "term", "tm_pureapp", "tm_uinst", "u0" ]
null
405
409
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_array_pts_to_uninit_post (a:term) (arr:term) : term = let t = tm_uinst (as_fv array_pts_to_uninit_post_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None arr in t
mk_array_pts_to_uninit_post (a:term) (arr:term) : term
= let t = tm_uinst (as_fv array_pts_to_uninit_post_lid) [u0] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None arr in t
let
mk_array_pts_to_uninit_post
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "array_pts_to_uninit_post_lid", "as_fv", "term", "tm_pureapp", "tm_uinst", "u0" ]
null
411
415
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_seq_create (u:universe) (a:term) (len:term) (v:term) : term = let t = tm_uinst (as_fv seq_create_lid) [u] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None len in tm_pureapp t None v
mk_seq_create (u:universe) (a:term) (len:term) (v:term) : term
= let t = tm_uinst (as_fv seq_create_lid) [u] in let t = tm_pureapp t (Some Implicit) a in let t = tm_pureapp t None len in tm_pureapp t None v
let
mk_seq_create
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "len", "seq_create_lid", "term", "tm_pureapp", "tm_uinst", "universe" ]
null
422
426
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_szv (n:term) : term = let t = tm_fvar (as_fv szv_lid) in tm_pureapp t None n
mk_szv (n:term) : term
= let t = tm_fvar (as_fv szv_lid) in tm_pureapp t None n
let
mk_szv
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "szv_lid", "term", "tm_fvar", "tm_pureapp" ]
null
428
430
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_withlocal_array_body_pre (pre:slprop) (a:term) (arr:term) (init:option term) (len:term) : slprop = let arr_pre = match init with | Some init -> mk_array_pts_to a arr (mk_seq_create u0 a (mk_szv len) init) | None -> mk_array_pts_to_uninit a arr (mk_szv len) in tm_star pre (tm_star arr_pre (tm_pure...
comp_withlocal_array_body_pre (pre:slprop) (a:term) (arr:term) (init:option term) (len:term) : slprop
= let arr_pre = match init with | Some init -> mk_array_pts_to a arr (mk_seq_create u0 a (mk_szv len) init) | None -> mk_array_pts_to_uninit a arr (mk_szv len) in tm_star pre (tm_star arr_pre (tm_pure (mk_eq2 u0 tm_nat (mk_array_length a arr) (mk_szv len))))
let
comp_withlocal_array_body_pre
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "init", "len", "mk_array_length", "mk_array_pts_to", "mk_array_pts_to_uninit", "mk_eq2", "mk_seq_create", "mk_szv", "option", "pre", "slprop", "term", "tm_nat", "tm_pure", "tm_star", "u0" ]
null
432
438
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
mk_seq (u:universe) (a:term) : term = let t = tm_uinst (as_fv seq_lid) [u] in tm_pureapp t None a
mk_seq (u:universe) (a:term) : term
= let t = tm_uinst (as_fv seq_lid) [u] in tm_pureapp t None a
let
mk_seq
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_fv", "seq_lid", "term", "tm_pureapp", "tm_uinst", "universe" ]
null
440
442
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
withlocal_array_post (a:term) (arr:term) (init: option term) : term = match init with | Some _ -> tm_exists_sl u0 (as_binder (mk_seq u0 a)) (mk_array_pts_to a arr (null_bvar 0)) | None -> mk_array_pts_to_uninit_post a arr
withlocal_array_post (a:term) (arr:term) (init: option term) : term
= match init with | Some _ -> tm_exists_sl u0 (as_binder (mk_seq u0 a)) (mk_array_pts_to a arr (null_bvar 0)) | None -> mk_array_pts_to_uninit_post a arr
let
withlocal_array_post
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_binder", "init", "mk_array_pts_to", "mk_array_pts_to_uninit_post", "mk_seq", "null_bvar", "option", "term", "tm_exists_sl", "u0" ]
null
444
447
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_withlocal_array_body_post (post:term) (a:term) (arr:term) (init: option term) : term = tm_star post (withlocal_array_post a arr init)
comp_withlocal_array_body_post (post:term) (a:term) (arr:term) (init: option term) : term
= tm_star post (withlocal_array_post a arr init)
let
comp_withlocal_array_body_post
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "init", "option", "post", "term", "tm_star", "withlocal_array_post" ]
null
449
450
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_withlocal_array_body (arr:var) (a:term) (init:option term) (len:term) (c:comp{C_ST? c}) : comp = let arr = null_var arr in C_ST { u = comp_u c; res = comp_res c; pre = comp_withlocal_array_body_pre (comp_pre c) a arr init len; post = comp_withlocal_array_body_post (comp_post c) a arr init; }
comp_withlocal_array_body (arr:var) (a:term) (init:option term) (len:term) (c:comp{C_ST? c}) : comp
= let arr = null_var arr in C_ST { u = comp_u c; res = comp_res c; pre = comp_withlocal_array_body_pre (comp_pre c) a arr init len; post = comp_withlocal_array_body_post (comp_post c) a arr init; }
let
comp_withlocal_array_body
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp", "comp_post", "comp_pre", "comp_res", "comp_u", "comp_withlocal_array_body_post", "comp_withlocal_array_body_pre", "init", "len", "null_var", "option", "post", "pre", "res", "term", "var" ]
null
452
459
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
comp_rewrite (p q:slprop) : comp = C_STGhost tm_emp_inames { u = u0; res = tm_unit; pre = p; post = q; } [@@erasable] noeq
comp_rewrite (p q:slprop) : comp
= C_STGhost tm_emp_inames { u = u0; res = tm_unit; pre = p; post = q; } [@@erasable] noeq
let
comp_rewrite
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp", "erasable", "post", "pre", "res", "slprop", "tm_emp_inames", "tm_unit", "u0" ]
null
461
471
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
my_erased (a:Type) = | E of a
my_erased (a:Type)
= | E of a
type
my_erased
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[]
null
472
472
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
non_informative_t (g:env) (u:universe) (t:term) = term
non_informative_t (g:env) (u:universe) (t:term)
= term
let
non_informative_t
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "env", "term", "universe" ]
null
475
476
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
non_informative_c (g:env) (c:comp_st) = non_informative_t g (comp_u c) (comp_res c)
non_informative_c (g:env) (c:comp_st)
= non_informative_t g (comp_u c) (comp_res c)
let
non_informative_c
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp_res", "comp_st", "comp_u", "env", "non_informative_t" ]
null
478
479
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_join_inames (inames1 inames2 : term) : term = if eq_tm inames1 tm_emp_inames then inames2 else if eq_tm inames2 tm_emp_inames then inames1 else if eq_tm inames1 inames2 then inames1 else let join_lid = Pulse.Reflection.Util.mk_pulse_lib_core_lid "join_inames" in let join : R.term = R.pack_ln (R.Tv_FVar (R...
tm_join_inames (inames1 inames2 : term) : term
= if eq_tm inames1 tm_emp_inames then inames2 else if eq_tm inames2 tm_emp_inames then inames1 else if eq_tm inames1 inames2 then inames1 else let join_lid = Pulse.Reflection.Util.mk_pulse_lib_core_lid "join_inames" in let join : R.term = R.pack_ln (R.Tv_FVar (R.pack_fv join_lid)) in wr (R.mk_e_app join [i...
let
tm_join_inames
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "eq_tm", "join", "join_inames", "term", "tm_emp_inames", "wr" ]
null
482
490
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tm_inames_subset (inames1 inames2 : term) : term = let join_lid = Pulse.Reflection.Util.mk_pulse_lib_core_lid "inames_subset" in let join : R.term = R.pack_ln (R.Tv_FVar (R.pack_fv join_lid)) in wr (R.mk_e_app join [inames1; inames2]) (T.range_of_term inames1)
tm_inames_subset (inames1 inames2 : term) : term
= let join_lid = Pulse.Reflection.Util.mk_pulse_lib_core_lid "inames_subset" in let join : R.term = R.pack_ln (R.Tv_FVar (R.pack_fv join_lid)) in wr (R.mk_e_app join [inames1; inames2]) (T.range_of_term inames1)
let
tm_inames_subset
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "inames_subset", "join", "term", "wr" ]
null
492
496
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
prop_validity (g:env) (t:term) = FTB.prop_validity_token (elab_env g) t
prop_validity (g:env) (t:term)
= FTB.prop_validity_token (elab_env g) t
let
prop_validity
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "elab_env", "env", "term" ]
null
498
499
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
sub_observability (o1 o2:observability) = o1 = Neutral || o1 = o2 || o2 = Observable
sub_observability (o1 o2:observability)
= o1 = Neutral || o1 = o2 || o2 = Observable
let
sub_observability
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "observability" ]
null
502
502
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
wrst (ct:comp_st) (t:st_term') : st_term = { term = t; range = FStar.Range.range_0; effect_tag = as_effect_hint (ctag_of_comp_st ct); source = false; seq_lhs = false; }
wrst (ct:comp_st) (t:st_term') : st_term
= { term = t; range = FStar.Range.range_0; effect_tag = as_effect_hint (ctag_of_comp_st ct); source = false; seq_lhs = false; }
let
wrst
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "as_effect_hint", "comp_st", "ct", "ctag_of_comp_st", "range", "st_term'", "term" ]
null
506
512
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
wtag (ct:option ctag) (t:st_term') : st_term = { term = t; range = FStar.Range.range_0; effect_tag = ct; source = false; seq_lhs = false; }
wtag (ct:option ctag) (t:st_term') : st_term
= { term = t; range = FStar.Range.range_0; effect_tag = ct; source = false; seq_lhs = false; }
let
wtag
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "ct", "ctag", "option", "range", "st_term'", "term" ]
null
513
519
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tr_binding (vt : var & typ) : Tot R.binding = let v, t = vt in { uniq = v; sort = t; ppname = ppname_default.name; }
tr_binding (vt : var & typ) : Tot R.binding
= let v, t = vt in { uniq = v; sort = t; ppname = ppname_default.name; }
let
tr_binding
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "Tot", "ppname", "sort", "typ", "var" ]
null
524
530
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
tr_bindings = L.map tr_binding
tr_bindings
= L.map tr_binding
let
tr_bindings
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "tr_binding" ]
null
532
532
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
subtyping_token g t1 t2 = T.subtyping_token (elab_env g) t1 t2
subtyping_token g t1 t2
= T.subtyping_token (elab_env g) t1 t2
let
subtyping_token
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "elab_env", "t1", "t2" ]
null
536
537
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
readback_binding : R.binding -> var_binding
readback_binding : R.binding -> var_binding
val
readback_binding
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "var_binding" ]
null
539
539
false
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
readback_binding b = { n = { name = b.ppname; range = Range.range_0 }; x = b.uniq; ty = b.sort }
readback_binding b
= { n = { name = b.ppname; range = Range.range_0 }; x = b.uniq; ty = b.sort }
let
readback_binding
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "name", "range", "ty" ]
null
540
540
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
inv_disjointness (inames i:term) = let g = Pulse.Reflection.Util.inv_disjointness_goal inames i in S.wr g (RU.range_of_term i)
inv_disjointness (inames i:term)
= let g = Pulse.Reflection.Util.inv_disjointness_goal inames i in S.wr g (RU.range_of_term i)
let
inv_disjointness
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "inames", "term" ]
null
543
545
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
eff_of_ctag = function | STT_Ghost -> T.E_Ghost | _ -> T.E_Total
eff_of_ctag
= function | STT_Ghost -> T.E_Ghost | _ -> T.E_Total
let
eff_of_ctag
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[]
null
547
549
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
g_with_eq g hyp b (eq_v:term) = push_binding g hyp (mk_ppname_no_range "_if_hyp") (mk_sq_rewrites_to_p u0 tm_bool b eq_v)
g_with_eq g hyp b (eq_v:term)
= push_binding g hyp (mk_ppname_no_range "_if_hyp") (mk_sq_rewrites_to_p u0 tm_bool b eq_v)
let
g_with_eq
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "hyp", "mk_ppname_no_range", "mk_sq_rewrites_to_p", "push_binding", "term", "tm_bool", "u0" ]
null
551
552
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
goto_comp_of_block_comp (c: comp_st) : comp_st = let {u;res;pre;post} = st_comp_of_comp c in with_st_comp c { u; res; pre = post; post = tm_is_unreachable; }
goto_comp_of_block_comp (c: comp_st) : comp_st
= let {u;res;pre;post} = st_comp_of_comp c in with_st_comp c { u; res; pre = post; post = tm_is_unreachable; }
let
goto_comp_of_block_comp
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "comp_st", "post", "pre", "res", "st_comp_of_comp", "tm_is_unreachable", "with_st_comp" ]
null
554
560
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
fresh_wrt (x:var) (g:env) (vars:_) = freshv g x /\ ~(x `Set.mem` vars) noeq
fresh_wrt (x:var) (g:env) (vars:_)
= freshv g x /\ ~(x `Set.mem` vars) noeq
let
fresh_wrt
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "env", "freshv", "var", "vars" ]
null
566
571
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
post_hint_t = { g:env; effect_annot:effect_annot; ret_ty:term; u:universe; post:term; // post has a free de Bruijn variable 0 for the result of type ret_ty }
post_hint_t
= { g:env; effect_annot:effect_annot; ret_ty:term; u:universe; post:term; // post has a free de Bruijn variable 0 for the result of type ret_ty }
type
post_hint_t
pulse.src.checker
pulse/src/checker/Pulse.Typing.fst
[]
[ "effect_annot", "env", "post", "term", "universe" ]
null
572
578
true
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee