blob: b02e37b1dd1e7222ec01cac0f023e31130cf769d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
(* $Id$ *)
(*i*)
open Names
open Univ
open Term
open Environ
(*i*)
(* Base operations of the typing machine. *)
val make_judge : constr -> typed_type -> unsafe_judgment
val j_val_only : unsafe_judgment -> constr
(* If [j] is the judgement $c:t:s$, then [typed_type_of_judgment env j]
constructs the typed type $t:s$, while [assumption_of_judgement env j]
cosntructs the type type $c:t$, checking that $t$ is a sort. *)
val typed_type_of_judgment : 'a unsafe_env -> unsafe_judgment -> typed_type
val assumption_of_judgment : 'a unsafe_env -> unsafe_judgment -> typed_type
val relative : 'a unsafe_env -> int -> unsafe_judgment
val type_of_constant_or_existential : 'a unsafe_env -> constr -> typed_type
val type_of_inductive : 'a unsafe_env -> constr -> typed_type
val type_of_constructor : 'a unsafe_env -> constr -> constr
val type_of_case : 'a unsafe_env -> unsafe_judgment -> unsafe_judgment
-> unsafe_judgment array -> unsafe_judgment
val type_of_prop_or_set : contents -> unsafe_judgment
val type_of_type : universe -> universes -> unsafe_judgment * universes
val abs_rel :
'a unsafe_env -> name -> typed_type -> unsafe_judgment
-> unsafe_judgment * universes
val gen_rel :
'a unsafe_env -> name -> typed_type -> unsafe_judgment
-> unsafe_judgment * universes
val cast_rel :
'a unsafe_env -> unsafe_judgment -> unsafe_judgment -> unsafe_judgment
val apply_rel_list :
'a unsafe_env -> bool -> unsafe_judgment list -> unsafe_judgment
-> unsafe_judgment * universes
val check_fix : 'a unsafe_env -> constr -> unit
val check_cofix : 'a unsafe_env -> constr -> unit
val type_fixpoint : 'a unsafe_env -> name list -> typed_type array
-> unsafe_judgment array -> universes
|