blob: 898df649baafd6f19f53d24876b54c2145743393 (
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
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016 *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
open Names
open Mod_subst
open Tac2expr
val loc_of_tacexpr : raw_tacexpr -> Loc.t
val loc_of_patexpr : raw_patexpr -> Loc.t
val intern : raw_tacexpr -> glb_tacexpr * type_scheme
val intern_typedef : (KerName.t * int) Id.Map.t -> raw_quant_typedef -> glb_quant_typedef
val intern_open_type : raw_typexpr -> type_scheme
(** Check that a term is a value. Only values are safe to marshall between
processes. *)
val is_value : glb_tacexpr -> bool
val check_unit : ?loc:Loc.t -> type_scheme -> unit
val subst_type : substitution -> 'a glb_typexpr -> 'a glb_typexpr
val subst_expr : substitution -> glb_tacexpr -> glb_tacexpr
val subst_quant_typedef : substitution -> glb_quant_typedef -> glb_quant_typedef
val subst_type_scheme : substitution -> type_scheme -> type_scheme
val subst_rawexpr : substitution -> raw_tacexpr -> raw_tacexpr
(** {5 Notations} *)
val globalize : Id.Set.t -> raw_tacexpr -> raw_tacexpr
(** Replaces all qualified identifiers by their corresponding kernel name. The
set represents bound variables in the context. *)
(** Errors *)
val error_nargs_mismatch : Loc.t -> int -> int -> 'a
val error_nparams_mismatch : Loc.t -> int -> int -> 'a
|