src/HOL/Ord.ML
changeset 5449 d853d1ac85a3
parent 5316 7a8975451a89
child 5538 c55bf0487abe
--- a/src/HOL/Ord.ML	Thu Sep 10 17:15:48 1998 +0200
+++ b/src/HOL/Ord.ML	Thu Sep 10 17:17:22 1998 +0200
@@ -6,6 +6,11 @@
 The type class for ordered types
 *)
 
+(*Tell Blast_tac about overloading of < and <= to reduce the risk of
+  its applying a rule for the wrong type*)
+Blast.overloaded ("op <", domain_type); 
+Blast.overloaded ("op <=", domain_type);
+
 (** mono **)
 
 val [prem] = Goalw [mono_def]
@@ -20,7 +25,7 @@
 
 section "Orders";
 
-AddIffs [order_refl];
+Addsimps [order_refl];
 
 (*This form is useful with the classical reasoner*)
 Goal "!!x::'a::order. x = y ==> x <= y";
@@ -31,11 +36,12 @@
 Goal "~ x < (x::'a::order)";
 by (simp_tac (simpset() addsimps [order_less_le]) 1);
 qed "order_less_irrefl";
-AddIffs [order_less_irrefl];
+Addsimps [order_less_irrefl];
 
 Goal "(x::'a::order) <= y = (x < y | x = y)";
 by (simp_tac (simpset() addsimps [order_less_le]) 1);
-by (Blast_tac 1);
+   (*NOT suitable for AddIffs, since it can cause PROOF FAILED*)
+by (blast_tac (claset() addSIs [order_refl]) 1);
 qed "order_le_less";
 
 (** min **)