src/HOL/Library/Product_ord.thy
changeset 26993 b952df8d505b
parent 25691 8f8d83af100a
child 27368 9f90ac19e32b
     1.1 --- a/src/HOL/Library/Product_ord.thy	Sat May 24 23:52:35 2008 +0200
     1.2 +++ b/src/HOL/Library/Product_ord.thy	Mon May 26 17:55:34 2008 +0200
     1.3 @@ -22,16 +22,16 @@
     1.4  
     1.5  end
     1.6  
     1.7 +lemma [code, code func del]:
     1.8 +  "(x1, y1) \<le> (x2, y2) \<longleftrightarrow> x1 < x2 \<or> x1 = x2 \<and> y1 \<le> y2"
     1.9 +  "(x1, y1) < (x2, y2) \<longleftrightarrow> x1 < x2 \<or> x1 = x2 \<and> y1 < y2"
    1.10 +  unfolding prod_le_def prod_less_def by simp_all
    1.11 +
    1.12  lemma [code func]:
    1.13    "(x1\<Colon>'a\<Colon>{ord, eq}, y1) \<le> (x2, y2) \<longleftrightarrow> x1 < x2 \<or> x1 = x2 \<and> y1 \<le> y2"
    1.14    "(x1\<Colon>'a\<Colon>{ord, eq}, y1) < (x2, y2) \<longleftrightarrow> x1 < x2 \<or> x1 = x2 \<and> y1 < y2"
    1.15    unfolding prod_le_def prod_less_def by simp_all
    1.16  
    1.17 -lemma [code]:
    1.18 -  "(x1, y1) \<le> (x2, y2) \<longleftrightarrow> x1 < x2 \<or> x1 = x2 \<and> y1 \<le> y2"
    1.19 -  "(x1, y1) < (x2, y2) \<longleftrightarrow> x1 < x2 \<or> x1 = x2 \<and> y1 < y2"
    1.20 -  unfolding prod_le_def prod_less_def by simp_all
    1.21 -
    1.22  instance * :: (order, order) order
    1.23    by default (auto simp: prod_le_def prod_less_def intro: order_less_trans)
    1.24