src/Pure/pure.ML
author wenzelm
Fri Dec 14 11:52:54 2001 +0100 (2001-12-14)
changeset 12498 3b0091bf06e8
parent 12350 5fad0e7129c3
child 12723 0451211bf4a0
permissions -rw-r--r--
changed Thm.varifyT';
wenzelm@5092
     1
(*  Title:      Pure/pure.ML
wenzelm@5092
     2
    ID:         $Id$
wenzelm@5092
     3
    Author:     Markus Wenzel, TU Muenchen
wenzelm@5092
     4
wenzelm@6192
     5
Final setup of the Pure theories.
wenzelm@5092
     6
*)
wenzelm@5092
     7
wenzelm@5839
     8
local
wenzelm@5839
     9
  val common_setup =
berghofe@12234
    10
    ProofRewriteRules.setup @
wenzelm@6313
    11
    HTML.setup @
wenzelm@11761
    12
    ObjectLogic.setup @
wenzelm@5839
    13
    ProofContext.setup @
berghofe@12234
    14
    Locale.setup @
wenzelm@6770
    15
    Attrib.setup @
wenzelm@12350
    16
    ContextRules.setup @
wenzelm@11664
    17
    InductAttrib.setup @
wenzelm@5839
    18
    Method.setup @
wenzelm@6770
    19
    Calculation.setup @
wenzelm@6888
    20
    SkipProof.setup @
berghofe@6653
    21
    AxClass.setup @
wenzelm@8965
    22
    Latex.setup @
wenzelm@7718
    23
    Present.setup @
wenzelm@6696
    24
    Isamode.setup @
berghofe@11515
    25
    ProofGeneral.setup @
wenzelm@12013
    26
    Codegen.setup @
wenzelm@12013
    27
    Goals.setup;
wenzelm@5839
    28
in
wenzelm@5839
    29
  structure Pure =
wenzelm@5839
    30
  struct
wenzelm@5839
    31
    val thy =
wenzelm@10931
    32
      PureThy.begin_theory Sign.PureN [ProtoPure.thy]
wenzelm@5839
    33
      |> Theory.add_syntax Syntax.pure_appl_syntax
wenzelm@5905
    34
      |> Library.apply common_setup
wenzelm@5839
    35
      |> PureThy.end_theory;
wenzelm@5839
    36
  end;
wenzelm@5092
    37
wenzelm@5839
    38
  structure CPure =
wenzelm@5839
    39
  struct
wenzelm@5839
    40
    val thy =
wenzelm@10931
    41
      PureThy.begin_theory Sign.CPureN [ProtoPure.thy]
wenzelm@5839
    42
      |> Theory.add_syntax Syntax.pure_applC_syntax
wenzelm@5905
    43
      |> Library.apply common_setup
wenzelm@5863
    44
      |> Theory.copy
wenzelm@5839
    45
      |> PureThy.end_theory;
wenzelm@5839
    46
  end;
wenzelm@5211
    47
end;
wenzelm@5092
    48
wenzelm@6192
    49
ThyInfo.register_theory ProtoPure.thy;
wenzelm@6192
    50
ThyInfo.register_theory Pure.thy;
wenzelm@6192
    51
ThyInfo.register_theory CPure.thy;