diff -r 68a7acb5f22e -r fd19f77dcf60 src/FOLP/ex/If.ML --- a/src/FOLP/ex/If.ML Sat Sep 17 20:49:14 2005 +0200 +++ b/src/FOLP/ex/If.ML Sun Sep 18 14:25:48 2005 +0200 @@ -1,20 +1,15 @@ -(* Title: FOLP/ex/if +(* Title: FOLP/ex/If.ML ID: \$Id\$ Author: Lawrence C Paulson, Cambridge University Computer Laboratory Copyright 1991 University of Cambridge - -For ex/if.thy. First-Order Logic: the 'if' example *) -open If; -open Cla; (*in case structure Int is open!*) - -val prems = goalw If.thy [if_def] +val prems = goalw (the_context ()) [if_def] "[| !!x. x:P ==> f(x):Q; !!x. x:~P ==> g(x):R |] ==> ?p:if(P,Q,R)"; by (fast_tac (FOLP_cs addIs prems) 1); val ifI = result(); -val major::prems = goalw If.thy [if_def] +val major::prems = goalw (the_context ()) [if_def] "[| p:if(P,Q,R); !!x y.[| x:P; y:Q |] ==> f(x,y):S; \ \ !!x y.[| x:~P; y:R |] ==> g(x,y):S |] ==> ?p:S"; by (cut_facts_tac [major] 1); @@ -39,5 +34,3 @@ Goal "?p : if(if(P,Q,R), A, B) <-> if(P, if(Q,A,B), if(R,A,B))"; by (fast_tac if_cs 1); val nested_ifs = result(); - -writeln"Reached end of file.";