diff options
| author | Pierre-Marie Pédrot | 2019-12-16 11:41:33 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2019-12-22 18:28:41 +0100 |
| commit | cc3ded87f0f440eac2746d59b7aeba60ca9f691f (patch) | |
| tree | a1c206e7edad64ee8510323b4c46fbc2b0c1528f /vernac/class.mli | |
| parent | 9c75b6a6582620e2fb9a39c1ea1aa46a321af6a7 (diff) | |
Rename files with Class in their name to make their role clearer.
We restrict to those that are actually related to typeclasses, and
perform the following renamings:
Classops --> Coercionops
Class --> ComCoercion
Diffstat (limited to 'vernac/class.mli')
| -rw-r--r-- | vernac/class.mli | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/vernac/class.mli b/vernac/class.mli deleted file mode 100644 index 3254d5d981..0000000000 --- a/vernac/class.mli +++ /dev/null @@ -1,53 +0,0 @@ -(************************************************************************) -(* * The Coq Proof Assistant / The Coq Development Team *) -(* v * INRIA, CNRS and contributors - Copyright 1999-2019 *) -(* <O___,, * (see CREDITS file for the list of authors) *) -(* \VV/ **************************************************************) -(* // * This file is distributed under the terms of the *) -(* * GNU Lesser General Public License Version 2.1 *) -(* * (see LICENSE file for the text of the license) *) -(************************************************************************) - -open Names -open Classops - -(** Classes and coercions. *) - -(** [try_add_new_coercion_with_target ref s src tg] declares [ref] as a coercion - from [src] to [tg] *) -val try_add_new_coercion_with_target - : GlobRef.t - -> local:bool - -> poly:bool - -> source:cl_typ - -> target:cl_typ - -> unit - -(** [try_add_new_coercion ref s] declares [ref], assumed to be of type - [(x1:T1)...(xn:Tn)src->tg], as a coercion from [src] to [tg] *) -val try_add_new_coercion : GlobRef.t -> local:bool -> poly:bool -> unit - -(** [try_add_new_coercion_subclass cst s] expects that [cst] denotes a - transparent constant which unfolds to some class [tg]; it declares - an identity coercion from [cst] to [tg], named something like - ["Id_cst_tg"] *) -val try_add_new_coercion_subclass : cl_typ -> local:bool -> poly:bool -> unit - -(** [try_add_new_coercion_with_source ref s src] declares [ref] as a coercion - from [src] to [tg] where the target is inferred from the type of [ref] *) -val try_add_new_coercion_with_source : GlobRef.t -> local:bool -> - poly:bool -> source:cl_typ -> unit - -(** [try_add_new_identity_coercion id s src tg] enriches the - environment with a new definition of name [id] declared as an - identity coercion from [src] to [tg] *) -val try_add_new_identity_coercion - : Id.t - -> local:bool - -> poly:bool -> source:cl_typ -> target:cl_typ -> unit - -val add_coercion_hook : poly:bool -> DeclareDef.Hook.t - -val add_subclass_hook : poly:bool -> DeclareDef.Hook.t - -val class_of_global : GlobRef.t -> cl_typ |
