
diff -r c304402cc3df -r 8dd2bd4fe30b src/HOL/Algebra/Coset.thy
--- a/src/HOL/Algebra/Coset.thy	Tue Nov 10 23:41:20 2015 +0100
+++ b/src/HOL/Algebra/Coset.thy	Wed Nov 11 09:06:30 2015 +0100
@@ -759,6 +759,9 @@
   order :: "('a, 'b) monoid_scheme \<Rightarrow> nat"
   where "order S = card (carrier S)"
 
+lemma (in monoid) order_gt_0_iff_finite: "0 < order G \<longleftrightarrow> finite (carrier G)"
+by(auto simp add: order_def card_gt_0_iff)
+
 lemma (in group) rcosets_part_G:
   assumes "subgroup H G"
   shows "\<Union>(rcosets H) = carrier G"




