translations -> abbreviations (a cool feature)
authornipkow
Wed, 22 Mar 2006 11:14:58 +0100
changeset 19313 45c9fc22904b
parent 19312 bb3cbf03a021
child 19314 cf1c19eee826
translations -> abbreviations (a cool feature)
src/HOL/Finite_Set.thy
src/HOL/Infinite_Set.thy
--- a/src/HOL/Finite_Set.thy	Tue Mar 21 15:38:53 2006 +0100
+++ b/src/HOL/Finite_Set.thy	Wed Mar 22 11:14:58 2006 +0100
@@ -13,10 +13,8 @@
 subsection {* Definition and basic properties *}
 
 consts Finites :: "'a set set"
-syntax
-  finite :: "'a set => bool"
-translations
-  "finite A" == "A : Finites"
+abbreviation (output)
+  "finite A = (A : Finites)"
 
 inductive Finites
   intros
--- a/src/HOL/Infinite_Set.thy	Tue Mar 21 15:38:53 2006 +0100
+++ b/src/HOL/Infinite_Set.thy	Wed Mar 22 11:14:58 2006 +0100
@@ -13,10 +13,8 @@
 
 text {* Some elementary facts about infinite sets, by Stefan Merz. *}
 
-syntax
-  infinite :: "'a set \<Rightarrow> bool"
-translations
-  "infinite S" == "S \<notin> Finites"
+abbreviation (output)
+  "infinite S = (S \<notin> Finites)"
 
 text {*
   Infinite sets are non-empty, and if we remove some elements