test.ML
author lcp
Tue, 06 Sep 1994 10:54:46 +0200
changeset 134 4b7da5a895e7
parent 0 7949f97df77a
permissions -rw-r--r--
HOL/ind_syntax/factors: now returns only factors in the product type that associate to the right. Previously the proof of the induction rule crashed on types such as (bool*bool)*bool.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     1
let
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     2
 fun tac ss = resolve_tac(prems_of_ss ss) ORELSE' asm_simp_tac ss;
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     3
 val ss = set_prove_tac(HOL_ss addsimps [Suc_lessD],tac)
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     4
in prove_goal Nat.thy "!!x. Suc(Suc(Suc(x)))<y ==> x<y"
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     5
     (fn _ => [asm_simp_tac ss 1])
7949f97df77a Initial revision
clasohm
parents:
diff changeset
     6
end;