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--
```
(*  Title:      FOL/ROOT
ID:         \$Id\$
Author:     Lawrence C Paulson, Cambridge University Computer Laboratory

Adds First-Order Logic to a database containing pure Isabelle.
Should be executed in the subdirectory FOL.
*)

val banner = "First-Order Logic with Natural Deduction";

writeln banner;

print_depth 1;

use "../Provers/splitter.ML";
use "../Provers/ind.ML";
use "../Provers/hypsubst.ML";
use "../Provers/classical.ML";
use "../Provers/blast.ML";

use_thy "IFOL";

(** Applying HypsubstFun to generate hyp_subst_tac **)
structure Hypsubst_Data =
struct
structure Simplifier = Simplifier
(*Take apart an equality judgement; otherwise raise Match!*)
fun dest_eq (Const("Trueprop",_) \$ (Const("op =",_)  \$ t \$ u)) = (t,u)
val eq_reflection = eq_reflection
val imp_intr = impI
val rev_mp = rev_mp
val subst = subst
val sym = sym
end;

structure Hypsubst = HypsubstFun(Hypsubst_Data);
open Hypsubst;

use "intprover.ML";

use_thy "FOL";

qed_goal "ex1_functional" FOL.thy
"!!a b c. [| EX! z. P(a,z);  P(a,b);  P(a,c) |] ==> b = c"
(fn _ => [ (deepen_tac FOL_cs 0 1) ]);

print_depth 8;

val FOL_build_completed = ();   (*indicate successful build*)
```