src/LCF/ex/Ex2.ML
author paulson
Thu, 08 Jul 1999 13:38:41 +0200
changeset 6915 4ab8e31a8421
parent 5061 f947332d5465
child 17878 5b9efe4d6b47
permissions -rw-r--r--
Now if_weak_cong is a standard congruence rule


simpset_ref() := LCF_ss;

Addsimps [F_strict,K];

Goal "ALL x. F(H(x::'a,y::'b)) = H(x,F(y))";
by (stac H 1);
by (induct_tac "K::('a=>'b=>'b)=>('a=>'b=>'b)" 1);
by (Simp_tac 1);
by (asm_simp_tac (simpset() setloop (split_tac [COND_cases_iff])) 1);
qed "example";