src/Pure/attribute.ML
author wenzelm
Wed, 29 Apr 1998 11:24:58 +0200
changeset 4850 050481f41e28
parent 4797 d66477d29598
child 4918 f66f67577cf3
permissions -rw-r--r--
added none: 'a -> 'a * 'b attribute list; added no_attrs: 'a * 'b -> ('a * ('b * tag list)) * 'c attribute list; added no_attrss: 'a * 'b list -> ('a * ('b * tag list) list) * 'c attribute list; added applys: ('a * tthm list) * 'a attribute list -> ('a * tthm list);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     1
(*  Title:      Pure/attribute.ML
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     2
    ID:         $Id$
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     3
    Author:     Markus Wenzel, TU Muenchen
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     4
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     5
Theorem tags and attributes.
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     6
*)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     7
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     8
signature BASIC_ATTRIBUTE =
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
     9
sig
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    10
  type tag
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    11
  type tthm
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    12
  type 'a attribute
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    13
  val print_attributes: theory -> unit
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    14
end;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    15
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    16
signature ATTRIBUTE =
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    17
sig
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    18
  include BASIC_ATTRIBUTE
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    19
  val thm_of: tthm -> thm
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    20
  val tthm_of: thm -> tthm
4850
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    21
  val none: 'a -> 'a * 'b attribute list
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    22
  val no_attrs: 'a * 'b -> ('a * ('b * tag list)) * 'c attribute list
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    23
  val no_attrss: 'a * 'b list -> ('a * ('b * tag list) list) * 'c attribute list
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    24
  val fail: string -> string -> 'a
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    25
  val apply: ('a * tthm) * 'a attribute list -> ('a * tthm)
4850
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    26
  val applys: ('a * tthm list) * 'a attribute list -> ('a * tthm list)
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    27
  val pretty_tthm: tthm -> Pretty.T
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    28
  val tag: tag -> 'a attribute
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    29
  val untag: tag -> 'a attribute
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    30
  val lemma: tag
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    31
  val assumption: tag
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    32
  val tag_lemma: 'a attribute
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    33
  val tag_assumption: 'a attribute
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    34
  val setup: theory -> theory
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    35
  val global_attr: theory -> (xstring * string list) -> theory attribute
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    36
  val local_attr: theory -> (xstring * string list) -> local_theory attribute
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    37
  val add_attrs: (bstring * ((string list -> theory attribute) *
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    38
      (string list -> local_theory attribute))) list -> theory -> theory
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    39
end;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    40
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    41
structure Attribute: ATTRIBUTE =
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    42
struct
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    43
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    44
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    45
(** tags and attributes **)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    46
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    47
type tag = string * string list;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    48
type tthm = thm * tag list;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    49
type 'a attribute = 'a * tthm -> 'a * tthm;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    50
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    51
fun thm_of (thm, _) = thm;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    52
fun tthm_of thm = (thm, []);
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    53
4850
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    54
fun none x = (x, []);
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    55
fun no_attrs (x, y) = ((x, (y, [])), []);
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    56
fun no_attrss (x, ys) = ((x, map (rpair []) ys), []);
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    57
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    58
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    59
(* apply attributes *)
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    60
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    61
exception FAIL of string * string;
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    62
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    63
fun fail name msg = raise FAIL (name, msg);
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    64
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    65
fun warn_failed (name, msg) =
4797
d66477d29598 tuned fail;
wenzelm
parents: 4792
diff changeset
    66
  warning ("Failed invocation of " ^ quote name ^ " attribute: " ^ msg);
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    67
4850
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    68
fun apply (x_th, []) = x_th
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    69
  | apply (x_th, f :: fs) = apply (f x_th handle FAIL info => (warn_failed info; x_th), fs);
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    70
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    71
fun applys ((x, []), _) = (x, [])
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    72
  | applys ((x, th :: ths), atts) =
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    73
      let
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    74
        val (x', th') = apply ((x, th), atts);
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    75
        val (x'', ths') = applys ((x', ths), atts);
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
    76
      in (x'', th' :: ths') end;
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    77
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    78
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    79
(* display tagged theorems *)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    80
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    81
fun pretty_tag (name, []) = Pretty.str name
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    82
  | pretty_tag (name, args) = Pretty.block
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    83
      [Pretty.str name, Pretty.list "(" ")" (map Pretty.str args)];
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    84
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    85
val pretty_tags = Pretty.list "[" "]" o map pretty_tag;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    86
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    87
fun pretty_tthm (thm, []) = Pretty.quote (Display.pretty_thm thm)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    88
  | pretty_tthm (thm, tags) = Pretty.block
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    89
      [Pretty.quote (Display.pretty_thm thm), Pretty.brk 1, pretty_tags tags];
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    90
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    91
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    92
(* basic attributes *)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    93
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    94
fun tag tg (x, (thm, tags)) = (x, (thm, tg ins tags));
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
    95
fun untag tg (x, (thm, tags)) = (x, (thm, tags \ tg));
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    96
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    97
val lemma = ("lemma", []);
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    98
val assumption = ("assumption", []);
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
    99
fun tag_lemma x = tag lemma x;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   100
fun tag_assumption x = tag assumption x;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   101
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   102
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   103
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   104
(** theory data **)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   105
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   106
(* data kind 'attributes' *)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   107
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   108
val attributesK = "Pure/attributes";
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   109
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   110
exception Attributes of
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   111
  {space: NameSpace.T,
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   112
   attrs:
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   113
    ((string list -> theory attribute) *
4790
5adb93457e39 removed simple;
wenzelm
parents: 4780
diff changeset
   114
     (string list -> local_theory attribute)) Symtab.table};
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   115
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   116
fun print_attributes thy = Display.print_data thy attributesK;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   117
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   118
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   119
(* setup *)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   120
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   121
local
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   122
  val empty = Attributes {space = NameSpace.empty, attrs = Symtab.empty};
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   123
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   124
  fun prep_ext (x as Attributes _) = x;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   125
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   126
  fun merge (Attributes {space = space1, attrs = attrs1},
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   127
      Attributes {space = space2, attrs = attrs2}) =
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   128
    Attributes {
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   129
      space = NameSpace.merge (space1, space2),
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   130
      attrs = Symtab.merge (K true) (attrs1, attrs2)};
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   131
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   132
  fun print _ (Attributes {space, attrs}) =
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   133
   (Pretty.writeln (Display.pretty_name_space ("attribute name space", space));
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   134
    Pretty.writeln (Pretty.strs ("attributes:" :: map fst (Symtab.dest attrs))));
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   135
in
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   136
  val setup = Theory.init_data [(attributesK, (empty, prep_ext, merge, print))];
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   137
end;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   138
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   139
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   140
(* get data record *)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   141
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   142
fun get_attributes_sg sg =
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   143
  (case Sign.get_data sg attributesK of
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   144
    Attributes x => x
4792
8e3c2dddb9c8 type_error;
wenzelm
parents: 4790
diff changeset
   145
  | _ => type_error attributesK);
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   146
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   147
val get_attributes = get_attributes_sg o Theory.sign_of;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   148
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   149
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   150
(* get global / local attributes *)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   151
4850
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
   152
fun gen_attr which thy (raw_name, args) =
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   153
  let
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   154
    val {space, attrs} = get_attributes thy;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   155
    val name = NameSpace.intern space raw_name;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   156
  in
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   157
    (case Symtab.lookup (attrs, name) of
4797
d66477d29598 tuned fail;
wenzelm
parents: 4792
diff changeset
   158
      None => raise FAIL (name, "unknown attribute")
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   159
    | Some p => which p args)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   160
  end;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   161
4850
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
   162
val global_attr = gen_attr fst;
050481f41e28 added none: 'a -> 'a * 'b attribute list;
wenzelm
parents: 4797
diff changeset
   163
val local_attr = gen_attr snd;
4780
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   164
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   165
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   166
(* add_attrs *)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   167
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   168
fun add_attrs raw_attrs thy =
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   169
  let
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   170
    val full = Sign.full_name (Theory.sign_of thy);
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   171
    val new_attrs = map (apfst full) raw_attrs;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   172
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   173
    val {space, attrs} = get_attributes thy;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   174
    val space' = NameSpace.extend (space, map fst new_attrs);
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   175
    val attrs' = Symtab.extend (attrs, new_attrs)
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   176
      handle Symtab.DUPS dups =>
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   177
        error ("Duplicate declaration of attributes(s) " ^ commas_quote dups);
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   178
  in
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   179
    Theory.put_data (attributesK, Attributes {space = space', attrs = attrs'}) thy
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   180
  end;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   181
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   182
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   183
end;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   184
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   185
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   186
structure BasicAttribute: BASIC_ATTRIBUTE = Attribute;
f4ff003bc7ee Theorem tags and attributes.
wenzelm
parents:
diff changeset
   187
open BasicAttribute;