src/FOL/ROOT.ML
author wenzelm
Wed, 09 Jul 1997 17:00:34 +0200
changeset 3511 da4dd8b7ced4
parent 2866 0a648ebbf6d4
child 3578 b2b9a9ddb9cc
permissions -rw-r--r--
removed obsolete init_pps and init_thy_reader;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1459
d12da312eff4 expanded tabs
clasohm
parents: 1356
diff changeset
     1
(*  Title:      FOL/ROOT
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1459
d12da312eff4 expanded tabs
clasohm
parents: 1356
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Adds First-Order Logic to a database containing pure Isabelle. 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
Should be executed in the subdirectory FOL.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
val banner = "First-Order Logic with Natural Deduction";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
writeln banner;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
print_depth 1;  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
use "../Provers/splitter.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
use "../Provers/ind.ML";
1004
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    18
use "../Provers/hypsubst.ML";
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    19
use "../Provers/classical.ML";
2866
0a648ebbf6d4 Now loads blast.ML
paulson
parents: 2469
diff changeset
    20
use "../Provers/blast.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2237
diff changeset
    22
use_thy "IFOL";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
2866
0a648ebbf6d4 Now loads blast.ML
paulson
parents: 2469
diff changeset
    24
(** Applying HypsubstFun to generate hyp_subst_tac **)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
structure Hypsubst_Data =
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
  struct
1004
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    27
  structure Simplifier = Simplifier
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    28
    (*Take apart an equality judgement; otherwise raise Match!*)
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    29
  fun dest_eq (Const("Trueprop",_) $ (Const("op =",_)  $ t $ u)) = (t,u)
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    30
  val eq_reflection = eq_reflection
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
  val imp_intr = impI
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
  val rev_mp = rev_mp
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
  val subst = subst
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
  val sym = sym
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
  end;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
structure Hypsubst = HypsubstFun(Hypsubst_Data);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
open Hypsubst;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2237
diff changeset
    40
97
dd350da66c2c renamed int-prover.ML to intprover.ML,
clasohm
parents: 72
diff changeset
    41
use "intprover.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2237
diff changeset
    43
use_thy "FOL";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
1523
7513fbe502fb changed prove_goal to qed_goal
paulson
parents: 1459
diff changeset
    45
qed_goal "ex1_functional" FOL.thy
666
4d9f6d83c2bf FOL/ROOT/FOL_dup_cs: removed as obsolete
lcp
parents: 393
diff changeset
    46
    "!!a b c. [| EX! z. P(a,z);  P(a,b);  P(a,c) |] ==> b = c"
731
435ff9ec4058 trivial changes
lcp
parents: 666
diff changeset
    47
 (fn _ => [ (deepen_tac FOL_cs 0 1) ]);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
print_depth 8;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
1459
d12da312eff4 expanded tabs
clasohm
parents: 1356
diff changeset
    52
val FOL_build_completed = ();   (*indicate successful build*)