src/FOL/hypsubstdata.ML
author haftmann
Wed, 11 Oct 2006 14:51:25 +0200
changeset 20974 2a29a21825d1
parent 12353 e4be26df707a
child 21218 38013c3a77a2
permissions -rw-r--r--
slight type signature changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7355
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
     1
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
     2
(** Applying HypsubstFun to generate hyp_subst_tac **)
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
     3
structure Hypsubst_Data =
20974
2a29a21825d1 slight type signature changes
haftmann
parents: 12353
diff changeset
     4
struct
7355
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
     5
  structure Simplifier = Simplifier
20974
2a29a21825d1 slight type signature changes
haftmann
parents: 12353
diff changeset
     6
  fun dest_eq (Const("op =",T) $ t $ u) = ((t, u), domain_type T)
7355
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
     7
  val dest_Trueprop = FOLogic.dest_Trueprop
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
     8
  val dest_imp = FOLogic.dest_imp
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
     9
  val eq_reflection = eq_reflection
9528
95852b4be214 rev_eq_reflection = meta_eq_to_obj_eq;
wenzelm
parents: 7355
diff changeset
    10
  val rev_eq_reflection = meta_eq_to_obj_eq
7355
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
    11
  val imp_intr = impI
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
    12
  val rev_mp = rev_mp
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
    13
  val subst = subst
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
    14
  val sym = sym
20974
2a29a21825d1 slight type signature changes
haftmann
parents: 12353
diff changeset
    15
  val thin_refl = prove_goal (the_context ()) "!!X. [|x=x; PROP W|] ==> PROP W" (K [atac 1]);
2a29a21825d1 slight type signature changes
haftmann
parents: 12353
diff changeset
    16
end;
7355
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
    17
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
    18
structure Hypsubst = HypsubstFun(Hypsubst_Data);
4c43090659ca proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
diff changeset
    19
open Hypsubst;