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