author | wenzelm |
Tue, 02 Sep 2008 22:20:21 +0200 | |
changeset 28094 | 5f340fb49b90 |
parent 27717 | 21bbd410ba04 |
child 29237 | e90d9d51106b |
permissions | -rw-r--r-- |
14706 | 1 |
(* Title: HOL/Algebra/Coset.thy |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
2 |
ID: $Id$ |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
3 |
Author: Florian Kammueller, with new proofs by L C Paulson, and |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
4 |
Stephan Hohe |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
5 |
*) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
6 |
|
27717
21bbd410ba04
Generalised polynomial lemmas from cring to ring.
ballarin
parents:
27698
diff
changeset
|
7 |
theory Coset imports Group begin |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
8 |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
9 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
10 |
section {*Cosets and Quotient Groups*} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
11 |
|
14651 | 12 |
constdefs (structure G) |
14963 | 13 |
r_coset :: "[_, 'a set, 'a] \<Rightarrow> 'a set" (infixl "#>\<index>" 60) |
14 |
"H #> a \<equiv> \<Union>h\<in>H. {h \<otimes> a}" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
15 |
|
14963 | 16 |
l_coset :: "[_, 'a, 'a set] \<Rightarrow> 'a set" (infixl "<#\<index>" 60) |
17 |
"a <# H \<equiv> \<Union>h\<in>H. {a \<otimes> h}" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
18 |
|
14963 | 19 |
RCOSETS :: "[_, 'a set] \<Rightarrow> ('a set)set" ("rcosets\<index> _" [81] 80) |
20 |
"rcosets H \<equiv> \<Union>a\<in>carrier G. {H #> a}" |
|
21 |
||
22 |
set_mult :: "[_, 'a set ,'a set] \<Rightarrow> 'a set" (infixl "<#>\<index>" 60) |
|
23 |
"H <#> K \<equiv> \<Union>h\<in>H. \<Union>k\<in>K. {h \<otimes> k}" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
24 |
|
14963 | 25 |
SET_INV :: "[_,'a set] \<Rightarrow> 'a set" ("set'_inv\<index> _" [81] 80) |
26 |
"set_inv H \<equiv> \<Union>h\<in>H. {inv h}" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
27 |
|
14963 | 28 |
|
29 |
locale normal = subgroup + group + |
|
30 |
assumes coset_eq: "(\<forall>x \<in> carrier G. H #> x = x <# H)" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
31 |
|
19380 | 32 |
abbreviation |
21404
eb85850d3eb7
more robust syntax for definition/abbreviation/notation;
wenzelm
parents:
20318
diff
changeset
|
33 |
normal_rel :: "['a set, ('a, 'b) monoid_scheme] \<Rightarrow> bool" (infixl "\<lhd>" 60) where |
19380 | 34 |
"H \<lhd> G \<equiv> normal H G" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
35 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
36 |
|
14803 | 37 |
subsection {*Basic Properties of Cosets*} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
38 |
|
14747 | 39 |
lemma (in group) coset_mult_assoc: |
40 |
"[| M \<subseteq> carrier G; g \<in> carrier G; h \<in> carrier G |] |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
41 |
==> (M #> g) #> h = M #> (g \<otimes> h)" |
14747 | 42 |
by (force simp add: r_coset_def m_assoc) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
43 |
|
14747 | 44 |
lemma (in group) coset_mult_one [simp]: "M \<subseteq> carrier G ==> M #> \<one> = M" |
45 |
by (force simp add: r_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
46 |
|
14747 | 47 |
lemma (in group) coset_mult_inv1: |
14666 | 48 |
"[| M #> (x \<otimes> (inv y)) = M; x \<in> carrier G ; y \<in> carrier G; |
14747 | 49 |
M \<subseteq> carrier G |] ==> M #> x = M #> y" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
50 |
apply (erule subst [of concl: "%z. M #> x = z #> y"]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
51 |
apply (simp add: coset_mult_assoc m_assoc) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
52 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
53 |
|
14747 | 54 |
lemma (in group) coset_mult_inv2: |
55 |
"[| M #> x = M #> y; x \<in> carrier G; y \<in> carrier G; M \<subseteq> carrier G |] |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
56 |
==> M #> (x \<otimes> (inv y)) = M " |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
57 |
apply (simp add: coset_mult_assoc [symmetric]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
58 |
apply (simp add: coset_mult_assoc) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
59 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
60 |
|
14747 | 61 |
lemma (in group) coset_join1: |
62 |
"[| H #> x = H; x \<in> carrier G; subgroup H G |] ==> x \<in> H" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
63 |
apply (erule subst) |
14963 | 64 |
apply (simp add: r_coset_def) |
65 |
apply (blast intro: l_one subgroup.one_closed sym) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
66 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
67 |
|
14747 | 68 |
lemma (in group) solve_equation: |
14963 | 69 |
"\<lbrakk>subgroup H G; x \<in> H; y \<in> H\<rbrakk> \<Longrightarrow> \<exists>h\<in>H. y = h \<otimes> x" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
70 |
apply (rule bexI [of _ "y \<otimes> (inv x)"]) |
14666 | 71 |
apply (auto simp add: subgroup.m_closed subgroup.m_inv_closed m_assoc |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
72 |
subgroup.subset [THEN subsetD]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
73 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
74 |
|
14963 | 75 |
lemma (in group) repr_independence: |
76 |
"\<lbrakk>y \<in> H #> x; x \<in> carrier G; subgroup H G\<rbrakk> \<Longrightarrow> H #> x = H #> y" |
|
77 |
by (auto simp add: r_coset_def m_assoc [symmetric] |
|
78 |
subgroup.subset [THEN subsetD] |
|
79 |
subgroup.m_closed solve_equation) |
|
80 |
||
14747 | 81 |
lemma (in group) coset_join2: |
14963 | 82 |
"\<lbrakk>x \<in> carrier G; subgroup H G; x\<in>H\<rbrakk> \<Longrightarrow> H #> x = H" |
83 |
--{*Alternative proof is to put @{term "x=\<one>"} in @{text repr_independence}.*} |
|
84 |
by (force simp add: subgroup.m_closed r_coset_def solve_equation) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
85 |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
86 |
lemma (in monoid) r_coset_subset_G: |
14747 | 87 |
"[| H \<subseteq> carrier G; x \<in> carrier G |] ==> H #> x \<subseteq> carrier G" |
88 |
by (auto simp add: r_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
89 |
|
14747 | 90 |
lemma (in group) rcosI: |
91 |
"[| h \<in> H; H \<subseteq> carrier G; x \<in> carrier G|] ==> h \<otimes> x \<in> H #> x" |
|
92 |
by (auto simp add: r_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
93 |
|
14963 | 94 |
lemma (in group) rcosetsI: |
95 |
"\<lbrakk>H \<subseteq> carrier G; x \<in> carrier G\<rbrakk> \<Longrightarrow> H #> x \<in> rcosets H" |
|
96 |
by (auto simp add: RCOSETS_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
97 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
98 |
text{*Really needed?*} |
14747 | 99 |
lemma (in group) transpose_inv: |
14666 | 100 |
"[| x \<otimes> y = z; x \<in> carrier G; y \<in> carrier G; z \<in> carrier G |] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
101 |
==> (inv x) \<otimes> z = y" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
102 |
by (force simp add: m_assoc [symmetric]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
103 |
|
14747 | 104 |
lemma (in group) rcos_self: "[| x \<in> carrier G; subgroup H G |] ==> x \<in> H #> x" |
14963 | 105 |
apply (simp add: r_coset_def) |
106 |
apply (blast intro: sym l_one subgroup.subset [THEN subsetD] |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
107 |
subgroup.one_closed) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
108 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
109 |
|
23350 | 110 |
text (in group) {* Opposite of @{thm [source] "repr_independence"} *} |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
111 |
lemma (in group) repr_independenceD: |
27611 | 112 |
assumes "subgroup H G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
113 |
assumes ycarr: "y \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
114 |
and repr: "H #> x = H #> y" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
115 |
shows "y \<in> H #> x" |
27611 | 116 |
proof - |
117 |
interpret subgroup [H G] by fact |
|
118 |
show ?thesis apply (subst repr) |
|
23350 | 119 |
apply (intro rcos_self) |
120 |
apply (rule ycarr) |
|
121 |
apply (rule is_subgroup) |
|
122 |
done |
|
27611 | 123 |
qed |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
124 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
125 |
text {* Elements of a right coset are in the carrier *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
126 |
lemma (in subgroup) elemrcos_carrier: |
27611 | 127 |
assumes "group G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
128 |
assumes acarr: "a \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
129 |
and a': "a' \<in> H #> a" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
130 |
shows "a' \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
131 |
proof - |
27611 | 132 |
interpret group [G] by fact |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
133 |
from subset and acarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
134 |
have "H #> a \<subseteq> carrier G" by (rule r_coset_subset_G) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
135 |
from this and a' |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
136 |
show "a' \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
137 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
138 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
139 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
140 |
lemma (in subgroup) rcos_const: |
27611 | 141 |
assumes "group G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
142 |
assumes hH: "h \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
143 |
shows "H #> h = H" |
27611 | 144 |
proof - |
145 |
interpret group [G] by fact |
|
146 |
show ?thesis apply (unfold r_coset_def) |
|
147 |
apply rule |
|
148 |
apply rule |
|
149 |
apply clarsimp |
|
150 |
apply (intro subgroup.m_closed) |
|
151 |
apply (rule is_subgroup) |
|
23463 | 152 |
apply assumption |
27611 | 153 |
apply (rule hH) |
154 |
apply rule |
|
155 |
apply simp |
|
156 |
proof - |
|
157 |
fix h' |
|
158 |
assume h'H: "h' \<in> H" |
|
159 |
note carr = hH[THEN mem_carrier] h'H[THEN mem_carrier] |
|
160 |
from carr |
|
161 |
have a: "h' = (h' \<otimes> inv h) \<otimes> h" by (simp add: m_assoc) |
|
162 |
from h'H hH |
|
163 |
have "h' \<otimes> inv h \<in> H" by simp |
|
164 |
from this and a |
|
165 |
show "\<exists>x\<in>H. h' = x \<otimes> h" by fast |
|
166 |
qed |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
167 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
168 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
169 |
text {* Step one for lemma @{text "rcos_module"} *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
170 |
lemma (in subgroup) rcos_module_imp: |
27611 | 171 |
assumes "group G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
172 |
assumes xcarr: "x \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
173 |
and x'cos: "x' \<in> H #> x" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
174 |
shows "(x' \<otimes> inv x) \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
175 |
proof - |
27611 | 176 |
interpret group [G] by fact |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
177 |
from xcarr x'cos |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
178 |
have x'carr: "x' \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
179 |
by (rule elemrcos_carrier[OF is_group]) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
180 |
from xcarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
181 |
have ixcarr: "inv x \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
182 |
by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
183 |
from x'cos |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
184 |
have "\<exists>h\<in>H. x' = h \<otimes> x" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
185 |
unfolding r_coset_def |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
186 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
187 |
from this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
188 |
obtain h |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
189 |
where hH: "h \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
190 |
and x': "x' = h \<otimes> x" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
191 |
by auto |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
192 |
from hH and subset |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
193 |
have hcarr: "h \<in> carrier G" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
194 |
note carr = xcarr x'carr hcarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
195 |
from x' and carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
196 |
have "x' \<otimes> (inv x) = (h \<otimes> x) \<otimes> (inv x)" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
197 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
198 |
have "\<dots> = h \<otimes> (x \<otimes> inv x)" by (simp add: m_assoc) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
199 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
200 |
have "\<dots> = h \<otimes> \<one>" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
201 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
202 |
have "\<dots> = h" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
203 |
finally |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
204 |
have "x' \<otimes> (inv x) = h" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
205 |
from hH this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
206 |
show "x' \<otimes> (inv x) \<in> H" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
207 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
208 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
209 |
text {* Step two for lemma @{text "rcos_module"} *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
210 |
lemma (in subgroup) rcos_module_rev: |
27611 | 211 |
assumes "group G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
212 |
assumes carr: "x \<in> carrier G" "x' \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
213 |
and xixH: "(x' \<otimes> inv x) \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
214 |
shows "x' \<in> H #> x" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
215 |
proof - |
27611 | 216 |
interpret group [G] by fact |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
217 |
from xixH |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
218 |
have "\<exists>h\<in>H. x' \<otimes> (inv x) = h" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
219 |
from this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
220 |
obtain h |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
221 |
where hH: "h \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
222 |
and hsym: "x' \<otimes> (inv x) = h" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
223 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
224 |
from hH subset have hcarr: "h \<in> carrier G" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
225 |
note carr = carr hcarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
226 |
from hsym[symmetric] have "h \<otimes> x = x' \<otimes> (inv x) \<otimes> x" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
227 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
228 |
have "\<dots> = x' \<otimes> ((inv x) \<otimes> x)" by (simp add: m_assoc) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
229 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
230 |
have "\<dots> = x' \<otimes> \<one>" by (simp add: l_inv) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
231 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
232 |
have "\<dots> = x'" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
233 |
finally |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
234 |
have "h \<otimes> x = x'" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
235 |
from this[symmetric] and hH |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
236 |
show "x' \<in> H #> x" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
237 |
unfolding r_coset_def |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
238 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
239 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
240 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
241 |
text {* Module property of right cosets *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
242 |
lemma (in subgroup) rcos_module: |
27611 | 243 |
assumes "group G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
244 |
assumes carr: "x \<in> carrier G" "x' \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
245 |
shows "(x' \<in> H #> x) = (x' \<otimes> inv x \<in> H)" |
27611 | 246 |
proof - |
247 |
interpret group [G] by fact |
|
248 |
show ?thesis proof assume "x' \<in> H #> x" |
|
249 |
from this and carr |
|
250 |
show "x' \<otimes> inv x \<in> H" |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
251 |
by (intro rcos_module_imp[OF is_group]) |
27611 | 252 |
next |
253 |
assume "x' \<otimes> inv x \<in> H" |
|
254 |
from this and carr |
|
255 |
show "x' \<in> H #> x" |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
256 |
by (intro rcos_module_rev[OF is_group]) |
27611 | 257 |
qed |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
258 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
259 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
260 |
text {* Right cosets are subsets of the carrier. *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
261 |
lemma (in subgroup) rcosets_carrier: |
27611 | 262 |
assumes "group G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
263 |
assumes XH: "X \<in> rcosets H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
264 |
shows "X \<subseteq> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
265 |
proof - |
27611 | 266 |
interpret group [G] by fact |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
267 |
from XH have "\<exists>x\<in> carrier G. X = H #> x" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
268 |
unfolding RCOSETS_def |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
269 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
270 |
from this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
271 |
obtain x |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
272 |
where xcarr: "x\<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
273 |
and X: "X = H #> x" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
274 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
275 |
from subset and xcarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
276 |
show "X \<subseteq> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
277 |
unfolding X |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
278 |
by (rule r_coset_subset_G) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
279 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
280 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
281 |
text {* Multiplication of general subsets *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
282 |
lemma (in monoid) set_mult_closed: |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
283 |
assumes Acarr: "A \<subseteq> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
284 |
and Bcarr: "B \<subseteq> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
285 |
shows "A <#> B \<subseteq> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
286 |
apply rule apply (simp add: set_mult_def, clarsimp) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
287 |
proof - |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
288 |
fix a b |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
289 |
assume "a \<in> A" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
290 |
from this and Acarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
291 |
have acarr: "a \<in> carrier G" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
292 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
293 |
assume "b \<in> B" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
294 |
from this and Bcarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
295 |
have bcarr: "b \<in> carrier G" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
296 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
297 |
from acarr bcarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
298 |
show "a \<otimes> b \<in> carrier G" by (rule m_closed) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
299 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
300 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
301 |
lemma (in comm_group) mult_subgroups: |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
302 |
assumes subH: "subgroup H G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
303 |
and subK: "subgroup K G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
304 |
shows "subgroup (H <#> K) G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
305 |
apply (rule subgroup.intro) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
306 |
apply (intro set_mult_closed subgroup.subset[OF subH] subgroup.subset[OF subK]) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
307 |
apply (simp add: set_mult_def) apply clarsimp defer 1 |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
308 |
apply (simp add: set_mult_def) defer 1 |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
309 |
apply (simp add: set_mult_def, clarsimp) defer 1 |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
310 |
proof - |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
311 |
fix ha hb ka kb |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
312 |
assume haH: "ha \<in> H" and hbH: "hb \<in> H" and kaK: "ka \<in> K" and kbK: "kb \<in> K" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
313 |
note carr = haH[THEN subgroup.mem_carrier[OF subH]] hbH[THEN subgroup.mem_carrier[OF subH]] |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
314 |
kaK[THEN subgroup.mem_carrier[OF subK]] kbK[THEN subgroup.mem_carrier[OF subK]] |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
315 |
from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
316 |
have "(ha \<otimes> ka) \<otimes> (hb \<otimes> kb) = ha \<otimes> (ka \<otimes> hb) \<otimes> kb" by (simp add: m_assoc) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
317 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
318 |
have "\<dots> = ha \<otimes> (hb \<otimes> ka) \<otimes> kb" by (simp add: m_comm) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
319 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
320 |
have "\<dots> = (ha \<otimes> hb) \<otimes> (ka \<otimes> kb)" by (simp add: m_assoc) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
321 |
finally |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
322 |
have eq: "(ha \<otimes> ka) \<otimes> (hb \<otimes> kb) = (ha \<otimes> hb) \<otimes> (ka \<otimes> kb)" . |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
323 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
324 |
from haH hbH have hH: "ha \<otimes> hb \<in> H" by (simp add: subgroup.m_closed[OF subH]) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
325 |
from kaK kbK have kK: "ka \<otimes> kb \<in> K" by (simp add: subgroup.m_closed[OF subK]) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
326 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
327 |
from hH and kK and eq |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
328 |
show "\<exists>h'\<in>H. \<exists>k'\<in>K. (ha \<otimes> ka) \<otimes> (hb \<otimes> kb) = h' \<otimes> k'" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
329 |
next |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
330 |
have "\<one> = \<one> \<otimes> \<one>" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
331 |
from subgroup.one_closed[OF subH] subgroup.one_closed[OF subK] this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
332 |
show "\<exists>h\<in>H. \<exists>k\<in>K. \<one> = h \<otimes> k" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
333 |
next |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
334 |
fix h k |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
335 |
assume hH: "h \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
336 |
and kK: "k \<in> K" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
337 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
338 |
from hH[THEN subgroup.mem_carrier[OF subH]] kK[THEN subgroup.mem_carrier[OF subK]] |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
339 |
have "inv (h \<otimes> k) = inv h \<otimes> inv k" by (simp add: inv_mult_group m_comm) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
340 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
341 |
from subgroup.m_inv_closed[OF subH hH] and subgroup.m_inv_closed[OF subK kK] and this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
342 |
show "\<exists>ha\<in>H. \<exists>ka\<in>K. inv (h \<otimes> k) = ha \<otimes> ka" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
343 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
344 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
345 |
lemma (in subgroup) lcos_module_rev: |
27611 | 346 |
assumes "group G" |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
347 |
assumes carr: "x \<in> carrier G" "x' \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
348 |
and xixH: "(inv x \<otimes> x') \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
349 |
shows "x' \<in> x <# H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
350 |
proof - |
27611 | 351 |
interpret group [G] by fact |
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
352 |
from xixH |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
353 |
have "\<exists>h\<in>H. (inv x) \<otimes> x' = h" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
354 |
from this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
355 |
obtain h |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
356 |
where hH: "h \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
357 |
and hsym: "(inv x) \<otimes> x' = h" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
358 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
359 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
360 |
from hH subset have hcarr: "h \<in> carrier G" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
361 |
note carr = carr hcarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
362 |
from hsym[symmetric] have "x \<otimes> h = x \<otimes> ((inv x) \<otimes> x')" by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
363 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
364 |
have "\<dots> = (x \<otimes> (inv x)) \<otimes> x'" by (simp add: m_assoc[symmetric]) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
365 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
366 |
have "\<dots> = \<one> \<otimes> x'" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
367 |
also from carr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
368 |
have "\<dots> = x'" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
369 |
finally |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
370 |
have "x \<otimes> h = x'" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
371 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
372 |
from this[symmetric] and hH |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
373 |
show "x' \<in> x <# H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
374 |
unfolding l_coset_def |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
375 |
by fast |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
376 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
377 |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
378 |
|
14666 | 379 |
subsection {* Normal subgroups *} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
380 |
|
14963 | 381 |
lemma normal_imp_subgroup: "H \<lhd> G \<Longrightarrow> subgroup H G" |
382 |
by (simp add: normal_def subgroup_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
383 |
|
14963 | 384 |
lemma (in group) normalI: |
26310 | 385 |
"subgroup H G \<Longrightarrow> (\<forall>x \<in> carrier G. H #> x = x <# H) \<Longrightarrow> H \<lhd> G" |
14963 | 386 |
by (simp add: normal_def normal_axioms_def prems) |
387 |
||
388 |
lemma (in normal) inv_op_closed1: |
|
389 |
"\<lbrakk>x \<in> carrier G; h \<in> H\<rbrakk> \<Longrightarrow> (inv x) \<otimes> h \<otimes> x \<in> H" |
|
390 |
apply (insert coset_eq) |
|
391 |
apply (auto simp add: l_coset_def r_coset_def) |
|
14666 | 392 |
apply (drule bspec, assumption) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
393 |
apply (drule equalityD1 [THEN subsetD], blast, clarify) |
14963 | 394 |
apply (simp add: m_assoc) |
395 |
apply (simp add: m_assoc [symmetric]) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
396 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
397 |
|
14963 | 398 |
lemma (in normal) inv_op_closed2: |
399 |
"\<lbrakk>x \<in> carrier G; h \<in> H\<rbrakk> \<Longrightarrow> x \<otimes> h \<otimes> (inv x) \<in> H" |
|
400 |
apply (subgoal_tac "inv (inv x) \<otimes> h \<otimes> (inv x) \<in> H") |
|
26310 | 401 |
apply (simp add: ) |
14963 | 402 |
apply (blast intro: inv_op_closed1) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
403 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
404 |
|
14747 | 405 |
text{*Alternative characterization of normal subgroups*} |
406 |
lemma (in group) normal_inv_iff: |
|
407 |
"(N \<lhd> G) = |
|
408 |
(subgroup N G & (\<forall>x \<in> carrier G. \<forall>h \<in> N. x \<otimes> h \<otimes> (inv x) \<in> N))" |
|
409 |
(is "_ = ?rhs") |
|
410 |
proof |
|
411 |
assume N: "N \<lhd> G" |
|
412 |
show ?rhs |
|
14963 | 413 |
by (blast intro: N normal.inv_op_closed2 normal_imp_subgroup) |
14747 | 414 |
next |
415 |
assume ?rhs |
|
416 |
hence sg: "subgroup N G" |
|
14963 | 417 |
and closed: "\<And>x. x\<in>carrier G \<Longrightarrow> \<forall>h\<in>N. x \<otimes> h \<otimes> inv x \<in> N" by auto |
14747 | 418 |
hence sb: "N \<subseteq> carrier G" by (simp add: subgroup.subset) |
419 |
show "N \<lhd> G" |
|
14963 | 420 |
proof (intro normalI [OF sg], simp add: l_coset_def r_coset_def, clarify) |
14747 | 421 |
fix x |
422 |
assume x: "x \<in> carrier G" |
|
15120 | 423 |
show "(\<Union>h\<in>N. {h \<otimes> x}) = (\<Union>h\<in>N. {x \<otimes> h})" |
14747 | 424 |
proof |
15120 | 425 |
show "(\<Union>h\<in>N. {h \<otimes> x}) \<subseteq> (\<Union>h\<in>N. {x \<otimes> h})" |
14747 | 426 |
proof clarify |
427 |
fix n |
|
428 |
assume n: "n \<in> N" |
|
15120 | 429 |
show "n \<otimes> x \<in> (\<Union>h\<in>N. {x \<otimes> h})" |
14747 | 430 |
proof |
14963 | 431 |
from closed [of "inv x"] |
432 |
show "inv x \<otimes> n \<otimes> x \<in> N" by (simp add: x n) |
|
433 |
show "n \<otimes> x \<in> {x \<otimes> (inv x \<otimes> n \<otimes> x)}" |
|
14747 | 434 |
by (simp add: x n m_assoc [symmetric] sb [THEN subsetD]) |
435 |
qed |
|
436 |
qed |
|
437 |
next |
|
15120 | 438 |
show "(\<Union>h\<in>N. {x \<otimes> h}) \<subseteq> (\<Union>h\<in>N. {h \<otimes> x})" |
14747 | 439 |
proof clarify |
440 |
fix n |
|
441 |
assume n: "n \<in> N" |
|
15120 | 442 |
show "x \<otimes> n \<in> (\<Union>h\<in>N. {h \<otimes> x})" |
14747 | 443 |
proof |
14963 | 444 |
show "x \<otimes> n \<otimes> inv x \<in> N" by (simp add: x n closed) |
445 |
show "x \<otimes> n \<in> {x \<otimes> n \<otimes> inv x \<otimes> x}" |
|
14747 | 446 |
by (simp add: x n m_assoc sb [THEN subsetD]) |
447 |
qed |
|
448 |
qed |
|
449 |
qed |
|
450 |
qed |
|
451 |
qed |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
452 |
|
14963 | 453 |
|
14803 | 454 |
subsection{*More Properties of Cosets*} |
455 |
||
14747 | 456 |
lemma (in group) lcos_m_assoc: |
457 |
"[| M \<subseteq> carrier G; g \<in> carrier G; h \<in> carrier G |] |
|
458 |
==> g <# (h <# M) = (g \<otimes> h) <# M" |
|
459 |
by (force simp add: l_coset_def m_assoc) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
460 |
|
14747 | 461 |
lemma (in group) lcos_mult_one: "M \<subseteq> carrier G ==> \<one> <# M = M" |
462 |
by (force simp add: l_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
463 |
|
14747 | 464 |
lemma (in group) l_coset_subset_G: |
465 |
"[| H \<subseteq> carrier G; x \<in> carrier G |] ==> x <# H \<subseteq> carrier G" |
|
466 |
by (auto simp add: l_coset_def subsetD) |
|
467 |
||
468 |
lemma (in group) l_coset_swap: |
|
14963 | 469 |
"\<lbrakk>y \<in> x <# H; x \<in> carrier G; subgroup H G\<rbrakk> \<Longrightarrow> x \<in> y <# H" |
470 |
proof (simp add: l_coset_def) |
|
471 |
assume "\<exists>h\<in>H. y = x \<otimes> h" |
|
14666 | 472 |
and x: "x \<in> carrier G" |
14530 | 473 |
and sb: "subgroup H G" |
474 |
then obtain h' where h': "h' \<in> H & x \<otimes> h' = y" by blast |
|
14963 | 475 |
show "\<exists>h\<in>H. x = y \<otimes> h" |
14530 | 476 |
proof |
14963 | 477 |
show "x = y \<otimes> inv h'" using h' x sb |
14530 | 478 |
by (auto simp add: m_assoc subgroup.subset [THEN subsetD]) |
479 |
show "inv h' \<in> H" using h' sb |
|
480 |
by (auto simp add: subgroup.subset [THEN subsetD] subgroup.m_inv_closed) |
|
481 |
qed |
|
482 |
qed |
|
483 |
||
14747 | 484 |
lemma (in group) l_coset_carrier: |
14530 | 485 |
"[| y \<in> x <# H; x \<in> carrier G; subgroup H G |] ==> y \<in> carrier G" |
14747 | 486 |
by (auto simp add: l_coset_def m_assoc |
14530 | 487 |
subgroup.subset [THEN subsetD] subgroup.m_closed) |
488 |
||
14747 | 489 |
lemma (in group) l_repr_imp_subset: |
14666 | 490 |
assumes y: "y \<in> x <# H" and x: "x \<in> carrier G" and sb: "subgroup H G" |
14530 | 491 |
shows "y <# H \<subseteq> x <# H" |
492 |
proof - |
|
493 |
from y |
|
14747 | 494 |
obtain h' where "h' \<in> H" "x \<otimes> h' = y" by (auto simp add: l_coset_def) |
14530 | 495 |
thus ?thesis using x sb |
14747 | 496 |
by (auto simp add: l_coset_def m_assoc |
14530 | 497 |
subgroup.subset [THEN subsetD] subgroup.m_closed) |
498 |
qed |
|
499 |
||
14747 | 500 |
lemma (in group) l_repr_independence: |
14666 | 501 |
assumes y: "y \<in> x <# H" and x: "x \<in> carrier G" and sb: "subgroup H G" |
14530 | 502 |
shows "x <# H = y <# H" |
14666 | 503 |
proof |
14530 | 504 |
show "x <# H \<subseteq> y <# H" |
14666 | 505 |
by (rule l_repr_imp_subset, |
14530 | 506 |
(blast intro: l_coset_swap l_coset_carrier y x sb)+) |
14666 | 507 |
show "y <# H \<subseteq> x <# H" by (rule l_repr_imp_subset [OF y x sb]) |
14530 | 508 |
qed |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
509 |
|
14747 | 510 |
lemma (in group) setmult_subset_G: |
14963 | 511 |
"\<lbrakk>H \<subseteq> carrier G; K \<subseteq> carrier G\<rbrakk> \<Longrightarrow> H <#> K \<subseteq> carrier G" |
512 |
by (auto simp add: set_mult_def subsetD) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
513 |
|
14963 | 514 |
lemma (in group) subgroup_mult_id: "subgroup H G \<Longrightarrow> H <#> H = H" |
515 |
apply (auto simp add: subgroup.m_closed set_mult_def Sigma_def image_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
516 |
apply (rule_tac x = x in bexI) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
517 |
apply (rule bexI [of _ "\<one>"]) |
14666 | 518 |
apply (auto simp add: subgroup.m_closed subgroup.one_closed |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
519 |
r_one subgroup.subset [THEN subsetD]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
520 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
521 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
522 |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
523 |
subsubsection {* Set of Inverses of an @{text r_coset}. *} |
14666 | 524 |
|
14963 | 525 |
lemma (in normal) rcos_inv: |
526 |
assumes x: "x \<in> carrier G" |
|
527 |
shows "set_inv (H #> x) = H #> (inv x)" |
|
528 |
proof (simp add: r_coset_def SET_INV_def x inv_mult_group, safe) |
|
529 |
fix h |
|
530 |
assume "h \<in> H" |
|
15120 | 531 |
show "inv x \<otimes> inv h \<in> (\<Union>j\<in>H. {j \<otimes> inv x})" |
14963 | 532 |
proof |
533 |
show "inv x \<otimes> inv h \<otimes> x \<in> H" |
|
534 |
by (simp add: inv_op_closed1 prems) |
|
535 |
show "inv x \<otimes> inv h \<in> {inv x \<otimes> inv h \<otimes> x \<otimes> inv x}" |
|
536 |
by (simp add: prems m_assoc) |
|
537 |
qed |
|
538 |
next |
|
539 |
fix h |
|
540 |
assume "h \<in> H" |
|
15120 | 541 |
show "h \<otimes> inv x \<in> (\<Union>j\<in>H. {inv x \<otimes> inv j})" |
14963 | 542 |
proof |
543 |
show "x \<otimes> inv h \<otimes> inv x \<in> H" |
|
544 |
by (simp add: inv_op_closed2 prems) |
|
545 |
show "h \<otimes> inv x \<in> {inv x \<otimes> inv (x \<otimes> inv h \<otimes> inv x)}" |
|
546 |
by (simp add: prems m_assoc [symmetric] inv_mult_group) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
547 |
qed |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
548 |
qed |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
549 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
550 |
|
14803 | 551 |
subsubsection {*Theorems for @{text "<#>"} with @{text "#>"} or @{text "<#"}.*} |
14666 | 552 |
|
14747 | 553 |
lemma (in group) setmult_rcos_assoc: |
14963 | 554 |
"\<lbrakk>H \<subseteq> carrier G; K \<subseteq> carrier G; x \<in> carrier G\<rbrakk> |
555 |
\<Longrightarrow> H <#> (K #> x) = (H <#> K) #> x" |
|
556 |
by (force simp add: r_coset_def set_mult_def m_assoc) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
557 |
|
14747 | 558 |
lemma (in group) rcos_assoc_lcos: |
14963 | 559 |
"\<lbrakk>H \<subseteq> carrier G; K \<subseteq> carrier G; x \<in> carrier G\<rbrakk> |
560 |
\<Longrightarrow> (H #> x) <#> K = H <#> (x <# K)" |
|
561 |
by (force simp add: r_coset_def l_coset_def set_mult_def m_assoc) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
562 |
|
14963 | 563 |
lemma (in normal) rcos_mult_step1: |
564 |
"\<lbrakk>x \<in> carrier G; y \<in> carrier G\<rbrakk> |
|
565 |
\<Longrightarrow> (H #> x) <#> (H #> y) = (H <#> (x <# H)) #> y" |
|
566 |
by (simp add: setmult_rcos_assoc subset |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
567 |
r_coset_subset_G l_coset_subset_G rcos_assoc_lcos) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
568 |
|
14963 | 569 |
lemma (in normal) rcos_mult_step2: |
570 |
"\<lbrakk>x \<in> carrier G; y \<in> carrier G\<rbrakk> |
|
571 |
\<Longrightarrow> (H <#> (x <# H)) #> y = (H <#> (H #> x)) #> y" |
|
572 |
by (insert coset_eq, simp add: normal_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
573 |
|
14963 | 574 |
lemma (in normal) rcos_mult_step3: |
575 |
"\<lbrakk>x \<in> carrier G; y \<in> carrier G\<rbrakk> |
|
576 |
\<Longrightarrow> (H <#> (H #> x)) #> y = H #> (x \<otimes> y)" |
|
577 |
by (simp add: setmult_rcos_assoc coset_mult_assoc |
|
19931
fb32b43e7f80
Restructured locales with predicates: import is now an interpretation.
ballarin
parents:
19380
diff
changeset
|
578 |
subgroup_mult_id normal.axioms subset prems) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
579 |
|
14963 | 580 |
lemma (in normal) rcos_sum: |
581 |
"\<lbrakk>x \<in> carrier G; y \<in> carrier G\<rbrakk> |
|
582 |
\<Longrightarrow> (H #> x) <#> (H #> y) = H #> (x \<otimes> y)" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
583 |
by (simp add: rcos_mult_step1 rcos_mult_step2 rcos_mult_step3) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
584 |
|
14963 | 585 |
lemma (in normal) rcosets_mult_eq: "M \<in> rcosets H \<Longrightarrow> H <#> M = M" |
14666 | 586 |
-- {* generalizes @{text subgroup_mult_id} *} |
14963 | 587 |
by (auto simp add: RCOSETS_def subset |
19931
fb32b43e7f80
Restructured locales with predicates: import is now an interpretation.
ballarin
parents:
19380
diff
changeset
|
588 |
setmult_rcos_assoc subgroup_mult_id normal.axioms prems) |
14963 | 589 |
|
590 |
||
591 |
subsubsection{*An Equivalence Relation*} |
|
592 |
||
593 |
constdefs (structure G) |
|
594 |
r_congruent :: "[('a,'b)monoid_scheme, 'a set] \<Rightarrow> ('a*'a)set" |
|
595 |
("rcong\<index> _") |
|
596 |
"rcong H \<equiv> {(x,y). x \<in> carrier G & y \<in> carrier G & inv x \<otimes> y \<in> H}" |
|
597 |
||
598 |
||
599 |
lemma (in subgroup) equiv_rcong: |
|
27611 | 600 |
assumes "group G" |
14963 | 601 |
shows "equiv (carrier G) (rcong H)" |
27611 | 602 |
proof - |
603 |
interpret group [G] by fact |
|
604 |
show ?thesis |
|
605 |
proof (intro equiv.intro) |
|
606 |
show "refl (carrier G) (rcong H)" |
|
607 |
by (auto simp add: r_congruent_def refl_def) |
|
608 |
next |
|
609 |
show "sym (rcong H)" |
|
610 |
proof (simp add: r_congruent_def sym_def, clarify) |
|
611 |
fix x y |
|
612 |
assume [simp]: "x \<in> carrier G" "y \<in> carrier G" |
|
613 |
and "inv x \<otimes> y \<in> H" |
|
614 |
hence "inv (inv x \<otimes> y) \<in> H" by (simp add: m_inv_closed) |
|
615 |
thus "inv y \<otimes> x \<in> H" by (simp add: inv_mult_group) |
|
616 |
qed |
|
617 |
next |
|
618 |
show "trans (rcong H)" |
|
619 |
proof (simp add: r_congruent_def trans_def, clarify) |
|
620 |
fix x y z |
|
621 |
assume [simp]: "x \<in> carrier G" "y \<in> carrier G" "z \<in> carrier G" |
|
622 |
and "inv x \<otimes> y \<in> H" and "inv y \<otimes> z \<in> H" |
|
623 |
hence "(inv x \<otimes> y) \<otimes> (inv y \<otimes> z) \<in> H" by simp |
|
27698 | 624 |
hence "inv x \<otimes> (y \<otimes> inv y) \<otimes> z \<in> H" |
625 |
by (simp add: m_assoc del: r_inv Units_r_inv) |
|
27611 | 626 |
thus "inv x \<otimes> z \<in> H" by simp |
627 |
qed |
|
14963 | 628 |
qed |
629 |
qed |
|
630 |
||
631 |
text{*Equivalence classes of @{text rcong} correspond to left cosets. |
|
632 |
Was there a mistake in the definitions? I'd have expected them to |
|
633 |
correspond to right cosets.*} |
|
634 |
||
635 |
(* CB: This is correct, but subtle. |
|
636 |
We call H #> a the right coset of a relative to H. According to |
|
637 |
Jacobson, this is what the majority of group theory literature does. |
|
638 |
He then defines the notion of congruence relation ~ over monoids as |
|
639 |
equivalence relation with a ~ a' & b ~ b' \<Longrightarrow> a*b ~ a'*b'. |
|
640 |
Our notion of right congruence induced by K: rcong K appears only in |
|
641 |
the context where K is a normal subgroup. Jacobson doesn't name it. |
|
642 |
But in this context left and right cosets are identical. |
|
643 |
*) |
|
644 |
||
645 |
lemma (in subgroup) l_coset_eq_rcong: |
|
27611 | 646 |
assumes "group G" |
14963 | 647 |
assumes a: "a \<in> carrier G" |
648 |
shows "a <# H = rcong H `` {a}" |
|
27611 | 649 |
proof - |
650 |
interpret group [G] by fact |
|
651 |
show ?thesis by (force simp add: r_congruent_def l_coset_def m_assoc [symmetric] a ) |
|
652 |
qed |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
653 |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
654 |
subsubsection{*Two Distinct Right Cosets are Disjoint*} |
14803 | 655 |
|
656 |
lemma (in group) rcos_equation: |
|
27611 | 657 |
assumes "subgroup H G" |
658 |
assumes p: "ha \<otimes> a = h \<otimes> b" "a \<in> carrier G" "b \<in> carrier G" "h \<in> H" "ha \<in> H" "hb \<in> H" |
|
659 |
shows "hb \<otimes> a \<in> (\<Union>h\<in>H. {h \<otimes> b})" |
|
660 |
proof - |
|
661 |
interpret subgroup [H G] by fact |
|
662 |
from p show ?thesis apply (rule_tac UN_I [of "hb \<otimes> ((inv ha) \<otimes> h)"]) |
|
663 |
apply (simp add: ) |
|
664 |
apply (simp add: m_assoc transpose_inv) |
|
665 |
done |
|
666 |
qed |
|
14803 | 667 |
|
668 |
lemma (in group) rcos_disjoint: |
|
27611 | 669 |
assumes "subgroup H G" |
670 |
assumes p: "a \<in> rcosets H" "b \<in> rcosets H" "a\<noteq>b" |
|
671 |
shows "a \<inter> b = {}" |
|
672 |
proof - |
|
673 |
interpret subgroup [H G] by fact |
|
674 |
from p show ?thesis apply (simp add: RCOSETS_def r_coset_def) |
|
675 |
apply (blast intro: rcos_equation prems sym) |
|
676 |
done |
|
677 |
qed |
|
14803 | 678 |
|
20318
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
679 |
subsection {* Further lemmas for @{text "r_congruent"} *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
680 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
681 |
text {* The relation is a congruence *} |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
682 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
683 |
lemma (in normal) congruent_rcong: |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
684 |
shows "congruent2 (rcong H) (rcong H) (\<lambda>a b. a \<otimes> b <# H)" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
685 |
proof (intro congruent2I[of "carrier G" _ "carrier G" _] equiv_rcong is_group) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
686 |
fix a b c |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
687 |
assume abrcong: "(a, b) \<in> rcong H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
688 |
and ccarr: "c \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
689 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
690 |
from abrcong |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
691 |
have acarr: "a \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
692 |
and bcarr: "b \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
693 |
and abH: "inv a \<otimes> b \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
694 |
unfolding r_congruent_def |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
695 |
by fast+ |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
696 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
697 |
note carr = acarr bcarr ccarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
698 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
699 |
from ccarr and abH |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
700 |
have "inv c \<otimes> (inv a \<otimes> b) \<otimes> c \<in> H" by (rule inv_op_closed1) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
701 |
moreover |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
702 |
from carr and inv_closed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
703 |
have "inv c \<otimes> (inv a \<otimes> b) \<otimes> c = (inv c \<otimes> inv a) \<otimes> (b \<otimes> c)" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
704 |
by (force cong: m_assoc) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
705 |
moreover |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
706 |
from carr and inv_closed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
707 |
have "\<dots> = (inv (a \<otimes> c)) \<otimes> (b \<otimes> c)" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
708 |
by (simp add: inv_mult_group) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
709 |
ultimately |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
710 |
have "(inv (a \<otimes> c)) \<otimes> (b \<otimes> c) \<in> H" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
711 |
from carr and this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
712 |
have "(b \<otimes> c) \<in> (a \<otimes> c) <# H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
713 |
by (simp add: lcos_module_rev[OF is_group]) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
714 |
from carr and this and is_subgroup |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
715 |
show "(a \<otimes> c) <# H = (b \<otimes> c) <# H" by (intro l_repr_independence, simp+) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
716 |
next |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
717 |
fix a b c |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
718 |
assume abrcong: "(a, b) \<in> rcong H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
719 |
and ccarr: "c \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
720 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
721 |
from ccarr have "c \<in> Units G" by (simp add: Units_eq) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
722 |
hence cinvc_one: "inv c \<otimes> c = \<one>" by (rule Units_l_inv) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
723 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
724 |
from abrcong |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
725 |
have acarr: "a \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
726 |
and bcarr: "b \<in> carrier G" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
727 |
and abH: "inv a \<otimes> b \<in> H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
728 |
by (unfold r_congruent_def, fast+) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
729 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
730 |
note carr = acarr bcarr ccarr |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
731 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
732 |
from carr and inv_closed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
733 |
have "inv a \<otimes> b = inv a \<otimes> (\<one> \<otimes> b)" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
734 |
also from carr and inv_closed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
735 |
have "\<dots> = inv a \<otimes> (inv c \<otimes> c) \<otimes> b" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
736 |
also from carr and inv_closed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
737 |
have "\<dots> = (inv a \<otimes> inv c) \<otimes> (c \<otimes> b)" by (force cong: m_assoc) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
738 |
also from carr and inv_closed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
739 |
have "\<dots> = inv (c \<otimes> a) \<otimes> (c \<otimes> b)" by (simp add: inv_mult_group) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
740 |
finally |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
741 |
have "inv a \<otimes> b = inv (c \<otimes> a) \<otimes> (c \<otimes> b)" . |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
742 |
from abH and this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
743 |
have "inv (c \<otimes> a) \<otimes> (c \<otimes> b) \<in> H" by simp |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
744 |
|
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
745 |
from carr and this |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
746 |
have "(c \<otimes> b) \<in> (c \<otimes> a) <# H" |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
747 |
by (simp add: lcos_module_rev[OF is_group]) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
748 |
from carr and this and is_subgroup |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
749 |
show "(c \<otimes> a) <# H = (c \<otimes> b) <# H" by (intro l_repr_independence, simp+) |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
750 |
qed |
0e0ea63fe768
Restructured algebra library, added ideals and quotient rings.
ballarin
parents:
19931
diff
changeset
|
751 |
|
14803 | 752 |
|
753 |
subsection {*Order of a Group and Lagrange's Theorem*} |
|
754 |
||
755 |
constdefs |
|
14963 | 756 |
order :: "('a, 'b) monoid_scheme \<Rightarrow> nat" |
757 |
"order S \<equiv> card (carrier S)" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
758 |
|
14963 | 759 |
lemma (in group) rcosets_part_G: |
27611 | 760 |
assumes "subgroup H G" |
14963 | 761 |
shows "\<Union>(rcosets H) = carrier G" |
27611 | 762 |
proof - |
763 |
interpret subgroup [H G] by fact |
|
764 |
show ?thesis |
|
765 |
apply (rule equalityI) |
|
766 |
apply (force simp add: RCOSETS_def r_coset_def) |
|
767 |
apply (auto simp add: RCOSETS_def intro: rcos_self prems) |
|
768 |
done |
|
769 |
qed |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
770 |
|
14747 | 771 |
lemma (in group) cosets_finite: |
14963 | 772 |
"\<lbrakk>c \<in> rcosets H; H \<subseteq> carrier G; finite (carrier G)\<rbrakk> \<Longrightarrow> finite c" |
773 |
apply (auto simp add: RCOSETS_def) |
|
774 |
apply (simp add: r_coset_subset_G [THEN finite_subset]) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
775 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
776 |
|
14747 | 777 |
text{*The next two lemmas support the proof of @{text card_cosets_equal}.*} |
778 |
lemma (in group) inj_on_f: |
|
14963 | 779 |
"\<lbrakk>H \<subseteq> carrier G; a \<in> carrier G\<rbrakk> \<Longrightarrow> inj_on (\<lambda>y. y \<otimes> inv a) (H #> a)" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
780 |
apply (rule inj_onI) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
781 |
apply (subgoal_tac "x \<in> carrier G & y \<in> carrier G") |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
782 |
prefer 2 apply (blast intro: r_coset_subset_G [THEN subsetD]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
783 |
apply (simp add: subsetD) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
784 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
785 |
|
14747 | 786 |
lemma (in group) inj_on_g: |
14963 | 787 |
"\<lbrakk>H \<subseteq> carrier G; a \<in> carrier G\<rbrakk> \<Longrightarrow> inj_on (\<lambda>y. y \<otimes> a) H" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
788 |
by (force simp add: inj_on_def subsetD) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
789 |
|
14747 | 790 |
lemma (in group) card_cosets_equal: |
14963 | 791 |
"\<lbrakk>c \<in> rcosets H; H \<subseteq> carrier G; finite(carrier G)\<rbrakk> |
792 |
\<Longrightarrow> card c = card H" |
|
793 |
apply (auto simp add: RCOSETS_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
794 |
apply (rule card_bij_eq) |
14666 | 795 |
apply (rule inj_on_f, assumption+) |
14747 | 796 |
apply (force simp add: m_assoc subsetD r_coset_def) |
14666 | 797 |
apply (rule inj_on_g, assumption+) |
14747 | 798 |
apply (force simp add: m_assoc subsetD r_coset_def) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
799 |
txt{*The sets @{term "H #> a"} and @{term "H"} are finite.*} |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
800 |
apply (simp add: r_coset_subset_G [THEN finite_subset]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
801 |
apply (blast intro: finite_subset) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
802 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
803 |
|
14963 | 804 |
lemma (in group) rcosets_subset_PowG: |
805 |
"subgroup H G \<Longrightarrow> rcosets H \<subseteq> Pow(carrier G)" |
|
806 |
apply (simp add: RCOSETS_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
807 |
apply (blast dest: r_coset_subset_G subgroup.subset) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
808 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
809 |
|
14803 | 810 |
|
811 |
theorem (in group) lagrange: |
|
14963 | 812 |
"\<lbrakk>finite(carrier G); subgroup H G\<rbrakk> |
813 |
\<Longrightarrow> card(rcosets H) * card(H) = order(G)" |
|
814 |
apply (simp (no_asm_simp) add: order_def rcosets_part_G [symmetric]) |
|
14803 | 815 |
apply (subst mult_commute) |
816 |
apply (rule card_partition) |
|
14963 | 817 |
apply (simp add: rcosets_subset_PowG [THEN finite_subset]) |
818 |
apply (simp add: rcosets_part_G) |
|
14803 | 819 |
apply (simp add: card_cosets_equal subgroup.subset) |
820 |
apply (simp add: rcos_disjoint) |
|
821 |
done |
|
822 |
||
823 |
||
14747 | 824 |
subsection {*Quotient Groups: Factorization of a Group*} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
825 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
826 |
constdefs |
14963 | 827 |
FactGroup :: "[('a,'b) monoid_scheme, 'a set] \<Rightarrow> ('a set) monoid" |
14803 | 828 |
(infixl "Mod" 65) |
14747 | 829 |
--{*Actually defined for groups rather than monoids*} |
14963 | 830 |
"FactGroup G H \<equiv> |
831 |
\<lparr>carrier = rcosets\<^bsub>G\<^esub> H, mult = set_mult G, one = H\<rparr>" |
|
14747 | 832 |
|
14963 | 833 |
lemma (in normal) setmult_closed: |
834 |
"\<lbrakk>K1 \<in> rcosets H; K2 \<in> rcosets H\<rbrakk> \<Longrightarrow> K1 <#> K2 \<in> rcosets H" |
|
835 |
by (auto simp add: rcos_sum RCOSETS_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
836 |
|
14963 | 837 |
lemma (in normal) setinv_closed: |
838 |
"K \<in> rcosets H \<Longrightarrow> set_inv K \<in> rcosets H" |
|
839 |
by (auto simp add: rcos_inv RCOSETS_def) |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
840 |
|
14963 | 841 |
lemma (in normal) rcosets_assoc: |
842 |
"\<lbrakk>M1 \<in> rcosets H; M2 \<in> rcosets H; M3 \<in> rcosets H\<rbrakk> |
|
843 |
\<Longrightarrow> M1 <#> M2 <#> M3 = M1 <#> (M2 <#> M3)" |
|
844 |
by (auto simp add: RCOSETS_def rcos_sum m_assoc) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
845 |
|
14963 | 846 |
lemma (in subgroup) subgroup_in_rcosets: |
27611 | 847 |
assumes "group G" |
14963 | 848 |
shows "H \<in> rcosets H" |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
849 |
proof - |
27611 | 850 |
interpret group [G] by fact |
26203 | 851 |
from _ subgroup_axioms have "H #> \<one> = H" |
23350 | 852 |
by (rule coset_join2) auto |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
853 |
then show ?thesis |
14963 | 854 |
by (auto simp add: RCOSETS_def) |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
855 |
qed |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
856 |
|
14963 | 857 |
lemma (in normal) rcosets_inv_mult_group_eq: |
858 |
"M \<in> rcosets H \<Longrightarrow> set_inv M <#> M = H" |
|
19931
fb32b43e7f80
Restructured locales with predicates: import is now an interpretation.
ballarin
parents:
19380
diff
changeset
|
859 |
by (auto simp add: RCOSETS_def rcos_inv rcos_sum subgroup.subset normal.axioms prems) |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
860 |
|
14963 | 861 |
theorem (in normal) factorgroup_is_group: |
862 |
"group (G Mod H)" |
|
14666 | 863 |
apply (simp add: FactGroup_def) |
13936 | 864 |
apply (rule groupI) |
14747 | 865 |
apply (simp add: setmult_closed) |
14963 | 866 |
apply (simp add: normal_imp_subgroup subgroup_in_rcosets [OF is_group]) |
867 |
apply (simp add: restrictI setmult_closed rcosets_assoc) |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
868 |
apply (simp add: normal_imp_subgroup |
14963 | 869 |
subgroup_in_rcosets rcosets_mult_eq) |
870 |
apply (auto dest: rcosets_inv_mult_group_eq simp add: setinv_closed) |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
871 |
done |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
872 |
|
14803 | 873 |
lemma mult_FactGroup [simp]: "X \<otimes>\<^bsub>(G Mod H)\<^esub> X' = X <#>\<^bsub>G\<^esub> X'" |
874 |
by (simp add: FactGroup_def) |
|
875 |
||
14963 | 876 |
lemma (in normal) inv_FactGroup: |
877 |
"X \<in> carrier (G Mod H) \<Longrightarrow> inv\<^bsub>G Mod H\<^esub> X = set_inv X" |
|
14747 | 878 |
apply (rule group.inv_equality [OF factorgroup_is_group]) |
14963 | 879 |
apply (simp_all add: FactGroup_def setinv_closed rcosets_inv_mult_group_eq) |
14747 | 880 |
done |
881 |
||
882 |
text{*The coset map is a homomorphism from @{term G} to the quotient group |
|
14963 | 883 |
@{term "G Mod H"}*} |
884 |
lemma (in normal) r_coset_hom_Mod: |
|
885 |
"(\<lambda>a. H #> a) \<in> hom G (G Mod H)" |
|
886 |
by (auto simp add: FactGroup_def RCOSETS_def Pi_def hom_def rcos_sum) |
|
14747 | 887 |
|
14963 | 888 |
|
889 |
subsection{*The First Isomorphism Theorem*} |
|
14803 | 890 |
|
14963 | 891 |
text{*The quotient by the kernel of a homomorphism is isomorphic to the |
892 |
range of that homomorphism.*} |
|
14803 | 893 |
|
894 |
constdefs |
|
14963 | 895 |
kernel :: "('a, 'm) monoid_scheme \<Rightarrow> ('b, 'n) monoid_scheme \<Rightarrow> |
896 |
('a \<Rightarrow> 'b) \<Rightarrow> 'a set" |
|
14803 | 897 |
--{*the kernel of a homomorphism*} |
26310 | 898 |
"kernel G H h \<equiv> {x. x \<in> carrier G & h x = \<one>\<^bsub>H\<^esub>}" |
14803 | 899 |
|
900 |
lemma (in group_hom) subgroup_kernel: "subgroup (kernel G H h) G" |
|
14963 | 901 |
apply (rule subgroup.intro) |
14803 | 902 |
apply (auto simp add: kernel_def group.intro prems) |
903 |
done |
|
904 |
||
905 |
text{*The kernel of a homomorphism is a normal subgroup*} |
|
14963 | 906 |
lemma (in group_hom) normal_kernel: "(kernel G H h) \<lhd> G" |
19931
fb32b43e7f80
Restructured locales with predicates: import is now an interpretation.
ballarin
parents:
19380
diff
changeset
|
907 |
apply (simp add: G.normal_inv_iff subgroup_kernel) |
fb32b43e7f80
Restructured locales with predicates: import is now an interpretation.
ballarin
parents:
19380
diff
changeset
|
908 |
apply (simp add: kernel_def) |
14803 | 909 |
done |
910 |
||
911 |
lemma (in group_hom) FactGroup_nonempty: |
|
912 |
assumes X: "X \<in> carrier (G Mod kernel G H h)" |
|
913 |
shows "X \<noteq> {}" |
|
914 |
proof - |
|
915 |
from X |
|
916 |
obtain g where "g \<in> carrier G" |
|
917 |
and "X = kernel G H h #> g" |
|
14963 | 918 |
by (auto simp add: FactGroup_def RCOSETS_def) |
14803 | 919 |
thus ?thesis |
14963 | 920 |
by (auto simp add: kernel_def r_coset_def image_def intro: hom_one) |
14803 | 921 |
qed |
922 |
||
923 |
||
924 |
lemma (in group_hom) FactGroup_contents_mem: |
|
925 |
assumes X: "X \<in> carrier (G Mod (kernel G H h))" |
|
926 |
shows "contents (h`X) \<in> carrier H" |
|
927 |
proof - |
|
928 |
from X |
|
929 |
obtain g where g: "g \<in> carrier G" |
|
930 |
and "X = kernel G H h #> g" |
|
14963 | 931 |
by (auto simp add: FactGroup_def RCOSETS_def) |
932 |
hence "h ` X = {h g}" by (auto simp add: kernel_def r_coset_def image_def g) |
|
14803 | 933 |
thus ?thesis by (auto simp add: g) |
934 |
qed |
|
935 |
||
936 |
lemma (in group_hom) FactGroup_hom: |
|
14963 | 937 |
"(\<lambda>X. contents (h`X)) \<in> hom (G Mod (kernel G H h)) H" |
938 |
apply (simp add: hom_def FactGroup_contents_mem normal.factorgroup_is_group [OF normal_kernel] group.axioms monoid.m_closed) |
|
14803 | 939 |
proof (simp add: hom_def funcsetI FactGroup_contents_mem, intro ballI) |
940 |
fix X and X' |
|
941 |
assume X: "X \<in> carrier (G Mod kernel G H h)" |
|
942 |
and X': "X' \<in> carrier (G Mod kernel G H h)" |
|
943 |
then |
|
944 |
obtain g and g' |
|
945 |
where "g \<in> carrier G" and "g' \<in> carrier G" |
|
946 |
and "X = kernel G H h #> g" and "X' = kernel G H h #> g'" |
|
14963 | 947 |
by (auto simp add: FactGroup_def RCOSETS_def) |
14803 | 948 |
hence all: "\<forall>x\<in>X. h x = h g" "\<forall>x\<in>X'. h x = h g'" |
949 |
and Xsub: "X \<subseteq> carrier G" and X'sub: "X' \<subseteq> carrier G" |
|
950 |
by (force simp add: kernel_def r_coset_def image_def)+ |
|
951 |
hence "h ` (X <#> X') = {h g \<otimes>\<^bsub>H\<^esub> h g'}" using X X' |
|
952 |
by (auto dest!: FactGroup_nonempty |
|
953 |
simp add: set_mult_def image_eq_UN |
|
954 |
subsetD [OF Xsub] subsetD [OF X'sub]) |
|
955 |
thus "contents (h ` (X <#> X')) = contents (h ` X) \<otimes>\<^bsub>H\<^esub> contents (h ` X')" |
|
956 |
by (simp add: all image_eq_UN FactGroup_nonempty X X') |
|
957 |
qed |
|
958 |
||
14963 | 959 |
|
14803 | 960 |
text{*Lemma for the following injectivity result*} |
961 |
lemma (in group_hom) FactGroup_subset: |
|
14963 | 962 |
"\<lbrakk>g \<in> carrier G; g' \<in> carrier G; h g = h g'\<rbrakk> |
963 |
\<Longrightarrow> kernel G H h #> g \<subseteq> kernel G H h #> g'" |
|
26310 | 964 |
apply (clarsimp simp add: kernel_def r_coset_def image_def) |
14803 | 965 |
apply (rename_tac y) |
966 |
apply (rule_tac x="y \<otimes> g \<otimes> inv g'" in exI) |
|
26310 | 967 |
apply (simp add: G.m_assoc) |
14803 | 968 |
done |
969 |
||
970 |
lemma (in group_hom) FactGroup_inj_on: |
|
971 |
"inj_on (\<lambda>X. contents (h ` X)) (carrier (G Mod kernel G H h))" |
|
972 |
proof (simp add: inj_on_def, clarify) |
|
973 |
fix X and X' |
|
974 |
assume X: "X \<in> carrier (G Mod kernel G H h)" |
|
975 |
and X': "X' \<in> carrier (G Mod kernel G H h)" |
|
976 |
then |
|
977 |
obtain g and g' |
|
978 |
where gX: "g \<in> carrier G" "g' \<in> carrier G" |
|
979 |
"X = kernel G H h #> g" "X' = kernel G H h #> g'" |
|
14963 | 980 |
by (auto simp add: FactGroup_def RCOSETS_def) |
14803 | 981 |
hence all: "\<forall>x\<in>X. h x = h g" "\<forall>x\<in>X'. h x = h g'" |
982 |
by (force simp add: kernel_def r_coset_def image_def)+ |
|
983 |
assume "contents (h ` X) = contents (h ` X')" |
|
984 |
hence h: "h g = h g'" |
|
985 |
by (simp add: image_eq_UN all FactGroup_nonempty X X') |
|
986 |
show "X=X'" by (rule equalityI) (simp_all add: FactGroup_subset h gX) |
|
987 |
qed |
|
988 |
||
989 |
text{*If the homomorphism @{term h} is onto @{term H}, then so is the |
|
990 |
homomorphism from the quotient group*} |
|
991 |
lemma (in group_hom) FactGroup_onto: |
|
992 |
assumes h: "h ` carrier G = carrier H" |
|
993 |
shows "(\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h) = carrier H" |
|
994 |
proof |
|
995 |
show "(\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h) \<subseteq> carrier H" |
|
996 |
by (auto simp add: FactGroup_contents_mem) |
|
997 |
show "carrier H \<subseteq> (\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h)" |
|
998 |
proof |
|
999 |
fix y |
|
1000 |
assume y: "y \<in> carrier H" |
|
1001 |
with h obtain g where g: "g \<in> carrier G" "h g = y" |
|
26310 | 1002 |
by (blast elim: equalityE) |
15120 | 1003 |
hence "(\<Union>x\<in>kernel G H h #> g. {h x}) = {y}" |
14803 | 1004 |
by (auto simp add: y kernel_def r_coset_def) |
1005 |
with g show "y \<in> (\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h)" |
|
14963 | 1006 |
by (auto intro!: bexI simp add: FactGroup_def RCOSETS_def image_eq_UN) |
14803 | 1007 |
qed |
1008 |
qed |
|
1009 |
||
1010 |
||
1011 |
text{*If @{term h} is a homomorphism from @{term G} onto @{term H}, then the |
|
1012 |
quotient group @{term "G Mod (kernel G H h)"} is isomorphic to @{term H}.*} |
|
1013 |
theorem (in group_hom) FactGroup_iso: |
|
1014 |
"h ` carrier G = carrier H |
|
14963 | 1015 |
\<Longrightarrow> (\<lambda>X. contents (h`X)) \<in> (G Mod (kernel G H h)) \<cong> H" |
14803 | 1016 |
by (simp add: iso_def FactGroup_hom FactGroup_inj_on bij_betw_def |
1017 |
FactGroup_onto) |
|
1018 |
||
14963 | 1019 |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
1020 |
end |