src/LCF/ex/Ex2.ML
author wenzelm
Fri, 08 May 1998 13:54:45 +0200
changeset 4905 be73ddff6c5a
child 5061 f947332d5465
permissions -rw-r--r--
proper thy files;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4905
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     1
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     2
simpset_ref() := LCF_ss;
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     3
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     4
Addsimps [F_strict,K];
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     5
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     6
goal thy "ALL x. F(H(x::'a,y::'b)) = H(x,F(y))";
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     7
by (stac H 1);
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     8
by (induct_tac "K::('a=>'b=>'b)=>('a=>'b=>'b)" 1);
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     9
by (Simp_tac 1);
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
    10
by (asm_simp_tac (simpset() setloop (split_tac [COND_cases_iff])) 1);
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
    11
qed "example";