src/HOLCF/IOA/NTP/Lemmas.ML
author wenzelm
Fri, 17 Jun 2005 18:33:30 +0200
changeset 16445 bc90e58bb6ac
parent 15408 6001135caa91
permissions -rw-r--r--
Table.fold;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3073
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
     1
(*  Title:      HOL/IOA/NTP/Lemmas.ML
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
     2
    ID:         $Id$
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
     3
    Author:     Tobias Nipkow & Konrad Slind
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
     4
*)
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
     5
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
     6
(* Logic *)
4532
006e5572aca8 *** empty log message ***
oheimb
parents: 4423
diff changeset
     7
15408
6001135caa91 tidied; removed references to HOL theories
paulson
parents: 14981
diff changeset
     8
Goal "(X = (~ Y)) = ((~X) = Y)";
3073
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
     9
  by (Fast_tac 1);
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    10
qed "neg_flip";
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    11
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    12
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    13
(* Sets *)
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    14
val set_lemmas =
15408
6001135caa91 tidied; removed references to HOL theories
paulson
parents: 14981
diff changeset
    15
   map (fn s => prove_goal Main.thy s (fn _ => [Fast_tac 1]))
3073
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    16
        ["f(x) : (UN x. {f(x)})",
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    17
         "f x y : (UN x y. {f x y})",
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    18
         "!!a. (!x. a ~= f(x)) ==> a ~: (UN x. {f(x)})",
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    19
         "!!a. (!x y. a ~= f x y) ==> a ~: (UN x y. {f x y})"];
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    20
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    21
4377
2cba48b0f1c4 Cleaned up arithmetic mess.
nipkow
parents: 4372
diff changeset
    22
(* Arithmetic *)
3073
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    23
15408
6001135caa91 tidied; removed references to HOL theories
paulson
parents: 14981
diff changeset
    24
Goal "0<x ==> (x - 1 = y) = (x = Suc(y))";
5192
704dd3a6d47d Adapted to new datatype package.
berghofe
parents: 4833
diff changeset
    25
by (asm_simp_tac (simpset() addsimps [diff_Suc] addsplits [nat.split]) 1);
3073
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    26
qed "pred_suc";
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    27
88366253a09a Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff changeset
    28
4377
2cba48b0f1c4 Cleaned up arithmetic mess.
nipkow
parents: 4372
diff changeset
    29
Addsimps (hd_append :: set_lemmas);