new: > and >=
authornipkow
Fri, 10 Nov 2000 16:26:44 +0100
changeset 10427 9d2de9b6e7f4
parent 10426 469f19c4bf97
child 10428 8f15fbce549f
new: > and >=
src/HOL/Ord.thy
--- a/src/HOL/Ord.thy	Fri Nov 10 15:05:09 2000 +0100
+++ b/src/HOL/Ord.thy	Fri Nov 10 16:26:44 2000 +0100
@@ -59,18 +59,23 @@
   "_leEx"    :: [idt, 'a, bool] => bool   ("(3EX _<=_./ _)" [0, 0, 10] 10)
 
 syntax (symbols)
+  "op >="    :: ['a, 'a] => bool          ("(_/ \\<ge> _)"  [50, 51] 50)
   "_lessAll" :: [idt, 'a, bool] => bool   ("(3\\<forall>_<_./ _)"  [0, 0, 10] 10)
   "_lessEx"  :: [idt, 'a, bool] => bool   ("(3\\<exists>_<_./ _)"  [0, 0, 10] 10)
   "_leAll"   :: [idt, 'a, bool] => bool   ("(3\\<forall>_\\<le>_./ _)" [0, 0, 10] 10)
   "_leEx"    :: [idt, 'a, bool] => bool   ("(3\\<exists>_\\<le>_./ _)" [0, 0, 10] 10)
 
 syntax (HOL)
+  "op >"     :: ['a, 'a] => bool          ("(_/ > _)"   [50, 51] 50)
+  "op >="    :: ['a, 'a] => bool          ("(_/ >= _)"  [50, 51] 50)
   "_lessAll" :: [idt, 'a, bool] => bool   ("(3! _<_./ _)"  [0, 0, 10] 10)
   "_lessEx"  :: [idt, 'a, bool] => bool   ("(3? _<_./ _)"  [0, 0, 10] 10)
   "_leAll"   :: [idt, 'a, bool] => bool   ("(3! _<=_./ _)" [0, 0, 10] 10)
   "_leEx"    :: [idt, 'a, bool] => bool   ("(3? _<=_./ _)" [0, 0, 10] 10)
 
 translations
+ "x > y"        =>  "y < x"
+ "x >= y"       =>  "y <= x"
  "ALL x<y. P"   =>  "ALL x. x < y --> P"
  "EX x<y. P"    =>  "EX x. x < y  & P"
  "ALL x<=y. P"  =>  "ALL x. x <= y --> P"