src/HOL/ROOT.ML
author nipkow
Wed Oct 25 09:48:29 1995 +0100 (1995-10-25)
changeset 1301 42782316d510
parent 1296 ae31bb7774a7
child 1338 d2fc3bfaee7f
permissions -rw-r--r--
Added various thms and tactics.
clasohm@1264
     1
(*  Title:      HOL/ROOT.ML
clasohm@923
     2
    ID:         $Id$
clasohm@923
     3
    Author:     Tobias Nipkow
clasohm@923
     4
    Copyright   1993  University of Cambridge
clasohm@923
     5
clasohm@923
     6
Adds Classical Higher-order Logic to a database containing Pure Isabelle.
clasohm@923
     7
Should be executed in the subdirectory HOL.
clasohm@923
     8
*)
clasohm@923
     9
clasohm@923
    10
val banner = "Higher-Order Logic with curried functions";
clasohm@923
    11
writeln banner;
clasohm@923
    12
clasohm@923
    13
print_depth 1;
clasohm@923
    14
clasohm@923
    15
(* Add user sections *)
clasohm@923
    16
use "../Pure/section_utils.ML";
clasohm@923
    17
use "thy_syntax.ML";
clasohm@923
    18
clasohm@923
    19
use_thy "HOL";
nipkow@1024
    20
use "../Provers/splitter.ML";
clasohm@923
    21
use "../Provers/hypsubst.ML";
clasohm@923
    22
use "../Provers/classical.ML";
clasohm@923
    23
clasohm@923
    24
(** Applying HypsubstFun to generate hyp_subst_tac **)
clasohm@923
    25
clasohm@923
    26
structure Hypsubst_Data =
clasohm@923
    27
  struct
nipkow@1024
    28
  structure Simplifier = Simplifier
clasohm@923
    29
  (*Take apart an equality judgement; otherwise raise Match!*)
clasohm@923
    30
  fun dest_eq (Const("Trueprop",_) $ (Const("op =",_)  $ t $ u)) = (t,u);
nipkow@1024
    31
  val eq_reflection = eq_reflection
clasohm@923
    32
  val imp_intr = impI
clasohm@923
    33
  val rev_mp = rev_mp
clasohm@923
    34
  val subst = subst
clasohm@923
    35
  val sym = sym
clasohm@923
    36
  end;
clasohm@923
    37
clasohm@923
    38
structure Hypsubst = HypsubstFun(Hypsubst_Data);
clasohm@923
    39
open Hypsubst;
clasohm@923
    40
clasohm@923
    41
(*** Applying ClassicalFun to create a classical prover ***)
clasohm@923
    42
structure Classical_Data = 
clasohm@923
    43
  struct
clasohm@923
    44
  val sizef	= size_of_thm
clasohm@923
    45
  val mp	= mp
clasohm@923
    46
  val not_elim	= notE
clasohm@923
    47
  val classical	= classical
clasohm@923
    48
  val hyp_subst_tacs=[hyp_subst_tac]
clasohm@923
    49
  end;
clasohm@923
    50
clasohm@923
    51
structure Classical = ClassicalFun(Classical_Data);
clasohm@923
    52
open Classical;
clasohm@923
    53
clasohm@923
    54
(*Propositional rules*)
clasohm@923
    55
val prop_cs = empty_cs addSIs [refl,TrueI,conjI,disjCI,impI,notI,iffI]
clasohm@923
    56
                       addSEs [conjE,disjE,impCE,FalseE,iffE];
clasohm@923
    57
clasohm@923
    58
(*Quantifier rules*)
clasohm@923
    59
val HOL_cs = prop_cs addSIs [allI] addIs [exI,ex1I]
clasohm@923
    60
                     addSEs [exE,ex1E] addEs [allE];
clasohm@923
    61
clasohm@923
    62
use     "simpdata.ML";
regensbu@1273
    63
clasohm@923
    64
use_thy "Ord";
clasohm@923
    65
use_thy "subset";
clasohm@923
    66
use     "hologic.ML";
clasohm@923
    67
use     "subtype.ML";
clasohm@923
    68
use_thy "Prod";
clasohm@923
    69
use_thy "Sum";
clasohm@923
    70
use_thy "Gfp";
clasohm@923
    71
use_thy "Nat";
clasohm@923
    72
clasohm@923
    73
use "datatype.ML";
clasohm@923
    74
use "ind_syntax.ML";
clasohm@923
    75
use "add_ind_def.ML";
clasohm@923
    76
use "intr_elim.ML";
clasohm@923
    77
use "indrule.ML";
clasohm@923
    78
use_thy "Inductive";
clasohm@923
    79
clasohm@923
    80
use_thy "Finite";
clasohm@923
    81
use_thy "Sexp";
clasohm@923
    82
use_thy "List";
clasohm@923
    83
clasohm@923
    84
init_pps ();
clasohm@923
    85
print_depth 8;
clasohm@923
    86
clasohm@1296
    87
make_chart ();   (*make HTML chart*)
clasohm@1296
    88
clasohm@1165
    89
val HOL_build_completed = ();   (*indicate successful build*)