aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorherbelin2003-03-13 13:19:09 +0000
committerherbelin2003-03-13 13:19:09 +0000
commit1232e0473c68eb48902c3e00b0f47749d4669a1c (patch)
treee9d2100896ec7f52b22713fc52cb647c1e870321 /doc
parent1682650f1c80774fac25bc41eaa15f4916917ecd (diff)
Ajoute SubClass
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8330 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'doc')
-rw-r--r--doc/Coercion.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/Coercion.tex b/doc/Coercion.tex
index 13e4cd4473..69e81f6aa3 100644
--- a/doc/Coercion.tex
+++ b/doc/Coercion.tex
@@ -221,6 +221,22 @@ coercion between {\class$_1$} and {\class$_2$}.
\item {\tt Identity Coercion Local {\ident}:{\ident$_1$} >-> {\ident$_2$}.} \\
Idem but locally to the current section.
+\item {\tt SubClass {\ident} := {\type}.} \\
+\comindex{SubClass}
+ If {\type} is a class
+{\ident'} applied to some arguments then {\ident} is defined and an
+identity coercion of name {\tt Id\_{\ident}\_{\ident'}} is
+declared. Otherwise said, this is an abbreviation for
+
+{\tt Definition {\ident} := {\type}.}
+
+ followed by
+
+{\tt Identity Coercion Id\_{\ident}\_{\ident'}:{\ident} >-> {\ident'}}.
+
+\item {\tt Local SubClass {\ident} := {\type}.} \\
+Same as before but locally to the current section.
+
\end{Variants}
\asection{Displaying Available Coercions}