List_Lexorder finally working
authorpaulson <lp15@cam.ac.uk>
Tue, 18 Aug 2020 21:45:24 +0100
changeset 72169 2d7619fc0e1a
parent 72168 721a05da8fe7
child 72170 7fa9605b226c
List_Lexorder finally working
src/HOL/Library/List_Lexorder.thy
--- a/src/HOL/Library/List_Lexorder.thy	Tue Aug 18 17:38:51 2020 +0100
+++ b/src/HOL/Library/List_Lexorder.thy	Tue Aug 18 21:45:24 2020 +0100
@@ -82,7 +82,7 @@
 lemma Nil_le_Cons [simp]: "[] \<le> x"
   unfolding list_le_def by (cases x) auto
 
-lemma Cons_le_Cons [simp]: "a # x \<le> b # y \<longleftrightarrow> a < b \<or> a = b \<and> x \<le> y"
+lemma Cons_le_Cons [simp]: "a # x \<le> b # y \<longleftrightarrow> (if a = b then x \<le> y else a < b)"
   unfolding list_le_def by auto
 
 instantiation list :: (order) order_bot