src/Pure/pure.ML
author wenzelm
Fri, 04 Jun 1999 19:57:31 +0200
changeset 6779 2912aff958bd
parent 6770 7eb14a4047e3
child 6785 10b77354862b
permissions -rw-r--r--
Calculation.thy: Setup transitivity rules for calculational proofs.

(*  Title:      Pure/pure.ML
    ID:         $Id$
    Author:     Markus Wenzel, TU Muenchen

Final setup of the Pure theories.
*)

local
  val common_setup =
    ObjectLogic.setup @
    Locale.setup @
    HTML.setup @
    ProofContext.setup @
    Attrib.setup @
    Method.setup @
    Calculation.setup @
    AxClass.setup @
    BrowserInfo.setup @
    Isamode.setup @
    ProofGeneral.setup;
in
  structure Pure =
  struct
    val thy =
      PureThy.begin_theory "Pure" [ProtoPure.thy]
      |> Theory.add_syntax Syntax.pure_appl_syntax
      |> Library.apply common_setup
      |> PureThy.end_theory;
  end;

  structure CPure =
  struct
    val thy =
      PureThy.begin_theory "CPure" [ProtoPure.thy]
      |> Theory.add_syntax Syntax.pure_applC_syntax
      |> Library.apply common_setup
      |> Theory.copy
      |> PureThy.end_theory;
  end;
end;

ThyInfo.register_theory ProtoPure.thy;
ThyInfo.register_theory Pure.thy;
ThyInfo.register_theory CPure.thy;