src/HOL/ex/String.ML
author paulson
Tue, 16 Jul 1996 15:49:46 +0200
changeset 1868 836950047d85
parent 1266 3ae9fe3c0f68
child 2031 03a843f0f447
permissions -rw-r--r--
Put in minimal simpset to avoid excessive simplification, just as in revision 1.9 of HOL/indrule.ML
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     1
goal String.thy "hd(''ABCD'') = CHR ''A''";
1266
3ae9fe3c0f68 added local simpsets
clasohm
parents: 969
diff changeset
     2
by(Simp_tac 1);
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     3
result();
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     4
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     5
goal String.thy "hd(''ABCD'') ~= CHR ''B''";
1266
3ae9fe3c0f68 added local simpsets
clasohm
parents: 969
diff changeset
     6
by(Simp_tac 1);
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     7
result();
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     8
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     9
goal String.thy "''ABCD'' ~= ''ABCX''";
1266
3ae9fe3c0f68 added local simpsets
clasohm
parents: 969
diff changeset
    10
by(Simp_tac 1);
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    11
result();
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    12
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    13
goal String.thy "''ABCD'' = ''ABCD''";
1266
3ae9fe3c0f68 added local simpsets
clasohm
parents: 969
diff changeset
    14
by(Simp_tac 1);
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    15
result();
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    16
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    17
goal String.thy
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    18
  "''ABCDEFGHIJKLMNOPQRSTUVWXYZ'' ~= ''ABCDEFGHIJKLMNOPQRSTUVWXY''";
1266
3ae9fe3c0f68 added local simpsets
clasohm
parents: 969
diff changeset
    19
by(Simp_tac 1);
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    20
result();