src/FOL/ROOT.ML
 author oheimb Wed, 12 Nov 1997 18:58:50 +0100 changeset 4223 f60e3d2c81d3 parent 4222 d7573d6d0513 child 4349 50403e5a44c0 permissions -rw-r--r--
added thin_refl to hyp_subst_tac
```
(*  Title:      FOL/ROOT
ID:         \$Id\$
Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
Copyright   1993  University of Cambridge

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 "\$ISABELLE_HOME/src/Provers/simplifier.ML";
use "\$ISABELLE_HOME/src/Provers/splitter.ML";
use "\$ISABELLE_HOME/src/Provers/ind.ML";
use "\$ISABELLE_HOME/src/Provers/hypsubst.ML";
use "\$ISABELLE_HOME/src/Provers/classical.ML";
use "\$ISABELLE_HOME/src/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)  \$ t \$ u)) =
(t, u, domain_type T)
val eq_reflection = eq_reflection
val imp_intr = impI
val rev_mp = rev_mp
val subst = subst
val sym = sym
val thin_refl = prove_goal IFOL.thy
"!!X. [|x=x; PROP W|] ==> PROP W" (K [atac 1]);
end;

structure Hypsubst = HypsubstFun(Hypsubst_Data);
open Hypsubst;

use "intprover.ML";

use_thy "FOL";