New theory Datatype. Needed as an ancestor when defining datatypes.
authorberghofe
Fri, 24 Jul 1998 13:00:36 +0200
changeset 5181 4ba3787d9709
parent 5180 d82a70766af0
child 5182 69917bbbce45
New theory Datatype. Needed as an ancestor when defining datatypes.
src/HOL/Datatype.thy
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/HOL/Datatype.thy	Fri Jul 24 13:00:36 1998 +0200
@@ -0,0 +1,19 @@
+(*  Title:      HOL/Datatype.thy
+    ID:         $Id$
+    Author:     Stefan Berghofer
+    Copyright   1998  TU Muenchen
+*)
+
+Datatype = Univ +
+
+rep_datatype sum
+  distinct "[[Inl_not_Inr, Inr_not_Inl]]"
+  inject   "[[Inl_eq, Inr_eq]]"
+  induct   sum_induct
+
+rep_datatype prod
+  distinct "[[]]"
+  inject   "[[Pair_eq]]"
+  induct   "allI RS (allI RS (split_paired_All RS iffD2)) RS spec"
+
+end