diff options
author | Samuel Mimram <samuel.mimram@ens-lyon.org> | 2004-07-28 21:54:47 +0000 |
---|---|---|
committer | Samuel Mimram <samuel.mimram@ens-lyon.org> | 2004-07-28 21:54:47 +0000 |
commit | 6b649aba925b6f7462da07599fe67ebb12a3460e (patch) | |
tree | 43656bcaa51164548f3fa14e5b10de5ef1088574 /pretyping/recordops.mli |
Imported Upstream version 8.0pl1upstream/8.0pl1
Diffstat (limited to 'pretyping/recordops.mli')
-rwxr-xr-x | pretyping/recordops.mli | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pretyping/recordops.mli b/pretyping/recordops.mli new file mode 100755 index 00000000..66c1f34d --- /dev/null +++ b/pretyping/recordops.mli @@ -0,0 +1,58 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *) +(* \VV/ **************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(************************************************************************) + +(*i $Id: recordops.mli,v 1.15.2.1 2004/07/16 19:30:46 herbelin Exp $ i*) + +(*i*) +open Names +open Nametab +open Term +open Libnames +open Classops +open Libobject +open Library +(*i*) + +val nbimpl : int ref +val nbpathc : int ref +val nbcoer : int ref +val nbstruc : int ref +val nbimplstruc : int ref +val compter : bool ref + +type struc_typ = { + s_CONST : identifier; + s_PARAM : int; + s_PROJ : constant option list } + +val add_new_struc : + inductive * identifier * int * constant option list -> unit + +(* [find_structure isp] returns the infos associated to inductive path + [isp] if it corresponds to a structure, otherwise fails with [Not_found] *) +val find_structure : inductive -> struc_typ + +(* raise [Not_found] if not a projection *) +val find_projection_nparams : global_reference -> int + +type obj_typ = { + o_DEF : constr; + o_TABS : constr list; (* dans l'ordre *) + o_TPARAMS : constr list; (* dans l'ordre *) + o_TCOMPS : constr list } (* dans l'ordre *) + +val objdef_info : (global_reference * global_reference) -> obj_typ +val add_new_objdef : + (global_reference * global_reference) * Term.constr * Term.constr list * + Term.constr list * Term.constr list -> unit + + +val inStruc : inductive * struc_typ -> obj +val outStruc : obj -> inductive * struc_typ +val inObjDef1 : kernel_name -> obj +val outObjDef1 : obj -> kernel_name |