# HG changeset patch # User wenzelm # Date 935606800 -7200 # Node ID 1714c91b8729130b944101b05f2a3d429a5e844a # Parent 4c43090659cad83eb7c572e802f44fc412a15cdf expand_classes renamed to intro_classes; diff -r 4c43090659ca -r 1714c91b8729 doc-src/IsarRef/generic.tex --- a/doc-src/IsarRef/generic.tex Wed Aug 25 20:45:19 1999 +0200 +++ b/doc-src/IsarRef/generic.tex Wed Aug 25 20:46:40 1999 +0200 @@ -194,11 +194,11 @@ \section{Axiomatic Type Classes}\label{sec:axclass} -\indexisarcmd{axclass}\indexisarcmd{instance} +\indexisarcmd{axclass}\indexisarcmd{instance}\indexisarmeth{intro-classes} \begin{matharray}{rcl} \isarcmd{axclass} & : & \isartrans{theory}{theory} \\ \isarcmd{instance} & : & \isartrans{theory}{proof(prove)} \\ - expand_classes & : & \isarmeth \\ + intro_classes & : & \isarmeth \\ \end{matharray} Axiomatic type classes are provided by Isabelle/Pure as a purely @@ -222,18 +222,17 @@ holding. Class axioms may not contain more than one type variable. The class axioms (with implicit sort constraints added) are bound to the given names. Furthermore a class introduction rule is generated, which is - employed by method $expand_classes$ in support instantiation proofs of this + employed by method $intro_classes$ in support instantiation proofs of this class. \item [$\isarkeyword{instance}~c@1 < c@2$ and $\isarkeyword{instance}~t :: (\vec s)c$] setup up a goal stating the class relation or type arity. The - proof would usually proceed by the $expand_classes$ method, and then + proof would usually proceed by the $intro_classes$ method, and then establish the characteristic theorems of the type classes involved. After finishing the proof the theory will be augmented by a type signature declaration corresponding to the resulting theorem. -\item [Method $expand_classes$] iteratively expands the class introduction +\item [Method $intro_classes$] iteratively expands the class introduction rules -%FIXME intro classIs etc; \end{descr} See theory \texttt{HOL/Isar_examples/Group} for a simple example of using diff -r 4c43090659ca -r 1714c91b8729 src/HOL/Isar_examples/Group.thy --- a/src/HOL/Isar_examples/Group.thy Wed Aug 25 20:45:19 1999 +0200 +++ b/src/HOL/Isar_examples/Group.thy Wed Aug 25 20:46:40 1999 +0200 @@ -137,7 +137,7 @@ *}; instance group < monoid; - by (expand_classes, + by (intro_classes, rule group_assoc, rule group_left_unit, rule group_right_unit);