src/FOL/ROOT.ML
author wenzelm
Mon, 20 Oct 1997 12:50:18 +0200
changeset 3954 c8c188655948
parent 3578 b2b9a9ddb9cc
child 4024 3c056eab237c
permissions -rw-r--r--
reset global_names;
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
3954
c8c188655948 reset global_names;
wenzelm
parents: 3578
diff changeset
    14
reset global_names;
c8c188655948 reset global_names;
wenzelm
parents: 3578
diff changeset
    15
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
print_depth 1;  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
3578
b2b9a9ddb9cc load simplifier.ML (again);
wenzelm
parents: 3511
diff changeset
    18
use "../Provers/simplifier.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
use "../Provers/splitter.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
use "../Provers/ind.ML";
1004
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    21
use "../Provers/hypsubst.ML";
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    22
use "../Provers/classical.ML";
2866
0a648ebbf6d4 Now loads blast.ML
paulson
parents: 2469
diff changeset
    23
use "../Provers/blast.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2237
diff changeset
    25
use_thy "IFOL";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
2866
0a648ebbf6d4 Now loads blast.ML
paulson
parents: 2469
diff changeset
    27
(** Applying HypsubstFun to generate hyp_subst_tac **)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
structure Hypsubst_Data =
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
  struct
1004
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    30
  structure Simplifier = Simplifier
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    31
    (*Take apart an equality judgement; otherwise raise Match!*)
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    32
  fun dest_eq (Const("Trueprop",_) $ (Const("op =",_)  $ t $ u)) = (t,u)
70676af0ac97 Set up for new hyp_subst_tac.
lcp
parents: 731
diff changeset
    33
  val eq_reflection = eq_reflection
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
  val imp_intr = impI
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
  val rev_mp = rev_mp
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
  val subst = subst
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
  val sym = sym
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
  end;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
structure Hypsubst = HypsubstFun(Hypsubst_Data);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
open Hypsubst;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2237
diff changeset
    43
97
dd350da66c2c renamed int-prover.ML to intprover.ML,
clasohm
parents: 72
diff changeset
    44
use "intprover.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2237
diff changeset
    46
use_thy "FOL";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
1523
7513fbe502fb changed prove_goal to qed_goal
paulson
parents: 1459
diff changeset
    48
qed_goal "ex1_functional" FOL.thy
666
4d9f6d83c2bf FOL/ROOT/FOL_dup_cs: removed as obsolete
lcp
parents: 393
diff changeset
    49
    "!!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
    50
 (fn _ => [ (deepen_tac FOL_cs 0 1) ]);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
print_depth 8;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
1459
d12da312eff4 expanded tabs
clasohm
parents: 1356
diff changeset
    55
val FOL_build_completed = ();   (*indicate successful build*)