2112

1 
structure Thms : Thms_sig =


2 
struct

3191

3 
val WFREC_COROLLARY = get_thm WF_Rel.thy "tfl_wfrec"


4 
val WF_INDUCTION_THM = get_thm WF_Rel.thy "tfl_wf_induct"


5 
val CUT_LEMMA = get_thm WF_Rel.thy "tfl_cut_apply"

2112

6 
val CUT_DEF = cut_def


7 


8 
local val _ = goal HOL.thy "!P x. P x > P (Eps P)"


9 
val _ = by (strip_tac 1)


10 
val _ = by (rtac selectI 1)


11 
val _ = by (assume_tac 1)


12 
in val SELECT_AX = result()


13 
end;


14 


15 
(*


16 
* A useful congruence rule


17 
**)


18 
local val [p1,p2] = goal HOL.thy "(M = N) ==> \


19 
\ (!!x. ((x = N) ==> (f x = g x))) ==> \


20 
\ (Let M f = Let N g)";


21 
val _ = by (simp_tac (HOL_ss addsimps[Let_def,p1]) 1);


22 
val _ = by (rtac p2 1);


23 
val _ = by (rtac refl 1);


24 
in val LET_CONG = result() RS eq_reflection


25 
end;


26 


27 
val COND_CONG = if_cong RS eq_reflection;


28 

3273

29 
fun prove s = prove_goal HOL.thy s (fn _ => [fast_tac HOL_cs 1]);

2112

30 

3273

31 
val eqT = prove"(x = True) > x"


32 
val rev_eq_mp = prove"(x = y) > y > x"


33 
val simp_thm = prove"(x>y) > (x = x') > (x' > y)"

2112

34 


35 
end;
