ex/String.ML
author clasohm
Tue, 24 Oct 1995 14:59:17 +0100
changeset 251 f04b33ce250f
parent 208 deec279dda0a
permissions -rw-r--r--
added calls of init_html and make_chart

val string_ss = list_ss addsimps (String.nibble.simps @ String.char.simps);

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

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

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

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

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