src/HOL/ex/String.ML
author paulson
Wed, 23 Jul 1997 11:52:22 +0200
changeset 3564 f886dbd91ee5
parent 2031 03a843f0f447
child 5069 3ea049f7979d
permissions -rw-r--r--
Now Datatype.occs_in_prems prints the necessary warning ITSELF. It is also easier to invoke and even works if the induction variable is a parameter (rather than a free variable).

goal String.thy "hd(''ABCD'') = CHR ''A''";
by (Simp_tac 1);
result();

goal String.thy "hd(''ABCD'') ~= CHR ''B''";
by (Simp_tac 1);
result();

goal String.thy "''ABCD'' ~= ''ABCX''";
by (Simp_tac 1);
result();

goal String.thy "''ABCD'' = ''ABCD''";
by (Simp_tac 1);
result();

goal String.thy
  "''ABCDEFGHIJKLMNOPQRSTUVWXYZ'' ~= ''ABCDEFGHIJKLMNOPQRSTUVWXY''";
by (Simp_tac 1);
result();