merged
authorhaftmann
Wed, 28 Apr 2010 13:30:52 +0200
changeset 36464 b789c1731fb7
parent 36461 e741ba542b61 (current diff)
parent 36463 3793f1c83046 (diff)
child 36467 0e2300856d7d
merged
src/Pure/Isar/class.ML
--- a/src/Pure/Isar/class.ML	Wed Apr 28 13:29:57 2010 +0200
+++ b/src/Pure/Isar/class.ML	Wed Apr 28 13:30:52 2010 +0200
@@ -290,8 +290,7 @@
     |-> (fn (param_map, params, assm_axiom) =>
        `(fn thy => calculate thy class sups base_sort param_map assm_axiom)
     #-> (fn (base_morph, eq_morph, export_morph, axiom, assm_intro, of_class) =>
-       Locale.add_registration (class, base_morph $> eq_morph) NONE export_morph
-         (*FIXME should not modify base_morph, although admissible*)
+       Locale.add_registration (class, base_morph $> eq_morph (*FIXME duplication*)) (SOME (eq_morph, true)) export_morph
     #> register class sups params base_sort base_morph export_morph axiom assm_intro of_class))
     |> Theory_Target.init (SOME class)
     |> pair class
--- a/src/Pure/Isar/class_target.ML	Wed Apr 28 13:29:57 2010 +0200
+++ b/src/Pure/Isar/class_target.ML	Wed Apr 28 13:30:52 2010 +0200
@@ -209,6 +209,9 @@
       (eq_morph, true) (export_morphism thy cls) thy;
   in fold amend (heritage thy [class]) thy end;
 
+(*fun activate_defs class thms thy = Locale.amend_registration (class, base_morphism thy class)
+  (Element.eq_morphism thy thms, true) (export_morphism thy class) thy;*)
+
 fun register_operation class (c, (t, some_def)) thy =
   let
     val base_sort = base_sort thy class;